Reading the error log
Section 4-4
43
4-4
Reading the error log
Control code #0000
The error log can be read with the IORD instruction. The following figure
shows the IORD message structure.
IORD message structure
word n
Number of new error codes
since the last time the log was
read [BCD]
range: 0000 ~ 9999
word n+1
Error code 1
word n+2
Error code 2
word n+24
Error code 24
word n+25
Error code 25
Word n in the message structure indicates how many new errors have
occurred since the last time the error log was read. Word n will not count any
further than 9999 new errors. Only the last 25 errors are stored in the error
log.
The message length specified in the source information of the IORD
instruction must lie within the range 1 ~ 26. If a length greater than 26 is
specified, the Unit will respond with a negative acknowledge and the error
code 0360 is stored in the error log.
4-5
Transmitting a user defined CAN message
Control code #0003
The C200HW-CORT21 enables to transmit an arbitrary CAN message with
the IOWR instruction.
The frame of a CAN message is shown in the picture below.
*
Identifier (11 bits)
*
Data length (DLC)
Data byte 1
Data byte 8
*
* Frame control bits, not important for this function
To transmit a CAN message, it is necessary to specify the identifier of the
frame, the data length and the actual data (maximum of 8 bytes). The figure
below shows the IOWR message structure.
IOWR message structure
word n
Identifier [hex]
range: 0000h ~ 07FFh
word n+1
Data length
range: 0000 ~ 0008
word n+2
Data byte 2
Data byte 1
word n+3
Data byte 4
Data byte 3
word n+4
Data byte 6
Data byte 5
word n+5
Data byte 8
Data byte 7
Содержание 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: ......