F_iecApdu101ToAsduLen
From product version: TwinCAT PLC Library IEC60870-5-101 Substation v2.0.2 and higher.
The function calculates for the IEC 60870-5-101 protocol the maximum available ASDU byte length with the configurated frame and link address field 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-101 Serial Link Interface.
FUNCTION F_iecApdu101ToAsduLen: BYTE
VAR_INPUT
FRAMELength : BYTE;
eLinkAddrSize : E_IEC870_5_101LinkAddrSize;
END_VAR
FRAMELength : Max. available frame length (see compatibility list).
eLinkAddrSize: Link address field octet length (see compatibility list).
Requirements
Development Environment |
Target System Type |
PLC Libraries to include |
---|---|---|
TwinCAT v2.9.0 Build >= 1030 |
PC oder CX (x86) |
TcIEC870_5_101Link.Lib ( Standard.Lib; TcBase.Lib; TcSystem.Lib; TcUtilities.Lib; TcIEC870_5_101.Lib; COMlibV2.Lib; are included automatically ) |
TwinCAT v2.10.0 Build >= 1301 |
CX (ARM) |