ST_IEC870_5_101FBufferStatus

Status information for the offline ASDU file buffer. This structure is used by the FB_IEC870_5_101FBufferCtrl function block.

Syntax

TYPE ST_IEC870_5_101FBufferStatus:
STRUCT
    eState      : E_IEC870_5_101FBufferState := eIEC870_FBUFFER_IDLE;
    nErrID      : UDINT;
    bCorrupted  : BOOL;
    nCount      : UDINT;
    bOverwriting: BOOL;
    nOverwrites : UDINT;
    bOverflowing: BOOL;
END_STRUCT
END_TYPE

eState: Returns the file buffer status (the file is written, read or closed, or a write/read error has occurred).

nErrID: Returns the ADS error number in the event of a file access error.

bCorrupted: If TRUE, the last opened file was identified as corrupt and replaced with new, empty file. File corruption may occur, if the maximum file buffer size was changed or the file was not closed properly, for example.

nCount: Current number of cached entries in the file buffer. The file buffer must first be opened, before the number of entries in an existing file can be counted. I.e. the connection must briefly switch to offline mode.

bOverwriting: TRUE => The oldest file entry is about to be overwritten (only for TF6500 v3.0.6.0 or higher).

nOverwrites: Number of file entries, which were overwritten (only for TF6500 v3.0.6.0 or higher).

bOverflowing: TRUE => Maximum file size was reached, or the last entry could not be written (only for TF6500 v3.0.6.0 or higher).

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)