EtherCAT to Modbus RTU Gateway
Copyright © 2017 ICP DAS CO., Ltd. All Rights Reserved.
-
95 -
DIO_DA_AD_1.txt
The
DIO_DA_AD_1.txt
support DI + DO + DA + AD Modbus RTU commands as follows:
For Example,
Baud rate =
115200
, Parity =
N
(None), Stop Bit =
1
, Number of command =
4
[01] Modbus RTU Command, PDO[Addr], Update Mode, =
01 0F 00 00 00 08 01 00, 08, 00,
[02] Modbus RTU Command, PDO[Addr], Update Mode, =
01 02 00 00 00 07, 16, 00,
[02] Modbus RTU Command, PDO[Addr], Update Mode, =
02 10 00 00 00 04 08 12 34 12 34 12 34 12 34, 01, 00,
[03] Modbus RTU Command, PDO[Addr], Update Mode, =
03 04 00 00 00 08, 00, 00,
NOTE:
Chapter 5 “Modbus Information”
for Modbus RTU command details.
The addressing mapping of DIO, AD and DA is given as follows:
DIO, AD, DA
High Byte
Low byte
DO
N/A
OutRxPDO[08]
DI
N/A
InTxPDO[16]
AD0
InTxPDO[01]
InTxPDO[00]
AD1
InTxPDO[03]
InTxPDO[02]
AD2
InTxPDO[05]
InTxPDO[04]
AD3
InTxPDO[07]
InTxPDO[06]
AD4
InTxPDO[09]
InTxPDO[08]
AD5
InTxPDO[11]
InTxPDO[10]
AD6
InTxPDO[13]
InTxPDO[12]
AD7
InTxPDO[15]
InTxPDO[14]
DA0
OutRxPDO[01]
OutRxPDO[00]
DA1
OutRxPDO[03]
OutRxPDO[02]
DA2
OutRxPDO[05]
OutRxPDO[04]
DA3
OutRxPDO[07]
OutRxPDO[06]