@@ -26,6 +26,20 @@ public abstract class AbCipCommandBase : DriverCommandBase
|
||||
[CommandOption("timeout-ms", Description = "Per-operation timeout in ms (default 5000).")]
|
||||
public int TimeoutMs { get; init; } = 5000;
|
||||
|
||||
/// <summary>
|
||||
/// PR abcip-3.2 — pin the device's CIP addressing mode for this CLI invocation.
|
||||
/// Auto / Symbolic / Logical. Defaults to <see cref="AddressingMode.Auto"/> (resolves
|
||||
/// to Symbolic until a future PR plumbs auto-detection). Logical against an
|
||||
/// unsupported family (Micro800) silently falls back to Symbolic with a logged
|
||||
/// warning, so passing <c>--addressing-mode Logical</c> across a mixed-family
|
||||
/// fleet is safe.
|
||||
/// </summary>
|
||||
[CommandOption("addressing-mode", Description =
|
||||
"CIP addressing mode: Auto / Symbolic / Logical (default Auto, resolves to " +
|
||||
"Symbolic). Logical uses CIP Symbol Object instance IDs after a one-time @tags " +
|
||||
"walk; unsupported on Micro800 (silent fallback to Symbolic with warning).")]
|
||||
public AddressingMode AddressingMode { get; init; } = AddressingMode.Auto;
|
||||
|
||||
/// <inheritdoc />
|
||||
public override TimeSpan Timeout
|
||||
{
|
||||
@@ -43,7 +57,8 @@ public abstract class AbCipCommandBase : DriverCommandBase
|
||||
Devices = [new AbCipDeviceOptions(
|
||||
HostAddress: Gateway,
|
||||
PlcFamily: Family,
|
||||
DeviceName: $"cli-{Family}")],
|
||||
DeviceName: $"cli-{Family}",
|
||||
AddressingMode: AddressingMode)],
|
||||
Tags = tags,
|
||||
Timeout = Timeout,
|
||||
Probe = new AbCipProbeOptions { Enabled = false },
|
||||
|
||||
Reference in New Issue
Block a user