I-7530A-MR Modbus RTU to CAN
Converter User’s Manual (Version 1.08, 07/2019) ------------- 81
6.2.2
Using Modbus RTU command to send a CAN message
If users need to send CAN messages via the Modbus RTU commands, users
need to send the Modbus RTU command with the
“TX CAN message“ format
to the Output Register of the I-7530A-MR. Then the I-7530A-MR will transfer
this command to a CAN message format and send it to the buffer of the CAN
controller. The CAN controller will send the CAN message automatically which
the CAN bus is idle. There are two method for transmitting a CAN message via
Modbus RTU command and this manual will illustrate them at next sectn.
6.2.2.1
Using function Code 10
hex
to send a CAN message
Users can use Modbus RTU commands (function code 10
hex
) to transmit a
CAN message by writing the Output Register of the I-7530A-MR (the data
format must follow the table 5-5). The start address of the Modbus command is
always 0000
hex
, and the Word count and Byte count are always 07
hex
and 0D
hex
respectively.
Example:
Use the Modbus RTU command (function code 10
hex
) to transmit a CAN
message to the CAN network:
Figure 6-5: Transmit a CAN message.