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 written approval of
SiemensAG (Mr. Michael Knust
michael.knust@siemens.com).
Offenders will be liable for damages. All rights, including the right to translate the document, are reserved,
particularly if a patent is granted or utility model is registered.
We would like to thank the following: Michael Dziallas Engineering, the teachers at vocational schools, and all
others who helped to prepare this document.
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
3. Creating the Hardware Configuration for the CPU 314C-2DP......................... 11
4. Writing a STEP 7 Program.................................................................................. 21
5. Testing the STEP 7 Program .............................................................................. 24
The following symbols provide guidance through this module:
Information
Programming
Task example
Notes
T I A Training DocumentPage 3 of 25 Module
Issue date: 02/2008 Programming the CPU 314C-2DP
A5
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
STEP 7 Programming
2 to 3 days Module B
Plant Simulation
with SIMIT SCE
1 to 2 days Module G
Progamming
Languages
2 to 3 days Module C
Industrial Field
Bus Systems
2 to 3 days Module D
Process
Visualization
2 to 3 days Module F
Frequency Converter
at SIMATIC S7
2 to 3 days Module H
IT Communication
with SIMATIC S7
2 to 3 days Module E
Learning Objective:
In this module, the reader learns how to create a hardware configuration for the CPU 314C-2DP and
how to write and test a STEP 7 program. Based on the steps below, the A5-module explains the
procedure in principle, using a very brief example:
• Setting up a STEP 7 project
• Creating the hardware configuration for the 314C-2DP CPU
• Writing a STEP 7 program
• Testing the program
Requirements:
The following knowledge is a precondition for successful utilization of this module:
• Knowledge in the use of Windows
• Basic principles of PLC programming with STEP 7 (e.g. Module A3 – 'Startup'
PLC Programming with STEP 7)
Foreword Notes Hardware configuration STEP 7 program Testing
T I A Training DocumentPage 4 of 25 Module
Issue date: 02/2008 Programming the CPU 314C-2DP
A5
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
1 PC
2 STEP7
3 PC Adapter USB
4 S7-300 with
CPU 314C-2DP
Foreword Notes Hardware configuration STEP 7 program Testing
T I A Training DocumentPage 5 of 25 Module
Issue date: 02/2008 Programming the CPU 314C-2DP
A5
Automation and Drives - SCE
2. NOTES ON THE USE OF THE CPU 314C-2DP
The CPU 314C-2DP is shippedwith 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 very fast reaction times.
The addresses of the input and output modules of this CPU can be parameterized.
Due to the following performance data, this CPU is especially suitable for training purposes:
- 48 kByte RAM, load memory in the form of a plug-in MicroMemoryCard (MMC), 64 kByte to 4
MByte
- 8192 bytes DI/DO, including 992 bytes central
- 512 bytes AI/AO, including 248 bytes central
- 0.1 ms / 1 K commands
- 256 counters
- 256 timers
- 256 clock memory bytes
- 24 DIs, including 16 which can be used for integrated functions; all can be used as alarm inputs as
well
- 16 DOs, integrated; 4 of which are fast outputs
- 4 AIs for current/voltage, 1 AI resistor integrated
- 2 AOs for current/voltage, integrated
- 4 pulse outputs (2.5 kHz)
- 4-channel counting and measuring with 24 V (60 kHz) incremental encoders
- Integrated positioning function
Foreword Notes HHaarrddwwaarree ccoonnffiigguurraattiioonn STEP 7 program Testing
T I A Training DocumentPage 6 of 25 Module
Issue date: 02/2008 Programming the CPU 314C-2DP
A5
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 connection
(5) 1st interface X2 (PtP or DP)
(6) 1st interface X1 (MPI)
(7) Mode selector switch
The following illustration shows the digital and analog inputs/outputs integrated on the CPU.
The figure shows the following
integrated I/Os:
(1) Analog I/Os
(2) each with 8 digital inputs
(3) each with 8 digital outputs
(4) Front connectors (front
doors are open)
ff
Foreword Notes HHaarrddwwaarree ccoonnffiigguurraattiioonn STEP 7 program Testing
T I A Training DocumentPage 7 of 25 Module
Issue date: 02/2008 Programming the CPU 314C-2DP
A5
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 choose the current operating mode of the CPU. The mode
selector is designed as a toggle switch with 3 positions.
Positions of the mode selector
The positions of the mode selector are explained in the same sequence as they occur on the CPU:
Position Description Comments
RUN RUN mode The CPU is processing the user program
STOP STOP mode The CPU is not processing a user program
MRES Memory Reset Button position of the operating mode switch for a memory
reset of the CPU. A CPU memory reset requires a specific
operating sequence (refer to the Installation Manual,
Chapter Commissioning)
Foreword Notes HHaarrddwwaarree ccoonnffiigguurraattiioonn STEP 7 program Testing
T I A Training DocumentPage 8 of 25 Module
Issue date: 02/2008 Programming the CPU 314C-2DP
A5
Loading...
+ 17 hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.