F_iecApdu103ToAsduLen
The function calculates the maximum available ASDU octet length for the IEC 60870-5-103 protocol by means of the configured APDU telegram length and the address field length of the link layer. The maximum available ASDU length is required for the configuration of the ST_IEC870_5_103TBuffer variable, for example. This data structure (TX/RX data buffer) is used for the data exchange via the IEC60870-5-103 low-level interface.
Syntax
FUNCTION F_iecApdu103ToAsduLen: BYTE
VAR_INPUT
FRAMELength : BYTE;
eLinkAddrSize : E_IEC870_5_101LinkAddrSize;
END_VAR
Inputs
FRAMELength: The max. available APDU telegram length (see compatibility list).
eLinkAddrSize: Address field length of the link layer.
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) |