F_iecCmpAddrOctets

F_iecCmpAddrOctets 1:

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

F_iecCmpAddrOctets 2: Inputs

a: First address.

b: Second address.

size: Byte size of the address (0..3, 4 is reserved).

F_iecCmpAddrOctets 3: 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)
Tc2_SerialCom (Communication->Serial)
Tc2_TcpIp (Communication->TcpIp)
Tc2_Utilities (System)