F_iecApdu104ToAsduLen

From product version:  TwinCAT PLC Library IEC60870-5-104 Substation v2.0.6 and higher.

F_iecApdu104ToAsduLen 1:

The function calculates for the  IEC 60870-5-104 protocol the maximum available ASDU byte length with the configurated  APDU length. The maximum available ASDU length is for example required for the configuration of the  ST_IEC870_5_101T buffer variable. This data structure (TX/RX data buffer) is used for the data exchange via the IEC60870-5-104 Transport Interface.

FUNCTION F_iecApdu104ToAsduLen: BYTE

VAR_INPUT
    APDULength : BYTE;
END_VAR

APDULength : Available APDU length (see compatibility list).

Requirements

Development Environment

Target System Type

PLC Libraries to include

TwinCAT v2.9.0 Build >= 1030

PC or CX (x86)

TcIEC870_5_104.Lib

( Standard.Lib; TcBase.Lib; TcSystem.Lib; TcpIp.Lib; TcUtilities.Lib; TcSocketHelper.Lib; TcIEC870_5_101.Lib  are included automatically )

TwinCAT v2.10.0 Build >= 1301

CX (ARM)