Modbus Communication
‑25‑
Master and Slave Configuration
1. Run AutoShop. On the page displayed, click ""NNeeww PPrroojjeecctt"", confirm that the value
in the ""SSeerriieess aanndd mmooddeellss"" field is H5U, and then click ""OOKK"".
2. On the left of the page displayed, click
. On the PLC configuration page
displayed, select the protocol and data format and then click ""OOKK"".
3. Click . Click ""AAdddd MMooddbbuuss CCoonnffiigg"" and ""OOKK"", and
is displayed. Double‑click . On the
page displayed, click ""AAdddd"".
Each time you click ""AAdddd"", you can add and edit an AC drive variable.
4. Write operation: Click ""AAdddd"", select the target ""SSllaavvee NNOO.."" and ""TTrriiggggeerr MMooddee""
(Cycle by default).
As shown in the preceding figure, when you select the slave number 1, you can
operate on station 1. You must set Trigger Mode to Cycle and Function Code to
Write Register. Otherwise, the write operation cannot be performed. Quantity must
be set to 1 and all AC drive variables must be 16‑bit data. If Quantity is set to 2, the
write operation will fail.
5. Read operation: Click ""AAdddd"", select the target ""SSllaavvee NNOO.."" and ""TTrriiggggeerr MMooddee""
(Cycle by default).
As shown in the preceding figure, when you select the slave number 1, you can
operate on station 1. You must set Trigger Mode to Cycle and Function Code to
Read Register. Otherwise, the read operation cannot be performed. Quantity must
be set to 1 and all AC drive variables must be 16‑bit data. If Quantity is set to 2, the
read operation will fail.