Example: bachelor of science

Introduction Programming - plc4good

PtP communication instructions used with distributed I/O of an S7- 300/400 _____ _____ SIMATIC ET 200MP/ET 200SP PtP communication instructions used with distributed I/O of an S7 300/400 Programming Manual 01/2013 A5E31625081-AA Preface Documentation guide 1 Introduction 2 Programming - communication using instructions 3 Error messages 4 Service & Support A Siemens AG Industry Sector Postfach 48 48 90026 N RNBERG GERMANY A5E31625081-AA 12/2012 Technical data subject to change Copyright Siemens AG 2013. All rights reserved Legal information Warning notice system This manual contains notices you have to observe in order to ensure your personal safety, as well as to prevent damage to property. The notices referring to your personal safety are highlighted in the manual by a safety alert symbol, notices referring only to property damage have no safety alert symbol. These notices shown below are graded according to the degree of danger.

Preface PtP communication instructions used with distributed I/O of an S7‑300/400 4 Programming Manual, 01/2013, A5E31625081-AA Recycling and disposal

Tags:

  Programming

Information

Domain:

Source:

Link to this page:

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

Other abuse

Advertisement

Transcription of Introduction Programming - plc4good

1 PtP communication instructions used with distributed I/O of an S7- 300/400 _____ _____ SIMATIC ET 200MP/ET 200SP PtP communication instructions used with distributed I/O of an S7 300/400 Programming Manual 01/2013 A5E31625081-AA Preface Documentation guide 1 Introduction 2 Programming - communication using instructions 3 Error messages 4 Service & Support A Siemens AG Industry Sector Postfach 48 48 90026 N RNBERG GERMANY A5E31625081-AA 12/2012 Technical data subject to change Copyright Siemens AG 2013. All rights reserved Legal information Warning notice system This manual contains notices you have to observe in order to ensure your personal safety, as well as to prevent damage to property. The notices referring to your personal safety are highlighted in the manual by a safety alert symbol, notices referring only to property damage have no safety alert symbol. These notices shown below are graded according to the degree of danger.

2 DANGER indicates that death or severe personal injury will result if proper precautions are not taken. WARNING indicates that death or severe personal injury may result if proper precautions are not taken. CAUTION indicates that minor personal injury can result if proper precautions are not taken. NOTICE indicates that property damage can result if proper precautions are not taken. If more than one degree of danger is present, the warning notice representing the highest degree of danger will be used. A notice warning of injury to persons with a safety alert symbol may also include a warning relating to property damage. Qualified Personnel The product/system described in this documentation may be operated only by personnel qualified for the specific task in accordance with the relevant documentation, in particular its warning notices and safety instructions. Qualified personnel are those who, based on their training and experience, are capable of identifying risks and avoiding potential hazards when working with these products/systems.

3 Proper use of Siemens products Note the following: WARNING Siemens products may only be used for the applications described in the catalog and in the relevant technical documentation. If products and components from other manufacturers are used, these must be recommended or approved by Siemens. Proper transport, storage, installation, assembly, commissioning, operation and maintenance are required to ensure that the products operate safely and without any problems. The permissible ambient conditions must be complied with. The information in the relevant documentation must be observed. Trademarks All names identified by are registered trademarks of Siemens AG. The remaining trademarks in this publication may be trademarks whose use by third parties for their own purposes could violate the rights of the owner. Disclaimer of Liability We have reviewed the contents of this publication to ensure consistency with the hardware and software described.

4 Since variance cannot be precluded entirely, we cannot guarantee full consistency. However, the information in this publication is reviewed regularly and any necessary corrections are included in subsequent editions. PtP communication instructions used with distributed I/O of an S7 300/400 Programming Manual, 01/2013, A5E31625081-AA 3 Preface Purpose of the documentation This documentation provides important information on Programming the point-to-point communication modules of the ET 200MP and ET 200SP in an S7-300/400 system with the instructions developed for TIA-Portal V12 (distributed use). Basic knowledge required The following knowledge is required in order to understand the documentation: General knowledge of automation technology Knowledge of the industrial automation system SIMATIC Knowledge about the use of Windows-based computers Proficiency with STEP 7 Validity of the documentation This documentation is valid for the following point-to-point communication modules CM PtP RS232 BA (6ES7540-1AD00-0AA0) communication module CM PtP RS422/485 BA (6ES7540-1AB00-0AA0) communication module CM PtP RS232 HF (6ES7541-1AD00-0AB0) communication module CM PtP RS422/485 HF (6ES7541-1AB00-0AB0) communication module CM PtP (6ES7137-6AA00-0BA0) communication module Conventions The term "CPU" is used in this manual to refer to both the CPUs of the S7-300/400 and the interface modules of the distributed I/O system.

5 Please also observe notes labeled as follows: Note The notes contain important information on the product described in the documentation, on the handling of the product or on part of the documentation to which particular attention should be paid. Preface PtP communication instructions used with distributed I/O of an S7 300/400 4 Programming Manual, 01/2013, A5E31625081-AA Recycling and disposal The products can be recycled due to their low pollutant content. For environmentally compliant recycling and disposal of your old device, please contact a company certified for the disposal of electronic waste. Additional assistance Information about the Technical support ( ) available can be found in the appendix to this documentation. The range of technical documentation for the individual SIMATIC products and systems can be found on the SIMATIC Portal ( ). The online catalog and the ordering system are available in the Catalog ( ).

