F_iecCmpAddrOctets

This function compares two addresses (e.g. the connection address, object address or the common ASDU address).
Syntax
FUNCTION F_iecCmpAddrOctets: BOOL
VAR_INPUT
a : DWORD;
b : DWORD;
size : INT(0..4);
END_VAR
Inputs
a: First address.
b: Second address.
size: Byte size of the address (0..3, 4 is reserved).
Return value
Return parameter | Meaning |
---|---|
TRUE | (a and b are identical) or (b is an address to all (broadcast)) or (size is 0), |
FALSE | All other cases. |
Requirements
Development environment | Target system type | PLC libraries to be linked (category group) |
---|---|---|
TwinCAT v3.1.4012.0 | PC oder CX (x86, x64, Arm®) | Tc2_IEC60870_5_10x (Communication->IEC60870) |