Modbus Communication
‑32‑
2. Click on the left to go to the PLC configuration interface, select the
protocol and data format, and click ""OOKK"".
3. Click , then click ""AAdddd MMooddbbuuss CCoonnffiigg"" and ""OOKK"".
is displayed. Double‑click , and
click ""AAdddd"" on the displayed interface.
You can perform operations on a variable of the AC drive each time you click
""NNeeww"".
4. Write operation: After clicking ""AAdddd"", select the ""SSllaavvee NNOO.."" and ""TTrriiggggeerr MMooddee""
(typically Cycle).
As shown in the preceding figure, Slave NO. is 1, indicating that the operation will
be performed on slave 1. Set Trigger Mode to Cycle and Function Code to Write
Register; otherwise, the write operation will fail. Set Quantity to 1. The internal
variables of the AC drive are all 16‑bit data. If Quantity is set to 2, the write
operation will fail.
5. Read operation: After clicking ""AAdddd"", select the ""SSllaavvee NNOO.."" and ""TTrriiggggeerr MMooddee""
(typically Cycle).
As shown in the preceding figure, Slave NO. is 1, indicating that the operation will
be performed on slave 1. Set Trigger Mode to Cycle and Function Code to Read
Register; otherwise, the read operation will fail. Set Quantity to 1. The internal
variables of the AC drive are all 16‑bit data. If Quantity is set to 2, the read
operation will fail.