Message communication
Section 4-1
40
4-1
Message communication
Three functions
The message communication is used for the following functions:
1.
Reading the error log
2.
Transmitting a user defined CAN message
3.
Receiving a user defined CAN message
The error log stores the last 25 errors that have occurred due to message
communication. These errors can be read with the IORD instruction.
Function 2 and 3 enable to interface the C200HW-CORT21 with devices that
have implemented a specific protocol.
The next sections will first describe the general use of the IOWR / IORD
instructions and the error log. After that, the other two message
communication functions of the C200HW-CORT21 are explained in detail.
4-2
IOWR / IORD
The ladder symbols for IOWR and IORD are shown below.
IOWR (-)
@IOWR (-)
C
C
S
S
D
D
C
Control code
value:
The code for the respective function to execute (see below)
S
First source word
value:
The address of the first word of the PLC data area that
contains the message to be transferred to the Unit.
D
Destination 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)
Содержание 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: ......