Input Description

EN   BOOL \    (enable)

Processing of the Function Block is controlled via input EN.

EN = FALSE:

The outputs DONE, ERR and ERNO are set to “0” or FALSE, respectively. This is not valid during writing.

EN = FALSE/TRUE edge:

Writing of the data set / segment label or deletion of the file respectively is started once.

ATTRIB   BYTE \    (attribute)

At input ATTRIB, the Function Block operation (action) is specified.

Possible values:

1 - Delete file (Delete), additionally needed inputs:

FILENO

2 - Write data set (Open(create), Write(append), Close), additionally needed inputs:

FILENO, FORMAT, NVAR, ADRVAR

3 - Write segment label (Open(create), Write(append), Close), additionally needed inputs:

FILENO, SEG

SEG   DWORD \    (segment)

At input SEG, the start address of the segment label is specified. A segment label must be enclosed in brackets “[ … ]”.

Examples:

[Values_Tab1]

[Temperature_12]

The length is limited to 32 characters.

FILENO   BYTE \    (filenumber)

At input FILENO, the number of the file is specified to which data are to be written or which should be created or deleted respectively.

Valid values: 0 … 99

FORMAT   BYTE \    (format)

Input Format is used to define the format of the data elements. All elements of one data set must have the same format.

Valid data formats:

00 hex - 0 - BYTE

01 hex - 1 - CHAR

10 hex - 16 - WORD

11 hex - 17 - INT

20 hex - 32 - DWORD

21 hex - 33 - DINT

NVAR   WORD \    (number \ of variable)

At input NVAR, the number of elements of a data set is specified.

ADRVAR   DWORD \    (address \ of variable)

Input ADRVAR is used to specify the start address of the data set. The values of a data set must be available in variables successively stored in the PLC (e.g. ARRAY, STRING, %M area).