日本語 English
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.

Difference Between Logging and Tracing
ItemLoggingTrace
Recording methodRecords based on the trigger state or the TRGD instructionRecords before and after the trigger
UseOperation monitoringFault analysis
Saved dataValues when the trigger is ONPast + current values per scan
Trigger types
Bit devicesSpecified bit turns ON
PeriodSpecified time interval (1 ms or more)
Trigger instruction (TRGD)When the TRGD instruction is executed (up to 8 per scan)
Data acquisition triggerUnit 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 a bit device

For the trigger instruction (TRGD)

For the trigger instruction

Trace timing

The trigger works the same as for logging

Data acquisition period

Trace timing

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

Settings
Number of settings10 in total including traces
Save destinationMemory card / CPU memory (/ internal memory, trace only)
Saved devices/variables512 (LREAL not allowed) / consecutive devices allowed (variables as arrays)
TriggerBit device / period (1 ms or more) / trigger instruction (TRGD) / data acquisition trigger (flow)
File nameSequential number / any characters / date and time
OptionsComment on first line / names at top of columns / time stamp / data number / acquisition interval / add blank characters
Transfer to an FTP serverSet with the FTP client function

Setting example

Menu bar [Tools] - [Logging/Trace Settings]

Logging/trace settings screen

Trace only
Trace only

Ladder logic

Logging

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

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
Trace ladder

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
FTP client settings screen

Logging/trace

On the Logging/Trace tab, check the log IDs to send
Logging/trace settings screen

Comments