Example: tourism industry

Master-Slave Communication with Modbus RTU Protocol ET ...

Master-Slave Communication with Modbus RTU Protocol for S7-300 and ET 200S Systems Siemens S7-300, CP 341, ET 200S 1SI Industry Online Support Warranty and Liability Warranty and Liability Note the application Examples are not binding and do not claim to be complete regarding the circuits shown, equipping and any eventuality. the application Examples do not represent customer-specific solutions . They are only intended to provide support for typical applications . You are responsible for ensuring that the described products are used correctly. These Application Examples do not relieve you of the responsibility to use safe practices in application, installation, operation and maintenance.

2 Solution Modbus RTU Communication for S7-300 and ET 200S Systems Entry ID: 109474714, V2.0, 09/2017 5 the solution: d 2 Solution 2.1 Solution overview Goal of the application example This application example shows you: Basics of the Modbus RTU protocol Parameterization of a serial communication processor (CP 341, ET 200S 1SI)

Tags:

  Applications, Solutions, The application

Information

Domain:

Source:

Link to this page:

Please notify us if you found a problem with this document:

Other abuse

Transcription of Master-Slave Communication with Modbus RTU Protocol ET ...

1 Master-Slave Communication with Modbus RTU Protocol for S7-300 and ET 200S Systems Siemens S7-300, CP 341, ET 200S 1SI Industry Online Support Warranty and Liability Warranty and Liability Note the application Examples are not binding and do not claim to be complete regarding the circuits shown, equipping and any eventuality. the application Examples do not represent customer-specific solutions . They are only intended to provide support for typical applications . You are responsible for ensuring that the described products are used correctly. These Application Examples do not relieve you of the responsibility to use safe practices in application, installation, operation and maintenance.

2 When using these Application Examples, you recognize that we cannot be made liable for any damage/claims beyond the liability clause described. We reserve the right to make changes to these Application Examples at any time without prior notice. If there are any deviations between the recommendations provided in these Application Examples and other Siemens publications Catalogs the contents of the other documents have priority. We do not accept any liability for the information contained in this document. Any claims against us based on whatever legal reason resulting from the use of the examples, information, programs, engineering and performance data etc.

3 , described in this Application Example shall be excluded. Such an exclusion shall not apply in the case of mandatory liability, under the German Product Liability Act ( Produkthaftungsgesetz ), in case of intent, gross negligence, or injury of life, Siemens AG Fehler! Textmarke nicht definiert. All rights reserved body or health, guarantee for the quality of a product, fraudulent concealment of a deficiency or breach of a condition which goes to the root of the contract ( wesentliche Vertragspflichten ). The damages for a breach of a substantial contractual obligation are, however, limited to the foreseeable damage, typical for the type of contract, except in the event of intent or gross negligence or injury to life, body or health.

4 The above provisions do not imply a change of the burden of proof to your detriment. Any form of duplication or distribution of these Application Examples or excerpts hereof is prohibited without the expressed consent of the Siemens AG. Security Siemens provides products and solutions with industrial security functions that support the informa- secure operation of plants, systems, machines and networks. tion In order to protect plants, systems, machines and networks against cyber threats, it is necessary to implement and continuously maintain a holistic, state-of-the-art industrial security concept.

5 Siemens' products and solutions only form one element of such a concept. Customer is responsible to prevent unauthorized access to its plants, systems, machines and networks. Systems, machines and components should only be connected to the enterprise network or the internet if and to the extent necessary and with appropriate security measures ( use of firewalls and network segmentation) in place. Additionally, Siemens' guidance on appropriate security measures should be taken into account. For more information about industrial security, please visit Siemens' products and solutions undergo continuous development to make them more secure.

6 Siemens strongly recommends to apply product updates as soon as available and to always use the latest product versions. Use of product versions that are no longer supported, and failure to apply latest updates may increase customer's exposure to cyber threats. To stay informed about product updates, subscribe to the Siemens Industrial Security RSS Feed under Modbus RTU Communication for S7-300 and ET 200S Systems Entry ID: 109474714, , 09/2017 2. Table of Contents Table of Contents Warranty and Liability .. 2. 1 4. 2 5. Solution overview .. 5. Hardware and software components used.

7 6. 3 Description of the Modbus RTU 8. Function mechanisms of Modbus 8. Configuration in STEP 7 (TIA Portal) .. 10. Configuration of the CP 341 as Modbus master .. 12. Configuration of the ET 200S 1SI as Modbus 14. 4 Description of the STEP 7 program .. 17. Overview .. 17. Operation of the FB Master_Modbus .. 19. Call of the FB Master_Modbus .. 19. Initialization .. 20. Cyclic processing of the Communication jobs .. 21. PLC data type Data_for_Master .. 23. Function mechanisms of the Modbus Slaves .. 24. Calling the FB S_MODB (FB81) .. 24. Data blocks .. 25. Siemens AG All rights reserved DB "Master_Data".

8 27. 5 Configuration and Settings .. 28. Modifying Communication 28. Modifying existing Communication jobs .. 28. Adding further Communication jobs .. 29. Procedure for Modbus master .. 30. Procedure for Modbus 31. Adjusting the receive buffers .. 33. 6 Commissioning of the application example .. 34. Hardware configuration .. 34. Configuring the hardware .. 36. Opening and loading the STEP 7 project .. 38. 7 Operating the application example .. 39. Monitoring .. 39. Data reading from Modbus slave to Modbus master .. 40. 8 Links & Literature .. 41. Internet link 41. 9 History.

9 42. Modbus RTU Communication for S7-300 and ET 200S Systems Entry ID: 109474714, , 09/2017 3. 1 Task 1 Task Introduction This application example demonstrates how to deal with the Modbus RTU Protocol in the automation environment of an S7-300 station. It demonstrates the programming of a Modbus master via CP 341 as well as the programming of a Modbus slave via ET 200S 1SI in an S7-300 CPU. Overview of the automation task The figure below provides an overview of the automation task. Figure 1-1. S7-300. Automation system Peripherals RS485. S7-300. Controller: Communication Modbus interface slaves configuration, (CP 341) (ET 200S 1SI).

10 Data storage Siemens AG All rights reserved Description of the automation task This application example is intended to demonstrate the following: Configuration of the CP 341 and ET 200S 1SI for Modbus RTU. Creation of a flexible Modbus master/slave program in the S7-300. Modbus RTU Communication for S7-300 and ET 200S Systems Entry ID: 109474714, , 09/2017 4. 2 Solution 2 Solution Solution overview Goal of the application example This application example shows you: Basics of the Modbus RTU Protocol Parameterization of a serial Communication processor (CP 341, ET 200S 1SI).


Related search queries