EtherCAT to Modbus RTU Gateway
Copyright © 2017 ICP DAS CO., Ltd. All Rights Reserved.
-
88 -
DA_Addr02_1.txt
The
DA_Addr02_1.txt
support 4 typical Modbus RTU commands (Write AO0 to AO3) as follows:
For Example,
Baud rate =
9600
, Parity =
N
(None), Stop Bit =
1
, Number of command =
4
[01] Modbus RTU Command, PDO[Addr], Update Mode, =
02 06 00 00 00 00, 00, 00,
[02] Modbus RTU Command, PDO[Addr], Update Mode, =
02 06 00 01 00 00, 02, 00,
[03] Modbus RTU Command, PDO[Addr], Update Mode, =
02 06 00 02 00 00, 04, 00,
[04] Modbus RTU Command, PDO[Addr], Update Mode, =
02 06 00 03 00 00, 06, 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
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 AO0 to AO3 is
given as the right-hand Figure A2-9.
NOTE:
details.
Figure A2-9