- KVKV-X
Logging and tracing
Overview
What Are Logging and Tracing?
The logging function saves data inside the PLC as CSV files. It can be used to collect equipment operating data and record quality data.
The trace function can save data from before and after an error occurs, so it is useful for analyzing equipment trouble and investigating defects.
| Item | Logging | Trace |
|---|---|---|
| Recording method | Records based on the trigger state or the TRGD instruction | Records before and after the trigger |
| Use | Operation monitoring | Fault analysis |
| Saved data | Values when the trigger is ON | Past + current values per scan |
| Bit devices | Specified bit turns ON |
| Period | Specified time interval (1 ms or more) |
| Trigger instruction (TRGD) | When the TRGD instruction is executed (up to 8 per scan) |
| Data acquisition trigger | Unit program of the X-Unit function |
Use cases
- Analyzing the cause of equipment stops
- Long-term storage of temperature data
- Recording cycle (tact) time
- Collecting quality data
- Traceability
File Save Timing
Logging timing
For a bit device

For the trigger instruction (TRGD)

Trace timing
The trigger works the same as for logging
Data acquisition period

When the data after the file save trigger turned ON is complete, data acquisition complete turns ON; executing the LOGD instruction then creates the CSV file
| Number of settings | 10 in total including traces |
| Save destination | Memory card / CPU memory (/ internal memory, trace only) |
| Saved devices/variables | 512 (LREAL not allowed) / consecutive devices allowed (variables as arrays) |
| Trigger | Bit device / period (1 ms or more) / trigger instruction (TRGD) / data acquisition trigger (flow) |
| File name | Sequential number / any characters / date and time |
| Options | Comment on first line / names at top of columns / time stamp / data number / acquisition interval / add blank characters |
| Transfer to an FTP server | Set with the FTP client function |
Setting example
Menu bar [Tools] - [Logging/Trace Settings]

Ladder logic
Logging
Data is logged while Logging is ON, and the LOGD instruction creates the CSV file

Trace
Recording starts with TraceEnable, and data before and after EventTrigger is stored
When the data acquisition complete flag turns ON, executing the LOGD instruction creates the CSV file
Collected data
log010_text260328092105.csv
Transfer to an FTP Server
FTP client settings
In "FTP Client Settings" in the Unit Editor, configure the FTP settings for sending to the FTP server
Logging/trace
On the Logging/Trace tab, check the log IDs to send





