ST_IEC870_5_101FBufferCfg

Configuration settings for the offline ASDU file buffer. This structure is used by the FB_IEC870_5_101FBufferCtrl function block.

Syntax

TYPE ST_IEC870_5_101FBufferCfg :
STRUCT
    sNetID          : T_AmsNetID := '';
    sPathName       : T_MaxString := 'c:\Temp\data.dat';
    ePath           : E_OpenPath := PATH_GENERIC;
    cbBuffer        : UDINT := 16#100000;
    bOverwrite      : BOOL := TRUE;
    bFilter         : BOOL := FALSE;
    cotFilter       : T_IEC870_5_101COTBits := 8(0);
    tTimeout        : TIME := DEFAULT_ADS_TIMEOUT;
    bContinueAfterOverflow    : BOOL := FALSE;
    bResetTxBufferOnOverwrite : BOOL := FALSE;
END_STRUCT
END_TYPE

sNetID: The network address of TwinCAT computer, on which the buffer file is to be created, can be specified here. If it is to be run on the local computer, an empty string can be entered.

sPathName: Contains the path and file name of the file to be opened (max. 255 characters). The path can only point to the local file system of the computer. This means that network paths cannot be used here.

ePath: This input can be used to select a TwinCAT system file path on the target device for opening the file.

cbBuffer: Max. byte size of the buffer file. An error is returned if bOverwrite = FALSE and the maximum size was exceeded. Default setting: 16#100000 = 1MB.

bOverwrite: When the maximum size is reached, the oldest entries are overwritten, if this variable was set to TRUE.

bFilter: Currently not implemented. Activates/deactivates a COT filter. Only ASDUs with certain causes of transfer are cached in the file.

cotFilter: Currently not implemented. This variable can be used to configure causes of transfer (COT filter), which are to be cached in the file.

tTimeout: Maximum timeout time, which should not be exceeded during file access.

bContinueAfterOverflow: TRUE => ignore file overrun errors when maximum file size is reached (only if bOverwrite = FALSE and TF6500 v3.0.6.0 or higher).

bResetTxBufferOnOverwrite: TRUE => reset the unsent Tx data in the memory buffer, once the first entry in the file buffer was overwritten (only if bOverwrite = TRUE and 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)