[s7] S7 — LOGO!/S7-200 V-memory parser #340
Reference in New Issue
Block a user
Delete Branch "auto/s7/PR-S7-A5"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
CPU-aware S7 address parsing with
Varea letter support for S7-200 / S7-200 Smart / LOGO!.S7AddressParser.Parse(string, S7.Net.CpuType?)plus matchingTryParse. AcceptsVarea (VB/VW/VD/V0.0) and rewrites toS7Area.DataBlockwithDbNumber=1forS7200,S7200Smart, andLogo0BA8.Parse(string)overload delegates and continues to rejectV(no CPU context).FormatExceptionwith a guiding message.Parseand on the newVMemoryDbNumberForhelper (central extension point if a site needs non-DB1 mapping).S7Driver.RegisterAsyncnow passes_options.CpuTypeinto the parser.S7DriverOptionsalready exposedCpuType— no options change.Disambiguated one
<see cref>warning that surfaced once the new overload was added.Test plan
dotnet build src/ZB.MOM.WW.OtOpcUa.Driver.S7— clean (0 / 0)dotnet test tests/ZB.MOM.WW.OtOpcUa.Driver.S7.Tests— 135 / 135 passed (9 new inS7AddressParserTests: 5 V-memory positives for S7-200/Smart/LOGO!, 4 rejection cases for modern families + CPU-agnosticParse)🤖 Auto-generated by the Mode-B execution loop. Closes #291.
Closes #291