Step-By-Step Guide to Modbus Communication

Step-By-Step Guide to Modbus Communication
Search WeChat
Step-By-Step Guide to Modbus Communication
Electrical Engineering Learning
This article will introduce the detailed steps of Modbus communication between the S7-1200 PLC and the V20 inverter.
1. Find an S7-1200 PLC with an RS485 communication module and a V20 inverter.
Step-By-Step Guide to Modbus Communication
2. Connect the RS485 module to the V20 inverter. The wiring method is to connect the red wire to P+ and the green wire to N-.
Step-By-Step Guide to Modbus Communication
3. Set the parameters of the V20 inverter.
Step-By-Step Guide to Modbus Communication
4. Create a TIA Portal project and upload the hardware configuration of the S7-1200 PLC.
Step-By-Step Guide to Modbus Communication
Step-By-Step Guide to Modbus Communication
Step-By-Step Guide to Modbus Communication
Step-By-Step Guide to Modbus Communication
5. Set the parameters of the RS485 module. The communication parameters of the module must match those set on the V20. Here, I set it to 9600, 8, even.
Step-By-Step Guide to Modbus Communication
6. Add Modbus communication instructions.
Step-By-Step Guide to Modbus Communication
7. Modify the mode parameter in the background DB of the initialization instruction to 4.
Step-By-Step Guide to Modbus Communication
8. Program testing, the motor starts and stops normally. The Modbus address 40101 is the command source, 047E is stop, 047F is forward, 0C7F is reverse, and the address 40100 is the frequency source. 16#0-16#4000 corresponds to 0Hz-50Hz.
Step-By-Step Guide to Modbus Communication
9. You can observe the communication indicator lights on the module to check if the communication is successful. If TX and RX flash alternately, the communication is successful.
Step-By-Step Guide to Modbus Communication

Leave a Comment