Siemens S7-1200 PLC Modbus RTU to Profinet Gateway Communication Example

Siemens S7-1200 PLC Modbus RTU to Profinet Gateway Communication Example
Search on WeChat
Siemens S7-1200 PLC Modbus RTU to Profinet Gateway Communication Example
Technical Training
1
System Configuration Description

(1) PLC:S7-1200.

(2) Gateway:Modbus RTU to Profinet Gateway XJ-PN5001.

(3) Weighing Instrument:XH3180-K.

2
Configuration and Debugging Steps

(1) Open the software to create a new project “Weighing Instrument”. Go to Devices and Networks, select Manage General Station Description Files in the options, and install the GSD file.

Siemens S7-1200 PLC Modbus RTU to Profinet Gateway Communication Example

(2) Select the Modbus RTU to Profinet Gateway.

Siemens S7-1200 PLC Modbus RTU to Profinet Gateway Communication Example

(3) Configure the Modbus RTU to Profinet Gateway into the PROFINET network.

Siemens S7-1200 PLC Modbus RTU to Profinet Gateway Communication Example

(4) Set the device name and IP address of the Modbus RTU to Profinet Gateway in the Profinet network.

Siemens S7-1200 PLC Modbus RTU to Profinet Gateway Communication Example

(5) Confirm the total amount of data used by the weighing instrument, and add the corresponding data length in the configuration. Here, select 2 bytes output and 40 bytes input (20 consecutive registers).

Siemens S7-1200 PLC Modbus RTU to Profinet Gateway Communication Example

(6) After completing the configuration settings, download to the PLC and start configuring the Modbus parameter settings. First install the gateway configuration software, open the software, and create a new project selecting PN2MM.

Siemens S7-1200 PLC Modbus RTU to Profinet Gateway Communication Example

(7) Configure the IP address and device name of the Modbus RTU to Profinet Gateway (to be consistent with the configuration software).

Siemens S7-1200 PLC Modbus RTU to Profinet Gateway Communication Example

(8) Set the Modbus parameters (the output command polling mode can be selected as needed: single send, continuous send, pulse send, etc.).

Siemens S7-1200 PLC Modbus RTU to Profinet Gateway Communication Example

(9) Fill in the device station number.

Siemens S7-1200 PLC Modbus RTU to Profinet Gateway Communication Example

(10) Below is the first piece of data to be written, starting address is 0 (note to fill in decimal numbers), function code should be set to 06 to write a single register according to the inverter settings.

Siemens S7-1200 PLC Modbus RTU to Profinet Gateway Communication Example

(11) Write the register in decimal format as 100, the memory mapping starting address is default 1500, corresponding to the first two bytes of the Q address.

Siemens S7-1200 PLC Modbus RTU to Profinet Gateway Communication Example

(12) Below is the second piece of data to be read, starting address is 0, reading multiple registers continuously (note to fill in decimal numbers), the memory mapping starting address is default 0, corresponding to the first two bytes of the I address.

Siemens S7-1200 PLC Modbus RTU to Profinet Gateway Communication Example

(13) After configuration, download to the gateway via USB, power on, and connect the PLC and weighing instrument. Monitor the values in the configuration software.

Siemens S7-1200 PLC Modbus RTU to Profinet Gateway Communication Example

Disclaimer: This article is reprinted from the internet, all copyrights belong to the original author. If there are any copyright issues, please contact us promptly to delete it. Thank you!

HISTORY
/
Previous Recommendations

Complete Question Bank for Entry-Level Electrician Exam 2022 (Includes Answers)

3 Essential Tools for Electricians, Easily Accessible via WeChat!

[Collection] The “Path” of a Ten-Year Veteran Electrician, Secrets to Earning Over 10,000 Monthly!

Which of the Five Major Electrical Drawing Software (CAD, Eplan, CADe_simu…) Do You Choose?

Latest Electrical Version CAD Drawing Software, Includes Detailed Installation Tutorial!

Latest Electrical Drawing Software EPLAN, Includes Detailed Installation Tutorial!

Common Issues for Beginners Using S7-200 SMART Programming Software (Includes Download Links)

Comprehensive Electrical Calculation EXCEL Spreadsheet, Automatic Generation! No Need to Ask for Electrical Calculations!

Bluetooth Headphones, Electrician/PLC Introductory Books Available? Come Get Your Electrical Gifts!

Basic Skills in PLC Programming: Ladder Diagrams and Control Circuits (Includes 1164 Practical Cases for Mitsubishi PLC)

Still Can’t Understand Electrical Diagrams? Take the Basics of Electrical Diagram Recognition and Simulation Software, Quickly Get Started!

12 Free Electrician Video Courses, 10GB Software/E-books, 30 Days of Free Electrician Live Courses Available!

Don’t Forget to Like + Follow!
Siemens S7-1200 PLC Modbus RTU to Profinet Gateway Communication Example

Leave a Comment