CPU 317-2 PN/DP: Configuring an ET
200S as PROFINET IO device
___________________
___________________
___________________
___________________
SIMATIC
PROFINET
CPU 317-2 PN/DP: Configuring an
ET 200S as PROFINET IO device
Getting Started
Introduction
1
Preparation
2
Learning units
3
Further Information
4
Legal information
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.
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
with a safety alert symbol, indicates that minor personal injury can result if proper precautions are not taken. CAUTION
without a safety alert symbol, indicates that property damage can result if proper precautions are not taken. NOTICE
indicates that an unintended result or situation can occur if the relevant information is not taken into account. 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.
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. 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. Siemens AG Industry Sector Postfach 48 48 90026 NÜRNBERG GERMANY A5E00721427-04
Table of contents
1 Introduction... 5
2 Preparation ... 7
3 Learning units ... 11
3.1 1. Step: Install the ET 200S ...11
3.2 2. Step: Wiring and assembling ET 200S ...12
3.3 3. Step: Configuring ET 200S ...13
3.4 4. Step: Insert the SIMATIC Micro Memory Card and switch on the device ...14
3.5 5. Step: Assign a name to the IO device ...15
3.6 6. Step: Download user program and configuration to the CPU...19
3.7 7. Step: Switch CPU to RUN and monitor functions...20
Table of contents
CPU 317-2 PN/DP: Configuring an ET 200S as PROFINET IO device
Introduction
1
Introduction
In the following steps we will show you the basics of configuring an ET 200S as PROFINET I/O device.
Introduction
CPU 317-2 PN/DP: Configuring an ET 200S as PROFINET IO device
Preparation
2
Scope
CPU SIMATIC Micro Memory Card
required for operation? As of firmware version
317-2 PN/DP yes V3.2
IM 151-3 PN yes V7.0
The order number can be found in the manuals, e.g. the operating instructions CPU 31xC and CPU 31x: Installation (http://support.automation.siemens.com/WW/view/en/13008499).
Requirements
● You have an S7 300 station consisting of a power supply module and one CPU 317-2 PN/DP central module, as described in the Getting Started document "CPU 314C-2 PN/DP, 315-2 PN/DP, 317-2 PN/DP, 319-3 PN/DP: Configuring the PROFINET interface".
● STEP 7 V5.5 is completely installed on your programming device (PG). You are familiar with STEP 7.
● The PG is connected to the PROFINET IO. WARNING
Operation of an S7-300 as part of plants or systems is subject to special rules and regulations, which depend on its field of application. Please make sure that you adhere to the applicable safety and accident prevention regulations, for example IEC 204 (emergency stop systems).
You risk severe injury, or damage to machines and equipment if you ignore these regulations.
Preparation
CPU 317-2 PN/DP: Configuring an ET 200S as PROFINET IO device
8 Getting Started, 08/2011, A5E00721427-04
Material and tools required
Quantity Item Order number (Siemens)
1 Standard mounting rail 35 mm (length = 483 mm, for
example) 6ES5710-8MA11
1 Interface module IM 151-3 PN and terminating module, x
1 6ES7151-3BA23-0AB0
1 CPU 317-2 PN/DP e.g. 6ES7317-2EK14-0AB0
1 SIMATIC Micro Memory Card e.g. 6ES7953-8LL20-0AA0 2 Fast Connect terminal module TM-P15N23-A1, x 1 6ES7193-4CC70-0AA0 1 Fast Connect terminal module TM-E15N24-A1, x 5 6ES7193-4CA70-0AA0
2 PM-E DC24V, x 1 6ES7138-4CA01-0AA0
1 4DI DC24V ST, x 5 6ES7131-4BD01-0AB0
1 4DO DC24V/0,5A ST, x 5 6ES7132-4BD00-0AB0 1 Industrial Ethernet FC RJ45 connector 90, 10 pieces 6GK1901-1BB20-2AB0 1 Industrial Ethernet FC stripping tool 6GK1901-1GA00 1 Appropriate installation cables:
FC Standard Cable FC Trailing Cable FC Marine Cable 6XV1840-2AH10 6XV1840-3AH10 6XV1840-4AH10
Preparation
Setup
The figure below shows which ET 200S components you require for the example on the PROFINET I/O: [70(1$WHUPLQDOPRGXOHDQG', '&9+)HOHFWURQLFVPRGXOH 7031$WHUPLQDOPRGXOHDQG30('&9SRZHUPRGXOH ,0b31LQWHUIDFHPRGXOH ,QGXVWULDO(WKHUQHW)&LQVWDOODWLRQFDEOHZLWK352),1(7FRQQHFWRU 6ORW 0RXQWLQJUDLO 7HUPLQDWLQJPRGXOH [70(1$WHUPLQDOPRGXOHDQG '2'&9$+)HOHFWURQLFVPRGXOH 7031$WHUPLQDOPRGXOH DQG30('&9SRZHUPRGXOH 30 ', ', 30 '2 '2 ,031
Preparation
CPU 317-2 PN/DP: Configuring an ET 200S as PROFINET IO device
Learning units
3
3.1
1. Step: Install the ET 200S
Installing and grounding the mounting rail
1. Install the mounting rail (35 x 7.5 mm or 15 mm) with a length of at least 210 mm on a solid surface.
2. Connect the rail to the protective conductor. Stipulated cross-section of the cable connection to the protective conductor: at least 10 mm2.
3. Mount the various modules onto the rail, starting on the left side (hang in - swivel down - slide to left). Follow the following sequence:
– Interface module IM151-3 PN – Terminal module TM-P15N23-A1 – 2 x terminal module TM-E15N24-A1 – Terminal module TM-P15N23-A1 – 2 x terminal module TM-E15N24-A1 – Terminating module
Learning units
3.2 2. Step: Wiring and assembling ET 200S
CPU 317-2 PN/DP: Configuring an ET 200S as PROFINET IO device
12 Getting Started, 08/2011, A5E00721427-04
3.2
2. Step: Wiring and assembling ET 200S
WARNINGEnsure the ET 200S is completely disconnected before wiring!
You may come into contact with live wires if the ET 200S is connected to the power supply.
Procedure
1. Wire the ET 200S as shown below:
1 2 3 $8; $8; 0 / $ $
①
24 V DC electronics power supply②
24 V DC sensor supply potential group 1③
24 V DC potential group 22. Connect the PROFINET interface of the PROFINET I/O controller (e.g. port 2 of the PN interface of a CPU 317-2 PN/DP) to the PROFINET interface of the I/O device (e.g. port 1 of the PN interface of the IM151-3 PN) via an Industrial Ethernet twisted pair cable. 3. Insert the power and electronic modules into the terminal modules.
Learning units 3.3 3. Step: Configuring ET 200S
3.3
3. Step: Configuring ET 200S
Procedure
1. Run SIMATIC Manager and open the project which you created in Getting Started "CPU 314C-2 PN/DP, 315-2 PN/DP, 317-2 PN/DP, 319-3 PN/DP: Configuring the PROFINET interface".
2. Drag-and-drop IM151-3 PN from the hardware catalog: PROFINET IO > I/O > ET 200S to the PROFINET I/O system.
3. From the hardware catalog, drag-and-drop the various ET 200S modules into the
Learning units
3.4 4. Step: Insert the SIMATIC Micro Memory Card and switch on the device
CPU 317-2 PN/DP: Configuring an ET 200S as PROFINET IO device
14 Getting Started, 08/2011, A5E00721427-04
3.4
4. Step: Insert the SIMATIC Micro Memory Card and switch on the
device
Procedure
1. If desired, you can insert a SIMATIC Micro Memory Card into the IM151-3 PN. Note
Delete the content of a SIMATIC Micro Memory Card with unknown content before you use it in the programming device.
2. Switch on the power supply for the CPU 317-2 PN/DP.
Result: Reaction of the status LEDs on the CPU 317-2 PN/DP: – 5V DC → lit
– SF → off
3. Switch on the power supply for the IM151-3 PN and the PM-E. Result: Reaction of the status LEDs on the IM151-3 PN: – BF → flashes
– ON → is lit – LINK → is lit
Learning units 3.5 5. Step: Assign a name to the IO device
3.5
5. Step: Assign a name to the IO device
Procedure
1. In HW Config, open the dialog Properties - IM151-3 PN. 2. Enter the device name of the I/O device.
Learning units
3.5 5. Step: Assign a name to the IO device
CPU 317-2 PN/DP: Configuring an ET 200S as PROFINET IO device
16 Getting Started, 08/2011, A5E00721427-04
4. To transfer the name configuration to IM151-3 PN, you need an online PROFINET connection to the I/O device.
Select PLC > Ethernet > Assign device name to transfer the device name to the IM151-3 PN.
Learning units 3.5 5. Step: Assign a name to the IO device 5. When you use more than one I/O device, the system displays all I/O devices in the
Assign device name dialog box. In this case, compare the MAC address of the device with the MAC address displayed. Select the correct I/O device. On the Assign device name dialog box, click Assign name. The device name is saved in the IM151-3 PN interface module (optionally also on an inserted SIMATIC Micro Memory Card).
Learning units
3.5 5. Step: Assign a name to the IO device
CPU 317-2 PN/DP: Configuring an ET 200S as PROFINET IO device
18 Getting Started, 08/2011, A5E00721427-04
6. The dialog box indicates the device name you assigned.
7. Download the hardware configuration to the CPU 317-2 PN/DP. Select PLC > Download to module.
The CPU automatically assigns an IP address to the IO device after it has received this download. The I/O device is ready for cyclic data exchange once the subnet is properly installed and the configuration corresponds to the physical structure of the I/O device. The BF2 LED starts to flash once you have downloaded the hardware configuration. The BF2 LED on the CPU and the flashing BF LED of the I/O device go out once the CPU has accepted the I/O device.
Leave the CPU in STOP until you have written the user program and downloaded it to the CPU.
Learning units 3.6 6. Step: Download user program and configuration to the CPU
3.6
6. Step: Download user program and configuration to the CPU
Procedure
1. Create the user program in the LAD/STL/FBD editor in OB 1. 2. Save the user program (OB 1).
3. Close the LAD/STL/FBD editor. 4. Select the "Blocks" folder. 5. Download all blocks to the CPU. 6. Select PLC > Download .
Example 1: Reading an input and controlling an output
STL
U E 0.0 When input bit 0.0 is set and U M 2.0 memory bit 2.0 is set, then S A 0.0 set output bit 0.0
Example 2: Transferring an input byte to an output byte:
STL
L PEB 0 Load I/O input byte 0 to the accumulator (bits 0.0 to 0.7) T PAB 0 Write bits 0.0 to 0.7 from accumulator to I/O input byte 0.
Learning units
3.7 7. Step: Switch CPU to RUN and monitor functions
CPU 317-2 PN/DP: Configuring an ET 200S as PROFINET IO device
20 Getting Started, 08/2011, A5E00721427-04
3.7
7. Step: Switch CPU to RUN and monitor functions
Procedure
1. Switch the CPU to "RUN".
2. You have correctly completed commissioning.
The status of certain key status LEDs at CPU 317-2 PN/DP and ET 200S is as follows: – CPU 317-2 PN/DP: DC5V: is lit SF: Off BF2: Off LINK: Lit – ET 200S: SF: Off BF: Off ON: Lit LINK: Lit
Further Information
4
Reference
For detailed information on address assignment for the PROFINET interface, please refer to the STEP 7 online help.
Diagnostics/Correction of Errors
Wrong operation, faulty wiring or a faulty hardware configuration may cause errors which the CPU indicates with the SF group error LED after a CPU memory reset.
For information on how to diagnose such errors and alarms, please refer to the operating instructions, CPU 31xC and CPU 31x: Installation
(http://support.automation.siemens.com/WW/view/en/13008499).
Manuals containing further information
● Getting Started: Getting started and exercises with STEP 7 (http://support.automation.siemens.com/WW/view/en/45531551) ● Manual: SIMATIC NET: Twisted Pair and Fiber Optic Networks
(http://support.automation.siemens.com/WW/view/en/8763736) ● Manual: SIMATIC communication
(http://support.automation.siemens.com/WW/view/en/1254686) ● PROFINET System Description
(http://support.automation.siemens.com/WW/view/en/19292127)
Service & Support on the Internet
In addition to our documentation, we offer a comprehensive knowledge base on the Internet (http://www.siemens.com/automation/service&support).
Further Information
CPU 317-2 PN/DP: Configuring an ET 200S as PROFINET IO device