Résumé du contenu de la page N° 1
Industry Automation and Drive Technologies - SCE
Training Manual for Integrated Automation
Solutions
Totally Integrated Automation (TIA)
MODULE E12
VISION SENSOR Shape Checking
with SIMATIC S7-300F-2 PN/DP and VS120
TIA Training Document Page 1 of 47 Module
E12
Status: 01/2010 Vision Sensor Shape Check with SIMATIC S7-300F 2PN/DP and VS120
Résumé du contenu de la page N° 2
Industry Automation and Drive Technologies - SCE This manual was prepared for training purposes by Siemens AG for the project Siemens Automation Cooperates with Education (SCE). Siemens AG does not guarantee the contents of this document. Passing on this document as well as copying it, using and communicating its contents is permitted within public training and continued education facilities. Excep
Résumé du contenu de la page N° 3
Industry Automation and Drive Technologies - SCE PAGE 1. Preface.....................................................................................................Fehler! Textmarke nicht definiert. 2. Notes on using the CPU 315F-2 PN/DP .........................................................................................................7 3. Notes on the SIMATIC VS120 components................................................................................................
Résumé du contenu de la page N° 4
Industry Automation and Drive Technologies - SCE The following symbols serve as a guide through Module E12: Information Programming Sample Task Notes TIA Training Document Page 4 of 47 Module E12 Status: 01/2010 Vision Sensor Shape Check with SIMATIC S7-300F 2PN/DP and VS120
Résumé du contenu de la page N° 5
Industry Automation and Drive Technologies - SCE 1 PREFACE Regarding its content, Module E12 is part of the instruction unit ’IT Communication with S7’. Fundamentals of STEP7 Programming 2 to 3 days Modules A Additional Functions of System Simulation STEP7 Programming with SIMIT SCE 2 to 3 days Modules B 1 to 2 days Modules G Programming Industrial Fieldbus Process Languages Systems Visualization 2 to 3 days Modules F 2 to 3 days
Résumé du contenu de la page N° 6
Industry Automation and Drive Technologies - SCE Hardware and software required 1 PC, operating system Windows XP Professional with SP2 or SP3/Vista 32 Bit Ultimate and Business/Server 2003 SP2 with 600MHz (only XP)/1 GHz and 512MB (only XP)/1 GB RAM, free disk storage approx. 650 to 900 MB, MS Internet Explorer 6.0 and network card 2 Software STEP 7 V 5.4 3 SPS SIMATIC S7300 with CPU 315F-2 PN/DP and at least one digital input and output module. Sample configuration: -
Résumé du contenu de la page N° 7
Industry Automation and Drive Technologies - SCE 2 NOTES ON USING THE CPU 315F-2 PN/DP The CPU 315F-2 PN/DP is a CPU that is shipped with 2 integrated interfaces. - The first interface is a combined MPI/PROFIBUS DP interface that can be used at the PROFIBUS DP as master or slave to connect distributed IO/field devices with very fast reaction time. In addition, it is possible to program the CPU here by means of an MPI or PROFIBUS DP - The second interface is an i
Résumé du contenu de la page N° 8
Industry Automation and Drive Technologies - SCE 3.2 Performance Features • Incident light method with LED ring lamp • Object recognition with object search and object check • Startup by means of setup support at the PG/PC with installed Internet Explorer • Up to 20 object checks per second • Up to 64 objects to be checked can be stored • To sort the objects to be checked, 2 digital outputs are provided: OK, N_OK • Operator interface is completely Web-based • Extensive o
Résumé du contenu de la page N° 9
Industry Automation and Drive Technologies - SCE 3.4 Recording and Reading Out Recognition Values in a PROFINET IO Environment • By means of the Ethernet (TCP/IP) and a switch, a PC/PG is connected that is used exclusive for the setup process. • By means of the Ethernet and a switch, a connection exists to an automation systems with PROFINET IO capability. • The SIMATIC VS120 is controlled by the automation system. • The result of the objects to be checked is read out via
Résumé du contenu de la page N° 10
Industry Automation and Drive Technologies - SCE 3.5 Setting the Communication Interface of the VS120 to PROFINET First, switch on the power supply of the evaluation device VS120 for the initial startup. At the initial startup, "Factory Settings Used" appears on the LCD display. Confirm with "OK". The VS120 will then perform a self test: • Checking the Ethernet connection Press ESC • Functional check of the sensor head Press ESC After completion of the self te
Résumé du contenu de la page N° 11
Industry Automation and Drive Technologies - SCE "Connect" Menu: The Ethernet IP mode has to be set to PNIO. Place the cursor in front of Ports and press the OK button Place the cursor in front of Ethernet and press the OK button Place the cursor in front of IP Mode and press the OK button Place the cursor in front of PNIO and press the OK button The evaluation device now requests a restart; press the OK button to confirm. After the restart, the red bus error LED
Résumé du contenu de la page N° 12
Industry Automation and Drive Technologies - SCE 4 STARTING UP A PROJECT WITH CPU 315F-2 PN/DP AND VS120 Below, starting up the VS120 in a project is described. As SIMATIC S7-300 Station, the CPU 315F-2 PN/DP is used. In the CPU’s control program, a data structure has to be generated by means of a function block call (FB1) with data block (DB10). The data structure looks like this: FB1 DB10 for VS120 Result of the form checl Instance DB1 of FB1 All additional inf
Résumé du contenu de la page N° 13
Industry Automation and Drive Technologies - SCE 4.1 Setting Up a New Project 1. The central tool in STEP 7 is the ’SIMATIC Manager’. It is called here with a double click (→ SIMATIC Manager) 2. STEP7 programs are managed in projects. We are now setting up such a project (→ File → New) 3. Now, the project is assigned the ’Name’ ’VS120’ (→ VS120 → OK) TIA Training Document Page 13 of 47 Module E12 Status: 01/2010
Résumé du contenu de la page N° 14
Industry Automation and Drive Technologies - SCE 4. Next, highlight your project and insert an ’Industrial Ethernet Subnet’. (→ VS120 → Insert → Subnet → Industrial Ethernet). 5. Now, a ’SIMATIC 300 Station’ is inserted (→ Insert → Station → SIMATIC300 Station) TIA Training Document Page 14 of 47 Module E12 Status: 01/2010 Vision Sensor Shape Check with SIMATIC S7-300F 2PN/
Résumé du contenu de la page N° 15
Industry Automation and Drive Technologies - SCE 4.2 Configuring the Hardware 6. With a double click, open the configuration tool for the ’Hardware’. (→ Hardware) 7. Open the hardware catalog by clicking on the symbol ' ’. (→ ) Insert the ’Mounting Channel’ with a double click (→ SIMATIC 300 → RACK-300 → Mounting Channel). Note: Then, a configuration table is displayed automatically for setting up Rack 0. TIA Training Document Page 15 of 47 Module E
Résumé du contenu de la page N° 16
Industry Automation and Drive Technologies - SCE 8. Now, from the hardware catalog select all modules that are also inserted in your actual rack and place them in the configuration table. To this end, click on the name of the respective module, hold the mouse key and drag it to a line in the configuration table. We start with the power supply ’PS 307 5A’ (→ SIMATIC 300 → PS-300 → PS 307 5A) Note: If your hardware differs from the one shown here, simply select the c
Résumé du contenu de la page N° 17
Industry Automation and Drive Technologies - SCE 9. Next, we drag the ’CPU 315F-2 PN/DP’ to the second slot. The CPU’s order number and the version are provided on the front of the CPU. (→ SIMATIC 300 → CPU-300 → CPU 315F-2 PN/DP → 6ES7 315-2FH13-0AB0 → V2.6) 10. When entering the CPU, the window below is displayed. In this window, do the following: assign to the CPU 315F-2 PN/DP an ’IP Address’, specify the ’Subnet screen form’ and select the ’Ethernet’ that is already
Résumé du contenu de la page N° 18
Industry Automation and Drive Technologies - SCE Notes regarding networking on the Ethernet (additional information is provided in Appendix V of the training manual): MAC address: The MAC address consists of a permanent and a variable part. The permanent part ("Basic MAC address") identifies the manufacturer (Siemens, 3COM, ...). The variable part of the MAC address differentiates the different Ethernet stations and should be assigned globally unique. On each module, a MAC
Résumé du contenu de la page N° 19
Industry Automation and Drive Technologies - SCE 11. Next, we drag the input module for 16 inputs to the 4th slot. The module’s order number is inscribed on the front. (→ SIMATIC 300 → DI-300 → SM 321 DI16x24VDC). Note: Slot 3 is reserved for interface modules and remains empty for that reason. The module’s order number is shown in the footer of the catalog. TIA Training Document Page 19 of 47 Module E12 Status: 01/2010
Résumé du contenu de la page N° 20
Industry Automation and Drive Technologies - SCE 12. Then, we drag the output module for the 16 outputs to the 5th slot. The module’s order number is inscribed on the front. (→ SIMATIC-300 → DO-300 → SM 322 DO16x24VDC/0.5A). Note: The module’s order number is shown in the footer of the catalog. 13. Now, we have to change the PROFINET device name to PN-IOx100. Select ’PN-IO’ with a double click (→ PN-IO,→ PN-IOx100,→ OK) TIA Training Document Page 20 of 47