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.
NetID1

netId2

Type: .System.Byte.
NetId2

ignoreSubID

Type: System.Boolean
Ignores the SubId part of the NetId (last 2 numbers/bytes).

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.

Reference

AmsNetId Class

NetIdsEqual Overload

TwinCAT.Ads Namespace