Preface
Manual
Edition 08/2004
Safety Guidelines
Purpose of the Manual
Required basic knowledge
Area of application
Iii
Approvals
CE label
Tick mark
Standards
Documentation classification
This manual is part of the S7-300 documentation package
Recycling and Disposal
Additional information required
Table of contents
Table of contents
Index-1
Tables
Retentivity of the RAM
Table A-1
Xii
Information on Is available
Selecting and configuring
Overview
Guide to the S7-300 documentation
CPU performance
Programming Manual From Profibus DP to Profinet
X11 X12
Operating and display elements CPU 31xC
Operating and display elements of CPU 31xC
Slot for the Simatic Micro Memory Card MMC
Integrated I/Os of CPU 31xC CPU 314C-2 PtP, for example
Mode selector switch
Power supply connection
Reference
Differences between the CPUs
Status and Error Indicators CPU 31xC
LED designation Color Meaning
Operating and display elements
Operating and display elements CPU
Operating and display elements CPU 312, 314, 315-2 DP
Mode selector switch is used to set the CPU operating mode
Operating and display elements CPU 317-2 DP
Use the mode selector switch to set the CPU operating mode
Operating and display elements CPU 31x-2 PN/DP
Slot for the Simatic Micro Memory Card MMC
Displays for the X1 and X2 interfaces
Status and error displays of the CPU
General status and error displays
CPU 31xC and CPU 31x, Technical data
Interfaces
Multi-Point Interface MPI
Availability
Properties
Devices capable of MPI communication
Operating modes for CPUs with two DP interfaces
S7-300 / S7-400 with MPI interface S7-200 19.2 kbps only
MPI/DP interface Profibus DP interface
Requirements
Connecting to Industrial Ethernet
Devices capable of Profibus DP communication
Devices capable of Profinet PN communication
Properties of Profinet interface
See also
Profinet IO System
Point to Point PtP
Transmission rate
Drivers
Devices capable of PtP communication
Communication services
Overview of communication services
Selecting the communication service
Overview of communication services
Data exchanged by means of S7 basic communication
PG communication
OP communication
Use in server mode for
Configuration
5 S7 communication
Use as client
Send and receive conditions
Global data communication MPI only
Reduction ratio
Routing
GD resources of the CPUs
CPU 315-2 DP
315-2 PN/DP
Routing network nodes MPI DP
Routing network nodes MPI DP Ethernet
Number of routed connections
2 DP
317-2 PN/DP
Requirements
Routing Example of a TeleService application
Real installation
Configuration in Step
PtP communication
What is PROFINET??
Data consistency
Communication via Profinet only CPU 31x-2 PN/DP
With PUT/GET functions
Implementation of Profinet by us
What is Profinet CBA Component based Automation?
Objectives in Profinet
,2DWD9LHZ 352,17,2
Extent of Profinet CBA and Profinet IO
Further Information
Graphic displays
Profinet IO System Extended Functions of Profinet IO
Following graphic shows the new functions of Profinet IO
Profinet PN
Blocks in Profinet IO Chapter Content
Compatibility of the New Blocks
Blocks
New
Detailed Information
Applicability
System status lists SSLs in Profinet IO Chapter Content
Compatibility of the new SSLs
How to use open IE communication
Data block for the configuration of the connection
Open communication via Industrial Ethernet Requirements
Functionality
Disconnecting
Establishing a connection for communication
Data exchange
Communication interruptions
1 S7 connection as communication path
Snmp communication service Availability
S7 connections
Reservation during configuration
Assignment of S7 connections
Connection points
Transition point
Allocating connection resources to Ocms services
Assigning connections in the program
Time sequence for allocation of S7 connection resources
Example
Distribution of connection resources
Communication service Distribution
Distribution and availability of S7 connection resources
Availability of connection resources
Total number Reserved for Free Connection S7 connections
S7 basic
Resources
Connection resources for routing
Number of connection resources for routing
Example of a CPU 314C-2 DP
Example for a CPU 317-2 PN/DP
Requirement for using the DPV1 functionality with DP slaves
DPV1
Definition DPV1
Extended functions of DPV1
Interrupt blocks with DPV1 functionality
System blocks with DPV1 functionality
Profibus DP
Functionality
Communication 3.4 DPV1
Memory areas and retentivity
CPU memory areas
Three memory areas of your CPU
Load memory
Retentivity of the load memory, system memory and RAM
System memory
RAM
Retentive data in load memory
Retentivity of memory objects
Retentive data in RAM
Retentive behavior of memory objects
Retentive behavior of a DB for CPUs with firmware
Retentive behavior of a DB for CPUs with firmware =
RUN-STOP
Address areas of system memory
Address areas of system memory
Process image
Address areas Description
Process image update
Time
Configurable process image with CPU317 FW V2.3.0 or higher
Local data
Retentivity of the load memory, system memory and RAM
Properties of an MMC
Properties of the Micro Memory Card MMC
MMC as memory module for the CPU
MMC copy protection
Useful life of an MMC
Memory functions
General Memory functions
Loading user program from Micro Memory Card MMC to the CPU
Memory functions
Uploading blocks
Handling with modules
Download of new blocks or delta downloads
CPU memory reset and restart
CPU memory reset
Deleting blocks
Compressing blocks
Restart warm start
Recipes
Introduction
Processing sequence
Recipe Recipe n
Memory concept Memory functions
Working memory
Measured value log files
Measured values
Evaluation of measured values
Backup of project data to a Micro Memory Card MMC
Function principle
Memory concept Memory functions
Reference Execution time
Overview
Reference Cycle time
Cycle time
Overview
Meaning of the term cycle time
Time slice model
Step Sequence
Sequence of cyclic program processing
Time slices 1 ms each
Extending the cycle time
Process image update
Calculating the cycle time
Extending the user program processing time
+ 60 μs per rack
Const Portions CPU
Factor
Process Diagnostic Time-of-day
Cycle control at the scan cycle check point CCP
Watchdog
Interrupt
Extension of the cycle time due to error
Programming errors Access errors
Different cycle times
Block processing times may fluctuate
Communication load
Maximum cycle time
Example 20 % communication load
Example 50 % communication load
Tips
Physical cycle time depending on communication load
Influence on the physical cycle time
Configuration during parameter assignment
Cycle extension through component-based automation CBA
Runtimes
Extending the OB1 cycle time
Profibus
Tips and notes
Additional marginal conditions
Base load through Profibus devices
Update times for Profinet IO
Response time
Definition of response time
Fluctuation width
DP cycle times in the Profibus DP network
17 ms
Shortest response time
Conditions for the shortest response time
Calculation
Shortest response time is the sum
Delay of inputs + DP cycle time at Profibus DP
Delay of outputs + DP cycle time at Profibus DP
Longest response time
Conditions for the longest response time
Reducing the response time with direct I/O access
Reducing the response time
Longest response time is the sum
Shortest response time Longest response time
Cycle extension through component-based automation CBA
Calculating method for calculating the cycle/response time
Cycle time
Response time
Shortest response time Longest response time
Definition of interrupt response time
Process/diagnostic interrupt response times of the CPUs
Interrupt response time
Signal modules
Tv 200 μs + 1000 μs x n%
Reproducibility of delay interrupts and watchdog interrupts
Process interrupt processing
Definition of Reproducibility
Reproducibility
Sample calculations
Example of cycle time calculation
Sample of response time calculation
Calculating the longest response time
Calculation of the longest response time
Example of interrupt response time calculation
Cycle and reaction times 5.6 Sample calculations
General technical data
Dimensions of CPU 31xC
Width of CPU
Width
Technical data of the Micro Memory Card MMC
Plug-in Simatic Micro Memory Cards
Maximum number of loadable blocks in the MMC
Following memory modules are available
Technical data
CPU 312C
Address areas I/O
Technical data
Data areas and their retentivity
Testing and commissioning functions
Technical data Assembly
S7 signaling functions
Communication functions
Interfaces 1st interface
Technical data Functionality
Dimensions
Programming
Integrated functions
Technical data of CPU 31xC 6.3 CPU 313C
CPU 313C
Technical data Timers/counters and their retentivity
Technical data Address areas I/O
Technical data
MPI
Technical data Integrated I/O
KHz see the Manual Technological Functions
Technical data CPU 313C-2 PtP CPU 313C-2 DP CPU and version
CPU 313C-2 PtP and CPU 313C-2 DP
Memory CPU 313C-2 PtP CPU 313C-2 DP
Execution times CPU 313C-2 PtP CPU 313C-2 DP
Address areas I/O CPU 313C-2 PtP CPU 313C-2 DP
Assembly CPU 313C-2 PtP CPU 313C-2 DP
Blocks CPU 313C-2 PtP CPU 313C-2 DP
Time-of-day CPU 313C-2 PtP CPU 313C-2 DP
Technical data CPU 313C-2 PtP CPU 313C-2 DP
S7 signaling functions CPU 313C-2 PtP CPU 313C-2 DP
Interfaces CPU 313C-2 PtP CPU 313C-2 DP 1st interface
DP master
Technical data CPU 313C-2 PtP CPU 313C-2 DP DP slave
GSD file
Point-to-point communication
Programming CPU 313C-2 PtP CPU 313C-2 DP
Dimensions CPU 313C-2 PtP CPU 313C-2 DP
Voltages and currents CPU 313C-2 PtP CPU 313C-2 DP
Technical data CPU 314C-2 PtP CPU 314C-2 DP CPU and version
CPU 314C-2 PtP and CPU 314C-2 DP
Memory CPU 314C-2 PtP CPU 314C-2 DP
Execution times CPU 314C-2 PtP CPU 314C-2 DP
Address areas I/O CPU 314C-2 PtP CPU 314C-2 DP
Assembly CPU 314C-2 PtP CPU 314C-2 DP
Blocks CPU 314C-2 PtP CPU 314C-2 DP
Time-of-day CPU 314C-2 PtP CPU 314C-2 DP
Technical data CPU 314C-2 PtP CPU 314C-2 DP
S7 signaling functions CPU 314C-2 PtP CPU 314C-2 DP
Interfaces CPU 314C-2 PtP CPU 314C-2 DP 1st interface
2nd interface CPU 314C-2 PtP CPU 314C-2 DP
Integrated I/O CPU 314C-2 PtP CPU 314C-2 DP
Technical data CPU 314C-2 PtP CPU 314C-2 DP DP slave
Programming CPU 314C-2 PtP CPU 314C-2 DP
Dimensions CPU 314C-2 PtP CPU 314C-2 DP
Voltages and currents CPU 314C-2 PtP CPU 314C-2 DP
Arrangement and usage of integrated I/Os
Technical data of the integrated I/O
CPU 312C Pin-out of the integrated DI/DO connector
Block diagram of the integrated digital I/O
Standard Interrupt Count Posi-1 Input Tioning
1L+ 2L+
Controller
See also
Wiring of the current/voltage inputs
Analog I/O
Integrated hardware low-pass filter
Maximum frequency of the input signal is 400 Hz
Measurement principle
Input filters software filter
Principle of interference suppression with Step
50 Hz interference suppression
Inputs not connected
Outputs not connected
Parameters of standard DI
Configuration
Value range Default Range of efficiency
Byte
Byte 3 reserved
Byte 6
Byte 7 reserved
Parameters of standard do
Parameters of standard AI
There are no parameters for standard digital outputs
See also .3 in the Module Data Reference Manual
Parameters Value range Default Range of efficiency
Parameters of standard AO
\WH
\WH
\WH
\WH
\WH
Parameter for technological functions
\WH
Interrupts
Interrupt inputs
Start information for OB40
Byte Variables Data type Description
Diagnostics
Digital inputs
Standard I/O
Technological functions
Functions Manual
Technological functions use fast digital outputs
Digital outputs
Fast digital outputs
13 Technical data of digital outputs
CPU 31xC and CPU 31x, Technical data
Technical data Module-specific data
Analog inputs
Voltage, currents, potentials
Analog value generation
Encoder selection data
Interference suppression, error limits
Status, interrupts, diagnostics
Analog outputs
Actuator selection data
Technical data of CPU 31xC
CPU 31xC and CPU 31x, Technical data
Technical data of CPU
Dimensions of CPU
Technical data of CPU 31x 7.1 General technical data
CPU
Technical data Data areas and their retentivity
Technical data
Technical data Communication functions
Mounting dimensions W x H x D mm 40 x 125 x Weight 270 g
Technical data for the CPU
Technical data Data areas and their retentivity
Technical data
Number of entries not configurable Max
Mounting dimensions W x H x D mm 40 x 125 x Weight 280 g
CPU 315-2 DP
Technical data Data areas and their retentivity
Technical data
Diagnostic buffer Yes Number of entries not configurable Max
2nd interface
Technical data DP slave
CPU 315-2 PN/DP
Technical data
Technical data Assembly
Parameters of SFBs/FBs and SFC/FC of the S7
CBA at 50 % communication load
Transmission speed Up to 12 Mbps Number of DP slaves 124
Profinet IO
Technical data Voltages and currents
CPU 317-2 DP
Technical data Timers/counters and their retentivity
Technical data
Technical data S7 signaling functions
CPU 317-2 DP
MPI
DP slave Except for DP slave at both interfaces
GSD file
CPU 317-2 PN/DP
Technical data
Analog channels 4096/4096 Those local 256/256
Communication functions
Routing Interface X1 configured as Yes
MPI
Profinet IO
Technical data Voltages and currents
Information about upgrading to a CPU 31xC or CPU
Area of applicability
Who should read this information?
If you have used one of the following CPUs in the past
Changed behavior of certain SFCs
SFC 56, SFC 57 and SFC 13 which work asynchronously
DPV1
Hereafter called
SFC 20 Blkmov
SFC 54 Rddparm
SFCs that may return other results
Activating / deactivating DP slaves via SFC
Previous response by the CPU with Stop status
New response by the CPU
Converting the diagnostic addresses of DP slaves
Converting the diagnostic addresses of DP slaves
Runtimes that change while the program is running
Runtimes that change while the program is running
Reusing existing hardware configurations
Reusing existing hardware configurations
Replacing a CPU 31xC/31x
Replacing a CPU 31xC/31x
Consistent data
Routing for the CPU 31xC/31x as an intelligent slave
Load memory concept for the CPU 31xC/31x
10 PG/OP functions
Changed retentive behavior for CPUs with firmware =
Changed retentive behavior for CPUs with firmware =
Procedure
Asic
Backup memory
Bus
Bus segment
Clock flag bits
CPU
Default Router
Data, temporary
Determinism
Device
DPV1
Ertec
Function block
Functional ground
GD circuit
GD element
GSD file
Hub
Industrial Ethernet
Instance data block
Interrupt, delay
Interrupt, diagnostic
Interrupt, update
Interrupt, process
LAN
MPI
NCM PC
Nesting depth
Network
Non-isolated
OB priority
PLC
PNO
Profibus
Profibus DP
Profinet
Profinet Asic
Profinet CBA
Profinet Component
Profinet IO
Proxy
Real Time
Reduction factor
Reference ground
SFB
SFC
Simatic
Simatic NCM PC
Simatic NET
Snmp
Step
System diagnostics
Timer
Timers
System function
Token
Topology
Twisted Pair
Ungrounded
WAN
Glossary-23
Glossary-24
Index
Index
Index-3
Index