1200 exchanges data with other devices through communication. Siemens 1200PLC can communicate with Siemens series PLCs, such as S7-300/S7-1200/S7-1500, etc., using ModbusTCP, S7, Profinet and other communication protocols
Siemens 1200PLC supports the connection of 1 device (PG),
Siemens 1200PLC supports connection of 12 HMI devices
Siemens 1200PLC can communicate with third-party devices such as cameras, using ModbusTCP, Profinet and other communication protocols
When Siemens 1200PLC uses ModbusTCP communication, 1200PLC can be a client master or a server slave. When acting as a client, it actively requests a connection and sends commands. When acting as a server, it passively waits for a connection and feedbacks the status.
The client uses the MB_CLIENT directive and the server uses the MB_SERVER directive.
1200PLC ModbusTCP communication programming:
1. Open the TIA Portal software, create a new project, add two 1200PLCs, one as a client and one as a server, and add two touch screens
2. In the client PLC, create a function block and name it, then create two data blocks and command them. Uncheck the "Optimized block access" option in the data block properties, and define 8 variables of integer data type in each data block.
3. Find the ModbusTCP client communication instruction MB_CLENT in the instructions. Pay attention to the version of the communication instruction. The instruction usage of versions above V4.0 is different from that of version V3.1. For specific usage methods, please refer to the relevant help files.
4. Create two MB_CLIENT instructions with the same background data block and enter the variables associated with the pins.
MB_CLIENT instruction function description of each pin:
4. Configure 8 numeric input boxes on the touch screen, associate them with the variables in the "send" data in the PLC, and use them to input the data to be sent to the server. Configure 8 numeric display boxes, associate them with the variables in the "receive" data block in the PLC, and use them to display the data read from the server.
In the server PLC, create a function block and name it, then create a data block and command it, uncheck the "Optimized block access" option in the data block properties, and define 16 variables of integer data type in the data block.
Create the ModbusTCP server communication instruction MB_SERVER and enter the variables associated with the pins
MB_SERVER instruction function description of each pin:
The length of the server Modbus data must be greater than or equal to the total length of the client's sent and received data.
Configure 8 value input boxes on the touch screen, associate the S1-S8 variables in the "communication" data in the PLC, and use them to input the data to be sent to the client. Configure 8 value display boxes, associate the G1-G8 variables in the "communication" data block in the PLC, and use them to display the data received from the client.
PLC program and touch screen program
After completion, conduct a communication test.
Enter the sent data on the client touch screen and view the received data on the server touch screen
Enter the sent data on the server touch screen and check the received data on the client touch screen. If the data is correct, it means that the ModbusTCP communication between the two 1200PLCs is normal.
Review editor: Liu Qing
Previous article:In the first half of 2023, 8 companies in the robotics industry chain are going public
Next article:Yifei Laser IPO rings the bell, and the revenue from automated production lines accounts for more than 60%
- Popular Resources
- Popular amplifiers
- Using IMU to enhance robot positioning: a fundamental technology for accurate navigation
- Researchers develop self-learning robot that can clean washbasins like humans
- Universal Robots launches UR AI Accelerator to inject new AI power into collaborative robots
- The first batch of national standards for embodied intelligence of humanoid robots were released: divided into 4 levels according to limb movement, upper limb operation, etc.
- New chapter in payload: Universal Robots’ new generation UR20 and UR30 have upgraded performance
- Humanoid robots drive the demand for frameless torque motors, and manufacturers are actively deploying
- MiR Launches New Fleet Management Software MiR Fleet Enterprise, Setting New Standards in Scalability and Cybersecurity for Autonomous Mobile Robots
- Nidec Drive Technology produces harmonic reducers for the first time in China, growing together with the Chinese robotics industry
- DC motor driver chip, low voltage, high current, single full-bridge driver - Ruimeng MS31211
- Innolux's intelligent steer-by-wire solution makes cars smarter and safer
- 8051 MCU - Parity Check
- How to efficiently balance the sensitivity of tactile sensing interfaces
- What should I do if the servo motor shakes? What causes the servo motor to shake quickly?
- 【Brushless Motor】Analysis of three-phase BLDC motor and sharing of two popular development boards
- Midea Industrial Technology's subsidiaries Clou Electronics and Hekang New Energy jointly appeared at the Munich Battery Energy Storage Exhibition and Solar Energy Exhibition
- Guoxin Sichen | Application of ferroelectric memory PB85RS2MC in power battery management, with a capacity of 2M
- Analysis of common faults of frequency converter
- In a head-on competition with Qualcomm, what kind of cockpit products has Intel come up with?
- Dalian Rongke's all-vanadium liquid flow battery energy storage equipment industrialization project has entered the sprint stage before production
- Allegro MicroSystems Introduces Advanced Magnetic and Inductive Position Sensing Solutions at Electronica 2024
- Car key in the left hand, liveness detection radar in the right hand, UWB is imperative for cars!
- After a decade of rapid development, domestic CIS has entered the market
- Aegis Dagger Battery + Thor EM-i Super Hybrid, Geely New Energy has thrown out two "king bombs"
- A brief discussion on functional safety - fault, error, and failure
- In the smart car 2.0 cycle, these core industry chains are facing major opportunities!
- The United States and Japan are developing new batteries. CATL faces challenges? How should China's new energy battery industry respond?
- Murata launches high-precision 6-axis inertial sensor for automobiles
- Ford patents pre-charge alarm to help save costs and respond to emergencies
- New real-time microcontroller system from Texas Instruments enables smarter processing in automotive and industrial applications
- How to judge whether an operational amplifier is good or bad
- Meaning and use of TI mmWave sensor CQ2 data
- FOC Video
- Let’s talk about it: Why is 5G a revolution?
- Crossing your legs has so many harmful effects? Do you still dare to do it after reading this?
- RSL10 Bluetooth SoC Mobile Application Construction 2 - Reading Data
- Automobile coolant temperature sensor signal auto repair oscilloscope measurement
- Baidu Brain EdgeBoard Edge AI Computing Box (FZ5) is available for free trial, waiting for you to try it!
- The feeling of accidentally touching 220V is numb!
- 【NUCLEO-L552ZE Review】-4: About Zio