ST_IEC870_5_101FBufferStatus
From product version: TwinCAT PLC Library IEC60870-5-101/104 substation v3.0.2 / IEC60870-5-104 controllingstation v1.0.2 and higher.
Status information to offline ASDU data buffer. This structure is used by the functionblock FB_IEC870_5_101FBufferCtrl .
TYPE ST_IEC870_5_101FBufferStatus:
STRUCT
eState : E_IEC870_5_101FBufferState := eIEC870_FBUFFER_IDLE; (* File buffer data direction status (storing, loading, idle, error) *)
nErrID : UDINT; (* File access error code *)
bCorrupted : BOOL; (* TRUE => Existing file was corrupted and with new (empty) file replaced.
FALSE => Existing file was not corrupted or new (empty) file created. *)
nCount : UDINT; (* Number of buffered entries in file *)
END_STRUCT
END_TYPE
eState: Supplies the file buffer data direction status. (File is written, loaded, closed or an error occurs while writing/reading).
nErrID: Supplies the file access ADS error code..
bCorrupted: TRUE: the exisiting file was corrupted and is replaced with a new empty one. A corrupted file occurs if the maximum data buffer size was changed, or the file was not closed accurately.
nCount: Number of current buffered entries in the data buffer. The data buffer must be opened to detect the number of entries in the existing data buffer. That is the connection has to be in the offline mode for a short moment.
Requirements
Development Environment | Target System | PLC libraries to include |
---|---|---|
TwinCAT v2.10.0 Build >= 1313 | PC or CX (x86, ARM) | TcIEC870_5_101.Lib ( Standard.Lib; TcBase.Lib; TcSystem.Lib; TcUtilities.Lib; are included automatically ) |