FB_IEC870_5_102TBufferCtrl

FB_IEC870_5_102TBufferCtrl 1:

This function block can be used to manipulate the content of the TX/RX data buffer, which is used for the communication via the IEC60870-5-102 low-level interface.

The function block features the following tasks:

The content of the TX/RX data buffer can be changed by calling the actions listed above.

VAR_IN_OUT

VAR_IN_OUT
    buffer  : ST_IEC870_5_102TBuffer;
END_VAR

buffer: TX/RX data buffer. The TX/RX buffer parameters (like e.g. asduSize ) have to be configured before using.

VAR_INPUT

VAR_INPUT
    putObj  : ST_IEC870_5_102AOGen;
END_VAR

putObj: Data unit (ASDU) that is to be transmitted.

VAR_OUTPUT

VAR_OUTPUT
    getObj  : ST_IEC870_5_102AOGen;
    bOk     : BOOL;
END_VAR

getObj: Received data unit (ASDU).

bOk: This variable becomes TRUE if a new entry was successfully added to or removed from the FIFO. This variable becomes FALSE if the buffer overflows and if it is not possible to remove an entry because the FIFO is already empty.

Example (low-level interface): IEC 60870-5-102 central station (master);

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)