ASDU103COT_TO_STRING

ASDU103COT_TO_STRING 1:

The function converts the IEC 60870-5-103 cause of transfer into a string (for debugging/troubleshooting).

Syntax

FUNCTION ASDU103COT_TO_STRING: T_MaxString
VAR_INPUT
    eCOT : INT(0..255);
    nOpt : BYTE;
    bCmd : BOOL;
END_VAR

ASDU103COT_TO_STRING 2: Inputs

eCOT: Cause of transfer in monitoring direction or in control direction.

nOpt: Options. Bit 0 := FALSE => exact type identifier, bit 0 := TRUE => short type identifier. Bit 1 := TRUE => numeric hexadecimal/decimal value, bit 2 := TRUE => additional descriptive text.

bCmd: FALSE=>monitoring direction, TRUE=>control direction.

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)