TECT_LOG_FILE: Process Logging

../_images/ec4974eedfb2a97d0a33139001da94d5

Function Block TECT_LOG_FILE

Function Block TECT_LOG_FILE logs the predefined process status and values together with time stamp in a logging buffer when trigger LOG_TRIG has a rising edge. To execute this block SD card is recommended for saving log files. The predefined process status and values are:

  • Control Word
  • Status Word
  • SET_TEMP
  • ACT_TEMP
  • Duty Cycle
  • Control State
  • Output Status
  • Latest Error
  • Errors (Error Word).

Please see “Description of Structure TECT_TEMPZONE_DATA_TYPE” for details of the process status. Temperature Control Library

The logging buffer has a size of NUM_BUFFER_ENTRY (number of entries) for each zone. As long as the logging entry reaches the end of logging buffer, the entries in logging buffer will be saved as a log file in .csv format under a user defined folder. The file name is generated automatically from the zone index, its group index and the month and date value while saving. This log file can be opened in e.g. Excel with comma as delimiter and can be analyzed.

The second function of this Function Block is to display entries in logging buffer using IEC 61131-3 editor visualization as live log. This Function Block can be used not only to monitor the process but also for system diagnosis.