Output Description

../_images/ec4974eedfb2a97d0a33139001da94d5

Function Block TECT_LOG_FILE

ERR (error)

Data type: BOOL

Output ERR indicates, whether an error occurred during control processing. In case of error, the error number can be read at output ERNO.

ERNO (error number)

Data type: WORD

Output ERNO provides an error identifier, if an invalid value was applied to an input or if an error occurred during request processing.

ERR_OP

Data type: TECT_FILE_ENUM

Display the logging operation, during which the error occurs TECT_FILE_ENUM.

ERR_ZONE

Data type: WORD

Indicate the zone in which error is generated.

FOLDER_CREATED

Data type: BOOL

This output variable is TRUE, if folder and subfolder have been created. Each time input EN has a rising edge, creating folder action will be executed. Depending on the number of zones and MODE 8, it could take some seconds to some minutes to create the folder and subfolders. If the folder already exists, the files inside will be kept untouched. It is recommended to enable logging (EN_LOG = TRUE) after FOLDER_CREATED is TRUE. Otherwise it could cause a loss of log data.

LOG_BUSY

Data type: BOOL

This output variable is TRUE, as long as input EN is TRUE and input EN_LOG is TRUE.

This output variable is FALSE, if input EN is TRUE and input EN_LOG is FALSE (pause), or if input EN has a falling edge. Then LOG_BUSY will be FALSE as soon as the backup of all log files have been created.

NUM_LOG_LOST

Data type: WORD

Number of log entries lost in the logging buffer due to busy of file operation, e.g. log saving operation of other zones.

SAVING_BUSY

Data type: BOOL

This output variable is TRUE, as long as log files are getting saved to the log folder.

This output variable is FALSE, if no saving of files to log folder is ongoing.

ZONE_SAVING

Data type: WORD

The particular zone, for which the file operation is executing (require: SAVING_BUSY is TRUE)

CLEAR_DONE

Data type: BOOL

Clear logging buffer is done.

ENTRY_SIZE

Data type: DWORD

Size of one log entry in byte. The size depends on input data SELECTION.

BUFFER_SIZE

Data type: DWORD

Size of whole buffer for all zones in byte. The size depends on output data ENTRY_SIZE and input data NUM_BUFFER_ENTRY and NUM_OF_ZONE.

Note

Check this value to make sure the BUFFER_SIZE doesn’t exceed the available size of specified data area.