F_iecCmpAddrOctets
From product version: TwinCAT PLC Library IEC60870-5-101/104 substation v3.0.2 / IEC60870-5-104 controll station v1.0.2 and higher.

This function compares two address values ( e.g. link addresses, object addresses or common ASDU addresses).
FUNCTION F_iecCmpAddrOctets: BOOL
VAR_INPUT
a : DWORD; (* first address *)
b : DWORD; (* second address *)
size : INT(0..4); (* address octet size (0..3, 4 = reserved) *)
END_VAR
a: First address.
b: Second address
size: Address octet size.
Return value | Description |
---|---|
TRUE | (a and b are equal) or (b is broadcast address) or (size is 0). |
FALSE | All other cases. |
Requirements
Development Environment | Target System | PLC libraries to include |
---|---|---|
TwinCAT v2.10.0 Build >= 1307 | PC oder CX (x86, ARM) | TcIEC870_5_101.Lib ( Standard.Lib; TcBase.Lib; TcSystem.Lib; TcUtilities.Lib; are included automatically ) |