EtherCAT to Modbus RTU Gateway
Copyright © 2017 ICP DAS CO., Ltd. All Rights Reserved.
-
81 -
DIO_Addr01_3.txt
The
DIO_Addr01_3.txt
support 4 typical Modbus RTU commands (Clear DI0 Counter) as follows:
For Example,
Baud rate =
115200
, Parity =
N
(None), Stop Bit =
1
, Number of command =
4
Commands
[01]
to
[02]
Command
[03]
[04] Modbus RTU Command, PDO[Addr], Update Mode, =
01 05 02 00 FF 00, 01, 01,
The update mode is not 00, so the command [04] will not be executed cyclically. If the bit0 of
OutRxPDO[01] is changed from 0 to 1 (rising), the command [04] will be executed once and the
counter_0 will be clear to zero once.
To get command of clear DI0 Counter is given as follows (see Figure A2-5):
NOTE:
command details.
Figure A2-5