General sta-
tus code
(hex)
Error name Cause
20 Invalid parameter
• The Unit number is out of the supported range.
• The specification of the number of readout records is out
of the range.
• The Unit does not exist.
Method of Use
1 The following variables are generated and initialized to 0.
•
Total number of readout records (UINT)
• Record index during the previous readout (UDINT)
• Previous latest record index (UDINT)
2 Specify the following parameters and execute Get event log(3B hex).
•
Unit No: Unit number subject to event information readout
• Start number of read record: 0
• Number of read record: Number of read records
3 The following parameters are read from the response data.
•
Number of registered record
• Latest index of registered record
• Last index of readout record
• Number of readout record
• Event log record
When the first response is obtained, the value of Latest index of registered record value is re-
tained as the record index during the previous readout.
When the second response onwards is obtained, the record index during the previous readout
and Latest index of registered record value are compared. If the value is updated with any ad-
ditional event logs of the Unit, execute this operation from step1 again.
4 Add the Number of readout record value of the response data to the total number of readout
records.
5 If the total number of readout records does not reach the Number of registered record, it
means that some records have not been read yet. Specify the following parameters and exe-
cute Get event log again.
•
Start number of read record: Last index of readout record when the previous service was
executed + 1.
• Number of read record: Number of read records
Repeat steps (3) to (5) until the total number of readout records matches the Number of registered
record.
Clear Event Log (Service Code: 3C hex)
Clear the event log of the Controller or specified NX Unit.
8 CIP Message Communications
8-66
NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506)