AmsNetId.NetIdsEqual Method (.Byte., .Byte., Boolean)
Compares the NetIds for SubID equality.
Namespace: TwinCAT.Ads
Assembly: TwinCAT.Ads.Abstractions (in
TwinCAT.Ads.Abstractions.dll) Version: 6.0.328+39e3229
Syntax
C#
public static bool NetIdsEqual(
byte[] netId1,
byte[] netId2,
bool ignoreSubID
)
Parameters
netId1 |
Type: .System.Byte. |
netId2 |
Type: .System.Byte. |
ignoreSubID |
Type: System.Boolean |
Return Value
Type: Boolean
true if the SubIds are equal,
false otherwise.
Remarks
The first 4 numbers indicate the global ID of the AmsNetId. The last 2 numbers indicate the (local) submodule.