In the general log settings, you enable data logging, configure the CSV log file format, and enable some PLC-controlled logging functions.
Go to to make general log settings.
-
Use data logger: Use this toggle switch to enable the data logger function. You must enable this function to add and to delete log files.
-
Data storage location: Select the storage location of the log files.
-
Internal memory: The file path for this setting is /home/log/log.
Approx. 2.4GB of internal memory are available for user data.
-
USB flash drive: The file path for this setting is /log.
When two USB flash drives are connected, the one connected first will be used.
-
Temporary: This is a volatile memory that can be used for testing because it permits shorter cycle times (e.g. 2s without caching). In real applications, short cycle times should be avoided to extend the lifetime of the non-volatile flash memory.
-
Show advanced settings: Enable this toggle switch to make additional settings.
-
Delete renamed files (visible if Show advanced settings is enabled)
When a script is used to send files via FTP, the local file will be renamed when transmission was successful (to make sure it will not be resent). The file will be deleted when this setting is enabled.
-
Write midnight value to previous day (visible if Show advanced settings is enabled): Enable this option to write the 00:00:00 time stamp into the file of the day before the current day.
This setting is required if you use the KW Watcher software tool which uses this format.
-
CSV file header (visible if Show advanced settings is enabled)
Select the number of header rows in your log files. A log file is a CSV file with the data point values. The set of data points captured at the same time is called a record.
-
No header: The CSV file only contains the logged data.
-
1 row: The CSV file contains one header row with the data point name.
-
2 rows: The CSV file contains two header rows with the data point name and the data point unit.
-
3 rows: The CSV file contains three header rows with the column number, the data point name, and the data point unit.
-
User-defined format: Select this option to load a pre-defined format. You can also create your own file format.
- (1) Header with 3 rows (column number, data point name, unit)
- (2) Data points
- (3) Records
-
CSV file separator (visible if Show advanced settings is enabled): Select the separator used in the CSV file. Normally, this is a “,” (comma).
-
CSV decimal separator (visible if Show advanced settings is enabled): Select the separator for floating point values. The international standard is a decimal point.
-
Enable PLC memory areas, start address (visible if Show advanced settings is enabled): Use this toggle switch to enable PLC control and status words and to set the start address of the memory area. For Modbus, the R memory area corresponds to the coil area.
The following control and monitor functions are available:
-
Trigger stop: Control bit to deactivate the logging trigger and stop logging data in the FP-I4C unit.
-
WRn+0, bit 0 to 7: log file 0 to 7
-
WRn+2, bit 0 to 7: log file 8 to F
-
Log file creation: Status bit which turns to TRUE when a log file is being created.
-
WRn+0, bit 8 to F: log file 0 to 7
-
WRn+2, bit 8 to F: log file 8 to F
-
Clear cache: Control bit to forcibly clear the records in the cache.
-
WRn+1, bit 0 to 7: log file 0 to 7
-
WRn+3, bit 0 to 7: log file 8 to F
-
Clear cache completed: Status bit which turns to TRUE when clear cache is completed.
-
WRn+1, bit 8 to F: log file 0 to 7
-
WRn+3, bit 8 to F: log file 8 to F
-
Enable PLC flags (visible if Show advanced settings is enabled): Use this toggle switch to enable PLC control and status flags. For Modbus, the R memory area corresponds to the coil area.
-
Write indication (visible if Show advanced settings is enabled): Specify the address of the status flag that turns to TRUE when data is being written to the memory.
-
Stop writing (visible if Show advanced settings is enabled): Specify the address of the control flag that stops writing data to the memory.
-
Error while writing (visible if Show advanced settings is enabled): Specify the address of the status flag that turns to TRUE when an error occurs.
-
Low memory capacity (visible if Show advanced settings is enabled): Specify the address of the status flag that turns to TRUE when the memory is low.
-
Save your configuration.
When you have changed any settings, a Save button appears in the upper right corner of the screen. You can make changes on multiple pages and then save your settings.
To reset all settings on the current page to the default configuration, select the Reset button at the bottom of the page.