logo资料库

WinAC_RTX_Modbus_TCP.pdf

第1页 / 共23页
第2页 / 共23页
第3页 / 共23页
第4页 / 共23页
第5页 / 共23页
第6页 / 共23页
第7页 / 共23页
第8页 / 共23页
资料共23页,剩余部分请下载后查看
Modbus/TCP with WinAC RTX (F) in TIA Portal V13 SP1
1 Introduction
1.1 Overview
1.2 Hardware and software components
1.2.1 Validity
1.2.2 Components used
2 Configuring Modbus/TCP under WinAC RTX (F)
2.1 Creating IPC427D in a new project
2.2 Creating WinAC RTX (F) in the IPC427D
2.3 Data block for the Modbus/TCP interface
2.4 Data block for the Modbus/TCP parameters
2.5 Data block for licensing
2.6 Data block for the Modbus communication data
2.7 Organization block for Modbus/TCP initialization
2.8 Organization block for Modbus/TCP communication
2.9 Organisation block “PROG_ERR [OB121]”
2.10 Completion
3 Related Literature
4 History
5 Appendix
5.1 CONTROL_DAT
5.2 MODBUS_PARAM
FAQ  06/2016 Modbus/TCP with WinAC RTX (F) in TIA Portal V13 SP1 WinAC RTX, Modbus TCP https://support.industry.siemens.com/cs/ww/en/view/109482560
d e v r e s e r s t h g i r l l A 6 1 0 2 G A s n e m e S  i Security informa- tion This entry is from the Siemens Industry Online Support. The general terms of use (http://www.siemens.com/terms_of_use) apply. Siemens provides products and solutions with industrial security functions that support the secure operation of plants, systems, machines and networks. 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. 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 (e.g. 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 http://www.siemens.com/industrialsecurity. Siemens’ products and solutions undergo continuous development to make them more secure. 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 http://www.siemens.com/industrialsecurity. Table of content 1 Introduction ........................................................................................................ 3 1.1 1.2 1.2.1 1.2.2 Overview............................................................................................... 3 Hardware and software components ................................................... 4 Validity .................................................................................................. 4 Components used ................................................................................ 4 2 Configuring Modbus/TCP under WinAC RTX (F) ........................................... 5 2.1 2.2 2.3 2.4 2.5 2.6 2.7 2.8 2.9 2.10 Creating IPC427D in a new project ...................................................... 5 Creating WinAC RTX (F) in the IPC427D ............................................ 6 Data block for the Modbus/TCP interface ............................................ 8 Data block for the Modbus/TCP parameters ...................................... 10 Data block for licensing ...................................................................... 11 Data block for the Modbus communication data ................................ 12 Organization block for Modbus/TCP initialization .............................. 13 Organization block for Modbus/TCP communication ......................... 15 Organisation block “PROG_ERR [OB121]”........................................ 16 Completion ......................................................................................... 16 Related Literature ............................................................................................ 17 History............................................................................................................... 17 Appendix .......................................................................................................... 18 5.1 5.2 CONTROL_DAT ................................................................................. 18 MODBUS_PARAM ............................................................................. 19 3 4 5 Modbus/TCP with WinAC RTX (F) in the TIA Portal V13 SP1 Entry-ID: 109482560, V1.0, 06/2016 2
1 Introduction 1.1 Overview 1 Introduction 1.1 Overview These FAQs will provide you with a step-by-step instruction on how to configure the SIMATIC Modbus/TCP software under a WinAC RTX (F) Software PLC with TIA Portal V13 SP1. Figure 1-1 d e v r e s e r s t Note This description only refers to the configuration of the SIMATIC Modbus/TCP software under WinAC RTX (F) in the TIA Portal V13 SP1. For detailed information on Modbus/TCP, WinAC RTX (F) or the TIA Portal, refer to the corresponding documentation. h g i r l l i A 6 1 0 2 G A s n e m e S  SIMATIC WinAC RTX (F) SIMATIC WinAC RTX (F) is the SIMATIC software controller for PC-based automation solutions and allows real-time deterministic control on the PC. SIEMENS Modbus/TCP software MODBUS is a worldwide communication protocol which is open to all users and is used by many manufacturers. On this basis, MODBUS/TCP has been developed for the use in modern networks. In today’s industry, this protocol has become a de facto standard which has been introduced in the Internet Engineering Task Force (IETF) – an organization responsible for Internet standardization. The SIMATIC Modbus/TCP software packages offer ready-to-use blocks for simple and quick implementation of a MODBUS communication in SIMATIC controllers. Modbus/TCP with WinAC RTX (F) in the TIA Portal V13 SP1 Entry-ID: 109482560, V1.0, 06/2016 3 IPC427D (WinAC RTX)ClientIndustrial EthernetClient
d e v r e s e r s t h g i r l l A 6 1 0 2 G A s n e m e S  i 1 Introduction 1.2 Hardware and software components 1.2 Hardware and software components 1.2.1 Validity This application is valid for STEP 7 as of V13 SP1. 1.2.2 Components used The application has been created with the following components: Hardware components Table 1-1 Component Qty Article number Note Power supply SIMATIC Micro Box PC 1 1 Software components 6EP1332-4BA00 PM 1507 70 W 6AG4140-8BL04-0GA0 IPC427D PN All components for this Application Example are already included in STEP 7 V13 SP1. Licensing requires the “SIMATIC MODBUS/TCP PN-CPU” software package. Table 1-2 Component Qty Article number Note STEP 7 Professional WinAC RTX Software PLC SIMATIC MODBUS/TCP PN- CPU 1 1 1 6ES7822-1AA03-0YA5 V13 SP1 6ES7611-4SB00-0YB7 2XV9450-1MB02 The software package is already included in STEP 7 V13 and can be used without license for test purposes. Example files and projects The following list includes all files and projects that are used in this example. Table 1-3 Component Note 109482560_WinAC_RTX_Modbus_DOC_V10_de.pdf This document Modbus/TCP with WinAC RTX (F) in the TIA Portal V13 SP1 Entry-ID: 109482560, V1.0, 06/2016 4
d e v r e s e r s t h g i r l l A 6 1 0 2 G A s n e m e S  i 2 Configuring Modbus/TCP under WinAC RTX (F) 2.1 Creating IPC427D in a new project 2 Configuring Modbus/TCP under WinAC RTX (F) 2.1 Creating IPC427D in a new project In this Application Example, a SIMATIC Micro Box PC IPC427D is used as PC. First, this hardware has to be added and configured. Table 2-1 No. Action Remark 1. 2. 3. Open the TIA Portal V13 SP1. Go to the project view. Click “Project > New” and enter a project name and path. Then click “Create”. 4. Click “Add new device” in the project navigation. Under “PC systems”, select “Industrial PCs > SIMATIC Box PC > IPC427D > IPC427D PN > 6AG4140-xxxx-xxxx”, and click “OK”. 5. If the “Open device view” option is set, the device configuration will open after insertion. Modbus/TCP with WinAC RTX (F) in the TIA Portal V13 SP1 Entry-ID: 109482560, V1.0, 06/2016 5
2 Configuring Modbus/TCP under WinAC RTX (F) 2.2 Creating WinAC RTX (F) in the IPC427D 2.2 Creating WinAC RTX (F) in the IPC427D In this Application Example, a “WinAC RTX Software PLC” is used as PLC. It is created as software controller in the IPC427D. Table 2-2 No. 1. Action Remark In the hardware catalog on the right, select “SIMATIC Controller Application > SIMATIC WinAC RTX > WinAC RTX Software PLC > 6ES7 611-4FB00-0YB7” and drag the component to index 2 of the device “PC- System_1”. d e v r e s e r s t h g i r l l i A 6 1 0 2 G A s n e m e S  2. If you are using the software controller WinAC RTX F, double-click “WinAC RTX F” in the workspace and change the name under “General”, as the default name is too long. Modbus/TCP with WinAC RTX (F) in the TIA Portal V13 SP1 Entry-ID: 109482560, V1.0, 06/2016 6
2 Configuring Modbus/TCP under WinAC RTX (F) 2.2 Creating WinAC RTX (F) in the IPC427D No. 3. Action Remark In the workspace, double-click on a port of the right PROFINET interface. 4. Then, select the software PLC under “Interface assignment”. 5. Under “Ethernet addresses”, assign the IP address of the WinAC RTX Software PLC. d e v r e s e r s t 6. Save the project. Thus, the hardware configuration is completed. h g i r l l i A 6 1 0 2 G A s n e m e S  Modbus/TCP with WinAC RTX (F) in the TIA Portal V13 SP1 Entry-ID: 109482560, V1.0, 06/2016 7
2 Configuring Modbus/TCP under WinAC RTX (F) 2.3 Data block for the Modbus/TCP interface 2.3 Data block for the Modbus/TCP interface To control the Modbus/TCP communication and to evaluate status information, a data block with the necessary interface tags is created. Table 2-3 Action Remark In the project navigation, open the folders “PC- System_1 > WinAC RTX PLC_1 > Program blocks”. Add a new block by double-clicking on “Add new block”. No. 1. d e v r e s e r s t h g i r l l i A 6 1 0 2 G A s n e m e S  2. Create a global data block with the name “CONTROL_DAT”. Modbus/TCP with WinAC RTX (F) in the TIA Portal V13 SP1 Entry-ID: 109482560, V1.0, 06/2016 8
分享到:
收藏