At the end of the article, there are 55 practical case materials.Introduction: In our actual devices, it is often necessary to achieve data exchange between multiple devices. Generally, we use the Modbus RTU protocol, but this type of communication cable connection is not very convenient. Therefore, we can use the Modbus TCP protocol for communication, which only requires a network cable connection, making it very convenient! This article will guide you to learn about Modbus TCP communication between Siemens 1200 PLC and Inovance PLC.Modbus TCP Communication.1. Controller Requirements:(1) 1200 PLC as the client, Inovance EASY521 PLC as the server.(2) 1200 PLC writes data from addresses MW100, MW102, MW104, MW106, MW108 into D0, D1, D2, D3, D4 of the Inovance PLC.(3) 1200 PLC reads data from D5 of the Inovance PLC and stores it in MW200 of the 1200 PLC.2. Program Development(1) Create the 1200 PLC hardware and set the IP address and system clock as shown in the following images.
(2) Create a DB data block and specify the Inovance IP address as: 192.168.0.2.
Note: The TCON_IP_V4 data type is manually entered.
Client Programming (1200 PLC)
Create a program block and call the MB_CLIENT instruction to write and read data from the server. Since multiple read and write operations are needed for the same server, the background DB block and Connect connection parameters for the MB_CLIENT instruction must be consistent. The MB_CLIENT instruction must be called using polling operations.



Server Programming (Inovance)
For the Inovance PLC, simply set its IP address to 192.168.0.2.

Data Monitoring

Recently, many friends have requested case books, saying that reading articles on mobile is not very convenient. I took some time to organize all 55 practical cases, which are quite typical, including cylinder control programs, alarm programs, program frameworks, motion control program encapsulation, analog control of frequency converters, communication, and other practical cases.If you need them, you can add me on WeChat: biao467524527. If you can’t add me, feel free to message me!



Previous Recommendations
Learn in 2 minutes: Communication method between Inovance PLC and Servo Ethercat.
How to write an accumulated flow program using 1200 PLC.
Automatic rotation program for 8 water pumps (faults automatically skipped).
Data types that electrical engineers are using!!!
Why is it strongly recommended to master one PLC programming first? Two cases will tell you the answer!
Implementing Modbus communication polling using two methods, which one will you choose?
Should PLC programming focus on mastering one brand or learning multiple brands? A comparison through cases!
Modbus RTU communication methods and techniques between 1200 PLC and frequency converters.
Why PLC engineers must learn SCL language programming!!
The 4 most practical tips for TIA Portal software to make programming more efficient!
Three conversion programs in PLC programming that must be mastered!!!
Initialization program writing in PLC program framework!
Automatic control program writing in PLC programming framework.
Communication methods and techniques between 1200/1500 PLC and V90 servo.
How to quickly configure hardware and distributed IO using TIA Portal software.
A must-read for PLC engineers: 3 efficient PLC data collection and storage methods!
Double your efficiency! Practical application of array data types in PLC.
What “pits” have you stepped into in FC program blocks?