EtherCAT to Modbus RTU Gateway
Copyright © 2017 ICP DAS CO., Ltd. All Rights Reserved.
-
92 -
AD_Addr03_1.txt
The
AD_Addr03_1.txt
support 8 typical Modbus RTU commands (read AI0 to AI7) as follows:
For Example,
Baud rate =
9600
, Parity =
N
(None), Stop Bit =
1
, Number of command =
8
[01] Modbus RTU Command, PDO[Addr], Update Mode, =
03 04 00 00 00 01, 00, 00,
[02] Modbus RTU Command, PDO[Addr], Update Mode, =
03 04 00 01 00 01, 02, 00,
[03] Modbus RTU Command, PDO[Addr], Update Mode, =
03 04 00 02 00 01, 04, 00,
[04] Modbus RTU Command, PDO[Addr], Update Mode, =
03 04 00 03 00 01, 06, 00,
[01] Modbus RTU Command, PDO[Addr], Update Mode, =
03 04 00 04 00 01, 08, 00,
[02] Modbus RTU Command, PDO[Addr], Update Mode, =
03 04 00 05 00 01, 10, 00,
[03] Modbus RTU Command, PDO[Addr], Update Mode, =
03 04 00 06 00 01, 12, 00,
[04] Modbus RTU Command, PDO[Addr], Update Mode, =
03 04 00 07 00 01, 14, 00,
The M-7017 module is used as an example, its support 7 channels of 16-bit AD. The address
mapping is given as follows:
AD channel
High Byte
Low byte
0
InTxPDO[01]
InTxPDO[00]
1
InTxPDO[03]
InTxPDO[02]
2
InTxPDO[05]
InTxPDO[04]
3
InTxPDO[07]
InTxPDO[06]
4
InTxPDO[09]
InTxPDO[08]
5
InTxPDO[11]
InTxPDO[10]
6
InTxPDO[13]
InTxPDO[12]
7
InTxPDO[15]
InTxPDO[14]