6 Note on IT security Siemens offers IT security mechanisms for its automation and drive product portfolio in order to support the safe operation of the plant/machine. We recommend that you inform yourself regularly on the IT security developments regarding your products. You can find information on this on the Internet ( ). You can register for a product-specific newsletter here. For the safe operation of a plant/machine, however, it is also necessary to integrate the automation components into an overall IT security concept for the entire plant/machine, which corresponds to the state-of-the-art IT technology. You can find information on this on the Internet ( ). Products used from other manufacturers should also be taken into account here. PtP communication instructions used with distributed I/O of an S7 300/400 Programming Manual, 01/2013, A5E31625081-AA 5 Table of contents 1 Documentation 2 Overview of 3 Programming - communication using Overview PtP Using the Shared parameters for point-to-point Port_Config: Configure PtP communication Send_Config: Configure PtP Receive_Config: Configure PtP P3964_Config: Configuring the 3964(R) Send_P2P: Sending Using LENGTH and BUFFER parameters in communication operations.

7 34 Receive_P2P: Receiving Receive_Reset: Clear receive buffer ..36 Signal_Get: Read Signal_Set: Set accompanying Get_Features: Get extended Set_Features: Set extended Overview of the Modbus RTU communication ..41 Modbus_Comm_Load: Configure communication module for Modbus_Master: Communicate as Modbus Modbus_Slave: Communicate as Modbus Frame Overview of USS communication ..65 Requirements for using the USS protocol ..67 USS_Port_Scan: Communication by means of a USS network ..71 USS_Drive_Control: Preparing and displaying data for the USS_Read_Param: Read data from USS_Write_Param: Change data in General information on drive 4 Error messages ..85 A Service & Glossary ..105 Table of contents PtP communication instructions used with distributed I/O of an S7 300/400 6 Programming Manual, 01/2013, A5E31625081-AA PtP communication instructions used with distributed I/O of an S7 300/400 Programming Manual, 01/2013, A5E31625081-AA 7 Documentation guide 1 Introduction This modular documentation of the SIMATIC products covers diverse topics concerning your automation system.

8 The complete documentation for the S7-300/400, ET 200MP/SP systems consists of the relevant operating instructions, manuals and product information. Overview of documentation on the topic of point-to-point communication The table below includes additional documentation which amends this description. Subject Documentation Important contents System System manual ET 200SP distributed I/O system ( ) System manual ET 200MP distributed I/O system ( ) Application planning Installing Connecting Addressing Commissioning Maintenance Function manual Communication ( ) Basics of serial communication Data transmission functions Diagnostic functions Communication Device manual CM PtP RS232 BA communication module ( ) Device manual CM PtP RS232 HF communication module ( ) Device manual CM PtP RS422/485 BA communication module ( ) Device manual CM PtP RS422/485 HF communication module ( ) Device manual CM PtP communication module ( )

9 Product overview Connecting Assigning parameters Programming Diagnostics Documentation guide PtP communication instructions used with distributed I/O of an S7 300/400 8 Programming Manual, 01/2013, A5E31625081-AA Subject Documentation Important contents System diagnostics Function manual System diagnostics ( ) For S7-1500, ET 200MP, ET 200SP: Diagnostic evaluation Hardware/software Setup Function manual EMC/EMI compatible installation of control systems ( ) Basics Electromagnetic compatibility Lightning protection SIMATIC Manuals The latest manuals of SIMATIC products are available on the Internet ( ) and can be downloaded free of charge. PtP communication instructions used with distributed I/O of an S7 300/400 Programming Manual, 01/2013, A5E31625081-AA 9 Introduction Convention TIA Portal terminology Note TIA Portal terminology is used in this documentation. Instruction For the description of the blocks for point-to-point, Modbus and USS, this means that the differentiation between FB and SFB and between FC and SFC familiar to you from the S7-300/400 environment is no longer relevant and reference is now made only to instructions.

10 All instructions are no longer dependent on the CPU used, but rather can be used both for S7-300/400 (distributed in an ET 200MP/SP) and for S7-1500 (central and distributed). Communication module For the description of the devices, this means that the term "communication processor" familiar to you from the S7-300/400 environment is replaced by "communication module". Overview of instructions Note Use of the instructions In order to be able to use the instructions described below in an S7-300/400-Umfeld (distributed in an ET 200MP/SP), you need to have integrated the required library in your STEP 7 (SIMATIC Manager) via a HSP (Hardware Support Package). The following libraries are available: Punkt-zu-Punkt: PtP Communication, PtP_Comm Modbus (RTU): MODBUS ( RTU ), MODBUS_(RTU) USS: USS Communication, USS_Comm Introduction Overview of instructions PtP communication instructions used with distributed I/O of an S7 300/400 10 Programming Manual, 01/2013, A5E31625081-AA Overview of the instructions The communication protocols are implemented on the communication module.


Related search queries