9 Troubleshooting
9-20
NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (W505)
Procedures
The procedure to use the diagnosis/statistics log is as follows.
1
Set a value for _EC_StatisticsLogCycleSec (Diagnosis/Statistics Log Cycle).
The cycle to save the diagnostic and statistical information in a log file is set.
Set the value in units of seconds. (Example: set 30 for 30 seconds, set 1,800 for 30 minutes).
If 0 is set, the diagnostic and statistical information is saved only once when execution of this
function is completed.
2
Change _EC_StatisticsLogEnable (Diagnosis/Statistics Log Enable) from FALSE to TRUE.
The execution of the diagnosis/statistics log is started.
• _EC_StatisticsLogErr (Diagnosis/Statistics Log Error) changes to FALSE.
• _EC_StatisticsLogBusy (Diagnosis/Statistics Log Busy) changes to TRUE.
During execution of the diagnosis/statistics log, the diagnostic and statistical information is
acquired and saved in a log file at the cycle specified in step 1.
If one of the following (a) to (f) is detected during the diagnosis/statistics log, the diagnosis/sta-
tistics log is automatically terminated.
(a) The maximum number of diagnostic and statistical data are saved in a log file.
(b) The SD Memory Card does not have sufficient available space.
(c) The SD Memory Card is write protected.
(d) There is no SD Memory Card.
(e) A synchronization (or downloading) is executed on the Sysmac Studio.
(f) The value set for _EC_StatisticsLogCycleSec is out of range.
• An EtherCAT Diagnosis/Statistics Log Started error is recorded in the event log.
• _EC_StatisticsLogBusy changes to FALSE.
• If (b), (c), (d) or (f) occurs, _EC_StatisticsLogErr changes to TRUE.
• An EtherCAT Diagnosis/Statistics Log Ended error is recorded in the event log.
3
Change _EC_StatisticsLogEnable (Diagnosis/Statistics Log Enable) from TRUE to FALSE.
Execution of the diagnosis/statistics log is terminated. The diagnostic and statistical information
is saved in a log file when this variable changes to FALSE, regardless of the write cycle setting.
• _EC_StatisticsLogBusy changes to FALSE.
• An EtherCAT Diagnosis/Statistics Log Ended error is recorded in the event log.
The following figure shows the timing chart.