Resumo do conteúdo contido na página número 1
Automation and Drives - SCE
Training Document for Comprehensive Automation
Solutions
Totally Integrated Automation (T I A)
MODULE A5
Programming the CPU 314C-2DP
T I A Training Document Page 1 of 25 Module
A5
Issue date: 02/2008 Programming the CPU 314C-2DP
Resumo do conteúdo contido na página número 2
Automation and Drives - SCE This document has been written by Siemens AG for training purposes for the project entitled "Siemens Automation Cooperates with Education (SCE)". Siemens AG accepts no responsibility for the correctness of the contents. Transmission, use or reproduction of this document is only permitted within public training and educational facilities. Exceptions require the prior
Resumo do conteúdo contido na página número 3
Automation and Drives - SCE SEITE: 1. Foreword.............................................................................................................. 4 2. Notes on Using the CPU 314C-2DP................................................................... 6 2.1 Operator Control of the CPU 31xC..................................................................... 7 2.2 Memory Concept of the CPU 31xC.................................................................... 9
Resumo do conteúdo contido na página número 4
Automation and Drives - SCE 1. FOREWORD In terms of its contents, module A5 belongs to the teaching unit entitled "Basic Principles of STEP 7 Programming'. Basic Principles of STEP 7 Programming 2 to 3 days Module A Further Functions of Plant Simulation STEP 7 Programming with SIMIT SCE 2 to 3 days Module B 1 to 2 days Module G Progamming Industrial Field Process Languages Bus Systems Visualization 2 to 3 days Module C 2 to
Resumo do conteúdo contido na página número 5
Automation and Drives - SCE Hardware and software needed 1 PC, operating system Windows 2000 Professional starting with SP4 /XP Professional starting with SP1/Server 2003 with 600 MHz and 512 RAM, free hard disk memory approx. 650 to 900 MB, MS Internet Explorer 6.0 2 Software: STEP7 V 5.4 3 MPI interface for the PC (e.g. PC adapter for USB) 4 SIMATIC S7-300 PLC with the CPU 314C-2DP Configuration example: - Power supply unit: PS 307 2A - CPU: CPU 314-2DP
Resumo do conteúdo contido na página número 6
Automation and Drives - SCE 2. NOTES ON THE USE OF THE CPU 314C-2DP The CPU 314C-2DP is shipped with an integrated PROFIBUS DP interface and integrated inputs/outputs. The following PROFIBUS protocol profiles are available for the CPU 314C-2DP: - DP interface as master according to EN 50170. - DP interface as slave according to EN 50170. PROFIBUS-DP (decentralized peripherals) is the protocol profile for connecting decentralized peripherals/field units with ve
Resumo do conteúdo contido na página número 7
Automation and Drives - SCE 2.1 OPERATING THE CPUS 31XC Operator control and display elements The following illustration shows the operator control and display elements of a CPU 31xC. The arrangement and number of elements in some CPUs differ from this illustration. The figures show the following CPU elements: (1) Status and error displays (2) Slot for the Micro Memory Card (MMC), incl. the ejector (3) Connections of the integrated I/O. (4) Power supply connecti
Resumo do conteúdo contido na página número 8
Automation and Drives - SCE Status and fault/error displays The CPU has the following LED displays: Slot for the SIMATIC Micro Memory Card (MMC) A SIMATIC Micro Memory Card (MMC) is used as a memory module for the CPU 31xC. The MMC can be used as a load memory and as a transportable data carrier. The MMC must be plugged in before the CPU can be operated because the CPUs 31xC do not have an integrated load memory. Mode selector The mode selector can be used to c
Resumo do conteúdo contido na página número 9
Automation and Drives - SCE 2.2 MEMORY AREAS OF THE CPU 31XC Introduction The memory of the CPU 31xC can be divided into three areas: Note Only with the MMC plugged in is it possible to load user programs and therefore operate the CPU 31xC Load memory The load memory is located on a SIMATIC Micro Memory Card (MMC). Its size is exactly the same as that of the MMC. It is used for storing code blocks and data blocks as well as system data (configuration, conne
Resumo do conteúdo contido na página número 10
Automation and Drives - SCE Retentivity Your CPU 31xC has retentive memory. Retentivity is implemented on the MMC and on the CPU. Due to this retentivity, the contents of the retentive memory are retained even after the mains supply has been switched off and the CPU has been restarted (warm restart). Load memory You program in the load memory (MMC) is always retentive. During loading, it is stored on the MMC, is powerfail-proof and cannot be cleared. Work memory (
Resumo do conteúdo contido na página número 11
Automation and Drives - SCE 3. CREATING THE HARDWARE CONFIGURATION FOR THE CPU 314C-2DP In Step 7, files are managed with the 'SIMATIC Manager'. Here, program blocks can be copied, for example, or called for further processing with other tools by clicking on them with the mouse. Use of the SIMATIC Manager is in line with the usual Windows standards (e.g. right-clicking on a component causes its selection menu to appear). In STEP 7, each project is created with a fixed
Resumo do conteúdo contido na página número 12
Automation and Drives - SCE The hardware configuration of the PLC is mapped in the 'SIMATIC 300 Station' and 'CPU' folders. This is done in the special case where a configuration is created with the CPU 314C-2DP. Also, a clock memory is configured and the addresses of the input and output modules are set in this case. The user must perform the following steps in order to set up a project and create the hardware configuration. 1. The central tool in STEP 7 is the
Resumo do conteúdo contido na página número 13
Automation and Drives - SCE 3. The project is now assigned the name 'CPU314C_2DP' under 'Name' ( → CPU314C_2DP → OK) 4. A 'SIMATIC 300-Station' station is now inserted. ( → Insert → Station → SIMATIC 300 Station) Foreword Notes Hardware configuration STEP 7 program Testing T I A Training Document Page 13 of 25 Module A5 Issue date: 02/2008
Resumo do conteúdo contido na página número 14
Automation and Drives - SCE 5. Open the configuration tool by double-clicking on 'Hardware'. ( → Hardware) 6. Open the hardware catalog by clicking on the symbol. ( → ) The catalog is divided into the following directories: - PROFIBUS-DP/PA, SIMATIC 300, SIMATIC 400 and SIMATIC PC Based Control - and provides you with all the module racks, modules and interface modules for designing your hardware configuration. Foreword Notes
Resumo do conteúdo contido na página número 15
Automation and Drives - SCE 7. Insert a rail by double-clicking on 'Rail' ( → SIMATIC 300 → RACK-300 → Rail). A configuration table for designing Rack 0 is then displayed. Foreword Notes Hardware configuration STEP 7 program Testing T I A Training Document Page 15 of 25 Module A5 Issue date: 02/2008
Resumo do conteúdo contido na página número 16
Automation and Drives - SCE 8. From the hardware catalog, you now can select any of the modules that are also plugged into the real rack and insert them in the configuration table. To do this, you must click on the name of the respective module, hold down the mouse button and drag the module into a row of the configuration table using the Drag & Drop function. We are starting with the power supply unit 'PS 307 2A'. ( → SIMATIC 300 → PS-300 → PS 307 2A) Note: I
Resumo do conteúdo contido na página número 17
Automation and Drives - SCE 9. In the next step, we drag the CPU 314C-2DP onto the second slot. When this is being done, the order number and the version of the CPU can be read on the front of the CPU. ( → SIMATIC 300 → CPU-300 → CPU 314C-2DP → 6ES7 314-6CF00-0AB0). 10. In the following dialog box, we now want to set up the integrated PROFIBUS interface. Because we will not use the interface here, we accept the settings with 'OK'( → OK ). Note: Slot No. 3
Resumo do conteúdo contido na página número 18
Automation and Drives - SCE 11. The properties of some modules can be altered ( → Click on module → Change properties → OK). For example, a clock memory can be specified for all CPUs ( → Cycle/Clock memory → ∨ Clock memory → Memory Byte 100). Foreword Notes Hardware configuration STEP 7 program Testing T I A Training Document Page 18 of 25 Module A5 Issue date: 02/2008
Resumo do conteúdo contido na página número 19
Automation and Drives - SCE 12. With most S7-300 CPUs, the addresses of the I/O modules can be altered. This is done by double-clicking on the corresponding modules and altering their settings in the 'Addresses' tab. A note should always be made of these addresses (addresses assigned automatically are usually tied to a specific slot). ( → DI24/DO16 → Addresses → Deselect System Default → 0 → Deselect System Default → 0 → OK ) Foreword Notes
Resumo do conteúdo contido na página número 20
Automation and Drives - SCE 13. By clicking on the and buttons, the configuration table is now first stored and converted, and then loaded into the PLC. When this is being done, the key switch on the CPU should be in the Stop position! ( → → ) Foreword Notes Hardware configuration STEP 7 program Testing T I A Training Document Page 20 of 25 Module A5 Issue date: 02/2008