Transmitting a user defined CAN message
Section 5-7
79
5-7
Transmitting a user defined CAN message
Control code #0003
The C200HW-CORT21-V1 allows transmission of arbitrary CAN messages
with the IOWR instruction. If it is not required that the CANopen protocol is
active at the same time, IR n.00 can be set to ‘0’.
This function is only for advanced users that have knowledge of the CAN
protocol. The C200HW-CORT21-V1 does not check the validity of the CAN
message.
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
(number of data bytes)
and the actual data (up to a
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
Note
Transmission time-out
The C200HW-CORT21-V1 ignores bits 11 to 15 of word n.
If no other node is connected to the network, or if the CAN interface of the
Unit is in error, the C200HW-CORT21-V1 will not be able to transmit the
message. After a time-out of 50 ms, the error code 0431 is added to the error
log. If more IOWR transmission requests are issued during this time-out
period, the transmission of these messages will be aborted. An error code
0431 is added to the error log for each message that was aborted.
!
Caution
Summary of Contents for C200HW-CORT21-V1
Page 2: ...C200HW CORT21 V1 CANopen Slave Unit OPERATION MANUAL OMRON Cat No W904 E2 2 ...
Page 3: ......
Page 4: ......
Page 5: ......
Page 6: ...C200HW CORT21 V1 CANopen Slave Unit Operation Manual Produced June 2001 ...
Page 7: ...iv ...
Page 9: ...vi ...
Page 13: ...x ...
Page 47: ...Performance Section 2 3 30 ...
Page 85: ...Control and Status area Section 4 3 68 ...
Page 113: ...Flow diagrams Section 6 6 96 ...
Page 123: ...Maintenance Section 7 3 106 ...
Page 133: ...116 ...
Page 135: ...118 ...
Page 139: ...122 ...
Page 141: ......