Auto: abcip-3.1 — configurable CIP connection size per device
Closes #235
This commit is contained in:
29
src/ZB.MOM.WW.OtOpcUa.Driver.AbCip/AbCipConnectionSize.cs
Normal file
29
src/ZB.MOM.WW.OtOpcUa.Driver.AbCip/AbCipConnectionSize.cs
Normal file
@@ -0,0 +1,29 @@
|
||||
namespace ZB.MOM.WW.OtOpcUa.Driver.AbCip;
|
||||
|
||||
/// <summary>
|
||||
/// PR abcip-3.1 — bounds + magic numbers for the per-device CIP <c>ConnectionSize</c>
|
||||
/// override. Pulled into a single place so config validation, the legacy-firmware warning,
|
||||
/// and the docs stay in sync.
|
||||
/// </summary>
|
||||
public static class AbCipConnectionSize
|
||||
{
|
||||
/// <summary>
|
||||
/// Minimum supported CIP Forward Open buffer size, in bytes. Matches the lower bound of
|
||||
/// Kepware's connection-size slider for ControlLogix drivers + the libplctag native
|
||||
/// floor that still leaves headroom for the CIP MR header.
|
||||
/// </summary>
|
||||
public const int Min = 500;
|
||||
|
||||
/// <summary>
|
||||
/// Maximum supported CIP Forward Open buffer size, in bytes. Matches the upper bound of
|
||||
/// Kepware's slider + the Large Forward Open ceiling on FW20+ ControlLogix.
|
||||
/// </summary>
|
||||
public const int Max = 4002;
|
||||
|
||||
/// <summary>
|
||||
/// Soft cap above which legacy ControlLogix firmware (v19 and earlier) rejects the
|
||||
/// Forward Open. CompactLogix L1/L2/L3 narrow-cap parts (5069-L1/L2/L3) and Micro800
|
||||
/// hard-cap below this too. Used as the threshold for the legacy-firmware warning.
|
||||
/// </summary>
|
||||
public const int LegacyFirmwareCap = 511;
|
||||
}
|
||||
Reference in New Issue
Block a user