Error log
Section 4-3
41
IORD (-)
@IORD (-)
C
C
S
S
D
D
C
Control code
value:
The code for the respective function to execute (see below)
S
Source information
value:
Combination of the Machine number of the Unit and the
message length (number of words in BCD).
Message length (001 ~ 128)
Machine number (0 ~ F)
D
First destination word
value:
The address of the first word of the PLC data area to where
the message from the Unit is to be transferred.
The following table lists the control codes for the C200HW-CORT21.
Function
Control code
Reading the error log
#0000
Transmitting a user defined CAN message
#0003
Receiving a user defined CAN message
#0004
PLC EQ-flag
After the execution of the IOWR or IORD instruction, the PLC EQ-flag is set
when the syntax of the instruction, the control code, and the message length
are valid.
Note
The EQ-flag does not indicate whether the contents of the message is
correct or not. Therefore it is important to check the error log during the
programming phase.
4-3
Error log
Max. 25 errors logged
IR n+3.15
The C200HW-CORT21 records the last 25 errors that have occurred due to
the IOWR / IORD message communication. The last occurred error will
always be the first one in the list. If already 25 errors are present in the error
log, the oldest error code is removed when a new error occurs.
IR n+3.15 is set when one or more errors have occurred since the last time
the error log was read. The error log can be read with the IORD instruction.
Reading the error log will not clear the log, it will only reset IR n+3.15. The
error log is only cleared after a reset or on power-up.
Содержание C200HW-CORT21
Страница 1: ...C200HW CORT21 CAN Unit OPERATION MANUAL Cat No W904 E2 1...
Страница 2: ......
Страница 3: ......
Страница 4: ......
Страница 5: ...C200HW CORT21 CAN Unit Operation Manual Produced July 2000...
Страница 6: ...iv...
Страница 8: ...vi...
Страница 10: ...viii...
Страница 12: ...x...
Страница 24: ...Performance Section 1 3 22...
Страница 40: ...LEDs 7 Segment Display Section 3 3 38...
Страница 56: ...Maintenance Section 5 3 54...
Страница 58: ...56...
Страница 60: ......