Font size:
Configuration
LOGGER.LST Configuration file
The configuration file for the LOGGER TLM is /SoftPLC/tlm/LOGGER.LST. A sample is shown below, which illustrates the use of a variety of datatable addresses and tagnames. The comments in the file explain the file format. See Appendix B for an example of the CSV log file that will be created based on this configuration.
# This is the configuration file for the logger TLM. # Any text after a '#' is a comment. # There should be one or more "groups" in this file, where a group is a # collection of values that should be logged as a single record. A record # is a conceptual row in a CSV table. There are a number of keywords followed # by the equals sign and then the value(s) of that keyword. # "debug" is set to a bit mask. debug = 0 # "diskbase" is the base directory for all log (CSV) files diskbase = /storage #------(group)------------------------------------------------------ # "group" is set to the name of the group. group names must be unique # and are used as the "Group:" parameter to the LOG_CSV TLI. group = first # "time_format" is optional. # google for "man strftime" to understand formatting characters which # are passed to the strftime() C function. # e.g. output: "Tue 21 Sep 2010 13:07:33" # The value must be quoted. time_format = "%a %d %b %Y %T" # "values" is a list of datatable words to log, either in address # form or in tag form. If tag form, the tag cannot be named "group". # If any value has a tag in its descriptor, then that tag will be used in the # CSV column title, else the address will be, regardless of how the # value is specified here. values = N7:0, F8:0, F:8:3, I:0/0, R6:0.POS, LASTLOGERROR #group = second # time_format = "%a %d %b %Y %T" # values = N7:0, N7:2, N7:6, N7:10 #------(/group)----------------------------------------------------- # log files are CSV files and will be written to [diskbase]/week-nn-[group].csv # where week's 'nn' is the number returned from strftime( "%V" )