EtherCAT to Modbus RTU Gateway
Copyright © 2017 ICP DAS CO., Ltd. All Rights Reserved.
-
80 -
DIO_Addr01_0/Addr01_1/DIO_Addr01_2.txt
The
DIO_Addr01_00.txt
and
DIO_Addr01_01.txt
support 1 and 2 typical Modbus RTU commands
(Write DO and Read DI), refer to
The
DIO_Addr01_2.txt
support 3 typical Modbus RTU commands (Read DI0 Counter) as follows:
For Example:
Baud rate =
115200
, Parity =
N
(None), Stop Bit =
1
, Number of command =
3
Commands
[01]
to
[02]
[03] Modbus RTU Command, PDO[Addr], Update Mode, =
01 04 00 00 00 01, 01, 00,
The M-7050 module is used as an example, its DI can be used as a 16-bit event counter. This
command will 16-bits counter stored in the InTxPDO[02] and InTxPDO[01]
To get command of read DI0 Counter is given as follows (see Figure A2-4):
NOTE:
Refer to
command details.
Figure A2-4