30 lines
1.3 KiB
C#
30 lines
1.3 KiB
C#
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;
|
|
}
|