EtherCAT to Modbus RTU Gateway
Copyright © 2017 ICP DAS CO., Ltd. All Rights Reserved.
-
89 -
DA_Addr02_2.txt
The
DA_Addr02_2.txt
support 1 typical Modbus RTU commands (Write all AO) as follows:
For Example,
Baud rate =
9600
, Parity =
N
(None), Stop Bit =
1
, Number of command =
1
[01] Modbus RTU Command, PDO[Addr], Update Mode, =
02 10 00 00 00 04 08 12 34 12 34 12 34 12 34, 00, 00,
The M-7024 module is used as an example, its support 4 channels of 16-bit DA. The address
mapping is given as follows:
DA channel
High Byte
Low byte
0
OutRxPDO[01]
OutRxPDO[00]
1
OutRxPDO[03]
OutRxPDO[02]
2
OutRxPDO[05]
OutRxPDO[04]
3
OutRxPDO[07]
OutRxPDO[06]
To get command of write all AO is given as follows: (see Figure A2-10)
NOTE:
Refer to
Modbus RTU command details.
Figure A2-10