Simatic S7-300 CPU 31xC and CPU 31x S7-300
Simatic S7-300 CPU 31xC and CPU 31x S7-300
Appendix A
Edition 08/2004
A5E00105475-05
Danger
indicates an imminently hazardous situation which, if not avoided, will result in death or serious injury.
Warning
indicates a potentially hazardous situation which, if not avoided, could result in death or serious injury.
Caution
used with the safety alert symbol indicates a potentially hazardous situation which, if not avoided, may
result in minor or moderate injury.
Caution
used without safety alert symbol indicates a potentially hazardous situation which, if not avoided, may
result in property damage.
Notice
used without the safety alert symbol indicates a potential situation which, if not avoided, may result in
an undesirable result or state.
When several danger levels apply, the notices of the highest level (lower number) are always displayed. If a
notice refers to personal damages with the safety alert symbol, then another notice may be added warning of
property damage.
Qualified Personnel
The device/system may only be set up and operated in conjunction with this documentation. Only qualified
personnel should be allowed to install and work on the equipment. Qualified persons are defined as persons who
are authorized to commission, to earth, and to tag circuits, equipment and systems in accordance with
established safety practices and standards.
Intended Use
Please note the following:
Warning
This device and its components may only be used for the applications described in the catalog or
technical description, and only in connection with devices or components from other manufacturers
approved or recommended by Siemens.
This product can only function correctly and safely if it is transported, stored, set up and installed
correctly, and operated and maintained as recommended.
Trademarks
All designations marked with ® are registered trademarks of Siemens AG. Other designations in this
documentation might be trademarks which, if used by third parties for their purposes, might infringe upon the
rights of the proprietors.
Siemens AG
Automation and Drives Group Siemens AG 2004
P.O. Box 4848, D-90327 Nuremberg (Germany) Technical data subject to change
Area of application
Note
The special features of the CPU 315F-2 DP (6ES7 315-6FF00-0AB0) and CPU 317F-2 DP
(6ES7 317-6FF00-0AB0) are described in their Product Information, available on the Internet
at
http://www.siemens.com/automation/service&support, article ID 17015818.
Note
There you can obtain the descriptions of all current modules. For new modules, or modules
of a more recent version, we reserve the right to include a Product Information containing
latest information.
Approvals
The SIMATIC S7-300 product series has the following approvals:
• Underwriters Laboratories, Inc.: UL 508 (Industrial Control Equipment)
• Canadian Standards Association: CSA C22.2 No. 142, (Process Control Equipment)
• Factory Mutual Research: Approval Standard Class Number 3611
CE label
The SIMATIC S7-300 product series satisfies the requirements and safety specifications of
the following
EC Directives:
• EC Directive 73/23/EEC "Low-voltage directive"
• EC Directive 89/336/EEC "EMC directive"
C tick mark
The SIMATIC S7-300 product series is compliant with AS/NZS 2064 (Australia).
Standards
The SIMATIC S7-300 product series is compliant with IEC 61131-2.
Documentation classification
This manual is part of the S7-300 documentation package.
Tables
Table 1-1 Application area covered by this manual ...................................................................................... iii
Table 1-1 Ambient influence on the automation system (AS).................................................................... 1-1
Table 1-2 Galvanic isolation ....................................................................................................................... 1-1
Table 1-3 Communication between sensors/actuators and the PLC......................................................... 1-2
Table 1-4 The use of local and distributed I/O ........................................................................................... 1-2
Table 1-5 Configuration consisting of the Central Unit (CU) and Expansion Modules (EMs).................... 1-2
Table 1-6 CPU performance ...................................................................................................................... 1-3
Table 1-7 Communication .......................................................................................................................... 1-3
Table 1-8 Software ..................................................................................................................................... 1-3
Table 1-9 Supplementary features ............................................................................................................. 1-4
Table 2-1 Positions of the mode selector switch........................................................................................ 2-3
Table 2-2 Differences of the CPUs 31xC ................................................................................................... 2-3
Table 2-3 Positions of the mode selector switch........................................................................................ 2-6
Table 2-4 Positions of the mode selector switch........................................................................................ 2-8
Table 2-5 Positions of the mode selector switch...................................................................................... 2-10
Table 2-6 General status and error displays of the CPU 31x .................................................................. 2-11
Table 2-7 Bus error displays of CPU 31x................................................................................................. 2-11
Table 3-1 Operating modes for CPUs with two DP interfaces ................................................................... 3-2
Table 3-2 Communication services of the CPUs ....................................................................................... 3-6
Table 3-3 Client and server in S7 communication, using connections with unilateral /
bilateral configuration ................................................................................................................. 3-8
Table 3-4 GD resources of the CPUs....................................................................................................... 3-10
Table 3-5 Number of routing connections for DP CPUs .......................................................................... 3-12
Table 3-6 New System Standard Functions of PROFINET IO and PROFIBUS DP and
Those That Must Be Replaced................................................................................................. 3-21
Table 3-7 System and Standard Functions in PROFIBUS DP that must be Implemented with
Different Functions in PROFINET IO ....................................................................................... 3-22
Table 3-8 OBs in PROFINET IO and PROFIBUS DP.............................................................................. 3-22
Table 3-9 Comparison of the System Status Lists of PROFINET and PROFIBUS ................................. 3-23
Table 3-10 Distribution of connections ....................................................................................................... 3-29
Table 3-11 Availability of connection resources......................................................................................... 3-30
Table 3-12 Number of routing connection resources (for DP/PN CPUs)................................................... 3-31
Table 3-13 Interrupt blocks with DPV1 functionality................................................................................... 3-33
Table 3-14 System function blocks with DPV1 functionality ...................................................................... 3-33
Table 1-5 Configuration consisting of the Central Unit (CU) and Expansion Modules (EMs)
1 2 3
SF
BF
DC5V
MMC FRCE
RUN
STOP
RUN
STOP
MRES
6 X1 X2
5
X11 X12
4
The figure below illustrates the integrated digital and analog I/Os of the CPU with open front
covers.
X11 X12
SF
BF
DC5V
FRCE
RUN
STOP
RUN 1 2 2 3
STOP
MRES
1 2 3
Figure 2-1 Integrated I/Os of CPU 31xC (CPU 314C-2 PtP, for example)
Note
These CPUs do not have an integrated load memory and thus require an MMC for
operation.
Reference
• CPU operating modes: STEP 7 Online Help.
• Information on CPU memory reset: Operating instructions CPU 31xC and CPU31x,
Commissioning, Commissioning Modules, CPU Memory Reset by means of Mode
Selector Switch
• Evaluation of the LEDs upon error or diagnostic event: Operating Instructions CPU 31xC
and CPU 31x, Test Functions, Diagnostics and Troubleshooting, Diagnostics with the
help of Status and Error LEDs
9-pole DP – – X – X –
interface (X2)
15-pole PtP – – – X – X
interface (X2)
Digital inputs 10 24 16 16 24 24
Digital outputs 6 16 16 16 16 16
Analog inputs – 4+1 – – 4+1 4+1
Analog outputs – 2 – – 2 2
Technological 2 counters 3 counters 3 counters 3 counters 4 counters 4 counters
functions 1 channel for 1 channel
positioning for
positioning
Reference
• CPU operating modes: STEP 7 Online Help.
• Information on CPU memory reset: Operating instructions CPU 31xC and CPU31x,
Commissioning, Commissioning Modules, CPU Memory Reset by means of Mode
Selector SwitchEvaluation of the LEDs upon error or diagnostic event: Operating
Instructions CPU 31xC and CPU 31x, Test Functions, Diagnostics and Troubleshooting,
Diagnostics with the help of Status and Error LEDs
2.2.1 Operating and display elements: CPU 312, 314, 315-2 DP:
SF
BF
6 DC5V MMC
FRCE
RUN
5 STOP
RUN
STOP
MRES
4 2
X1 X2 3
Note
These CPUs do not have an integrated load memory and thus require an MMC for
operation.
Reference
• CPU operating modes: STEP 7 Online Help.
• Information on CPU memory reset: Operating instructions CPU 31xC and CPU31x,
Commissioning, Commissioning Modules, CP Memory Reset by means of Mode Selector
Switch
• Evaluation of the LEDs upon error or diagnostic event: Operating Instructions CPU 31xC
and CPU 31x, Test Functions, Diagnostics and Troubleshooting, Diagnostics with the
help of Status and Error LEDs
1 2 3
BF1 SF
BF2
DC5V
FRCE
MMC
RUN
STOP
4
RUN
STOP
MRES
7
6
5 X1 X2
Note
These CPUs do not have an integrated load memory and thus require an MMC for
operation.
Reference
• CPU operating modes: STEP 7 Online Help.
• Information on CPU memory reset: Operating instructions CPU 31xC and CPU31x,
Commissioning, Commissioning Modules, CP Memory Reset by means of Mode Selector
Switch
• Evaluation of the LEDs upon error or diagnostic event: Operating Instructions CPU 31xC
and CPU 31x, Test Functions, Diagnostics and Troubleshooting, Diagnostics with the
help of Status and Error LEDs
1 2 3
BF1 SF
BF2
DC5V MMC
FRCE
RUN
STOP
4
RUN
STOP
MRES
5
8
LINK
RX / TX MAC-ADD.:
X1-X2-X3
X4-X5-X6
6
7 X1
X2
Note
These CPUs do not have an integrated load memory and thus require an MMC for
operation.
Reference
• CPU operating modes: STEP 7 Online Help.
• Information on CPU memory reset: Operating instructions CPU 31xC and CPU31x,
Commissioning, Commissioning Modules, CP Memory Reset by means of Mode Selector
Switch
• Evaluation of the LEDs upon error or diagnostic event: Operating Instructions CPU 31xC
and CPU 31x, Test Functions, Diagnostics and Troubleshooting, Diagnostics with the
help of Status and Error LEDs
Table 2-6 General status and error displays of the CPU 31x
Reference
• CPU operating modes: STEP 7 Online Help.
• Information on CPU memory reset: Operating instructions CPU 31xC and CPU31x,
Commissioning, Commissioning Modules, CP Memory Reset by means of Mode Selector
Switch
• Evaluation of the LEDs upon error or diagnostic event: Operating Instructions CPU 31xC
and CPU 31x, Test Functions, Diagnostics and Troubleshooting, Diagnostics with the
help of Status and Error LEDs
Availability
All CPUs described in this manual are equipped with an MPI interface X1.
A CPU equipped with an MPI/DP interface is configured and supplied as MPI. To use the
DP interface, set DP interface mode in STEP 7.
Properties
The MPI (Multi-Point Interface) represents the CPU interface for PG/OP connections, or for
communication on an MPI subnet.
The typical (default) transmission rate of all CPUs is 187.5 kbps. You can also set 19.2 kbps
for communication with an S7-200. The 315-2 PN/DP and 317 CPUs support transmission
rates up to 12 Mbps.
The CPU automatically broadcasts its bus configuration via the MPI interface (the
transmission rate, for example). A PG, for example, can thus receive the correct parameters
and automatically connect to a MPI subnet.
Note
You may only connect PGs to an MPI subnet which is in RUN.
Other stations (for example, OP, TP, ...) should not be connected to the MPI subnet while
the system is in RUN. Otherwise, transferred data might be corrupted as a result
interference, or global data packages may be lost.
3.1.2 PROFIBUS DP
Availability
CPUs with “DP“ name suffix are equipped at least with a DP X2 interface.
The 315-2 PN/DP and 317 CPUs are equipped with an MPI/DP X1 interface. A CPU with
MPI/DP interface is supplied with a default MPI configuration. You need to set DP mode in
STEP 7 if you want to use the DP interface.
Properties
The PROFIBUS DP interface is mainly used to connect distributed I/O. PROFIBUS DP
allows you to create large subnets, for example.
The PROFIBUS DP interface can be set for operation in master or slave mode, and supports
transmission rates up to 12 Mbps.
The CPU broadcasts its bus parameters (transmission rate, for example) via the
PROFIBUS DP interface when master mode is set. A PG, for example, can thus receive the
correct parameters and automatically connect to a PROFIBUS subnet. In your configuration
you can specify to disable bus parameter broadcasting.
Note
(for DP interface in slave mode only)
When you disable the Commissioning / Debug mode / Routing check box in the DP interface
properties dialog in STEP 7, all user-specific transmission rate settings will be ignored, and
the transmission rate of the master is automatically set instead. This disables the routing
function at this interface.
Reference
Further information on PROFIBUS: http://www.profibus.com
Availability
CPUs with a “PtP“ name suffix are equipped with a PtP X2 interface. X2.
Requirements
• CPUs with FW 2.3.0 or higher (for example CPU 315-2 PN/DP)
• STEP 7 V5.3 + Servicepack 1 or higher
Properties
IEEE standard 802.3
Connector design RJ45
Transmission speed Max. 100 Mbps
Media Twisted Pair Cat5 (100BASE-TX)
Note
Networking PROFINET components
The use of switches, rather than hubs, for networking PROFINET components brings about
a substantial improvement in decoupling bus traffic, and improves runtime performance
under higher bus load. PROFINET CBA with cyclic PROFINET interconnections requires the
use of switches in order to maintain compliance with performance specifications. Full duplex
mode at 100 Mbps is mandatory for cyclic PROFINET interconnections.
PROFINET IO also requires the use of switches and 100 Mbps full duplex mode.
Reference
• For information on how to configure the integrated PROFINET interface of the CPU, refer
to the S7-300, CPU 31xC and CPU 31x Installation operating manual.
• For details on PROFINET, refer to the PROFINET System Description
• For detailed information on Ethernet networks, network configuration and network
components refer to the SIMATIC NET Manual: Twisted Pair and Fiber Optic Networks,
available under article ID 8763736 on the Internet URL
http://www.siemens.com/automation/service&support
• Tutorial: Commissioning Component-Based Automation Systems, article ID 14142554
• Further information on PROFINET: http://www.profibus.com
See also
PROFINET IO System (Page 3-19)
Availability
CPUs with a “PtP“ name suffix are equipped with a PtP X2 interface.
Properties
Using the PtP interface of your CPU, you can connect external devices with serial interface.
You can operate such a system at transmission rates up to 19.2 kbps in full duplex mode
(RS 422), and up to 38.4 kbps in half duplex mode (RS 485).
Transmission rate
• Half duplex: 38.4 kbps
• Full duplex: 19.2 kbps
Drivers
PtP communication drivers installed in those CPUs:
• ASCII drivers
• 3964(R) Protocol
• RK 512 (CPU 314C-2 PtP only)
Reference
CPU 31xC: Technological functions manual
Communication service Functionality Time at which the S7 via MPI via DP via via
connection is established ... PtP PN
PG communication Commissioning, test, From the PG, starting when X X – X
diagnostics the service is being used
OP communication Monitor and modify via OP at POWER ON X X – X
S7 basic communication Data exchange is programmed at the blocks X – – –
(SFC parameters)
S7 communication Data exchange in server via active partner at POWER Only in Only in – X
and client mode: ON. server server
Configuration of mode mode
communication required.
Global data Cyclic data exchange (for does not require an S7 X – – –
communication example, flag bits) connection
Routing PG functions for example testing, from the PG, starting when the X X – X
(only for CPUs with diagnostics on other service is being used
DP or PN interface) networks also
PtP communication Data exchange via serial does not require an S7 – – X –
interface connection
SNMP Standard protocol for does not require an S7 – – – X
(Simple Network network diagnostics and connection
Management Protocol) configuration
open communication by Data exchange via Does not require an S7 – – – X
means of TCP/IP Industrial Ethernet with connection, is handled in the
TCP/IP protocol (by means user program by means of
of loadable FBs) loadable FBs
See also
Distribution and availability of S7 connection resources (Page 3-29)
Connection resources for routing (Page 3-31)
3.2.2 PG communication
Properties
PG communication is used to exchange data between engineering stations (PG, PC, for
example) and SIMATIC modules which are capable of communication. This service is
available for MPI, PROFIBUS and Industrial Ethernet subnets. Transition between subnets is
also supported.
PG communication provides the functions needed to download / upload programs and
configuration data, to run tests and to evaluate diagnostic information. These functions are
integrated in the operating system of
SIMATIC S7 modules.
A CPU can maintain several simultaneous online connections to one or multiple PGs.
3.2.3 OP communication
Properties
OP communication is used to exchange data between operator stations (OP, TP, for
example) and SIMATIC modules which are capable of communication. This service is
available for MPI, PROFIBUS and Industrial Ethernet subnets.
OP communication provides functions you require for monitoring and modifying. These
functions are integrated in the operating system of SIMATIC S7 modules. A CPU can
maintain several simultaneous connections to one or several OPs.
Properties
S7-based communication is used to exchange data between S7 CPUs and the
communication-capable SIMATIC modules within an S7 station (acknowledged data
exchange). Data are exchanged across non-configured S7 connections. The service is
available via MPI subnet, or within the station to function modules (FM).
S7-based communication provides the functions you require for data exchange. These
functions are integrated into the CPU operating system. The user can utilize this service by
means of "System function" (SFC) user interface.
Reference
• Details on SFCs are found in the Instruction list, for more details refer to the
STEP 7 Online Help or to the System and Standard Functions Reference Manual.
• For further information on communication, refer to the Communication with SIMATIC
manual.
3.2.5 S7 communication
Properties
A CPU can always operate in server or client mode in S7 communication: We distinguish
between
• communication with unilateral configuration (for PUT/GET only)
• communication with bilateral configuration (for USEND, URCV, BSEND, BRCV, PUT,
GET)
However, the functionality depends on the CPU. A CP is therefore required in certain
situations.
Table 3-3 Client and server in S7 communication, using connections with unilateral / bilateral
configuration
CPU Use in server mode for Use in server mode for Use as client
connections with unilateral connections with bilateral
configuration configuration
31xC >= V1.0.0 Always possible at the Only possible with CP Only possible with CP
MPI/DP interface, without and loadable FBs. and loadable FBs.
programming the user
interface
31x >= V2.0.0 Always possible at the Only possible with CP Only possible with CP
MPI/DP interface, without and loadable FBs. and loadable FBs.
programming the user
interface
31x >= V2.2.0 Always possible at the • Possible at PN • Possible at PN
MPI/DP interface, without interface with interface with
programming the user loadable FBs, or loadable FBs, or
interface • with CP and loadable • with CP and
FBs. loadable FBs.
The user interface is implemented using standard function modules (FBs) from the standard
library of STEP 7, under communication blocks.
Reference
For further information on communication, refer to the Communication with SIMATIC
manual.
Properties
Global data communication is used for cyclic exchange of global data via MPI subnets (for
example, I, Q, M) between SIMATIC S7 CPUs (data exchange without acknowledgement).
One CPU broadcasts its data to all other DP CPUs on the MPI subnet. This function is
integrated in the CPU operating system.
Reduction ratio
The reduction ratio specifies the cyclic intervals for GD communication. You can set the
reduction ratio when you configure global data communication in STEP 7. For example, if
you set a reduction ratio of 7, global data are transferred only with every 7th cycle. This
reduces CPU load.
3.2.7 Routing
Properties
STEP 7 V5.1 + SP4 or higher allows you to access your S7 stations on all subnets with your
PG/PC, for example, to
• download user programs
• download a hardware configuration, or
• perform debugging and diagnostic functions.
Note
When the CPU is used as intelligent slave, the routing function is only available when the
DP interface is set active. IN STEP 7, set the Test, Commission Routing check box on
the properties dialog of the DP interface. For detailed information, refer to the
Programming with STEP 7 manual, or directly to the STEP 7 Online Help
S7-300 S7-300
PG CPU (DP master) CPU (DP slave)
The figure below shows the access to an Ethernet subnet. CPU 1 (315-2 DP, for example) is
the router for subnet 1 and 2; CPU 2 is the router for subnet 2 and 3.
MPI DP MPI/DP PN PN
(master) (active slave)
Subnet 1 (MPI)
PG
Requirements
• The station modules are "capable of routing" (CPUs or CPs).
• The network configuration does not exceed project limits.
• The modules have loaded the configuration data containing the latest "knowledge" of the
entire network configuration of the project.
Reason: All modules participating in the network transition must receive the routing
information defining the paths to other subnets.
• In your network configuration, the PG/PC you want to use to establish a connection via
network node must be assigned to the network it is physically connected to.
• The CPU must set to master mode, or
• when set to operate in slave mode, the Test, Commissioning, Routing functionality must
be enabled by setting the check box in STEP 7, in the
DP interface for DP slave properties dialog box.
PG
TeleService
adapter Subnet 2
(e.g. PROFIBUS DP)
Modem Modem
Subnet 1 (e.g. MPI)
PG
Reference
• on configuring in STEP 7 is found in the Configuring Hardware and Connections in
STEP 7 manual
• of a basic nature is contained in the Communication with SIMATIC Manual.
• on the TeleService adapter can be found on the Internet URL:
http://www.ad.siemens.de/support. In the Manual Search section, you can enter the
search term A5E00078070 to download the documentation.
• on SFCs are found in the Instruction list, for more details refer to the STEP 7 Online Help
or to the System and Standard Functions Reference Manual.
• on communication are found in the Communication with SIMATIC Manual.
Properties
PtP communication enables you to exchange data via serial port. PtP communication can be
used to interconnect automation devices, computers or communication-capable systems of
external suppliers. The function also allows adaptation to the protocol of the communication
partner.
Reference
Further Information
• on SFCs are found in the Instruction list.
For detailed information, refer to the STEP 7 Online Help , or to the System and Standard
Functions Reference Manual.
• on communication are found in the Communication with SIMATIC Manual.
Properties
A data area is considered consistent, if the operating system can read/write access the data
area in a continuous block. Data exchanged collectively between the stations should belong
together and originate from a single processing cycle, that is, be consistent. If the user
program contains a programmed communication function, for example, access to shared
data with XSEND/ XRCV, access to that data area can be coordinated by means of the
"BUSY" parameter itself.
Note
Where defined data consistency is required, the length of communication variables in the
CPU's user program may not exceed 64 bytes (CPU 317: 160 bytes.)
What is PROFINET??
Within the framework of Totally Integrated Automation (TIA), PROFINET represents a
consequent enhancement of:
• PROFIBUS DP, the proven field bus, and
• Industrial Ethernet, the communication bus at cell level.
Experience gained from both systems was and is being integrated into PROFINET.
PROFINET is an Ethernet-based automation standard of PROFIBUS International
(previously PROFIBUS Users Organization e.V.), and defines a multi-vendor communication,
automation, and engineering model.
Objectives in PROFINET
The objectives in PROFINET are:
• An open Ethernet standard for automation based on Industrial Ethernet
Industrial Ethernet and standard Ethernet components can be used together, however,
Industrial Ethernet devices are more reliable, and are therefore more suitable for
industrial environments (temperature, immunity to noise etc.)
• Use of TCP/IP and IT standards
• Automation with real-time Ethernet
• Total integration of field bus systems
Implementation of PROFINET by us
We have integrated PROFINET as follows:
• We have chosen PROFINET IO for integrated communication between field devices.
• We integrated communication between PLCs of distributed systems
with PROFINET CBA (Component-Based automation.)
• Installation engineering and network components are available in SIMATIC NET.
• For remote maintenance and network diagnostics, we used the proven IT standards from
the office world (for example, SNMP = Simple Network Management Protocol for network
configuration and diagnostics).
352),1(7
&RPSRQHQW9LHZ ,2'DWD9LHZ
352),1(7&%$ 352),1(7,2
'LVWULEXWHG,QWHOOLJHQFH 'LVWULEXWHG,2
3ODQWZLGH(QJLQHHULQJ 1RUPDO,29LHZLQ67(3
3&' *6'
352),1(7&RPSRQHQW'HVFULSWLRQ *HQHULF6WDWLRQ'HVFULSWLRQ
2QH&DEOH,76WDQGDUGV6WDQGDUG$SSOLFDWLRQV
Further Information
For further information on PROFINET IO and PROFINET CBA, refer to the PROFINET
System Description. Differences between PROFIBUS DP and PROFINET IO and their
common features are described in the From PROFIBUS DP to PROFINET IO Programming
Manual.
For detailed information on PROFINET CBA, refer to the SIMATIC IMAP and Component-
Based Automation documentation.
&RPSDQ\1HWZRUN ,QGXVWULDO(WKHUQHW
5RXWHU
,2 (7
6ZLWFK 'HYLFH 6
6ZLWFK
6ZLWFK
1 3*
2
,2 ,2 (7
&38 &RQWUROOHU
'HYLFH 6
[
31'3 '3
,2
0DVWHU &38 &RQWUROOHU
[
31'3 '3
,(
0DVWHU
,(3%/LQN 3
6 3%
5 4
(7 (7
'36/$9( '36/$9(
352),%86
The graphic displays You can see the connection path in the graphic
The connection of company From PCs in your company network, you can access devices at the field level
network and field level Example:
• PC — Switch 1 — Router — Switch 2 — CPU 31x-2 PN/DP (1).
The connection between the You can, of course, also access other areas in Industrial Ethernet from a PG at the field
automation system and field level.
level Example:
• PG — Switch 3 — Switch 2 — to an IO device of the ET 200S (2).
The IO controller of the CPU At this point, you see the extended IO feature between the IO controller and IO device(s)
31x-2 PN/DP (1) controls on Industrial Ethernet:
devices on Industrial Ethernet • The CPU 31x-2 PN/DP (1) is the IO controller for one of the ET 200S (2) IO devices.
and on PROFIBUS directly
• The CPU 31x-2 PN/DP (1) is also the IO controller for the ET 200 (DP slave) (5) via
the IE/PB Link (6).
A CPU can be both IO Here, you can see that a CPU can be both IO controller for an IO device as well as
controller and DP master DP master for a DP slave:
• The CPU 31x-2 PN/DP (3) is the IO controller for the other ET 200S (2) IO device.
CPU 31x-2 PN/DP (3) — Switch 3 — Switch 2 — ET 200S (2)
• The CPU 31x-2 PN/DP (3) is the DP master for a DP slave (4). The DP slave (4) is
assigned locally to the CPU (3) and is not visible on Industrial Ethernet.
Requirements
• CPUs as of Firmware 2.3.0 (for example CPU 315-2 PN/DP)
• STEP 7, as of Version 5.3 + Service Pack 1
Reference
You will find information on the topic of PROFINET in the following sources:
• in the System Description PROFINET
• in the From PROFIBUS DP to PROFINET IO programming manual. This manual also
lists the new PROFINET blocks and system status lists.
See also
PROFINET (PN) (Page 3-3)
Chapter Content
This chapter explains the following:
• Which blocks are intended for PROFINET
• Which blocks are intended for PROFIBUS DP
• Which blocks are intended for both PROFINET IO and PROFIBUS DP
Table 3-6 New System Standard Functions of PROFINET IO and PROFIBUS DP and Those That
Must Be Replaced
The following table provides you with an overview of the system and standard functions for
SIMATIC, whose functionality must be implemented by other functions when converting from
PROFIBUS DP to PROFINET IO.
Table 3-7 System and Standard Functions in PROFIBUS DP that must be Implemented with
Different Functions in PROFINET IO
Detailed Information
For detailed descriptions of the individual blocks, refer to the manual System Software for
S7-300/400 System and Standard Functions.
Chapter Content
This chapter explains the following:
• Which SSLs are intended for PROFINET
• Which SSLs are intended for PROFIBUS DP
• Which SSLs are intended for both PROFINET IO and PROFIBUS DP
Table 3-9 Comparison of the System Status Lists of PROFINET and PROFIBUS
Detailed Information
For detailed descriptions of the individual system status lists, refer to the manual System
Software for S7-300/400 System and Standard Functions.
Requirements
• CPU 31x-2 PN/DP with firmware version 2.2.0 or higher:
• STEP 7 V5.3 + Servicepack 1 or higher
Functionality
CPUs with Firmware V2.3.0 or higher and integrated PROFINET interface support the open
communication functionality via Industrial Ethernet (in short: open IE communication)
Open IE communication is always handled directly via TCP/IP.
Data exchange
Bidirectional data exchange is enabled after you established communication, that is, data
can be transmitted and received in parallel. FBs available for data exchange:
Disconnecting
FB 66 "TDISCON" disconnects the CPU from a communication partner.
Communication interruptions
Events causing interruptions of communication:
• You program the cancellation of connections at FB 66 "TDISCON."
• The CPU goes from RUN to STOP.
• At POWER OFF / POWER ON
Reference
For detailed information on the blocks described earlier, refer to the STEP 7 Online Help.
Availability
The SNMP communication service is available for CPUs with integrated PROFINET
interface and Firmware 2.3.0 or higher.
Properties
SNMP (Simple Network Management Protocol) is a standard protocol for TCP/IP networks.
Reference
For further information on the SNMP communication service and diagnostics with SNMP,
refer to the PROFINET System Description.
3.3 S7 connections
Note
Global data communication, PtP communication, communication with TCP/IP and SNMP do
not require S7 connections.
Every communication link requires S7 connection resources on the CPU for the entire
duration of this connection.
Thus, every S7 CPU provides a specific number of S7 connection resources. These are
used by various communication services (PG/OP communication, S7 communication or
S7 basic communication).
Connection points
An S7 connection between modules with communication capability is established between
connection points. The S7 connection always has two connection points: The active and
passive connection points:
• The active connection point is assigned to the module that establishes the S7 connection.
• The passive connection point is assigned to the module that accepts the S7 connection.
Any module that is capable of communication can thus act as an S7 connection point. At the
connection point, the established communication link always uses one S7 connection of the
module concerned.
Transition point
If you use the routing functionality, the S7 connection between two modules capable of
communication is established across a number of subnets. These subnets are
interconnected via a network transition. The module that implements this network transition
is known as a router. The router is thus the point through which an S7 connection passes.
Any CPU with a DP or PN interface can be the router for an S7 connection. You can
establish a certain maximum number of routing connections. This does not limit the data
volume of the S7 connections.
See also
Connection resources for routing (Page 3-31)
Example
If there is only one free S7 connection left on the CPU, you can still connect a PG to the bus.
The PG can then communicate with the CPU. The S7 connection is only used, however,
when the PG is communicating with the CPU. If you connect an OP to the bus while the PG
is not communicating, the OP can establish a connection to the CPU. Since an OP maintains
its communication link at all times, in contrast to the PG, you cannot subsequently establish
another connection via the PG.
See also
Open communication via Industrial Ethernet (Page 3-24)
Note
When using a CPU 315-2 PN/DP, you can configure up to 14 connection resources for
S7 communication in NetPro: These connections are then reserved. When using a
CPU 317-2 PN/DP, you can configure up to 16 connection resources for S7 communication
in NetPro.
3.4 DPV1
New automation and process engineering tasks require the range of functions performed by
the existing DP protocol to be extended. In addition to cyclical communication functions,
acyclical access to non-S7 field devices is another important requirement of our customers,
and was implemented in the standard EN 50170. In the past, acyclical access was only
possible with S7 slaves. The distributed I/O standard EN 50170 has been further developed.
All the changes concerning new DPV1 functions are included in IEC 61158/ EN 50170,
volume 2, PROFIBUS.
Definition DPV1
The term DPV1 is defined as a functional extension of the acyclical services (to include new
interrupts, for example) provided by the DP protocol.
Availability
All CPUs with DP interface(s) and serving as DP masters feature the enhanced DPV1
functionality.
Note
If you want to use the CPU as an intelligent slave, remember that it does not have DPV1
functionality.
OB Functionality
OB 40 Process interrupt
OB 55 Status interrupt
OB 56 Update interrupt
OB 57 Vendor-specific interrupt
OB 82 Diagnostic interrupt
Note
You can now also use organizational blocks OB40 and OB82 for DPV1 interrupts.
SFB Functionality
SFB 52 Read data record from DP slave or centralized module
SFB 53 Write data record to DP slave or centralized module
SFB 54 Read additional alarm information from a DP slave or a centralized module in the
relevant OB.
SFB 75 Set any interrupts for intelligent slaves
Note
You can also use SFB 52 to SFB 54 for centralized I/O modules. SFBs 52 to 54 can also be
used for PN IO.
Reference
For further information on the blocks mentioned earlier, refer to the reference manual
System Software for S7-300/400: System and Standard Software, or directly to the
STEP 7 Online Help.
See also
PROFIBUS DP (Page 3-2)
System memory
Working memory
Load memory
The load memory is located on a Micro Memory Card (MMC). The size of the load memory
corresponds exactly to the size of the MMC. It is used to store code blocks, data blocks and
system data (configuration, connections, module parameters, etc.). Blocks that are identified
as non runtime-related are stored exclusively in load memory. You can also store all the
configuration data for your project on the MMC.
Note
User programs can only be downloaded and thus the CPU can only be used if the MMC is
inserted in the CPU.
System memory
The RAM system memory is integrated in the CPU and cannot be expanded.
It contains
• the address areas for address area memory bits, timers and counters
• the process image of the I/Os
• local data
RAM
The RAM is integrated in the CPU and cannot be extended. It is used to run the code and
process user program data. Programs only run in RAM and system memory.
See also
Properties of the Micro Memory Card (MMC) (Page 4-9)
Table 4-2 Retentive behavior of memory objects (applies to all CPUs with DP/MPI-SS
(31x-2 PN/DP)
Table 4-3 Retentive behavior of DBs for CPUs with firmware >= V2.1.0
Note
Note that only 256 KB of RAM can be used for retentive data blocks on a CPU 317. The
remainder of the RAM is used by code blocks and non-retentive data blocks.
Reference
The address areas of your CPU are listed in the Instruction list for CPUs 31xC and 31x.
Cycle time
Reading the inputs from the modules
PII and refreshing the data in the process
image of the inputs.
CCP (OS)
Note
Currently, the dynamic setting of the process image only affects its update at the scan cycle
control point. That is, the process image of inputs is only updated up to the set PII size with
the corresponding values of the peripheral input modules existing within this address area,
or the values of the process image of outputs up to the set PIO size are written to the
peripheral output modules existing within this address area.
This set size of the process image is ignored with respect to STEP 7 commands used to
access the process image (for example U I100.0, L EW200, = Q20.0, T AD150, or
corresponding indirect addressing commands also). However, up to the maximum size of the
process image (that is, up to I/O byte 2047), these commands do not return any
synchronous access errors, but rather access the permanently available internal memory
area of the process image.
The same applies to the use of actual parameters of block calls from the I/O area (area of
the process image).
Particularly if these process image limits were changed, you should check to which extent
your user program accesses the process image in the area between the set and the
maximum process image size. If access to this area continues, the user program may not
detect changes at the inputs of the I/O module, or actually fails to write the data of outputs to
the output module, without the system generating an error message.
You should also note that certain CPs may only be addressed outside of the process image.
Local data
Local data store:
• the temporary variables of code blocks
• the start information of the OBs
• transfer parameters
• intermediate results
Temporary Variables
When you create blocks, you can declare temporary variables (TEMP) which are only
available during block execution and then overwritten again. These local data have fixed
length in each OB. Local data must be initialized prior to the first read access. Each OB also
requires 20 bytes of local data for its start information. Local data access is faster compared
to access to data in DBs.
The CPU is equipped with memory for storing temporary variables (local data) of currently
executed blocks. The size of this memory area depends on the CPU. It is distributed in
partitions of equal size to the priority classes. Each priority class has its own local data area.
Caution
All temporary variables (TEMP) of an OB and its nested blocks are stored in local data.
When using complex nesting levels for block processing, you may cause an overflow in the
local data area.
The CPUs will change to STOP mode if you exceed the permissible length of local data for a
priority class.
Make allowances for local data space required for synchronous error OBs. This is assigned
to the respective triggering priority class.
See also
Retentivity of the load memory, system memory and RAM (Page 4-2)
Note
The CPU requires the MMC for operation.
Note
You can either store user and configuration data or the operating system on the MMC.
Properties of an MMC
The MMC ensures maintenance-free and retentive operation of these CPUs.
Caution
Data on a SIMATIC Micro Memory Card can be corrupted if you remove the card while it is
being accessed by a write operation. In this case, you may have to delete the MMC on your
PG, or format the card in the CPU. Never remove an MMC in RUN mode. Always remove it
when power is off, or when the CPU is in STOP state, and when the PG is not a writing to
the card. When the CPU is in STOP mode and you cannot not determine whether or not a
PG is writing to the card (e.g. load/delete block), disconnect the communication lines.
Reference
• SSL partial list in the instruction list, or
• in the manual System and Standard Functions.Information on CPU memory reset:
Operating instructions CPU 31xC and CPU31x, Commissioning, Commissioning
Modules, CPU Memory Reset by means of Mode Selector Switch
Caution
To prevent loss of data, always make sure that you do not exceed the maximum number of
delete/write operations.
See also
Operating and display elements: CPU 31xC (Page 2-1)
Operating and display elements: CPU 312, 314, 315-2 DP: (Page 2-5)
Operating and display elements: CPU 317-2 DP (Page 2-7)
Operating and display elements: CPU 31x-2 PN/DP (Page 2-9)
Memory functions
Memory functions are used to generate, modify or delete entire user programs or specific
blocks. You can also ensure that your project data are retained by archiving these. If there
is... You created a new user program, use a PG/ PC to download the complete program to
MMC.
4.2.2 Loading user program from Micro Memory Card (MMC) to the CPU
CPU
PG
MMC
Comments
Symbols
* If not alI of the work memory area is retentive, its retentive area is indicated in the STEP 7
module status as retentive memory (same as on CPU 317). You cannot run the program
until all the blocks are downloaded.
Note
This function is only permitted when the CPU is in STOP mode. Load memory is cleared if
the load operation could not be completed due to power loss or illegal block data.
Warning
The delta download of blocks / user programs overwrites all data stored under the same
name on the MMC.
The data of dynamic blocks are transferred to RAM and activated after the block is
downloaded.
Uploading blocks
Other than download operations, an upload operation is the transfer of specific blocks or a
user program from the CPU to the PG/PC. The block content is here identical with that of the
last download to the CPU. Dynamic DBs form the exception, because their actual values are
transferred. An upload of blocks or of the user program from the CPU in STEP 7 does not
influence CPU memory.
Deleting blocks
When you delete a block, it is deleted from load memory. In STEP 7, you can also delete
blocks with the user program (DBs also with SFC 23 "DEL_DB"). RAM used by this block is
released.
Compressing blocks
When data are compressed, gaps which have developed between memory objects in load
memory/RAM as a result of load/delete operations will be eliminated. This releases free
memory in a continuous block. Data compression is possible when the CPU is in RUN or in
STOP.
Note
This function is only permitted when the CPU is in STOP mode. Load memory is cleared if
the function could not be completed due to power loss.
Reference
Also refer to CPU memory reset by means mode selector switch in the section
Commissioning in the CPU 31xC and CPU 31x Operating Instructions.
4.2.5 Recipes
Introduction
A recipe represents a collection of user data. You can implement a simple recipe concept
using static DBs. In this case, the recipes should have the same structure (length). One DB
should exist per recipe.
Processing sequence
Recipe is written to load memory:
• The various data records of recipes are created as static DBs in STEP 7 and then
downloaded to the CPU. Therefore, recipes only use load memory, rather than RAM.
Working with recipe data:
• SFC83 "READ_DBL" is called in the user program to copy the data record of a current
recipe from the DB in load memory to a static DB that is located in work memory. As a
result, the RAM only has to accommodate the data of one record. The user program can
now access data of the current recipe. The figure below shows how to handle recipe
data:
Loading memory
(MMC)
Working memory
(CPU)
Recipe 1 SFC 83 READ_DBL
Current
Recipe 2 recipe
: SFC 84 WRIT_DBL
Recipe n
Note
Active system functions SFC82 to 84 (active access to the MMC) have a distinct
influence on PG functions (for example, block status, variable status, download block,
upload, open). This typically reduces performance (compared to passive system
functions) by the factor 10.
Note
As a precaution against loss of data, always make sure that you do not exceed the
maximum number of delete/write operations. Also refer to the SIMATIC Micro Memory
Card (MMC) section in the "Structure and Communication Connections of a CPU"
chapter.
Caution
Data on a SIMATIC Micro Memory Card can be corrupted if you remove the card while it
is being accessed by a write operation. In this case, you may have to delete the MMC on
your PG, or format the card in the CPU. Never remove an MMC in RUN mode. Always
remove it when power is off, or when the CPU is in STOP state, and when the PG is not
a writing to the card. When the CPU is in STOP mode and you cannot not determine
whether or not a PG is writing to the card (e.g. load/delete block), disconnect the
communication lines.
Introduction
Measured values are generated when the CPU executes the user program. These values
are to be logged and analyzed.
Processing sequence
Acquisition of measured values:
• The CPU writes all measured values to a DB (for alternating backup mode in several
DBs) which is located in RAM.
Measured value logging:
• Before the data volume can exceed work memory capacity, you should call
SFC 84 "WRIT_DBL" in the user program to swap measured values from the DB to load
memory. The figure below shows how to handle measured value log files:
Loading memory
(MMC)
Working memory
Measured values 1 SFC 82 CREA_DBL (CPU)
Measured values n
• You can call SFC 82 "CREA_DBL" in the user program to generate new (additional) static
DBs in load memory which do not require RAM space.
Reference
For detailed information on SFC 82, refer to the System Software for S7-300/400, System
and Standard Functions Reference Manual, or directly to the STEP 7 Online Help.
Note
SFC 82 is terminated and an error message is generated if a DB already exists under the
same number in load memory and/or RAM.
The data written to load memory are portable and retentive on CPU memory reset.
Evaluation of measured values:
• Measured value DBs saved to load memory can be uploaded and evaluated by other
communication partners (PG, PC, for example).
Note
The active system functions SFC 82 to 84 (current access to the MMC) have a distinct
influence on PG functions (block status, variable status, load block, upload, open, for
example). This typically reduces performance (compared to passive system functions) by
the factor 10.
Note
For CPUs with firmware V2.1.0 or higher, you can also generate non-retentive DBs using
SFC 82 (parameter ATTRIB -> NON_RETAIN bit.)
Note
As a precaution against loss of data, always make sure that you do not exceed the
maximum number of delete/write operations. For further information, refer to the
Technical Data of the Micro Memory Card (MMC) in the General Technical Data of your
CPU.
Caution
Data on a SIMATIC Micro Memory Card can be corrupted if you remove the card while it
is being accessed by a write operation. In this case, you may have to delete the MMC on
your PG, or format the card in the CPU. Never remove an MMC in RUN mode. Always
remove it when power is off, or when the CPU is in STOP state, and when the PG is not
a writing to the card. When the CPU is in STOP mode and you cannot not determine
whether or not a PG is writing to the card (e.g. load/delete block), disconnect the
communication lines.
Function principle
Using the Save project to Memory Card and Fetch project from Memory Card functions, you
can save all project data to a SIMATIC Micro Memory Card, and retrieve these at a later
time. For this operation, the SIMATIC Micro Memory Card can be located in a CPU or in the
MMC adapter of a PG or PC.
Project data are compressed before they are saved to a SIMATIC Micro Memory Card, and
uncompressed when fetched.
Note
In addition to project data, you may also have to store your user data on the MMC. You
should therefore first verify MMC memory space.
A message warns you if the memory capacity on your MMC is insufficient.
The volume of project data to be saved corresponds with the size of the project's archive file.
Note
For technical reasons, you can only transfer the entire contents (user program and project
data) using the Save project to memory card action.
Overview
This section contains detailed information about the following topics:
• Cycle time
• Reaction time
• Interrupt response time
• Sample calculations
5.2.1 Overview
Introduction
This section explains what we mean by the term "cycle time", what it consists of, and how
you can calculate it.
Process image
During cyclic program processing, the CPU requires a consistent image of the process
signals. To ensure this, the process signals are read/written prior to program execution.
Subsequently, the CPU does not address input (I) and output (Q) address areas directly at
the signal modules, but rather accesses the system memory area containing the I/O process
image.
Step Sequence
1 The operating system initiates cycle time monitoring.
2 The CPU copies the values of the process image of outputs to the output modules.
3 The CPU reads the status at the inputs of the input modules and then updates the
process image of inputs.
4 The CPU processes the user program in time shares and executes program instructions.
5 At the end of a cycle, the operating system executes queued tasks, for example, loading
and deleting blocks.
6 The CPU then returns to the start of the cycle, and restarts cycle time monitoring.
Cycle time
4
In contrast to S7-400 CPUs, the S7-300 CPUs data only allow data access from an OP / TP
(monitor and modify functions) at the scan cycle check point (Data consistency, see the
Technical Data). Processing of the user program is not interrupted by the monitor and modify
functions.
Introduction
The cycle time is derived from the sum of the following influencing factors.
Table 5-2 Formula for calculating the process image (PI) transfer time
Table 5-3 CPU 31xC: Data for calculating the process image (PI) transfer time
Table 5-4 CPU 31x: Data for calculating the process image (PI) transfer time
Const. Portions CPU 312 CPU 314 CPU 315 CPU 317
K Base load 150 μs 100 μs 100 μs 50 μs
A per byte in module 37 μs 35 μs 37 μs 15 μs
rack 0
B per byte in module - 43 μs 47 μs 25 μs
racks 1 to 3 *
D per WORD in the DP - - 1 μs 1 μs
(DP only) area for the integrated
DP interface
P per WORD in the - - 46 μs 46 μs
(PROFINET PROFINET area for
only) the integrated
PROFINET interface
* + 60 μs per rack
* + 60 μs per rack
CPU Factor
312C 1,06
313C 1,10
313C-2DP 1,10
313C-PtP 1,06
314C-2DP 1,10
314C-2PtP 1,09
312 1,06
314 1,10
315 1,10
317 1,07
Table 5-6 Operating system processing time at the scan cycle checkpoint
Overview
The cycle time (Tcyc) length is not the same in every cycle. The figure below shows different
cycle times Tcyc1 and Tcyc2. Tcyc2 is longer than Tcyc1, because the cyclically executed OB1 is
interrupted by a time-of-day interrupt OB (here: OB 10).
OB10
Interruption
of user program
Cycle time
30 ms
The communication load can
be defined in this area.
25 ms
20 ms
15 ms
10 ms
5 ms
0% 5 % 10 % 20 % 30 % 40 % 50 % 60 %
Communication load
Note
Change the value of the "communication load" parameter to check the effects on the cycle
time at system runtime. You must consider the communication load when you set the
maximum cycle time, otherwise timing errors may occur.
Tips
• Use the default setting wherever possible.
• Increase this value only if the CPU is used primarily for communications and if the user
program is not time critical.
• In all other situations you should only reduce this value.
Runtimes
The runtimes of the testing and commissioning functions are operating system runtimes, so
they are the same for every CPU. Initially, there is no difference between process mode and
testing mode. How the cycle time is extended as a result of active testing and commissioning
functions is shown in the table below.
Table 5-9 Cycle time extension as a result of testing and commissioning functions
Reference
Information about SFC 112 to 114 is available in the STEP 7 Online Help.
Note
The use of CBA with cyclical PROFINET interconnections requires the use of switches to
maintain the performance data. 100-Mbit full-duplex operation is mandatory with cyclical
PROFINET interconnections.
The following graphic shows the configuration that was used for the measurements.
HMI/OPC
Industrial Ethernet
Number of observed
interconnections
in SIMATIC iMAP PROFINET PROFINET
or OPC: 200 remote ... remote Quantity: 32
node 1 node 32
PROFIBUS
Cycle time in ms
14
OB1 cycle with 32 remote
12 PROFINET partners
10
OB1 cycle with 5 remote
8 PROFINET partners
0
0 32 64 96 128 160 200
Number of interconnections
5.3.1 Overview
Fluctuation width
The physical response time lies between the shortest and the longest response time. You
must always reckon with the longest response time when configuring your system.
The shortest and longest response times are shown below, to give you an idea of the
fluctuation width of the response time.
Factors
The response time depends on the cycle time and following factors:
• Delay of the inputs and outputs of signal modules or integrated I/O.
• Additional update times for PROFINET IO
• additional DP cycle times on PROFIBUS DP
• Execution in the user program
Reference
• The delay times are located in the specifications of the signal modules
(Module data Reference Manual).
Bus runtime
17 ms
7 ms
5 ms
4 ms
3 ms
2 ms
Transmission rate 12 MBit/s
1 ms
Minimum
slave interval Number of DP slaves;
maximum number is
1 2 4 8 16 32 64 dependent on CPU
With multi-master operation on a PROFIBUS-DP network, you must make allowances for the
DP cycle time at each master. That is, you will have to calculate the times for each master
separately and then add up the results.
CCP (OS)
Delay of inputs
PIO
Immediately before reading in the PII, the status of
the monitored input changes. This change of the input
PII signal is still included in the PII.
Response time
User program
The change of the input signal is processed by
the application program.
CCP (OS)
Delay of outputs
Calculation
The (shortest) response time is the sum of:
See also
Overview (Page 5-14)
CCP (OS)
Delay of inputs +
2 x DP cycle time at PROFIBUS DP
PIO
While reading in the PII, the status of the monitored
PII input changes. This change of the input signal is not
included in the PII any longer.
CCP (OS)
Response time
PIO
Delay of outputs +
2 x DP cycle time at PROFIBUS DP
Calculation
The (longest) response time is the sum of:
See also
Overview (Page 5-14)
Note
You can also achieve fast response times by using process interrupts.
See also
Shortest response time (Page 5-16)
Longest response time (Page 5-17)
Introduction
This section gives you an overview of how to calculate the cycle/response time.
Cycle time
1. Determine the user program runtime with the help of the Instruction list.
2. Multiply the calculated value by the CPU-specific factor from the table Extension of user
program processing time.
3. Calculate and add the process image transfer time. Corresponding guide values are
found in table Data for calculating process image transfer time.
4. Add the processing time at the scan cycle checkpoint. Corresponding guide values are
found in the table Operating system processing time at the scan cycle checkpoint.
5. Include the extensions as a result of testing and commissioning functions as well as
cyclical PROFINET interconnections in your calculation. These values are found in the
table Cycle time extension due to testing and commissioning functions. The final result is
the cycle time.
See also
Cycle extension through component-based automation (CBA) (Page 5-11)
Response time
See also
Longest response time (Page 5-17)
Shortest response time (Page 5-16)
Calculating the cycle time (Page 5-5)
Cycle extension through component-based automation (CBA) (Page 5-11)
5.5.1 Overview
Calculation
The formula below show how you can calculate the minimum and maximum interrupt
response times.
Signal modules
The process interrupt response time of signal modules is determined by the following factors:
• Digital input modules
Process interrupt response time = internal interrupt preparation time + input delay
You will find these times in the data sheet for the respective digital input module.
• Analog input modules
Process interrupt response time = internal interrupt preparation time + input delay
The internal interrupt preparation time for analog input modules can be neglected. The
conversion times can be found in the data sheet for the individual analog input modules.
The diagnostic interrupt response time of signal modules is equivalent to the period that
expires between the time a signal module detects a diagnostic event and the time this signal
module triggers the diagnostic interrupt. This short time can be neglected.
See also
Overview (Page 5-1)
Definition of "Reproducibility"
Delay interrupt:
The period that expires between the call of the first instruction in the interrupt OB and the
programmed time of interrupt.
Watchdog interrupt:
The fluctuation width of the interval between two successive calls, measured between the
respective initial instructions of the interrupt OBs.
Reproducibility
The following times apply for the CPUs described in this manual:
• Delay interrupt: +/- 200 μs
• Watchdog interrupt: +/- 200 μs
These times only apply if the interrupt can actually be executed at this time and if not
interrupted, for example, by higher-priority interrupts or queued interrupts of equal priority.
Installation
You have configured an S7300 and equipped it with following modules in rack "0":
• a CPU 314C-2
• 2 digital input modules SM 321; DI 32 x 24 VDC (4 bytes each in the PI)
• 2 digital output modules SM 322; DO 32 x 24 VDC/0.5 A (4 bytes each in the PI)
User program
According to the Instruction List, the user program runtime is 5 ms. There is no active
communication.
Installation
You have configured an S7300 and equipped it with the following modules in two racks:
• a CPU 314C-2
Configuring the cycle load as a result of communication: 40 %
• 4 digital input modules SM 321; DI 32 x 24 VDC (4 bytes each in the PI)
• 3 digital output modules SM 322; DO 16 x 24 VDC/0.5 A (2 bytes each in the PI)
• 2 analog input modules SM 331; AI 8 x 12-bit (not in the PI)
• 2 analog output modules SM 332; AO 4 x 12 bit (not in the PI)
User program
According to the instruction list, the user program runtime is 10.0 ms.
Installation
You have assembled an S7-300, consisting of one CPU 314C-2 and four digital modules in
the CPU rack. One of the digital input modules is an SM 321; DI 16 x 24 VDC; with
process/diagnostic interrupt function.
You have enabled only the process interrupt in your CPU and SM parameter configuration.
You decided not to use time-controlled processing, diagnostics or error handling. You have
configured a 20% communication load on the cycle.
You have configured a delay of 0.5 ms for the inputs of the DI module.
No activities are required at the scan cycle checkpoint.
Calculation
In this example, the process interrupt response time is based on following time factors:
• Process interrupt response time of CPU 314C-2: approx. 0,7 ms
• Extension by communication according to the formula:
200 μs + 1000 μs x 20 % = 400 μs = 0.4 ms
• Process interrupt response time of SM 321; DI 16 x 24 VDC:
– Internal interrupt preparation time: 0.25 ms
– Input delay: 0.5 ms
• Neither PROFIBUS DP, nor PROFINET IO are being used, so you do not have to make
allowances for any DP cycle times on PROFIBUS DP or for PROFINET IO update times.
The process interrupt response time is equivalent to the sum of the listed time factors:
Process interrupt response time = 0.7 ms + 0.4 ms + 0.25 ms + 0.5 ms = approx. 1.85 ms.
This calculated process interrupt response time expires between the time a signal is
received at the digital input and the call of the first instruction in OB40.
Width of CPU
CPU Width
CPU 312C 80 mm
CPU 313C 120 mm
CPU 313C-2 PtP 120 mm
CPU 313C-2 DP 120 mm
CPU 314C-2 PtP 120 mm
CPU 314C-2 DP 120 mm
Technical data
Technical data
CPU and version
Order number 6ES7 312-5BD01-0AB0
• Hardware version 01
• Firmware version V2.0
• Associated programming package STEP 7 as of V 5.2 + SP 1
(please use previous CPU for STEP 7 V 5.1 +
SP 3 or later)
Memory
RAM
• Integrated 16 KB
• Expandable No
Load memory Plugged in with MMC (max. 4 MB)
Data storage life on the MMC At least 10 years
(following final programming)
Buffering Guaranteed by MMC (maintenance-free)
Execution times
Processing times of
• Bit operations Min. 0.2 μs
• Word instructions Min. 0.4 μs
• Fixed-point arithmetic Min. 5 μs
• Floating-point arithmetic Min. 6 μs
Timers/counters and their retentivity
S7 counters 128
• Retentive memory Configurable
• Default from C0 to C7
• Counting range 0 to 999
IEC Counters Yes
• Type SFB
• Number unlimited (limited only by RAM size)
S7 timers 128
• Retentive memory Configurable
• Default Not retentive
• Timer range 10 ms to 9990 s
Technical data
IEC Timers Yes
• Type SFB
• Number unlimited (limited only by RAM size)
Data areas and their retentivity
Flag bits 128 bytes
• Retentive memory Configurable
• Default retentivity MB0 to MB15
Clock flag bits 8 (1 byte per flag bit)
Data blocks Max. 511
(DB 1 to DB 511)
• Length max. 16 KB
Local data per priority class max. 256 bytes
Blocks
Total 1024 (DBs, FCs, FBs)
The maximum number of blocks that can be
loaded may be reduced if you are using another
MMC.
OBs see the Instruction List
• Length max. 16 KB
Nesting depth
• Per priority class 8
• additional within an error OB 4
FBs Max. 512
(FB 0 to FB 511)
• Length max. 16 KB
FCs Max. 512
(FC 0 to FC 511)
• Length max. 16 KB
Address areas (I/O)
Total I/O address area max. 1024 bytes/1024 bytes
(can be freely addressed)
I/O process image 128 bytes/128 bytes
Digital channels Max. 256
• of those local Max. 256
• Integrated channels 10 DI / 6 DO
Analog channels Max. 64
• of those local Max. 64
• Integrated channels None
Technical data
Assembly
Racks Max. 1
Modules per rack Max. 8
Number of DP masters
• Integrated None
• Via CP Max. 1
Number of function modules and communication
processors you can operate
• FM Max. 8
• CP (PtP) Max. 8
• CP (LAN) Max. 4
Time-of-day
Real-time clock Yes (SW clock)
• Buffered No
• Accuracy Deviation per day < 10 s
• Behavior of the realtime clock after POWER The clock keeps running, continuing at the time-
OFF of-day it had when power was switched off.
Operating hours counter 1
• Number 0
• Value range 2 31 hours
(if SFC 101 is used)
• Granularity 1 hour
• Retentive Yes; must be manually restarted after every
restart
Clock synchronization Yes
• In the PLC Master
• On MPI Master/slave
S7 signaling functions
Number of stations that can be logged on for max. 6
signaling functions (depends on the number of connections
configured for PG / OP and S7 basic
communication)
Process diagnostics messages Yes
• Simultaneously enabled interrupt S blocks Max. 20
Testing and commissioning functions
Status/control variables Yes
• Variables Inputs, outputs, memory bits, DBs, timers,
counters
• Number of variables Max. 30
– Of those as status variable Max. 30
– Of those as control variable Max. 14
Forcing Yes
• Variables Inputs, outputs
• Number of variables Max. 10
Technical data
Block status Yes
Single step Yes
Breakpoints 2
Diagnostic buffer Yes
• Number of entries (not configurable) Max. 100
Communication functions
PG/OP communication Yes
Global data communication Yes
• Number of GD circuits 4
• Number of GD packets Max. 4
– Sending stations Max. 4
– Receiving stations Max. 4
• Length of GD packets max. 22 bytes
– Consistent data 22 bytes
S7 basic communication Yes
• User data per request max. 76 bytes
• Consistent data 76 bytes (for X_SEND or X_RCV)
64 bytes (for X_PUT or X_GET as the server)
S7 communication
• As server Yes
• User data per request max. 180 bytes (with PUT/GET)
– Consistent data 64 bytes
S5-compatible communication Yes (via CP and loadable FCs)
Number of connections Max. 6
can be used for
• PG communication Max. 5
– Reserved (default) 1
– Configurable from 1 to 5
• OP communication Max. 5
– Reserved (default) 1
– Configurable from 1 to 5
• S7-based communication Max. 2
– Reserved (default) 2
– Configurable from 0 to 2
Routing No
Interfaces
1st interface
Type of interface Integrated RS485 interface
Physics RS 485
electrically isolated No
Interface power supply Max. 200 mA
(15 to 30 VDC)
Technical data
Functionality
• MPI Yes
• PROFIBUS DP No
• Point-to-point communication No
MPI
Services
• PG/OP communication Yes
• Routing No
• Global data communication Yes
• S7 basic communication Yes
• S7 communication
– As server Yes
– As client No
• Transmission rates max. 187.5 kbps
Programming
Programming language LAD/FBD/STL
Available instructions see the Instruction List
Nesting levels 8
System functions (SFCs) see the Instruction List
System function blocks (SFBs) see the Instruction List
User program security Yes
Integrated I/O
• Default addresses of the integrated
– Digital inputs 124.0 to 125.1
– Digital outputs 124.0 to 124.5
Integrated functions
Counters 2 channels (see the Manual Technological
Functions)
Frequency counters 2 channels, max. 10 kHz (see the Manual
Technological Functions)
Pulse outputs 2 channels for pulse width modulation, max.
2.5 kHz (see the Manual Technological
Functions)
Controlled positioning No
Integrated "Controlling" SFB No
Dimensions
Mounting dimensions W x H x D (mm) 80 x 125 x 130
Weight 409 g
Voltages and currents
Power supply (rated value) 24 VDC
• Permitted range 20.4 V to 28.8 V
Current consumption (no-load operation) Typically 60 mA
Inrush current Typically 11 A
Power consumption (nominal value) 500 mA
Technical data
I2t 0.7 A2s
External fusing of power supply lines LS switch Type C min. 2 A,
(recommended) LS switch Type B min. 4 A
Power loss Typically 6 W
Reference
In Chapter Specifications of the integrated I/O you can find
• the specifications of integrated I/Os under Digital inputs of CPUs 31xC and Digital outputs
of CPUs 31xC.
• the block diagrams of the integrated I/Os under Arrangement and usage of integrated
I/Os.
Technical data
Technical data
CPU and version
Order number 6ES7 313-5BE01-0AB0
• Hardware version 01
• Firmware version V2.0.0
• Associated programming package STEP 7 as of V 5.2 + SP 1
(please use previous CPU for STEP 7 V 5.1 +
SP 3 or later)
Memory
RAM
• Integrated 32 KB
• Expandable No
Load memory Plugged in with MMC (max. 8 MB)
Data storage life on the MMC At least 10 years
(following final programming)
Buffering Guaranteed by MMC (maintenance-free)
Execution times
Processing times of
• Bit operations min. 0.1 μs
• Word instructions min. 0.2 μs
• Fixed-point arithmetic min. 2 μs
• Floating-point arithmetic min. 6 μs
Technical data
Timers/counters and their retentivity
S7 counters 256
• Retentive memory Configurable
• Default from C0 to C7
• Counting range 0 to 999
IEC Counters Yes
• Type SFB
• Number unlimited (limited only by RAM size)
S7 timers 256
• Retentive memory Configurable
• Default Not retentive
• Timer range 10 ms to 9990 s
IEC Timers Yes
• Type SFB
• Number unlimited (limited only by RAM size)
Data areas and their retentivity
Flag bits 256 bytes
• Retentive memory Configurable
• Default retentivity MB0 to MB15
Clock flag bits 8 (1 byte per flag bit)
Data blocks Max. 511
(DB 1 to DB 511)
• Length max. 16 KB
Local data per priority class max. 510 bytes
Blocks
Total 1024 (DBs, FCs, FBs)
The maximum number of blocks that can be
loaded may be reduced if you are using another
MMC.
OBs see the Instruction List
• Length max. 16 KB
Nesting depth
• Per priority class 8
• additional within an error OB 4
FBs Max. 512
(FB 0 to FB 511)
• Length max. 16 KB
FCs Max. 512
(FC 0 to FC 511)
• Length max. 16 KB
Technical data
Address areas (I/O)
Total I/O address area max. 1024 bytes/1024 bytes
(can be freely addressed)
I/O process image 128 bytes/128 bytes
Digital channels Max. 1016
• of those local Max. 992
• Integrated channels 24 DI / 16 DO
Analog channels Max. 253
• of those local Max. 248
• Integrated channels 4 + 1 AI / 2 AO
Assembly
Racks Max. 4
Modules per rack max. 8; max. 7 in rack 3
Number of DP masters
• Integrated None
• via CP Max. 2
Number of function modules and communication
processors you can operate
• FM Max. 8
• CP (PtP) Max. 8
• CP (LAN) Max. 6
Time-of-day
Real-time clock Yes (HW clock)
• Buffered Yes
• Buffered period Typically 6 weeks (at an ambient temperature of
40 °C)
• Behavior of the clock on expiration of the The clock keeps running, continuing at the time-
buffered period of-day it had when power was switched off.
• Accuracy Deviation per day < 10 s
Operating hours counter 1
• Number 0
• Value range 2 31 hours
(if SFC 101 is used)
• Granularity 1 hour
• Retentive Yes; must be manually restarted after every
restart
Clock synchronization Yes
• In the PLC Master
• On MPI Master/slave
S7 signaling functions
Number of stations that can be logged on for Max. 8
signaling functions (depends on the number of connections
configured for PG / OP and S7 basic
communication)
Technical data
Process diagnostics messages Yes
• Simultaneously enabled interrupt S blocks Max. 20
Testing and commissioning functions
Status/control variables Yes
• Variables Inputs, outputs, memory bits, DBs, timers,
counters
• Number of variables Max. 30
– of those as status variable Max. 30
– of those as control variable Max. 14
Forcing Yes
• Variables Inputs, outputs
• Number of variables Max. 10
Block status Yes
Single step Yes
Breakpoints 2
Diagnostic buffer Yes
• Number of entries (not configurable) Max. 100
Communication functions
PG/OP communication Yes
Global data communication Yes
• Number of GD circuits 4
• Number of GD packets Max. 4
– Sending stations Max. 4
– Receiving stations Max. 4
• Length of GD packets max. 22 bytes
– Consistent data 22 bytes
S7 basic communication Yes
• User data per request max. 76 bytes
– Consistent data 76 bytes (for X_SEND or X_RCV)
64 bytes (for X_PUT or X_GET as the server)
S7 communication
• As server Yes
• as client Yes (via CP and loadable FBs)
• User data per request max. 180 bytes (with PUT/GET)
– Consistent data 64 bytes
S5-compatible communication Yes (via CP and loadable FCs)
Number of connections Max. 8
Technical data
can be used for
• PG communication Max. 7
– Reserved (default) 1
– Configurable from 1 to 7
• OP communication Max. 7
– Reserved (default) 1
– Configurable from 1 to 7
• S7 basic communication Max. 4
– Reserved (default) 4
– Configurable from 0 to 4
Routing No
Interfaces
1st interface
Type of interface Integrated RS485 interface
Physics RS 485
electrically isolated No
Interface power supply Max. 200 mA
(15 to 30 VDC)
Functionality
• MPI Yes
• PROFIBUS DP No
• PtP communication No
MPI
Services
• PG/OP communication Yes
• Routing No
• Global data communication Yes
• S7 basic communication Yes
• S7 communication
– As server Yes
– As client No (but via CP and loadable FBs)
• Transmission rates max. 187.5 kbps
Programming
Programming language LAD/FBD/STL
Available instructions see the Instruction List
Nesting levels 8
System functions (SFCs) see the Instruction List
System function blocks (SFBs) see the Instruction List
User program security Yes
Technical data
Integrated I/O
• Default addresses of the integrated
– Digital inputs 124.0 to 126.7
– Digital outputs 124.0 to 125.7
– Analog inputs 752 to 761
– Analog outputs 752 to 755
Integrated functions
Counters 3 channels (see the Manual Technological
Functions)
Frequency counters 3 channels, max. 30 kHz (see the Manual
Technological Functions)
Pulse outputs 3 channels for pulse width modulation, max. 2.5
kHz (see the Manual Technological Functions)
Controlled positioning No
Integrated "Controlling" SFB PID controller (see the Manual Technological
Functions)
Dimensions
Mounting dimensions W x H x D (mm) 120 x 125 x 130
Weight 660 g
Voltages and currents
Power supply (rated value) 24 VDC
• Permitted range 20.4 V to 28.8 V
Current consumption (no-load operation) Typically 150 mA
Inrush current Typically 11 A
Power consumption (nominal value) 700 mA
I2t 0.7 A2s
External fusing of power supply lines LS switch Type C min. 2 A,
(recommended) LS switch Type B min. 4 A,
Power loss Typically 14 W
Reference
In Chapter Specifications of the integrated I/O you can find
• the specifications of integrated I/O under Digital inputs of CPUs 31xC, Digital outputs of
CPUs 31xC, Analog inputs of CPUs 31xC and Analog outputs of CPUs 31xC.
• the block diagrams of the integrated I/Os under Arrangement and usage of integrated
I/Os.
Technical data
Table 6-5 Technical data for CPU 313C-2 PtP/ CPU 313C-2 DP
Technical data
CPU 313C-2 PtP CPU 313C-2 DP
CPU and version CPU 313C-2 PtP CPU 313C-2 DP
Order number 6ES7 313-6BE01-0AB0 6ES7 313-6CE01-0AB0
• Hardware version 01 01
• Firmware version V2.0.0 V2.0.0
Associated programming package STEP 7 as of V 5.2 + SP 1 STEP 7 as of V 5.2 + SP 1
(please use previous CPU for STEP7 (please use previous CPU for STEP 7
V 5.1 + SP 3 or later) V 5.1 + SP 3 or later)
Memory CPU 313C-2 PtP CPU 313C-2 DP
RAM
• Integrated 32 KB
• Expandable No
Load memory Plugged in with MMC (max. 8 MB)
Data storage life on the MMC At least 10 years
(following final programming)
Buffering Guaranteed by MMC (maintenance-free)
Execution times CPU 313C-2 PtP CPU 313C-2 DP
Processing times of
• Bit operations min. 0.1 μs
• Word instructions min. 0.2 μs
• Fixed-point arithmetic min. 2 μs
• Floating-point arithmetic min. 6 μs
Timers/counters and their retentivity CPU 313C-2 PtP CPU 313C-2 DP
S7 counters 256
• Retentive memory Configurable
• Default from C0 to C7
• Counting range 0 to 999
IEC Counters Yes
• Type SFB
• Number unlimited (limited only by RAM size)
S7 timers 256
• Retentive memory Configurable
• Default Not retentive
• Timer range 10 ms to 9990 s
IEC Timers Yes
• Type SFB
• Number unlimited (limited only by RAM size)
Technical data
CPU 313C-2 PtP CPU 313C-2 DP
Data areas and their retentivity CPU 313C-2 PtP CPU 313C-2 DP
Flag bits 256 bytes
• Retentive memory Configurable
• Default retentivity MB0 to MB15
Clock flag bits 8 (1 byte per flag bit)
Data blocks Max. 511
(DB 1 to DB 511)
• Length max. 16 KB
Local data per priority class max. 510 bytes
Blocks CPU 313C-2 PtP CPU 313C-2 DP
Total 1024 (DBs, FCs, FBs)
The maximum number of blocks that can be loaded may be reduced if you are
using another MMC.
OBs see the Instruction List
• Length max. 16 KB
Nesting depth
• Per priority class 8
• additional within an error OB 4
FBs Max. 512
(FB 0 to FB 511)
• Length max. 16 KB
FCs Max. 512
(FC 0 to FC 511)
• Length max. 16 KB
Address areas (I/O) CPU 313C-2 PtP CPU 313C-2 DP
Total I/O address area max. 1024 bytes/1024 bytes max. 1024 bytes/1024 bytes
(can be freely addressed) (can be freely addressed)
• Distributed None max. 1008 bytes
I/O process image 128 bytes/128 bytes 128 bytes/128 bytes
Digital channels Max. 1008 Max. 8192
• of those local Max. 992 Max. 992
• Integrated channels 16 DI / 16 DO 16 DI / 16 DO
Analog channels Max. 248 Max. 512
• of those local Max. 248 Max. 248
• Integrated channels None None
Assembly CPU 313C-2 PtP CPU 313C-2 DP
Racks Max. 4
Modules per rack max. 8; max. 7 in rack 3
Number of DP masters
• Integrated No 1
• via CP Max. 1 Max. 1
Technical data
CPU 313C-2 PtP CPU 313C-2 DP
Number of function modules and
communication processors you can
operate
• FM Max. 8
• CP (PtP) Max. 8
• CP (LAN) Max. 6
Time-of-day CPU 313C-2 PtP CPU 313C-2 DP
Real-time clock Yes (HW clock)
• Buffered Yes
• Buffered period Typically 6 weeks (at an ambient temperature of 40 °C)
• Behavior of the clock on expiration of The clock keeps running, continuing at the time-of-day it had when power was
the buffered period switched off.
• Accuracy Deviation per day < 10 s
Operating hours counter 1
• Number 0
• Value range 2 31 hours
(if SFC 101 is used)
• Granularity 1 hour
• Retentive Yes; must be manually restarted after every restart
Clock synchronization Yes
• In the PLC Master
• On MPI Master/slave
S7 signaling functions CPU 313C-2 PtP CPU 313C-2 DP
Number of stations that can log in for Max. 8
signaling functions (e.g. OS) (depends on the number of connections configured for PG / OP and S7 basic
communication)
Process diagnostics messages Yes
• Simultaneously enabled interrupt S Max. 20
blocks
Testing and commissioning functions CPU 313C-2 PtP CPU 313C-2 DP
Status/control variables Yes
• Variables Inputs, outputs, memory bits, DBs, timers, counters
• Number of variables Max. 30
– Of those as status variable Max. 30
– Of those as control variable Max. 14
Forcing Yes
• Variables Inputs, outputs
• Number of variables Max. 10
Block status Yes
Single step Yes
Breakpoints 2
Diagnostic buffer Yes
• Number of entries (not configurable) Max. 100
Technical data
CPU 313C-2 PtP CPU 313C-2 DP
Communication functions CPU 313C-2 PtP CPU 313C-2 DP
PG/OP communication Yes
Global data communication Yes
• Number of GD circuits 4
• Number of GD packets Max. 4
– Sending stations Max. 4
– Receiving stations Max. 4
• Length of GD packets max. 22 bytes
– Consistent data 22 bytes
S7 basic communication Yes (server)
• User data per request max. 76 bytes
– Consistent data 76 bytes (for X_SEND or X_RCV)
64 bytes (for X_PUT or X_GET as the server)
S7 communication
• As server Yes
• as client Yes (via CP and loadable FBs)
• User data per request max. 180 bytes (with PUT/GET)
– Consistent data 64 bytes
S5-compatible communication Yes (via CP and loadable FCs)
Number of connections Max. 8
can be used for
• PG communication Max. 7
– Reserved (default) 1
– Configurable from 1 to 7
• OP communication Max. 7
– Reserved (default) 1
– Configurable from 1 to 7
• S7-based communication Max. 4
– Reserved (default) 4
– Configurable from 0 to 4
Routing No Max. 4
Interfaces CPU 313C-2 PtP CPU 313C-2 DP
1st interface
Type of interface Integrated RS485 interface
Physics RS 485
electrically isolated No
Interface power supply (15 to 30 VDC) Max. 200 mA
Functionality
• MPI Yes
• PROFIBUS DP No
• Point-to-point communication No
Technical data
CPU 313C-2 PtP CPU 313C-2 DP
MPI
Services
• PG/OP communication Yes
• Routing No Yes
• Global data communication Yes
• S7 basic communication Yes
• S7 communication •
– As server • Yes
– As client • No (but via CP and loadable FBs)
Type of interface Integrated RS422/RS485 interface Integrated RS485 interface
Physics RS 422/485 RS 485
electrically isolated Yes Yes
Interface power supply (15 to 30 VDC) No Max. 200 mA
Number of connections None 8
Functionality
• MPI No No
• PROFIBUS DP No Yes
• Point-to-point communication Yes No
DP master
Number of connections – 8
Services
• PG/OP communication – Yes
• Routing – Yes
• Global data communication – No
• S7 basic communication – No
• S7 communication – No
• Constant bus cycle time – Yes
• SYNC/FREEZE – Yes
• Enable/disable DP slaves – Yes
• DPV1 – Yes
• Transmission rates – Up to 12 Mbps
• Number of DP slaves per station – Max. 32
• Address area – Max. 1 KB I / 1 KB O
• User data per DP slave – Max. 244 bytes I / 244 bytes O
Technical data
CPU 313C-2 PtP CPU 313C-2 DP
DP slave
Number of connections – 8
Services
• PG/OP communication – Yes
• Routing – Yes (only if interface is active)
• Global data communication – No
• S7 basic communication – No
• S7 communication – No
• Direct data exchange – Yes
• Transmission rates – Up to 12 Mbps
• Automatic baud rate search – Yes (only if interface is passive)
• Intermediate memory – 244 bytes I / 244 bytes O
• Address areas – Max. 32, with max. 32 bytes each
• DPV1 – No
GSD file – The latest GSD file is available at:
http://www.ad.siemens.de/support
in the Product Support area
Point-to-point communication
• Transmission rates 38.4 kbps half duplex –
19.2 kbps full duplex
• Cable length Max. 1200 m –
• User program can control the interface Yes –
• The interface can trigger a break or an Yes (message with break ID) –
interrupt in the user program
• Protocol driver 3964(R); ASCII –
Programming CPU 313C-2 PtP CPU 313C-2 DP
Programming language LAD/FBD/STL
Available instructions see the Instruction List
Nesting levels 8
System functions (SFCs) see the Instruction List
System function blocks (SFBs) see the Instruction List
User program security Yes
Integrated I/O CPU 313C-2 PtP CPU 313C-2 DP
• Default addresses of the integrated
– Digital inputs 124.0 to 125.7
– Digital outputs 124.0 to 125.7
Technical data
CPU 313C-2 PtP CPU 313C-2 DP
Integrated functions
Counters 3 channels (see the Manual Technological Functions)
Frequency counters 3 channels, max. 30 kHz (see the Manual Technological Functions)
Pulse outputs 3 channels for pulse width modulation, max. 2.5 kHz (see the Manual
Technological Functions)
Controlled positioning No
Integrated "Controlling" SFB PID controller (see the Manual Technological Functions)
Dimensions CPU 313C-2 PtP CPU 313C-2 DP
Mounting dimensions W x H x D (mm) 120 x 125 x 130
Weight approx. 566 g
Voltages and currents CPU 313C-2 PtP CPU 313C-2 DP
Power supply (rated value) 24 VDC
• Permitted range 20.4 V to 28.8 V
Current consumption (no-load operation) Typically 100 mA
Inrush current Typically 11 A
Power consumption (nominal value) 700 mA 900 mA
I2t 0.7 A2s
External fusing of power supply lines LS switch type B: min. 4 A, type C: min. 2 A
(recommended)
Power loss Typically 10 W
Reference
In Chapter Specifications of the integrated I/O are found
• under Digital inputs of CPUs 31xC and Digital outputs of CPUs 31xC the technical data of
integrated I/Os.
• the block diagrams of the integrated I/Os under Arrangement and usage of integrated
I/Os.
Technical data
Table 6-6 Technical data of CPU 314C-2 PtP and CPU 314C-2 DP
Technical data
CPU 314C-2 PtP CPU 314C-2 DP
CPU and version CPU 314C-2 PtP CPU 314C-2 DP
Order number 6ES7 314-6BF01-0AB0 6ES7 314-6CF01-0AB0
• Hardware version 01 01
• Firmware version V2.0.0 V2.0.0
Associated programming package STEP 7 as of V 5.2 + SP 1 STEP 7 as of V 5.2 + SP 1
(please use previous CPU for STEP 7 (please use previous CPU for STEP 7
V 5.1 + SP 3 or later) V 5.1 + SP 3 or later)
Memory CPU 314C-2 PtP CPU 314C-2 DP
RAM
• Integrated 48 KB
• Expandable No
Load memory Plugged in with MMC (max. 8 MB)
Data storage life on the MMC At least 10 years
(following final programming)
Buffering Guaranteed by MMC (maintenance-free)
Execution times CPU 314C-2 PtP CPU 314C-2 DP
Processing times of
• Bit operations Min. 0.1 μs
• Word instructions Min. 0.2 μs
• Fixed-point arithmetic Min. 2 μs
• Floating-point arithmetic Min. 6 μs
Timers/counters and their retentivity CPU 314C-2 PtP CPU 314C-2 DP
S7 counters 256
• Retentive memory Configurable
• Default from C0 to C7
• Counting range 0 to 999
IEC Counters Yes
• Type SFB
• Number unlimited (limited only by RAM size)
S7 timers 256
• Retentive memory Configurable
• Default Not retentive
• Timer range 10 ms to 9990 s
IEC Timers Yes
• Type SFB
• Number unlimited (limited only by RAM size)
Technical data
CPU 314C-2 PtP CPU 314C-2 DP
Data areas and their retentivity CPU 314C-2 PtP CPU 314C-2 DP
Flag bits 256 bytes
• Retentive memory Configurable
• Default retentivity MB0 to MB15
Clock flag bits 8 (1 byte per flag bit)
Data blocks Max. 511
(DB 1 to DB 511)
• Length max. 16 KB
Local data per priority class max. 510 bytes
Blocks CPU 314C-2 PtP CPU 314C-2 DP
Total 1024 (DBs, FCs, FBs)
The maximum number of blocks that can be loaded may be reduced if you are
using another MMC.
OBs See the Instruction List
• Length max. 16 KB
Nesting depth
• Per priority class 8
• additional within an error OB 4
FBs Max. 512
(FB 0 to FB 511)
• Length max. 16 KB
FCs Max. 512
(FC 0 to FC 511)
• Length max. 16 KB
Address areas (I/O) CPU 314C-2 PtP CPU 314C-2 DP
Total I/O address area max. 1024 bytes/1024 bytes max. 1024 bytes/1024 bytes
(can be freely addressed) (can be freely addressed)
• Distributed None max. 1000 bytes
I/O process image 128 bytes/128 bytes 128 bytes/128 bytes
Digital channels Max. 1016 Max. 8192
• of those local Max. 992 Max. 992
• Integrated channels 24 DI / 16 DO 24 DI / 16 DO
Analog channels Max. 253 Max. 512
• of those local Max. 248 Max. 248
• Integrated channels 4 + 1 AI / 2 AO 4 + 1 AI / 2 AO
Assembly CPU 314C-2 PtP CPU 314C-2 DP
Racks Max. 4
Modules per rack max. 8; max. 7 in rack 3
Number of DP masters
• Integrated No 1
• via CP Max. 1 Max. 1
Technical data
CPU 314C-2 PtP CPU 314C-2 DP
Number of function modules and
communication processors you can
operate
• FM Max. 8
• CP (PtP) Max. 8
• CP (LAN) Max. 10
Time-of-day CPU 314C-2 PtP CPU 314C-2 DP
Real-time clock Yes (HW clock)
• Buffered Yes
• Buffered period Typically 6 weeks (at an ambient temperature of 40 °C)
• Behavior of the clock on expiration The clock keeps running, continuing at the time-of-day it had when power was
of the buffered period switched off.
• Accuracy Deviation per day < 10 s
Operating hours counter 1
• Number 0
• Value range 2 31 hours
(if SFC 101 is used)
• Granularity 1 hour
• Retentive Yes; must be manually restarted after every restart
Clock synchronization Yes
• In the PLC Master
• On MPI Master/slave
S7 signaling functions CPU 314C-2 PtP CPU 314C-2 DP
Number of stations that can log in for Max. 12
signaling functions (e.g. OS) (depends on the number of connections configured for PG / OP and S7 basic
communication)
Process diagnostics messages Yes
• Simultaneously enabled interrupt S Max. 40
blocks
Testing and commissioning functions CPU 314C-2 PtP CPU 314C-2 DP
Status/control variables Yes
• Variables Inputs, outputs, memory bits, DBs, timers, counters
• Number of variables Max. 30
– of those as status variable Max. 30
– of those as control variable Max. 14
Forcing Yes
• Variables Inputs, outputs
• Number of variables Max. 10
Block status Yes
Single step Yes
Breakpoints 2
Diagnostic buffer Yes
• Number of entries (not configurable) Max. 100
Technical data
CPU 314C-2 PtP CPU 314C-2 DP
Communication functions CPU 314C-2 PtP CPU 314C-2 DP
PG/OP communication Yes
Global data communication Yes
• Number of GD circuits 4
• Number of GD packets Max. 4
– Sending stations Max. 4
– Receiving stations Max. 4
• Length of GD packets max. 22 bytes
– Consistent data 22 bytes
S7 basic communication Yes
• User data per request max. 76 bytes
– Consistent data 76 bytes (for X_SEND or X_RCV)
64 bytes (for X_PUT or X_GET as the server)
S7 communication
• As server Yes
• as client Yes (via CP and loadable FBs)
• User data per request max. 180 bytes (with PUT/GET)
– Consistent data 64 bytes
S5-compatible communication Yes (via CP and loadable FCs)
Number of connections Max. 12
can be used for
• PG communication Max. 11
– Reserved (default) 1
– Configurable from 1 to 11
• OP communication Max. 11
– Reserved (default) 1
– Configurable from 1 to 11
• S7-based communication Max. 8
– Reserved (default) 8
– Configurable from 0 to 8
Routing No Max. 4
Interfaces CPU 314C-2 PtP CPU 314C-2 DP
1st interface
Type of interface Integrated RS485 interface
Physics RS 485
electrically isolated No
Interface power supply (15 to 30 VDC) Max. 200 mA
Functionality
• MPI Yes
• PROFIBUS DP No
• Point-to-point communication No
Technical data
CPU 314C-2 PtP CPU 314C-2 DP
MPI
Number of connections 12
Services
• PG/OP communication Yes
• Routing No Yes
• Global data communication Yes
• S7 basic communication Yes
• S7 communication
– As server Yes
– As client No (but via CP and loadable FBs)
• Transmission rates max. 187.5 kbps
2nd interface CPU 314C-2 PtP CPU 314C-2 DP
Type of interface Integrated RS422/RS485 interface Integrated RS485 interface
Physics RS 422/485 RS 485
electrically isolated Yes Yes
Interface power supply (15 to 30 VDC) No Max. 200 mA
Number of connections None 12
Functionality
• MPI No No
• PROFIBUS DP No Yes
• Point-to-point communication Yes No
DP master
Number of connections – 12
Services
• PG/OP communication – Yes
• Routing – Yes
• Global data communication – No
• S7 basic communication – No
• S7 communication – No
• Constant bus cycle time – Yes
• SYNC/FREEZE – Yes
• Enable/disable DP slaves – Yes
• DPV1 – Yes
• Transmission rates – Up to 12 Mbps
• Number of DP slaves per station – Max. 32
• Address area – Max. 1 KB I / 1 KB O
• User data per DP slave – max. 244 bytes I / 244 bytes O
Technical data
CPU 314C-2 PtP CPU 314C-2 DP
DP slave
Number of connections – 12
Services
• PG/OP communication – Yes
• Routing – Yes (only if interface is active)
• Global data communication – No
• S7 basic communication – No
• S7 communication – No
• Direct data exchange – Yes
• Transmission rates – Up to 12 Mbps
• Intermediate memory – 244 bytes I / 244 bytes O
• Automatic baud rate search – Yes (only if interface is passive)
• Address areas Max. 32, with max. 32 bytes each
• DPV1 – No
GSD file – The latest GSD file is available at:
http://www.ad.siemens.de/support
in the Product Support area
Point-to-point communication
• Transmission rates 38.4 kbps half duplex –
19.2 kbps full duplex
• Cable length Max. 1200 m –
• User program can control the Yes –
interface
• The interface can trigger a break or Yes (message with break ID) –
an interrupt in the user program
• Protocol driver 3964 (R); ASCII and RK512 –
Programming CPU 314C-2 PtP CPU 314C-2 DP
Programming language LAD/FBD/STL
Available instructions see the Instruction List
Nesting levels 8
System functions (SFCs) see the Instruction List
System function blocks (SFBs) see the Instruction List
User program security Yes
Integrated I/O CPU 314C-2 PtP CPU 314C-2 DP
• Default addresses of the integrated
– Digital inputs 124.0 to 126.7
– Digital outputs 124.0 to 125.7
– Analog inputs 752 to 761
– Analog outputs 752 to 755
Technical data
CPU 314C-2 PtP CPU 314C-2 DP
Integrated functions
Counters 4 channels (see the Manual Technological Functions)
Frequency counters 4 channels, max. 60 kHz (see the Manual Technological Functions)
Pulse outputs 4 channels for pulse width modulation, max. 2.5 kHz (see the Manual
Technological Functions)
Controlled positioning 1 channel (see the Manual Technological Functions)
Integrated "Controlling" SFB PID controller (see the Manual Technological Functions)
Dimensions CPU 314C-2 PtP CPU 314C-2 DP
Mounting dimensions W x H x D (mm) 120 x 125 x 130
Weight approx. 676 g
Voltages and currents CPU 314C-2 PtP CPU 314C-2 DP
Power supply (rated value) 24 VDC
• Permitted range 20.4 V to 28.8 V
Current consumption (no-load Typically 150 mA
operation)
Inrush current Typically 11 A
Power consumption (nominal value) 800 mA 1000 mA
I2t 0.7 A2s
External fusing of power supply lines LS switch type C min. 2 A,
(recommended) LS switch type B min. 4 A
Power loss Typically 14 W
Introduction
Integrated I/Os of CPUs 31xC can be used for technological functions or as standard I/O.
The figures below illustrate possible usage of I/Os integrated in the CPUs.
Reference
Further information on integrated I/O is found in the Manual Technical Functions.
X11
Standard Interrupt Count
input 1
DI X Z0 (A) 2 DI+0.0
DI X Z0 (B) 3 DI+0.1
DI X Z0 (HW gate) 4 DI+0.2
DI X Z1 (A) 5 DI+0.3
DI X Z1 (B) 6 DI+0.4
DI X Z1 (HW gate) 7 DI+0.5
DI X Latch 0 8 DI+0.6
DI X Latch 1 9 DI+0.7
DI X 10 DI+1.0
DI X 11 DI+1.1
12 2M
13 1L+
DO V0 14 DO+0.0
DO V1 15 DO+0.1
DO 16 DO+0.2
DO 17 DO+0.3
DO 18 DO+0.4
DO 19 DO+0.5
20 1M
Zn Counter n
A, B Encoder signals
Vn Comparator n
X Pin usable if not assigned to technology functions
HW gate Gate control
Latch Store counter distance
1
2
3
4
5
6
7
8
CPU interface
9
10
11
12
2M 13
1L+ 14
15
16
17
18
19
20
1M
CPU 313C, CPU 313C-2 DP/PtP, CPU 314C-2 DP/PtP: DI/DO (connectors X11 and X12)
X11 of CPU 313C-2 PtP/DP
X12 of CPU 314C-2 PtP/DP
1) 1) Count Standard
Standard Interrupt Count Posi- Positioning
DI input tioning 1 1L+ 2L+ 21 Digital Analog DO
X X Z0 (A) A0 2 DI+0.0 DO+0.0 22 V0 X
X X Z0 (B) B0 3 DI+0.1 DO+0.1 23 V1 X
X X Z0 (HW gate) N0 4 DI+0.2 DO+0.2 24 V2 X
X X Z1 (A) Prob 0 5 DI+0.3 DO+0.3 25 V3 1) X
X X Z1(B) Bero 0 6 DI+0.4 DO+0.4 26 X
X X Z1 (HW gate) 7 DI+0.5 DO+0.5 27 X
X X Z2 (A) 8 DI+0.6 DO+0.6 28 CONV_EN X
X X Z2 (B) 9 DI+0.7 DO+0.7 29 CONV_DIR X
10 2M 30
11 3L+ 31
X X Z2 (HW gate) 12 DI+1.0 DO+1.0 32 R+ X
X X Z3 (A) 13 DI+1.1 DO+1.1 33 R- X
X X Z3 (B) 1) 14 DI+1.2 DO+1.2 34 Rapid X
X X Z3 (HW gate) 15 DI+1.3 DO+1.3 35 Creep X
X X Z0 (Latch) 16 DI+1.4 DO+1.4 36 X
X X Z1 (Latch) 17 DI+1.5 DO+1.5 37 X
X X Z2 (Latch) 18 DI+1.6 DO+1.6 38 X
X X Z3 (Latch) 1) 19 DI+1.7 DO+1.7 39 X
20 1M 3M 40
Zn Counter n
A, B Encoder signals
HW gate Gate control
Latch Store counter distance
Vn Comparator n
Prob 0 Measuring probe 0
Bero 0 Reference point switch 0
R+, R- Directional signal
Rapid Rapid traverse
Creep Creep speed
CONV_EN Power section enable
CONV_DIR Directional signal (only with control type "voltage 0 to 10 V or current from 0 to 10 mA and directional signal")
X Pin usable if not assigned to technology functions
Reference
Details are found in the Manual Technical Functions under Counting, Frequency
Measurement and Pulse Width Modulation
1 21
1L+ 2 2L+
22
3 23
4 24
5 25
6 26
7 27
8 28
9 29
10 30
CPU interface
2M
11 31
3L+
12 32
13 33
14 34
15 35
16 36
17 37
18 38
19 39
20 40
1M 3M
X11
1)
Standard Positioning 1 21 Standard DI Interrupt input
V 2 DI+2.0 22 X X
AI (Ch0) I 3 PEWx+0 DI+2.1 23 X X
C 4 DI+2.2 24 X X
V 5 DI+2.3 25 X X
AI (Ch1) I 6 PEWx+2 DI+2.4 26 X X
C 7 DI+2.5 27 X X
V 8 DI+2.6 28 X X
AI (Ch2) I 9 PEWx+4 DI+2.7 29 X X
C 10 4M 30
V 11 31
AI (Ch3) I 12 PEWx+6 32
C 13 33
14 34
PT 100 (Ch4) PEWx+8
15 35
V Control 16 36
AO (Ch0) PAW x+0
A output 0 17 37
V 18 38
AO (Ch1) PAW x+2
A 19 39
20 MANA 40
AI/A0 8DI
1 21
2 22
V AI
3 23
A
4 CH0 24
AI0 5 25
V AI
6 26
CPU interface
A
7 CH1 27
AI1 8 28
V
9 AI 29
A
10 CH2 30
AI2 4M
11 31
V
12 AI 32
A
13 CH3 33
AI3 14 34
R AI
15 Controller 35
PT100
AI4 16 36
V 17 U A0
AO0 37
I CH0
A 18
38
V 19 U A0
AO1 39
I CH1
A 20 40
MANA
See also
CPU 312C (Page 6-3)
CPU 313C (Page 6-8)
CPU 313C-2 PtP and CPU 313C-2 DP (Page 6-14)
CPU 314C-2 PtP and CPU 314C-2 DP (Page 6-21)
Al0: Pin 2 to 4
+
2-wire AI1: Pin 5 to 7
signal converter
8 - Al2: Pin 8 to 10
AI2u + 24 V
AI2I
9 +
Al3: Pin 11 to 13
10 -
AI2c
20
MANA M
L+ M AI0 : Pin 2 to 4
Measurement principle
31xC CPUs use the measurement principle of actual value encoding. Here, they operate
with a sampling rate of 1 kHz. That is, a new value is available at the peripheral input word
register once every millisecond. This value can then be read via user program (e.g. L PEW).
The "previous" value is read again if access times are shorter than 1 ms.
Attenuation
<1%
Internal Attenuation
signal level <10%
strong
attenuation
100 %
63 %
Inadmissible
input frequency
Note
The maximum frequency of the input signal is 400 Hz.
Selection in STEP 7
(Software filter)
50-Hz configuration
(mean value filter)
60-Hz configuration
(mean value filter)
400-Hz configuration
A/D converter
AIx
In the two graphics below we illustrate how the 50 Hz and 60 Hz interference suppression
work
Cycle 1 ...
Value Value Value Value Value
1 2 3 19 20
Cycle 2 ...
Value Value Value Value Value
1 2 3 19 20
Example of a 60-Hz parasitic frequency suppression (integration time corresponds to 16.7 ms)
Cycle 1 ...
Value Value Value Value Value
1 2 3 16 17
Cycle 2 ...
Value Value Value Value Value
1 2 3 16 17
Note
If the interference frequency is not 50/60 Hz or a multiple thereof, the input signal must be
filtered externally.
In this case, 400 Hz frequency suppression must be configured for the respective input. This
is equivalent to a "Deactivation" of the software filter.
Reference
Details (visualization and processing of analog values, for example) are found in chapter 4 of
the Module Data Reference Manual.
6.6.3 Configuration
Introduction
You configure the integrated I/O of CPU 31xC with STEP 7. Always make these settings
when the CPU is in STOP. The generated parameters are downloaded from the PG to the
S7-300 and written to CPU memory .
You can also choose to change the parameters at SFC 55 in the user program (see the
Reference Manual System and Standard Functions). Refer to the structure of record 1 for
the respective parameters.
Parameters of standard DI
The table below gives you an overview of the parameters for standard digital inputs.
Byte 0 7 0 Bit-Nr.
Interrupt input DI +0.0
Interrupt input DI +0.1
Interrupt input DI +0.7
Byte 1 7 0 Bit-Nr.
Interrupt input DI +1.0
Interrupt input DI +1.1
Interrupt input DI +1.7
Byte 2 7 0 Bit-Nr.
Interrupt input DI +2.0
Interrupt input DI +2.1
Interrupt input DI +2.7 0: deactivated
1: rising edge
Default setting:
Byte 3 reserved
Byte 4 7 0 Bit-Nr.
Byte 5 7 0 Bit-Nr.
Interrupt input DI +1.0
Interrupt input DI +1.1
Interrupt input DI +1.7
Byte 6 7 0 Bit-Nr.
Interrupt input DI +2.0
Interrupt input DI +2.1
Interrupt input DI +2.7 0: deactivated
1: rising edge
Default setting:
Byte 7 reserved
Byte 8 7 0 Bit-Nr.
Byte 9 7 0 Bit-Nr.
Figure 6-7 Structure of record 1 for standard DI and interrupt inputs (length of 10 bytes)
Parameters of standard DO
There are no parameters for standard digital outputs.
Parameters of standard AI
The table below gives you an overview of the parameters for standard analog inputs.
Reference
See also Chapter 4.3 in the Module Data Reference Manual.
Parameters of standard AO
The table below gives you an overview of standard analog output parameters (see also
Chapter 4.3 in the Module Data Reference Manual).
%\WH %LW1U
reserved
Unit of measure
% Celsius
% Fahrenheit
% Kelvin
reserved Default setting: %
%\WH %LW1U
%\WH %LW1U
%\WH %LW1U
%\WH %LW1U
%\WH %LW1U
%\WH %LW1U
%\WHELV reserved
%\WH %LW1U
%\WH %LW1U
6.6.4 Interrupts
Interrupt inputs
All digital inputs of the on-board I/O of CPUs 31xC can be used as interrupt inputs.
You can specify interrupt behavior for each individual input in your parameter declaration.
Options are:
• no interrupt
• Interrupt at the positive edge
• Interrupt at the negative edge
• Interrupt at the positive and negative edge
Note
Every channel will hold one event if the rate of incoming interrupts exceeds the handling
capacity of OB40. Further events (interrupts) will be lost, without diagnostics or explicit
message.
Table 6-11 Start information for OB40, relating to the interrupt inputs of the integrated I/O
31 30 29 28 27 26 25 24 23 … 16 15 … 8 7 6 5 4 3 2 1 Bit no.
reserved
6.6.5 Diagnostics
Standard I/O
Diagnostic data is not available for integrated I/O which is operated as standard I/O (see also
the Reference Manual Module Data).
Technological functions
Diagnostics options for the respective technological function are found in the Manual
Technological Functions.
Introduction
This section provides the specifications for the digital inputs of CPUs 31xC.
The table includes the following CPUs:
• under CPU 313C-2, the CPU 313C-2 DP and CPU 313C-2 PtP
• under CPU 314C-2, the CPU 314C-2 DP and CPU 314C-2 PtP
Technical data
Technical data
CPU 312C CPU 313C CPU 313C-2 CPU 314C-2
Module-specific data CPU 312C CPU 313C CPU 313C-2 CPU 314C-2
Number of inputs 10 24 16 24
• Number of these inputs which can be used 8 12 12 16
for technological functions
Cable length
• Unshielded For standard DI: Max. 600 m
For technological functions: No
• Shielded For standard DI: Max. 1000 m
For technological function at max. counting frequency
100 m 100 m 100 m 50 m
Voltage, currents, potentials CPU 312C CPU 313C CPU 313C-2 CPU 314C-2
Rated load voltage L+ 24 VDC
• Polarity reversal protection Yes
Number of inputs which can be controlled
simultaneously
• Horizontal assembly
– up to 104 °F 10 24 16 24
– up to 60 °C 5 12 8 12
• Vertical assembly
– up to 104 °F 5 12 8 12
Electrical isolation
• Between channels and the backplane bus Yes
• Between the channels No
Permitted potential difference
• Between different circuits 75 VDC / 60 VAC
Insulation test voltage 500 VDC
Current consumption
• On load voltage L+ (no-load) – Max. 70 mA Max. 70 mA Max. 70 mA
Status, interrupts, diagnostics CPU 312C CPU 313C CPU 313C-2 CPU 314C-2
Status display green LED per channel
Interrupts • Yes, if the corresponding channel is configured as interrupt input
• For using technological functions, please refer to the Technological
Functions Manual.
Diagnostics functions • no diagnostics when operated as standard I/O
• For using technological functions, please refer to the Technological
Functions Manual.
Technical data
CPU 312C CPU 313C CPU 313C-2 CPU 314C-2
Data for the selection of an encoder for CPU 312C CPU 313C CPU 313C-2 CPU 314C-2
standard DI
Input voltage
• Rated value 24 VDC
• For signal "1" 15 V to 30 V
• For signal "0" -3 V to 5 V
Input current
• For signal "1" Typically 9 mA
Delay of standard inputs
• Configurable Yes (0.1 / 0.5 / 3 / 15 ms)
You can reconfigure the input delay of the standard inputs during program
runtime. Please note that your newly set filter time may only take effect
after the previously set filter time has expired.
• Rated value 3 ms
For using technological functions: 48 μs 16 μs 16 μs 8 μs
"Minimum pulse width/ minimum pause
between pulses at maximum counting
frequency"
Input characteristics curve to IEC 1131, type 1
Connection of 2wire BEROs Possible
• Permitted quiescent current Max. 1,5 mA
Introduction
This chapter contains the specifications for the digital outputs of CPUs 31xC.
The table includes the following CPUs:
• under CPU 313C-2, the CPU 313C-2 DP and CPU 313C-2 PtP
• under CPU 314C-2, the CPU 314C-2 DP and CPU 314C-2 PtP
Technical data
Technical data
CPU 312C CPU 313C CPU 313C-2 CPU 314C-2
Module-specific data CPU 312C CPU 313C CPU 313C-2 CPU 314C-2
Number of outputs 6 16 16 16
• Of those are fast outputs 2 4 4 4
Caution:
You cannot connect the high-speed outputs of your CPU in parallel.
Cable length
• Unshielded Max. 600 m
• Shielded Max. 1000 m
Voltage, currents, potentials CPU 312C CPU 313C CPU 313C-2 CPU 314C-2
Rated load voltage L+ 24 VDC
• Polarity reversal protection No
Total current of outputs (per group)
• Horizontal assembly
– up to 104 °F Max. 2.0 A Max. 3,0 A Max. 3,0 A Max. 3,0 A
– up to 60 °C Max. 1,5 A Max. 2.0 A Max. 2.0 A Max. 2.0 A
• Vertical assembly
– up to 104 °F Max. 1,5 A Max. 2.0 A Max. 2.0 A Max. 2.0 A
Electrical isolation
• Between channels and the backplane bus Yes
• Between the channels No Yes Yes Yes
– In groups of – 8 8 8
Permitted potential difference
• Between different circuits 75 VDC / 60 VAC
Insulation test voltage 500 VDC
Current consumption
• with load voltage L+ Max. 50 mA Max. 100 mA Max. 100 mA Max. 100 mA
Status, interrupts, diagnostics CPU 312C CPU 313C CPU 313C-2 CPU 314C-2
Status display green LED per channel
Interrupts • no interrupts when operated as standard I/O
• For using technological functions, please refer to the Technological
Functions Manual.
Diagnostics functions • no diagnostics when operated as standard I/O
• For using technological functions, please refer to the Technological
Functions Manual.
Technical data
CPU 312C CPU 313C CPU 313C-2 CPU 314C-2
Data for the selection of an actuator for CPU 312C CPU 313C CPU 313C-2 CPU 314C-2
standard DI
Output voltage
• For signal "1" Min. L+ (-0.8 V)
Output current
• For signal "1" 0,5 A
– Rated value 5 mA to 600 mA
– Permitted range
• For signal "0" (residual current) Max. 0.5 mA
Load impedance range 48 Ω to 4 kΩ
Lamp load Max. 5 W
Parallel connection of 2 outputs
• for redundant load control Possible
• for performance increase Not possible
Controlling of digital inputs Possible
Switching frequency
• under resistive load Max. 100 Hz
• For inductive load to IEC 947-5, DC13 Max. 0.5 Hz
• under lamp load Max. 100 Hz
• fast outputs under resistive load Max. 2.5 kHz
Inductive breaking voltage limited internally to Typically (L+) - 48 V
Short-circuit protection of the output Yes, electronic
• Response threshold Typically 1 A
Introduction
This chapter contains the specifications for analog outputs of CPUs 31xC.
The table includes the following CPUs:
• CPU 313C
• CPU 314C-2 DP
• CPU 314C-2 PtP
Technical data
Technical data
Module-specific data
Number of inputs 4 channels with current/voltage input
1 channel with resistance input
Cable length
• Shielded Max. 100 m
Voltage, currents, potentials
Resistance input
• No-load voltage Typically 2.5 V
• Measurement current Typically 1.8 mA to 3.3 mA
Electrical isolation
• Between channels and the backplane bus Yes
• Between the channels No
Permitted potential difference
• Between inputs (AIC) and MANA (UCM) 8.0 VDC
• between MANA and Minternal (UISO) 75 VDC / 60 VAC
Insulation test voltage 600 VDC
Analog value generation
Measurement principle Actual value encoding (successive
approximation)
Integration time/conversion time/resolution (per channel)
• Configurable Yes
• Integration time in ms 2,5 / 16,6 / 20
• Permitted input frequency Max. 400 Hz
• Resolution (including overdrive) 11 bits + signed bit
• Suppression of interference frequency f1 400 / 60 / 50 Hz
Technical data
Time constant of the input filter 0,38 ms
Basic processing time 1 ms
Interference suppression, error limits
Interference voltage suppression for f = nx (f1 ± 1 %), (f1 = interference
frequency), n = 1, 2
• Commonmode interference (UCM < 1.0 V) > 40 dB
• Feedback interference (peak value of the interference < rated value of > 30 dB
the input range)
Crosstalk between the inputs > 60 dB
Operational error limits (across the temperature range, in relation to input
range)
• Voltage/current <1%
• Resistance <5%
Basic error limit (operational limit at 25 °C, in relation to input range)
• Voltage/current < 0,7 %
• Resistance <3%
Temperature error (in relation to input range) ± 0,006 %/K
Linearity error (referred to input range) ± 0,06 %
Repeat accuracy (in transient state at 25 °C, in relation to input range) ± 0,06 %
Status, interrupts, diagnostics
Interrupts • no interrupts when operated as standard
I/O
Diagnostics functions • no diagnostics when operated as
standard I/O
• For using technological functions, please
refer to the Technological Functions
Manual.
Encoder selection data
Input ranges (rated value)/input resistance
• Voltage ± 10 V/100 kΩ
0 V to 10 V/100 kΩ
• Current ± 20 mA/50 Ω
0 mA to 20 mA/50 Ω
4 mA to 20 mA/50 Ω
• Resistance 0 Ω to 600 Ω/10 MΩ
• Resistance thermometer Pt 100/10 MΩ
Permitted continuous input voltage (destruction limit)
• For voltage inputs Max. 30 V
• For current inputs Max. 2.5 V
Permitted continuous input current (destruction limit)
• For voltage inputs Max. 0,5 mA;
• For current inputs Max. 50 mA;
Technical data
Connection of signal generators
• For voltage measurement Possible
• For current measurement
– as 2-wire measuring transducer Possible, with external power supply
– as 4-wire measuring transducer Possible
• for measuring resistance
– with 2-wire connection Possible, without compensation of
cable resistance
– with 3-wire connection Not possible
– with 4-wire connection Not possible
Linearization of the characteristics trend By software
• For resistance thermometers Pt 100
Temperature compensation No
Technical unit for temperature measurement Degrees Celsius/Fahrenheit/Kelvin
Introduction
This chapter contains the specifications for digital outputs of CPUs 31xC.
The table includes the following CPUs:
• CPU 313C
• CPU 314C-2 DP
• CPU 314C-2 PtP
Technical data
Technical data
Module-specific data
Number of outputs 2
Cable length
• Shielded Max. 200 m
Voltage, currents, potentials
Rated load voltage L+ 24 VDC
• Polarity reversal protection Yes
Electrical isolation
• Between channels and the backplane bus Yes
• Between the channels No
Technical data
Permitted potential difference
• between MANA and Minternal (UISO) 75 VDC / 60 VAC
Insulation test voltage 600 VDC
Analog value generation
Resolution (including overdrive) 11 bits + signed bit
Conversion time (per channel) 1 ms
Settling time
• with resistive load 0,6 ms
• With capacitive load 1,0 ms
• With inductive load 0.5 ms
Interference suppression, error limits
Crosstalk between the outputs > 60 dB
Operational error limits (across the temperature range, in relation to output
range)
• Voltage/current ±1%
Basic error limit (operational limit at 25 °C, in relation to output range)
• Voltage/current ± 0,7 %
Temperature error (in relation to output range) ± 0.01 %/K
Linearity error (in relation to output range) ± 0,15 %
Repeat accuracy (in transient state at 25 °C, in relation to output range) ± 0,06 %
Output ripple; bandwidth 0 to 50 kHz (in relation to output range) ± 0,1 %
Status, interrupts, diagnostics
Interrupts • no interrupts when operated as standard
I/O
• For using technological functions, please
refer to the Technological Functions
Manual.
Diagnostics functions • no diagnostics when operated as
standard I/O
• For using technological functions, please
refer to the Technological Functions
Manual.
Actuator selection data
Output range (rated values)
• Voltage ± 10 V
0 V to 10 V
• Current ± 20 mA
0 mA to 20 mA
4 mA to 20 mA
Load resistance (within output rating)
• For voltage outputs min. 1 kΩ
– Capacitive load max. 0.1 μF
• For current outputs max. 300 Ω
– Inductive load 0.1 mH
Technical data
Voltage output
• Short-circuit protection Yes
• Short-circuit current Typically 55 mA
Current output
• No-load voltage Typically 17 V
Destruction limit for externally applied voltages/currents
• Voltage measured between the outputs and MANA Max. 16 V
• Current Max. 50 mA;
Connection of actuators
• For voltage outputs
– wire connection Possible, without compensation of
cable resistance
– wire connection (test lead) Not possible
• For current outputs
– wire connection Possible
40 115 65
125
Width of CPU
CPU Width
CPU 312 40 mm
CPU 314 40 mm
CPU 315-2 DP 40 mm
CPU 315-2 PN/DP 80 mm
CPU 317 80 mm
Technical data
Technical data
CPU and version
Order number 6ES7312-1AD10-0AB0
• Hardware version 01
• Firmware version V2.0.0
• Associated programming package STEP 7 as of V 5.1 + SP 4
Memory
RAM
• Integrated 16 KB
• Expandable No
Load memory Plugged in with MMC (max. 4 MB)
Data storage life on the MMC At least 10 years
(following final programming)
Buffering Guaranteed by MMC (maintenance-free)
Execution times
Processing times of
• Bit operations Min. 0.2 μs
• Word instructions Min. 0.4 μs
• Fixed-point arithmetic Min. 5 μs
• Floating-point arithmetic Min. 6 μs
Timers/counters and their retentivity
S7 counters 128
• Retentive memory Configurable
• Default from C0 to C7
• Counting range 0 to 999
IEC Counters Yes
• Type SFB
• Number unlimited (limited only by RAM size)
S7 timers 128
• Retentive memory Configurable
• Default Not retentive
• Timer range 10 ms to 9990 s
IEC Timers Yes
• Type SFB
• Number unlimited (limited only by RAM size)
Technical data
Data areas and their retentivity
Flag bits 128 bytes
• Retentive memory Yes
• Default retentivity MB0 to MB15
Clock flag bits 8 (1 byte per flag bit)
Data blocks 511
(DB 1 to DB 511)
• Length 16 KB
Local data per priority class max. 256 bytes
Blocks
Total 1024 (DBs, FCs, FBs)
The maximum number of blocks that can be
loaded may be reduced if you are using another
MMC.
OBs See the Instruction List
• Length max. 16 KB
Nesting depth
• Per priority class 8
• additional within an error OB 4
FBs Max. 512
(FB 0 to FB 511)
• Length max. 16 KB
FCs Max. 512
(FC 0 to FC 511
• Length max. 16 KB
Address areas (I/O)
Total I/O address area 1024 bytes /1024 bytes
(can be freely addressed)
I/O process image 128 bytes/128 bytes
Digital channels Max. 256
of those local Max. 256
Analog channels Max. 64
of those local Max. 64
Assembly
Racks Max. 1
Modules per rack Max. 8
Number of DP masters
• Integrated None
• Via CP 1
Technical data
Number of function modules and communication
processors you can operate
• FM Max. 8
• CP (PtP) Max. 8
• CP (LAN) Max. 4
Time-of-day
Real-time clock Yes (SW clock)
• Buffered No
• Accuracy Deviation per day < 15 s
• Behavior of the realtime clock after POWER The clock keeps running, continuing at the time-
ON of-day it had when power was switched off.
Operating hours counter 1
• Number 0
• Value range 2 31
(if SFC 101 is used)
• Granularity 1 hour
• Retentive Yes; must be manually restarted after every
restart
Clock synchronization Yes
• In the PLC Master
• On MPI Master/slave
S7 signaling functions
Number of stations that can be logged on for 6
signaling functions (depends on the number of connections
configured for PG / OP and S7 basic
communication)
Process diagnostics messages Yes
• Simultaneously enabled interrupt S blocks Max. 20
Testing and commissioning functions
Status/control variables Yes
• Variables Inputs, outputs, memory bits, DBs, timers,
counters
• Number of variables 30
– Of those as status variable 30
– Of those as control variable 14
Forcing Yes
• Variables Inputs, outputs
• Number of variables Max. 10
Block status Yes
Single step Yes
Breakpoints 2
Diagnostic buffer Yes
• Number of entries (not configurable) Max. 100
Technical data
Communication functions
PG/OP communication Yes
Global data communication Yes
• Number of GD circuits 4
• Number of GD packets Max. 4
– Sending stations Max. 4
– Receiving stations Max. 4
• Length of GD packets max. 22 bytes
– Consistent data 22 bytes
S7 basic communication Yes
• User data per request max. 76 bytes
– Consistent data 76 bytes (for X_SEND or X_RCV)
64 bytes (for X_PUT or X_GET as the server)
S7 communication
• As server Yes
• User data per request Max. 180 bytes (with PUT/GET)
– Consistent data 64 bytes
S5-compatible communication Yes (via CP and loadable FCs)
Number of connections Max. 6
can be used for
• PG communication Max. 5
– Reserved (default) 1
– Configurable from 1 to 5
• OP communication Max. 5
– Reserved (default) 1
– Configurable from 1 to 5
• S7-based communication Max. 2
– Reserved (default) 2
– Configurable from 0 to 2
Routing No
Interfaces
1st interface
Type of interface Integrated RS485 interface
Physics RS 485
electrically isolated No
Interface power supply max. 200 mA
(15 to 30 VDC)
Functionality
• MPI Yes
• PROFIBUS DP No
• Point-to-point communication No
Technical data
MPI
Services
• PG/OP communication Yes
• Routing No
• Global data communication Yes
• S7 basic communication Yes
• S7 communication
– As server Yes
– As client No
• Transmission rates 187.5 kbps
Programming
Programming language LAD/FBD/STL
Available instructions See the Instruction List
Nesting levels 8
System functions (SFCs) See the Instruction List
System function blocks (SFBs) See the Instruction List
User program security Yes
Dimensions
Mounting dimensions W x H x D (mm) 40 x 125 x 130
Weight 270 g
Voltages and currents
Power supply (rated value) 24 VDC
• Permitted range 20.4 V to 28.8 V
Current consumption (no-load operation) Typically 60 mA
Inrush current Typically 2.5 A
Power consumption (nominal value) 0,6 A
I2t 0.5 A2s
External fusing of power supply lines min. 2 A
(recommended)
Power loss Typically 2,5 W
Technical data
CPU and version
Order number 6ES7314-1AF10-0AB0
• Hardware version 01
• Firmware version V 2.0.0
• Associated programming package STEP 7 as of V 5.1 + SP 4
Memory
RAM
• Integrated 48 KB
• Expandable No
Load memory Plugged in with MMC (max. 8 MB)
Data storage life on the MMC At least 10 years
(following final programming)
Buffering Guaranteed by MMC (maintenance-free)
Execution times
Processing times of
• Bit operations Min. 0.1 μs
• Word instructions Min. 0.2 μs
• Fixed-point arithmetic Min. 2.0 μs
• Floating-point arithmetic Min. 6 μs
Timers/counters and their retentivity
S7 counters 256
• Retentive memory Configurable
• Default from C0 to C7
• Counting range 0 to 999
IEC Counters Yes
• Type SFB
• Number unlimited (limited only by RAM size)
S7 timers 256
• Retentive memory Configurable
• Default Not retentive
• Timer range 10 ms to 9990 s
IEC Timers Yes
• Type SFB
• Number unlimited (limited only by RAM size)
Technical data
Data areas and their retentivity
Flag bits 256 bytes
• Retentive memory Yes
• Default retentivity MB0 to MB15
Clock flag bits 8 (1 byte per flag bit)
Data blocks
• Number 511
(DB 1 to DB 511)
• Length 16 KB
Local data per priority class Max. 510
Blocks
Total 1024 (DBs, FCs, FBs)
The maximum number of blocks that can be
loaded may be reduced if you are using another
MMC.
OBs See the Instruction List
• Length 16 KB
Nesting depth
• Per priority class 8
• additional within an error OB 4
FBs See the Instruction List
• Number 512
(FB 0 to FB 511)
• Length 16 KB
FCs See the Instruction List
• Number 512
(FC 0 to FC 511)
• Length 16 KB
Address areas (I/O)
Total I/O address area Max. 1024 bytes/1024 bytes (can be freely
addressed)
I/O process image 128 bytes/128 bytes
Digital channels Max. 1024
of those local Max. 1024
Analog channels Max. 256
of those local Max. 256
Assembly
Racks Max. 4
Modules per rack 8
Number of DP masters
• Integrated None
• via CP Max. 1
Technical data
Number of function modules and communication
processors you can operate
• FM Max. 8
• CP (PtP) Max. 8
• CP (LAN) Max. 10
Time-of-day
Real-time clock Yes (HW clock)
• Buffered Yes
• Buffered period Typically 6 weeks (at an ambient temperature of
104 °F)
• Behavior of the clock on expiration of the The clock keeps running, continuing at the time-
buffered period of-day it had when power was switched off.
• Accuracy Deviation per day: < 10 s
Operating hours counter 1
• Number 0
• Value range 2 31 hours
(if SFC 101 is used)
• Granularity 1 hour
• Retentive yes; must be manually restarted after every
restart
Clock synchronization Yes
• In the PLC Master
• On MPI Master/slave
S7 signaling functions
Number of stations that can log in for signaling 12
functions (e.g. OS) (depends on the number of connections
configured for PG / OP and S7 basic
communication)
Process diagnostics messages Yes
• Simultaneously enabled interrupt S blocks Max. 40
Testing and commissioning functions
Status/control variables Yes
• Variables Inputs, outputs, memory bits, DBs, timers,
counters
• Number of variables 30
– Of those as status variable 30
– Of those as control variable 14
Forcing Yes
• Variables Inputs/Outputs
• Number of variables Max. 10
Block status Yes
Single step Yes
Breakpoints 2
Diagnostic buffer Yes
Technical data
• Number of entries (not configurable) Max. 100
Communication functions
PG/OP communication Yes
Global data communication Yes
• Number of GD circuits 4
• Number of GD packets Max. 4
– Sending stations Max. 4
– Receiving stations Max. 4
• Length of GD packets max. 22 bytes
– Consistent data 22 bytes
S7 basic communication Yes
• User data per request max. 76 bytes
– Consistent data 76 bytes (for X_SEND or X_RCV)
64 bytes (for X_PUT or X_GET as the server)
S7 communication Yes
• As server Yes
• as client Yes (via CP and loadable FBs)
• User data per request Max. 180 (for PUT/GET)
– Consistent data 64 bytes
S5-compatible communication Yes (via CP and loadable FCs)
Number of connections 12
can be used for
• PG communication Max. 11
– Reserved (default) 1
– Configurable 1 to 11
• OP communication Max. 11
– Reserved (default) 1
– Configurable 1 to 11
• S7-based communication Max. 8
– Reserved (default) 8
– Configurable 0 to 8
Routing No
Interfaces
1st interface
Type of interface Integrated RS485 interface
Physics RS 485
electrically isolated No
Interface power supply max. 200 mA
(15 to 30 VDC)
Functionality
• MPI Yes
• PROFIBUS DP No
• Point-to-point communication No
Technical data
MPI
Services
• PG/OP communication Yes
• Routing No
• Global data communication Yes
• S7 basic communication Yes
• S7 communication Yes
– As server Yes
– As client No (but via CP and loadable FBs)
• Transmission rates 187.5 kbps
Programming
Programming language LAD/FBD/STL
Available instructions See the Instruction List
Nesting levels 8
System functions (SFCs) See the Instruction List
System function blocks (SFBs) See the Instruction List
User program security Yes
Dimensions
Mounting dimensions W x H x D (mm) 40 x 125 x 130
Weight 280 g
Voltages and currents
Power supply (rated value) 24 VDC
• Permitted range 20.4 V to 28.8 V
Current consumption (no-load operation) Typically 60 mA
Inrush current Typically 2.5 A
Power consumption (nominal value) 0,6 A
I2t 0.5 A2s
External fusing of power supply lines min. 2 A
(recommended)
Power loss Typically 2.5 W
Technical data
Technical data
CPU and version
Order number 6ES7315-2AG10-0AB0
• Hardware version 01
• Firmware version V 2.0.0
• Associated programming package STEP 7 as of V 5.1 + SP 4
Memory
RAM
• Integrated 128 KB
• Expandable No
Load memory Plugged in with MMC (max. 8 MB)
Data storage life on the MMC At least 10 years
(following final programming)
Buffering Guaranteed by MMC (maintenance-free)
Execution times
Processing times of
• Bit operations Min. 0.1 μs
• Word instructions Min. 0.2 μs
• Fixed-point arithmetic Min. 2.0 μs
• Floating-point arithmetic Min. 6 μs
Timers/counters and their retentivity
S7 counters 256
• Retentive memory Configurable
• Default from C0 to C7
• Counting range 0 to 999
IEC Counters Yes
• Type SFB
• Number unlimited (limited only by RAM size)
S7 timers 256
• Retentive memory Configurable
• Default Not retentive
• Timer range 10 ms to 9990 s
IEC Timers Yes
• Type SFB
• Number unlimited (limited only by RAM size)
Technical data
Data areas and their retentivity
Flag bits 2048 bytes
• Retentive memory Yes
• Default retentivity MB0 to MB15
Clock flag bits 8 (1 byte per flag bit)
Data blocks
• Number 1023
(DB 1 to DB 1023)
• Length 16 KB
Local data capacity Max. 1024 bytes per task/510 per block
Blocks
Total 1024 (DBs, FCs, FBs)
The maximum number of blocks that can be
loaded may be reduced if you are using another
MMC.
OBs See the Instruction List
• Length 16 KB
Nesting depth
• Per priority class 8
• additional within an error OB 4
FBs See the Instruction List
• Number 2048
(FB 0 to FB 2047)
• Length 16 KB
FCs See the Instruction List
• Number 2048
(FC 0 to FC 2047)
• Length 16 KB
Address areas (I/O)
Total I/O address area max. 2048 bytes/2048 bytes
(can be freely addressed)
Distributed Max. 2000
I/O process image 128/128
Digital channels Max. 16384
of those local Max. 1024
Analog channels Max. 1024
of those local Max. 256
Assembly
Racks Max. 4
Modules per rack 8
Number of DP masters
• Integrated 1
• via CP 1
Technical data
Number of function modules and communication
processors you can operate
• FM Max. 8
• CP (PtP) Max. 8
• CP (LAN) Max. 10
Time-of-day
Real-time clock Yes (HW clock)
• Buffered Yes
• Buffered period Typically 6 weeks (at an ambient temperature of
104 °F)
• Behavior of the clock on expiration of the The clock keeps running, continuing at the time-
buffered period of-day it had when power was switched off.
• Accuracy Deviation per day: < 10 s
Operating hours counter 1
• Number 0
• Value range 2 31 hours
(if SFC 101 is used)
• Granularity 1 hour
• Retentive yes; must be manually restarted after every
restart
Clock synchronization Yes
• In the PLC Master
• On MPI Master/slave
S7 signaling functions
Number of stations that can log in for signaling 16
functions (e.g. OS) (depends on the number of connections
configured for PG / OP and S7 basic
communication)
Process diagnostics messages Yes
• Simultaneously enabled interrupt S blocks 40
Testing and commissioning functions
Status/control variables Yes
• Variables Inputs, outputs, memory bits, DBs, timers,
counters
• Number of variables 30
– Of those as status variable 30
– Of those as control variable 14
Forcing
• Variables Inputs/Outputs
• Number of variables Max. 10
Block status Yes
Single step Yes
Breakpoints 2
Technical data
Diagnostic buffer Yes
• Number of entries (not configurable) Max. 100
Communication functions
PG/OP communication Yes
Global data communication Yes
• Number of GD circuits 8
• Number of GD packets Max. 8
– Sending stations Max. 8
– Receiving stations Max. 8
• Length of GD packets max. 22 bytes
– Consistent data 22 bytes
S7 basic communication Yes
• User data per request max. 76 bytes
– Consistent data 76 bytes (for X_SEND or X_RCV)
64 bytes (for X_PUT or X_GET as the server)
S7 communication Yes
• As server Yes
• as client Yes (via CP and loadable FBs)
• User data per request Max. 180 bytes (with PUT/GET)
– Consistent data 64 byte (as the server)
S5-compatible communication Yes (via CP and loadable FCs)
Number of connections 16
can be used for
• PG communication Max. 15
– Reserved (default) 1
– Configurable 1 to 15
• OP communication Max. 15
– Reserved (default) 1
– Configurable 1 to 15
• S7-based communication Max. 12
– Reserved (default) 12
– Configurable 0 to 12
Routing Yes (max. 4)
Interfaces
1st interface
Type of interface Integrated RS485 interface
Physics RS 485
electrically isolated No
Interface power supply max. 200 mA
(15 to 30 VDC)
Technical data
Functionality
• MPI Yes
• PROFIBUS DP No
• Point-to-point communication No
MPI
Services
• PG/OP communication Yes
• Routing Yes
• Global data communication Yes
• S7 basic communication Yes
• S7 communication Yes
– As server Yes
– As client No (but via CP and loadable FBs)
• Transmission rates 187.5 kbps
2nd interface
Type of interface Integrated RS485 interface
Physics RS 485
electrically isolated Yes
Type of interface Integrated RS485 interface
Interface power supply (15 to 30 VDC) max. 200 mA
Functionality
MPI No
PROFIBUS DP Yes
Point-to-point communication No
DP master
Services
• PG/OP communication Yes
• Routing Yes
• Global data communication No
• S7 basic communication No
• S7 communication No
• Constant bus cycle time Yes
• SYNC/FREEZE Yes
• DPV1 Yes
Transmission speed Up to 12 Mbps
Number of DP slaves per station 124
Address area max. 244 bytes
Technical data
DP slave
Services
• PG/OP communication Yes
• Routing Yes (only if interface is active)
• Global data communication No
• S7 basic communication No
• S7 communication No
• Direct data exchange Yes
• Transmission rates Up to 12 Mbps
• Automatic baud rate search Yes (only if interface is passive)
• Intermediate memory 244 bytes I / 244 bytes O
• Address areas max. 32 with max. 32 bytes each
• DPV1 No
GSD file The latest GSD file is available at:
http://www.ad.siemens.de/support
in the Product Support area
Programming
Programming language LAD/FBD/STL
Available instructions See the Instruction List
Nesting levels 8
System functions (SFCs) See the Instruction List
System function blocks (SFBs) See the Instruction List
User program security Yes
Dimensions
Mounting dimensions W x H x D (mm) 40 x 125 x 130
Weight 290 g
Voltages and currents
Power supply (rated value) 24 VDC
• Permitted range 20.4 V to 28.8 V
Current consumption (no-load operation) Typically 60 mA
Inrush current Typically 2.5 A
Power consumption (nominal value) 0.8 A
I2t 0.5 A2s
External fusing of power supply lines min. 2 A
(recommended)
Power loss Typically 2,5 W
Technical data
Technical data
CPU and version
Order number 6ES7315-2EG10-0AB0
• Hardware version 01
• Firmware version V 2.3.0
• Associated programming package STEP 7 as of V 5.3 + SP 1
Memory
RAM
• RAM 128 KB
• Expandable No
Capacity of the retentive memory for retentive 128 KB
data blocks
Load memory Plugged in with MMC (max. 8 MB)
Buffering Guaranteed by MMC (maintenance-free)
Data storage life on the MMC At least 10 years
(following final programming)
Execution times
Processing times of
• Bit operations 0.1 μs
• Word instructions 0.2 μs
• Fixed-point arithmetic 2 μs
• Floating-point arithmetic 6 μs
Timers/counters and their retentivity
S7 counters 256
• Retentive memory Configurable
• Default from C0 to C7
• Counting range 0 to 999
IEC Counters Yes
• Type SFB
• Number Unlimited
(limited only by RAM size)
S7 timers 256
• Retentive memory Configurable
• Default Not retentive
• Timer range 10 ms to 9990 s
Technical data
IEC Timers Yes
• Type SFB
• Number Unlimited
(limited only by RAM size)
Data areas and their retentivity
Flag bits 2048 bytes
• Retentive memory Configurable
• Default retentivity From MB0 to MB15
Clock flag bits 8 (1 byte per flag bit)
Data blocks
• Number 1023
(DB 1 to DB 1023)
• Length 16 KB
• Non-Retain support (configured retention) Yes
Local data per priority class Max. 1024 bytes per run level / 510 bytes per
block
Blocks
Total 1024 (DBs, FCs, FBs)
The maximum number of blocks that can be
loaded may be reduced if you are using another
MMC.
OBs See the Instruction List
• Length 16 KB
Nesting depth
• Per priority class 8
• additional within an error OB 4
FBs See the Instruction List
• Number 2048
(FB 0 to FB 2047)
• Length 16 KB
FCs See the Instruction List
• Number 2048
(FC 0 to FC 2047)
• Length 16 KB
Address areas (I/O)
Total I/O address area max. 2048 bytes/2048 bytes
(can be freely addressed)
Distributed max. 2000 bytes
I/O process image 128/128
Digital channels 16384/16384
of those local Max. 1024
Analog channels 1024/1024
of those local Max. 256
Technical data
Assembly
Racks Max. 4
Modules per rack 8
Number of DP masters
• Integrated 1
• via CP 2
Number of function modules and communication processors you can operate
• FM Max. 8
• CP (PtP) Max. 8
• CP (LAN) Max. 10
Time-of-day
Real-time clock Yes (hardware clock)
• Factory setting DT#1994-01-01-00:00:00
• Buffered Yes
• Buffered period Typically 6 weeks (at an ambient temperature of
104 °F)
• Behavior of the clock on expiration of the The clock keeps running, continuing at the time-
buffered period of-day it had when power was switched off.
• Behavior of the realtime clock after POWER The clock continues running after POWER OFF.
ON
• Accuracy Deviation per day: < 10 s
Operating hours counter 1
• Number 0
• Value range 2 31 hours
(if SFC 101 is used)
• Granularity 1 hour
• Retentive yes; must be manually restarted after every
restart
Clock synchronization Yes
• In the PLC Master/slave
• On MPI Master/slave
S7 signaling functions
Number of stations that can be logged on for 16
signaling functions (depends on the number of connections
configured for PG / OP and S7 basic
communication)
Process diagnostics messages Yes
• Simultaneously enabled interrupt S blocks 40
Testing and commissioning functions
Status/control variables Yes
• Variables Inputs, outputs, memory bits, DBs, timers,
counters
Technical data
• Number of variables 30
– Of those as status variable Max. 30
– Of those as control variable Max. 14
Forcing
• Variables Inputs/Outputs
• Number of variables Max. 10
Block status Yes
Single step Yes
Breakpoints 2
Diagnostic buffer Yes
• Number of entries (not configurable) Max. 100
Communication functions
Open IE communication via TCP/IP Yes (via integrated PROFINET interface and
loadable FBs, max. 8 connections)
PG/OP communication Yes
Global data communication Yes
• Number of GD circuits 8
• Number of GD packets Max. 8
– Sending stations Max. 8
– Receiving stations Max. 8
• Length of GD packets max. 22 bytes
– Consistent data 22 bytes
S7 basic communication Yes
• User data per request max. 76 bytes
– Consistent data 76 bytes
S7 communication Yes
• As server Yes
• as client Yes (via integrated PN interface and loadable
FBs, or even via CP and loadable FBs)
• User data per request See the STEP 7 Online Help, Common
– Consistent data parameters of SFBs/FBs and SFC/FC of the S7
communication)
S5-compatible communication Yes (via CP and loadable FCs)
Number of connections 16
can be used for
• PG communication Max. 15
– Reserved (default) 1
– Configurable 1 to 15
• OP communication Max. 15
– Reserved (default) 1
– Configurable 1 to 15
• S7-based communication Max. 14
– Reserved (default) 0
– Configurable 0 to 14
Technical data
Routing Yes
• Interface X1 configured as
– MPI Max. 10
– DP master Max. 24
– DP slave (active) Max. 14
• Interface X2 configured as PROFINET Max. 24
CBA (at 50 % communication load)
• Maximum data length for arrays and
structures between two partners
– Acyclic PROFINET interconnections 1400 bytes
– Cyclic PROFINET interconnections 450 bytes
– Local interconnections Slave-dependent
• Number of coupled PROFIBUS devices 16
• Total of all master/slave connections 1000
• Number of device-internal and PROFIBUS 500
interconnections
• Number of remote interconnecting partners 32
Remote interconnections with acyclical transmission
Scan rate: Minimum scan interval 500 ms
Number of incoming interconnections 100
Number of outgoing interconnections 100
Remote interconnections with cyclical transmission
Scan rate: Minimum scan interval 10 ms
Number of incoming interconnections 200
Number of outgoing interconnections 200
HMI interconnections via PROFINET (acyclic)
HMI interconnections 500 ms
Number of HMI variables 200
Sum of all interconnections 4000 bytes input/4000 bytes output
Interfaces
1st interface
Type of interface Integrated RS485 interface
Physics RS 485
electrically isolated Yes
Interface power supply max. 200 mA
(15 to 30 VDC)
Functionality
• MPI Yes
• PROFIBUS DP Yes
• Point-to-point communication No
• PROFINET No
Technical data
MPI
Services
• PG/OP communication Yes
• Routing Yes
• Global data communication Yes
• S7 basic communication Yes
• S7 communication Yes
– As server Yes
– As client No (but via CP and loadable FBs)
• Transmission rates Max. 12 Mbps
DP master
Services
• PG/OP communication Yes
• Routing Yes
• Global data communication No
• S7 basic communication No
• S7 communication No
• Constant bus cycle time Yes
• SYNC/FREEZE Yes
• DPV1 Yes
Transmission speed Up to 12 Mbps
Number of DP slaves 124
DP slave
Services
• Routing Yes (only if interface is active)
• Global data communication No
• S7 basic communication No
• S7 communication No
• Direct data exchange Yes
• Transmission rates Up to 12 Mbps
• Automatic baud rate search Yes (only if interface is passive)
• Intermediate memory 244 bytes I / 244 bytes O
• Address areas max. 32 with max. 32 bytes each
• DPV1 No
2nd interface
Type of interface PROFINET
Physics Ethernet
electrically isolated Yes
Autosensing (10/100 Mbps) Yes
Technical data
Functionality
• PROFINET Yes
• MPI No
• PROFIBUS DP No
• Point-to-point communication No
Services
• PG communication Yes
• OP communication Yes
• S7 communication Yes (with loadable FBs)
– Max. configurable interconnections 14
• Routing Yes
• PROFINET IO Yes
• PROFINET CBA Yes
PROFINET IO
Number of integrated PROFINET IO controllers 1
Number of connectable PROFINET IO devices 128
Max. user data consistency with PROFINET IO 256 bytes
Update Time 1 ms to 512 ms
The minimum value is determined by the set
communication portion for PROFINET IO, the
number of IO devices and the amount of
configured user data.
Routing Yes
S7 protocol functions
• PG functions Yes
• OP functions Yes
• Open IE communication via TCP/IP Yes
GSD file The latest GSD file is available at:
http://www.ad.siemens.de/support
in the Product Support area
Programming
Programming language LAD/FBD/STL
Available instructions See the Instruction List
Nesting levels 8
System functions (SFCs) See the Instruction List
System function blocks (SFBs) See the Instruction List
User program security Yes
Dimensions
Mounting dimensions W x H x D (mm) 80 x 125 x 130
Weight 460 g
Technical data
Voltages and currents
Power supply (rated value) 24 VDC
• Permitted range 20.4 V to 28.8 V
Current consumption (no-load operation) 100 mA
Inrush current Typically 2.5 A
I2t Min. 1 A2s
External fusing of power supply lines min. 2 A
(recommended)
Power loss Typically 3.5 W
Technical data
Technical data
CPU and version
Order number 6ES7317-2AJ10-0AB0
• Hardware version 01
• Firmware version V 2.1.0
• Associated programming package STEP 7 as of V 5.2 + SP 1
Memory
RAM
• Integrated 512 KB
• Expandable No
Capacity of the retentive memory for retentive max. 256 KB
data blocks
Load memory Plugged in with MMC (max. 8 MB)
Buffering Guaranteed by MMC (maintenance-free)
Data storage life on the MMC At least 10 years
(following final programming)
Execution times
Processing times of
• Bit operations 0.05 μs
• Word instructions 0.2 μs
• Fixed-point arithmetic 0.2 μs
• Floating-point arithmetic 1.0 μs
Technical data
Timers/counters and their retentivity
S7 counters 512
• Retentive memory Configurable
• Default from C0 to C7
• Counting range 0 to 999
IEC Counters Yes
• Type SFB
• Number Unlimited
(limited only by RAM size)
S7 timers 512
• Retentive memory Configurable
• Default Not retentive
• Timer range 10 ms to 9990 s
IEC Timers Yes
• Type SFB
• Number Unlimited
(limited only by RAM size)
Data areas and their retentivity
Flag bits 4096 bytes
• Retentive memory Configurable
• Default retentivity From MB0 to MB15
Clock flag bits 8 (1 byte per flag bit)
Data blocks
• Number 2047
(DB 1 to DB 2047)
• Length 64 KB
• Non-Retain support (configured retention) Yes
Local data per priority class max. 1024 bytes
Blocks
Total 2048 (DBs, FCs, FBs)
The maximum number of blocks that can be
loaded may be reduced if you are using another
MMC.
OBs See the Instruction List
• Length 64 KB
Nesting depth
• Per priority class 16
• additional within an error OB 4
FBs See the Instruction List
• Number 2048
(FB 0 to FB 2047)
• Length 64 KB
Technical data
FCs See the Instruction List
• Number 2048
(FC 0 to FC 2047)
• Length 64 KB
Address areas (I/O)
Total I/O address area max. 8192 bytes/8192 bytes
(can be freely addressed)
Distributed max. 8192 bytes
I/O process image 256/256
Digital channels 65536/65536
of those local Max. 1024
Analog channels 4096/4096
of those local 256/256
Assembly
Racks Max. 4
Modules per rack 8
Number of DP masters
• Integrated 2
• via CP 2
Number of function modules and communication processors you can operate
• FM Max. 8
• CP (PtP) Max. 8
• CP (LAN) Max. 10
Time-of-day
Real-time clock Yes (HW clock)
• Buffered Yes
• Buffered period Typically 6 weeks (at an ambient temperature of
104 °F)
• Behavior of the clock on expiration of the The clock keeps running, continuing at the time-
buffered period of-day it had when power was switched off.
• Accuracy Deviation per day: < 10 s
Operating hours counter 4
• Number 0 to 3
• Value range 2 31 hours
(if SFC 101 is used)
• Granularity 1 hour
• Retentive yes; must be manually restarted after every
restart
Clock synchronization Yes
• In the PLC Master/slave
• On MPI Master/slave
Technical data
S7 signaling functions
Number of stations that can be logged on for 32
signaling functions (depends on the number of connections
configured for PG / OP and S7 basic
communication)
Process diagnostics messages Yes
• Simultaneously enabled interrupt S blocks 60
Testing and commissioning functions
Status/control variables Yes
• Variables Inputs, outputs, memory bits, DBs, timers,
counters
• Number of variables 30
– Of those as status variable Max. 30
– Of those as control variable Max. 14
Forcing
• Variables Inputs/Outputs
• Number of variables Max. 10
Block status Yes
Single step Yes
Breakpoints 2
Diagnostic buffer Yes
• Number of entries (not configurable) Max. 100
Communication functions
PG/OP communication Yes
Global data communication Yes
• Number of GD circuits 8
• Number of GD packets Max. 8
– Sending stations Max. 8
– Receiving stations Max. 8
• Length of GD packets max. 22 bytes
– Consistent data 22 bytes
S7 basic communication Yes
• User data per request max. 76 bytes
– Consistent data 76 bytes (for X_SEND or X_RCV)
76 bytes (for X_PUT or X_GET as the server)
S7 communication Yes
• As server Yes
• as client Yes (via CP and loadable FBs)
• User data per request Max. 180 bytes (with PUT/GET)
– Consistent data 160 byte (as the server)
S5-compatible communication Yes (via CP and loadable FCs)
Technical data
Number of connections 32
can be used for
• PG communication Max. 31
– Reserved (default) 1
– Configurable 1 to 31
• OP communication Max. 31
– Reserved (default) 1
– Configurable 1 to 31
• S7-based communication Max. 30
– Reserved (default) 0
– Configurable 0 to 30
Routing Yes (max. 8)
Interfaces
1st interface
Type of interface Integrated RS485 interface
Physics RS 485
electrically isolated Yes
Interface power supply max. 200 mA
(15 to 30 VDC)
Functionality
• MPI Yes
• PROFIBUS DP Yes
• Point-to-point communication No
MPI
Services
• PG/OP communication Yes
• Routing Yes
• Global data communication Yes
• S7 basic communication Yes
• S7 communication
– As server Yes
– As client No (but via CP and loadable FBs)
• Transmission rates Max. 12 Mbps
DP master
Services
• PG/OP communication Yes
• Routing Yes
• Global data communication No
• S7 basic communication No
• S7 communication No
• Constant bus cycle time Yes
• SYNC/FREEZE Yes
• DPV1 Yes
Technical data
Transmission speed Up to 12 Mbps
Number of DP slaves 124
Address range per DP slave max. 244 bytes
DP slave
(except for DP slave at both interfaces)
Services
• Routing Yes (only if interface is active)
• Global data communication No
• S7 basic communication No
• S7 communication No
• Direct data exchange Yes
• Transmission rates Up to 12 Mbps
• Automatic baud rate search Yes (only if interface is passive)
• Intermediate memory 244 bytes I / 244 bytes O
• Address areas max. 32 with max. 32 bytes each
• DPV1 No
2nd interface
Type of interface Integrated RS485 interface
Physics RS 485
electrically isolated Yes
Type of interface Integrated RS485 interface
Interface power supply (15 to 30 VDC) max. 200 mA
Functionality
MPI No
PROFIBUS DP Yes
Point-to-point communication No
DP master
Services
• PG/OP communication Yes
• Routing Yes
• Global data communication No
• S7 basic communication No
• S7 communication No
• Constant bus cycle time Yes
• SYNC/FREEZE Yes
• DPV1 Yes
Transmission speed Up to 12 Mbps
Number of DP slaves 124
Address area max. 244 bytes
Technical data
DP slave
(except for DP slave at both interfaces)
Services
• PG/OP communication Yes
• Routing Yes (only if interface is active)
• Global data communication No
• S7 basic communication No
• S7 communication No
• Direct data exchange Yes
• Transmission rates Up to 12 Mbps
• Automatic baud rate search Yes (only if interface is passive)
• Intermediate memory 244 bytes I / 244 bytes O
• Address areas max. 32 with max. 32 bytes each
• DPV1 No
GSD file The latest GSD file is available at:
http://www.ad.siemens.de/support
in the Product Support area
Programming
Programming language LAD/FBD/STL
Available instructions See the Instruction List
Nesting levels 8
System functions (SFCs) See the Instruction List
System function blocks (SFBs) See the Instruction List
User program security Yes
Dimensions
Mounting dimensions W x H x D (mm) 80 x 125 x 130
Weight 460 g
Voltages and currents
Power supply (rated value) 24 VDC
• Permitted range 20.4 V to 28.8 V
Current consumption (no-load operation) Typically 100 mA
Inrush current Typically 2.5 A
I2t 1 A2 s
External fusing of power supply lines min. 2 A
(recommended)
Power loss Typically 4 W
Technical data
Technical data
CPU and version
Order number 6ES7317-2EJ10-0AB0
• Hardware version 01
• Firmware version V 2.3.0
• Associated programming package STEP 7 as of V 5.3 + SP 1
Memory
RAM
• RAM 512 KB
• Expandable No
Capacity of the retentive memory for retentive 256 KB
data blocks
Load memory Plugged in with MMC (max. 8 MB)
Buffering Guaranteed by MMC (maintenance-free)
Data storage life on the MMC At least 10 years
(following final programming)
Execution times
Processing times of
• Bit operations 0.05 μs
• Word instructions 0.2 μs
• Fixed-point arithmetic 0.2 μs
• Floating-point arithmetic 1.0 μs
Timers/counters and their retentivity
S7 counters 512
• Retentive memory Configurable
• Default from C0 to C7
• Counting range 0 to 999
IEC Counters Yes
• Type SFB
• Number Unlimited
(limited only by RAM size)
S7 timers 512
• Retentive memory Configurable
• Default Not retentive
• Timer range 10 ms to 9990 s
Technical data
IEC Timers Yes
• Type SFB
• Number Unlimited
(limited only by RAM size)
Data areas and their retentivity
Flag bits 4096 bytes
• Retentive memory Configurable
• Default retentivity From MB0 to MB15
Clock flag bits 8 (1 byte per flag bit)
Data blocks
• Number 2047
(DB 1 to DB 2047)
• Length 64 KB
• Non-Retain support (configured retention) Yes
Local data per priority class max. 1024 bytes
Blocks
Total 2048 (DBs, FCs, FBs)
The maximum number of blocks that can be
loaded may be reduced if you are using another
MMC.
OBs See the Instruction List
• Length 64 KB
Nesting depth
• Per priority class 16
• additional within an error OB 4
FBs See the Instruction List
• Number 2048
(FB 0 to FB 2047)
• Length 64 KB
FCs See the Instruction List
• Number 2048
(FC 0 to FC 2047)
• Length 64 KB
Address areas (I/O)
Total I/O address area max. 8192 bytes/8192 bytes
(can be freely addressed)
Distributed max. 8192 bytes
I/O process image
• Configurable 2048/2048
• Default 256/256
Digital channels 65536/65536
of those local Max. 1024
Technical data
Analog channels 4096/4096
of those local 256/256
Assembly
Racks Max. 4
Modules per rack 8
Number of DP masters
• Integrated 1
• via CP 2
Number of function modules and communication processors you can operate
• FM Max. 8
• CP (PtP) Max. 8
• CP (LAN) Max. 10
Time-of-day
Real-time clock Yes (hardware clock)
• Factory setting DT#1994-01-01-00:00:00
• Buffered Yes
• Buffered period Typically 6 weeks (at an ambient temperature of
104 °F)
• Behavior of the clock on expiration of the The clock keeps running, continuing at the time-
buffered period of-day it had when power was switched off.
• Behavior of the realtime clock after POWER The clock continues running after POWER OFF.
ON
• Accuracy Deviation per day: < 10 s
Operating hours counter 4
• Number 0 to 3
• Value range 2 31 hours
(if SFC 101 is used)
• Granularity 1 hour
• Retentive yes; must be manually restarted after every
restart
Clock synchronization Yes
• In the PLC Master/slave
• On MPI Master/slave
S7 signaling functions
Number of stations that can be logged on for 32
signaling functions (depends on the number of connections
configured for PG / OP and S7 basic
communication)
Process diagnostics messages Yes
• Simultaneously enabled interrupt S blocks 60
Testing and commissioning functions
Status/control variables Yes
• Variables Inputs, outputs, memory bits, DBs, timers,
counters
Technical data
• Number of variables 30
– Of those as status variable Max. 30
– Of those as control variable Max. 14
Forcing
• Variables Inputs/Outputs
• Number of variables Max. 10
Block status Yes
Single step Yes
Breakpoints 2
Diagnostic buffer Yes
• Number of entries (not configurable) Max. 100
Communication functions
Open IE communication via TCP/IP Yes (via integrated PROFINET interface and
loadable FBs, max. 8 connections)
PG/OP communication
Global data communication Yes
• Number of GD circuits 8
• Number of GD packets Max. 8
– Sending stations Max. 8
– Receiving stations Max. 8
• Length of GD packets max. 22 bytes
– Consistent data 22 bytes
S7 basic communication Yes
• User data per request max. 76 bytes
– Consistent data 76 bytes
S7 communication Yes
• As server Yes
• as client Yes (via integrated PN interface and loadable
FBs, or even via CP and loadable FBs)
• User data per request See the STEP 7 Online Help, Common
– Consistent data parameters of SFBs/FBs and SFC/FC of the S7
communication)
S5-compatible communication Yes (via CP and loadable FCs)
Number of connections 32
can be used for
• PG communication Max. 31
– Reserved (default) 1
– Configurable 1 to 31
• OP communication Max. 31
– Reserved (default) 1
– Configurable 1 to 31
• S7-based communication Max. 30
– Reserved (default) 0
– Configurable 0 to 30
Technical data
Routing
• Interface X1 configured as Yes
– MPI Max. 10
– DP master Max. 24
– DP slave (active) Max. 14
• Interface X2 configured as
– PROFINET Max. 24
CBA (at 50 % communication load)
• Maximum data length for arrays and
structures between two partners
– Acyclic PROFINET interconnections
1400 bytes
– Cyclic PROFINET interconnections
450 bytes
– Local interconnections
Slave-dependent
• Number of coupled PROFIBUS devices 16
• Total of all master/slave connections 1000
• Number of device-internal and PROFIBUS 500
interconnections
• Number of remote interconnecting partners 32
Remote interconnections with acyclical transmission
Scan rate: Minimum scan interval 500 ms
Number of incoming interconnections 100
Number of outgoing interconnections 100
Remote interconnections with cyclical transmission
Scan rate: Minimum scan interval 10 ms
Number of incoming interconnections 200
Number of outgoing interconnections 200
HMI interconnections via PROFINET (acyclic)
HMI interconnections 500 ms
Number of HMI variables 200
Sum of all interconnections 4000 bytes input/4000 bytes output
Interfaces
1st interface
Type of interface Integrated RS485 interface
Physics RS 485
electrically isolated Yes
Interface power supply max. 200 mA
(15 to 30 VDC)
Functionality
• MPI Yes
• PROFIBUS DP Yes
• Point-to-point communication No
• PROFINET No
Technical data
MPI
Services
• PG/OP communication Yes
• Routing Yes
• Global data communication Yes
• S7 basic communication Yes
• S7 communication Yes
– As server Yes
– As client No (but via CP and loadable FBs)
• Transmission rates Max. 12 Mbps
DP master
Services
• PG/OP communication Yes
• Routing Yes
• Global data communication No
• S7 basic communication No
• S7 communication No
• Constant bus cycle time Yes
• SYNC/FREEZE Yes
• DPV1 Yes
Transmission speed Up to 12 Mbps
Number of DP slaves 124
DP slave
Services
• Routing Yes (only if interface is active)
• Global data communication No
• S7 basic communication No
• S7 communication No
• Direct data exchange Yes
• Transmission rates Up to 12 Mbps
• Automatic baud rate search Yes (only if interface is passive)
• Intermediate memory 244 bytes I / 244 bytes O
• Address areas max. 32 with max. 32 bytes each
• DPV1 No
2nd interface
Type of interface PROFINET
Physics Ethernet
electrically isolated Yes
Autosensing (10/100 Mbps) Yes
Technical data
Functionality
• PROFINET Yes
• MPI No
• PROFIBUS DP No
• Point-to-point communication No
Services
• PG communication Yes
• OP communication Yes
• S7 communication Yes (with loadable FBs)
– Max. configurable interconnections 16
• Routing Yes
• PROFINET IO Yes
• PROFINET CBA Yes
PROFINET IO
Number of integrated PROFINET IO controllers 1
Number of connectable PROFINET IO devices 128
Max. user data consistency with PROFINET IO 256 bytes
Update Time 1 ms to 512 ms
The minimum value is determined by the set
communication portion for PROFINET IO, the
number of IO devices and the amount of
configured user data.
S7 protocol functions
• PG functions Yes
• OP functions Yes
• Open IE communication via TCP/IP Yes
GSD file The latest GSD file is available at:
http://www.ad.siemens.de/support
in the Product Support area
Programming
Programming language LAD/FBD/STL
Available instructions See the Instruction List
Nesting levels 8
System functions (SFCs) See the Instruction List
System function blocks (SFBs) See the Instruction List
User program security Yes
Dimensions
Mounting dimensions W x H x D (mm) 80 x 125 x 130
Weight 460 g
Technical data
Voltages and currents
Power supply (rated value) 24 VDC
• Permitted range 20.4 V to 28.8 V
Current consumption (no-load operation) 100 mA
Inrush current Typically 2.5 A
I2t Min. 1 A2s
External fusing of power supply lines min. 2 A
(recommended)
Power loss Typically 3.5 W
If you have used one of the following CPUs in the past ...
... then please note if you upgrade to one of the following CPUs
Reference
If you intend to migrate from PROFIBUS DP to PROFINET, we also recommend the
following manual: Guide: From PROFIBUS DP to PROFINET IO
See also
DPV1 (Page 3-32)
Note
If you are using SFC 56 "WR_DPARM" or SFC 57 "PARM_MOD", you should always
evaluate the SFC's BUSY bit.
• SFC 13 "DPNRM_DG"
On CPUs 312 IFM to 318-2 DP, this SFC always works "quasi synchronously" when it is
called in OB82. On CPUs 31xC/31x it generally works asynchronously.
Note
In the user program, the job should merely be started in OB 82. The data should be
evaluated in the cyclical program, taking account of the BUSY bits and the value returned
in RET_VAL.
Hint
If you are using a CPU 31xC/31x, we recommend that you use SFB 54, rather than SFC
13 "DPNRM_DG".
SFC 20 "BLKMOV"
In the past, this SFC could be used with CPUs 312 IFM to 318-2 DP to copy data from a non
runtime-related DB.
SFC 20 no longer has this functionality with CPUs 31xC/31x. SFC83 "READ_DBL" is now
used instead.
SFC 54 "RD_DPARM"
This SFC is no longer available on CPUs 31xC/31x. Use SFC 102 "RD_DPARA" instead,
which works asynchronously.
A.1.3 Interrupt events from distributed I/Os while the CPU status is in STOP
Interrupt events from distributed I/Os while the CPU status is in STOP
With the new DPV1 functionality (IEC 61158/ EN 50170, volume 2, PROFIBUS), the
handling of incoming interrupt events from the distributed I/Os while the CPU status is in
STOP has also changed.
Note
Reading diagnostics data with SFC 13 "DPNRM_DG":
The originally assigned diagnostics address still works. Internally, STEP 7 assigns this
address to slot 0.
When using SFC51 "RDSYSST", for example, to read module status information or module
rack/station status information, you must also consider the change in slot significance as well
as the additional slot 0.
A.1.8 Using consistent data areas in the process image of a DP slave system
Consistent data
The table below illustrates the points to consider with respect to communication in a DP
master system if you want to transfer I/O areas with "Total length" consistency. You can
transfer a maximum of 128 bytes of consistent data.
Reference
See also the Memory concept chapter in the CPU Data 31xC and 31x manual.
Note
User programs can only be downloaded and thus the CPU can only be used if the MMC is
inserted.
PG/OP functions
With CPUs 315-2 DP (6ES7315-2AFx3-0AB0), 316-2DP and 318-2 DP, PG/OP functions at
the DP interface were only possible if the interface was set to active. With CPUs 31xC/31x,
these functions are possible at both active and passive interfaces. The performance of the
passive interface is considerably lower, however.
A.1.12 Changed retentive behavior for CPUs with firmware >= V2.1.0
A.1.13 FMs/CPs with separate MPI address in the central rack of a CPU 315-2 PN/DP /
CPU 317
FMs/CPs with separate MPI address in the central rack of a CPU 315-2 PN/DP / CPU 317
All CPUs, except CPU 315-2 PN/DP, CPU 317 CPU 315-2 PN/DP, CPU 317 and CPU 318-2 DP
and CPU 318-2 DP
If there are FM/CPs with their own MPI address in If there are FM/CPs with their own MPI address
the central rack of an S7-300, then they are in the in the central rack of an S7-300, then the CPU
exact same CPU subnet as the CPU MPI station. forms its own communication bus via the
backplane bus with these FM/CPs, which are
separated from the other subnets.
The MPI address of such an FM/CP is no longer
relevant for the stations on other subnets. The
communication to the FM/CP is made via the MPI
address of the CPU.
When exchanging your existing CPU with a CPU 315-2 PN/DP / CPU 317, you therefore
need to:
• replace the CPU in your STEP 7 project with the CPU 315-2 PN/DP / CPU 317.
• Reconfigure the OPs. The control and the destination address must be reassigned (= the
MPI address of the CPU 315-2 PN/DP / CPU 317 and the slot of the respective FM)
• Reconfigure the project data for FM/CP to be loaded to the CPU.
This is required for the FM/CP in this rack to remain "available" to the OP/PG.
A.1.14 Using loadable blocks for S7 communication for the integrated PROFINET
interface
If you have already used S7 communication via CP with loadable FBs (FB 8, FB 9, FB 12 –
FB 15 and FC 62 with version V1.0) from the SIMATIC_NET_CP STEP 7 library (these
blocks all feature the family type CP300 PBK) and now want to use the integrated
PROFINET interface for S7 communication, you must use the corresponding blocks from the
Standard Library\Communication Blocks STEP 7 library in your program (the corresponding
blocks FB 8, FB 9, FB 12 – FB 15 and FC 62 have at least version V1.1 and family type
CPU_300).
Procedure
1. Download and overwrite the old FBs/FCs in your program container with the
corresponding blocks from the standard library.
2. Update the corresponding block calls, including updating the instance DBs, in your user
program.
Accumulator
Accumulators represent CPU register and are used as buffer memory for download, transfer,
comparison, calculation and conversion operations.
Address
An address is the identifier of a specific address or address area. Examples: Input I 12.1;
Flag Word MW 25; Data Block DB 3.
Analog module
Analog modules convert process values (e.g. temperature) into digital values which can be
processing in the CPU, or they convert digital values into analog manipulated variables.
Application
An application is a program that runs directly on the MS-DOS / Windows operating system.
Applications on the PG include, for example, the STEP 5 basic package, GRAPH 5 and
others.
See User program
ASIC
ASIC is the acronym for Application Specific Integrated Circuits.
PROFINET ASICs are components with a wide range of functions for the development of
your own devices. They implement the requirements of the PROFINET standard in a circuit
and allow extremely high packing densities and performance.
Because PROFINET is an open standard, SIMATIC NET offers PROFINET ASICs for the
development of your old devices under the name ERTEC .
Backplane bus
The backplane bus is a serial data bus. It supplies power to the modules and is also used by
the modules to communicate with each other. Bus connectors interconnect the modules.
Backup memory
Backup memory ensures buffering of the memory areas of a CPU without backup battery. It
backs up a configurable number of timers, counters, flag bits, data bytes and retentive
timers, counters, flag bits and data bytes).
Bus
A bus is a communication medium connecting several nodes. Data can be transferred via
serial or parallel circuits, that is, via electrical conductors or fiber optic.
Bus segment
A bus segment is a self-contained section of a serial bus system. Bus segments are
interconnected via repeaters.
Note
When operating with S7300 CPUs, make sure that the byte of the clock memory bit is not
overwritten in the user program!
Coaxial Cable
A coaxial cable, also known as "coax", is a metallic cabling system used in high-frequency
transmission, for example as the antenna cable for radios and televisions as well as in
modern networks in which high data transmission rates are required. In a coaxial cable, an
inner conductor is surrounded by an outer tube-like conductor. The two conductors are
separated by a dielectric layer. In contrast to other cables, this design provides a high
degree of immunity to and low emission of electromagnetic interference.
Code block
A SIMATIC S7 code block contains part of the STEP 7 user program. (in contrast to a DB:
this contains only data.)
Communication processor
Communications processors are modules for point-to-point and bus links.
Component-Based automation
See PROFINET CBA
Compress
The PG online function "Compress" is used to rearrange all valid blocks in CPU RAM in one
continuous area of user memory, starting at the lowest address. This eliminates
fragmentation which occurs when blocks are deleted or edited.
Configuration
Assignment of modules to module racks/slots and (e.g. for signal modules) addresses.
Consistent data
Data which are related in their contents and not to be separated are referred to as consistent
data.
For example, the values of analog modules must always be handled consistently, that is, the
value of an analog module must not be corrupted as a result of read access at two different
points of time.
Counters
Counters are part of CPU system memory. The content of "Counter cells" can be modified by
STEP 7 instructions (for example, up/down count.)
CP
See Communication processor
CPU
Central processing unit = CPU of the S7 automation system with a control and arithmetic
unit, memory, operating system, and interface for programming device.
Cycle time
The cycle time represents the time a CPU requires for one execution of the user program.
Cyclic interrupt
See Interrupt, cyclic interrupt
Data block
Data blocks (DB) are data areas in the user program which contain user data. There are
global data blocks which can be accessed by all code blocks, and instance data blocks
which are assigned to a specific FB call.
Data, static
Static data can only be used within a function block. These data are saved in an instance
data block that belongs to a function block. Data stored in an instance data block are
retained until the next function block call.
Data, temporary
Temporary data represent local data of a block. They are stored in the L-stack when the
block is executed. After the block has been processed, these data are no longer available.
Default Router
The default router is the router that is used when data must be forwarded to a partner
located within the same subnet.
In STEP 7, the default router is named Router. STEP 7 assigns the local IP address to the
default router.
Determinism
See Real Time
Device
Within the context of PROFINET, "device" is the generic term for:
• Automation systems,
• Field devices (for example, PLC, PC),
• Active network components (for example, distributed I/O, valve blocks, drives),
• hydraulic devices and
• pneumatic devices.
The main characteristic of a device is its integration in PROFINET communication over
Ethernet or PROFIBUS.
The following device types are distinguished based on their attachment to the bus:
• PROFINET devices
• PROFIBUS devices
See PROFIBUS Device
See PROFINET Device
Device Name
Before an IO device can be addressed by an IO controller, it must have a device name. In
PROFINET, this method was selected because it is simpler to work with names than with
complex IP addresses.
The assignment of a device name for a concrete IO device can be compared with setting the
PROFIBUS address of a DP slave.
When it ships, an IO device does not have a device name. An IO device can only be
addressed by an IO controller, for example for the transfer of project engineering data
(including the IP address) during startup or for user data exchange in cyclic operation, after it
has been assigned a device name with the PG/PC .
Diagnostic buffer
The diagnostics buffer represents a buffered memory area in the CPU. It stores diagnostic
events in the order of their occurrence.
Diagnostic Interrupt
Modules capable of diagnostics operations report detected system errors to the CPU by
means of diagnostic interrupts.
Diagnostics
See System diagnostics
DP master
A master which behaves in accordance with EN 50170, Part 3 is known as a DP master.
DP slave
A slave operated on PROFIBUS with PROFIBUS DP protocol and in accordance with EN
50170, Part 3 is referred to as DP slave.
DPV1
The designation DPV1 means extension of the functionality of the acyclical services (to
include new interrupts, for example) provided by the DP protocol. The DPV1 functionality has
been incorporated into IEC 61158/EN 50170, volume 2, PROFIBUS.
Electrically isolated
The reference potential of the control and on-load power circuits of isolated I/O modules is
electrically isolated; for example, by optocouplers, relay contact or transformer. I/O circuits
can be interconnected with a root circuit.
Equipotential bonding
Electrical connection (equipotential bonding conductor) which eliminates potential difference
between electrical equipment and external conductive bodies by drawing potential to the
same or near the same level, in order to prevent disturbing or dangerous voltages between
these bodies.
Error display
One of the possible reactions of the operating system to a runtime error is to output an error
message. Further reactions: Error reaction in the user program, CPU in STOP.
Error response
Reaction to a runtime error. Reactions of the operating system: It sets the automation
system to STOP, indicates the error, or calls an OB in which the user can program a
reaction.
ERTEC
See ASIC
Fast Ethernet
Fast Ethernet describes the standard with which data is transmitted at 100 Mbps. Fast
Ethernet uses the 100 Base-T standard.
FB
See Function block
FC
See Function
Flag bits
Flag bits are part of the CPU's system memory. They store intermediate results of
calculations. They can be accessed in bit, word or dword operations.
Flash EPROM
FEPROMs can retain data in the event of power loss, same as electrically erasable
EEPROMs. However, they can be erased within a considerably shorter time (FEPROM =
Flash Erasable Programmable Read Only Memory). They are used on Memory Cards.
Force
The Force function can be used to assign the variables of a user program or CPU (also:
inputs and outputs) constant values.
In this context, please note the limitations listed in the Overview of the test functions section
in the chapter entitled Test functions, Diagnostics and Troubleshooting in the S7-300
Installation manual.
Function
According to IEC 1131-3, a function (FC) is a --> code block without --> static data. A
function allows transfer of parameters in user program. Functions are therefore suitable for
programming frequently occurring complex functions, e.g. calculations.
Function block
According to IEC 1131-3, a function block (FB) is a --> code block with --> static data. An FB
allows the user program to pass parameters. Function blocks are therefore suitable for
programming frequently occurring complex functions, e.g. controls, mode selections.
Functional ground
Grounding which has the sole purpose of safeguarding the intended function of electrical
equipment. With functional grounding you short-circuit interference voltage which would
otherwise have an unacceptable impact on equipment.
GD circuit
A GD circuit comprises a number of CPUs sharing data by means of global data
communication, and is used as follows:
• A CPU broadcasts a GD packet to the other CPUs.
• A CPU sends and receives a GD packet from another CPU.
A GD circuit is identified by a GD circuit number.
GD element
A GD element is generated by assigning shared global data. It is identified by a unique
global data ID in the global data table.
GD packet
A GD packet can consist of one or several GD elements transmitted in a single message
frame.
Global data
Global data can be addressed from any code block (FC, FB, OB). In particular, this refers to
flag bits M, inputs I, outputs Q, timers, counters and data blocks DB. Global data can be
accessed via absolute or symbolic addressing.
Ground
The conductive earth whose electrical potential can be set equal to zero at any point.
Ground potential can be different from zero in the area of grounding electrodes. The term
reference ground is frequently used to describe this situation.
Grounding means, to connect an electrically conductive component via an equipotential
grounding system to a grounding electrode (one or more conductive components with highly
conductive contact to earth).
Chassis ground is the totality of all the interconnected passive parts of a piece of equipment
on which dangerous fault-voltage cannot occur.
GSD file
The properties of a PROFINET device are described in a GSD file (General Station
Description) that contains all the information required for configuration.
Just as in PROFIBUS, you can integrate a PROFINET device in STEP 7 using a GSD file.
In PROFINET IO, the GSD file is in XML format. The structure of the GSD file complies with
ISO 15734, the worldwide standard for device descriptions.
In PROFIBUS, the GSD file is in ASCII format.
Hub
In contrast to a switch, a hub sets itself to the lowest speed at the ports and forwards the
signals to all connected devices. A hub is also not capable of giving priority to signals. This
would lead to a high communication load on Industrial Ethernet.
See Switch
Industrial Ethernet
Industrial Ethernet (formerly SINEC H1) is a technology that allows data to be transmitted
free of interference in an industrial environment.
Due to the openness of PROFINET, you can use standard Ethernet components. We
recommend, however, that you install PROFINET as Industrial Ethernet.
See Fast Ethernet
Interface, MPI-capable
See MPI
Interrupt
The CPU's operating system knows 10 different priority classes for controlling user program
execution. These priority classes include interrupts, e.g. process interrupts. When an
interrupt is triggered, the operating system automatically calls an assigned OB. In this OB
the user can program the desired response (e.g. in an FB).
Interrupt, delay
The delay interrupt belongs to one of the priority classes in SIMATIC S7 program
processing. It is generated on expiration of a time started in the user program. A
corresponding OB will be processed.
See Interrupt, delay
Interrupt, diagnostic
See Diagnostic Interrupt
Interrupt, process
See Process interrupt
Interrupt, status
A status interrupt can be generated by a DPV1 slave and causes OB 55 to be called on the
DPV1 master. For detailed information on OB 55, see the Reference Manual System
software for S7-300/400: System and Standard Functions.
Interrupt, time-of-day
The time-of-day interrupt belongs to one of the priority classes in
SIMATIC S7 program processing. It is generated at a specific date (or daily) and time-of-day
(e.g. 9:50 or hourly, or every minute). A corresponding OB will be processed.
Interrupt, update
An update interrupt can be generated by a DPV1 slave and causes OB56 to be called on the
DPV1 master. For detailed information on OB56, see the Reference Manual System
software for S7-300/400: System and Standard Functions.
Interrupt, vendor-specific
A vendor-specific interrupt can be generated by a DPV1 slave. It causes OB57 to be called
on the DPV1 master.
For detailed information on OB 57, see the Reference Manual System Software for
S7-300/400: System and Standard Functions.
IO controller
See PROFINET IO Controller
See PROFINET IO Device
See PROFINET IO Supervisor
See PROFINET IO System
IO device
See PROFINET IO Controller
See PROFINET IO Device
See PROFINET IO Supervisor
See PROFINET IO System
IO supervisor
See PROFINET IO Controller
See PROFINET IO Device
See PROFINET IO Supervisor
See PROFINET IO System
IO system
See PROFINET IO System
IP address
To allow a PROFINET device to be addressed as a node on Industrial Ethernet, this device
also requires an IP address that is unique within the network. The IP address is made up of
4 decimal numbers with a range of values from 0 through 255. The decimal numbers are
separated by a period.
The IP address is made up of
• The address of the (subnet) network and
• The address of the node (generally called the host or network node).
LAN
Local area network to which several computers are connected within an enterprise. The LAN
therefore has a limited geographical span and is solely available to a company or institution.
Load memory
Load memory is part of the CPU. It contains objects generated by the programming device. It
is implemented either as a plug-in Memory Card or permanently integrated memory.
Local data
See Data, temporary
MAC address
Each PROFINET device is assigned a worldwide unique device identifier in the factory. This
6-byte long device identifier is the MAC address.
The MAC address is divided up as follows:
• 3 bytes vendor identifier and
• 3 bytes device identifier (consecutive number).
The MAC address is normally printed on the front of the device.
Example: 08-00-06-6B-80-C0
Master
When a master is in possession of the token, it can send data to other nodes and request
data from other nodes (= active node).
See Slave
Module parameters
Module parameters are values which can be used to configure module behavior. A
distinction is made between static and dynamic module parameters.
MPI
The multipoint interface (MPI) is the programming device interface of SIMATIC S7. It enables
multiple-node operation (PGs, text-based displays, OPs) on one or several PLCs. Each node
is identified by a unique address (MPI address).
MPI address
See MPI
NCM PC
See SIMATIC NCM PC
Nesting depth
A block can be called from another by means of a block call. Nesting depth is referred to as
the number of simultaneously called code blocks.
Network
A network is a larger communication system that allows data exchange between a large
number of nodes.
All the subnets together form a network.
A network consists of one or more interconnected subnets with any number of nodes.
Several networks can exist alongside each other.
Non-isolated
The reference potential of the control and on-load power circuits of non-isolated I/O modules
is electrically interconnected.
OB
See Organization blocks
OB priority
The CPU operating system distinguishes between different priority classes, for example,
cyclic program execution, process interrupt controlled program processing. Each priority
class is assigned organization blocks (OBs) in which the S7 user can program a response.
The OBs are assigned different default priority classes. These determine the order in which
OBs are executed or interrupt each other when they appear simultaneously.
Operating state
SIMATIC S7 automation systems know the following operating states: STOP, START, RUN.
Operating system
The CPU OS organizes all functions and processes of the CPU which are not associated to
a specific control task.
See CPU
Organization blocks
Organization blocks (OBs) form the interface between CPU operating system and the user
program. OBs determine the sequence for user program execution.
Parameters
1. Variable of a STEP 7 code block
2. Variable for declaring module response (one or several per module). All modules have a
Parameters, dynamic
Unlike static parameters, you can change dynamic module parameters during runtime by
calling an SFC in the user program, e.g. limit values of an analog signal input module.
Parameters, static
Unlike dynamic parameters, static parameters of modules cannot be changed by the user
program. You can only modify these parameters by editing your configuration in STEP 7, for
example, modification of the input delay parameters of a digital signal input module.
PC station
See SIMATIC PC Station
PG
See Programming device
PLC
Programmable controllers (PLCs) are electronic controllers whose function is saved as a
program in the control unit. Therefore, the configuration and wiring of the unit does not
dependend on the PLC function. A programmable logic controller has the structure of a
computer; it consists of a CPU with memory, input/output modules and an internal bus
system. The I/O and the programming language are oriented to control engineering needs.
A PLC in the context of SIMATIC S7 --> is a programmable logic controller.
See CPU
PNO
See PROFIBUS International
Priority class
The S7 CPU operating system provides up to 26 priority classes (or "Program execution
levels"). Specific OBs are assigned to these classes. The priority classes determine which
OBs interrupt other OBs. Multiple OBs of the same priority class do not interrupt each other.
In this case, they are executed sequentially.
Process image
The process image is part of CPU system memory. At the start of cyclic program execution,
the signal states at the input modules are written to the process image of the inputs. At the
end of cyclic program execution, the signal status of the process image of the outputs is
transferred to the output modules.
Process interrupt
A process interrupt is triggered by interrupt-triggering modules as a result of a specific event
in the process. The process interrupt is reported to the CPU. The assigned organization
block will be processed according to interrupt priority.
Process-Related Function
See PROFINET Component
Product version
The product version identifies differences between products which have the same order
number. The product version is incremented when forward-compatible functions are
enhanced, after production-related modifications (use of new parts/components) and for bug
fixes.
PROFIBUS
Process Field Bus - European fieldbus standard.
See PROFIBUS DP
See PROFIBUS International
PROFIBUS Device
A PROFIBUS node has at least one or more PROFIBUS ports.
A PROFIBUS device cannot take part directly in PROFINET communication but must be
included over a PROFIBUS master with a PROFINET port or an Industrial
Ethernet/PROFIBUS link (IE/PB Link) with proxy functionality.
See Device
PROFIBUS DP
A PROFIBUS with the DP protocol that complies with EN 500170. DP stands for distributed
peripheral I/O (fast, real-time, cyclic data exchange). From the perspective of the user
program, the distributed I/O is addressed in exactly the same way as the central I/O.
See PROFIBUS
See PROFIBUS International
PROFIBUS International
Technical committee that defines and further develops the PROFIBUS and PROFINET
standard.
Also known as the PROFIBUS User Organization (PNO).
Home page www.profibus.com
PROFINET
Within the framework of Totally Integrated Automation (TIA), PROFINET represents a
consequent enhancement of:
• PROFIBUS DP, the proven field bus, and
• Industrial Ethernet, the communication bus at cell level.
Experience gained from both systems was and is being integrated into PROFINET.
PROFINET is an Ethernet-based automation standard of PROFIBUS International
(previously PROFIBUS Users Organization e.V.), and defines a multi-vendor communication,
automation, and engineering model.
See PROFIBUS International
PROFINET ASIC
See ASIC
PROFINET CBA
Within the framework of PROFINET, PROFINET CBA is an automation concept for the
implementation of applications with distributed intelligence.
PROFINET CBA lets you create distributed automation solutions, based on default
components and partial solutions.
Component-Based Automation allows you to use complete technological modules as
standardized components in complex systems.
The components are also created in an engineering tool which may differ from vendor to
vendor. Components of SIMATIC devices are created, for example, with STEP 7.
PROFINET Component
A PROFINET component includes the entire data of the hardware configuration, the
parameters of the modules, and the corresponding user program. The PROFINET
component is made up as follows:
• Technological Function
The (optional) technological (software) function includes the interface to other PROFINET
components in the form of interconnectable inputs and outputs.
• Device
The device is the representation of the physical programmable controller or field device
including the I/O, sensors and actuators, mechanical parts, and the device firmware.
PROFINET Device
A PROFINET device always has at least one Industrial Ethernet port. A PROFINET device
can also have a PROFIBUS port as a master with proxy functionality.
See Device
PROFINET IO
Within the framework of PROFINET, PROFINET IO is a communication concept for the
implementation of modular, distributed applications.
PROFINET IO allows you to create automation solutions, which are familiar to you from
PROFIBUS.
That is, you have the same application view in STEP 7, regardless of whether you configure
PROFINET or PROFIBUS devices.
PROFINET IO Controller
Device via which the connected IO devices are addressed. This means that the IO controller
exchanges input and output signals with assigned field devices. The IO controller is often the
controller on which the automation program runs.
See PROFINET IO Device
See PROFINET IO Supervisor
See PROFINET IO System
PROFINET IO Device
Distributed field device assigned to one of the IO controllers (for example, remote I/O, valve
terminal, frequency converter, switches)
See PROFINET IO Controller
See PROFINET IO Supervisor
See PROFINET IO System
PROFINET IO Supervisor
PG/PC or HMI device for commissioning and diagnostics.
See PROFINET IO Controller
See PROFINET IO Device
See PROFINET IO System
PROFINET IO System
PROFINET IO controller with assigned PROFINET IO devices.
See PROFINET IO Controller
See PROFINET IO Device
Programming device
Basically speaking, PGs are compact and portable PCs which are suitable for industrial
applications. Their distinguishing feature is the special hardware and software for SIMATIC
programmable logic controllers.
Proxy
The PROFINET device with proxy functionality is the substitute for a PROFIBUS device on
Ethernet. The proxy functionality allows a PROFIBUS device to communicate not only with
its master but also with all nodes on PROFINET.
You can integrate existing PROFIBUS systems into PROFINET communication, for example
with the help of an IE/PB Link or a CPU 31x-2 PN/DP. IE/PB LinkThe IE/PB Link then
handles communication over PROFINET as a substitute for the PROFIBUS components.
See PROFINET Device
RAM
Work memory is a RAM memory in the CPU which is accessed by the processor during user
program execution.
RAM (Random Access Memory) is a semiconductor read/write memory.
Real Time
Real time means that a system processes external events within a defined time.
Determinism means that a system reacts in a predictable (deterministic) manner.
In industrial networks, both these requirements are important. PROFINET meets these
requirements. PROFINET is implemented as a deterministic real-time network as follows:
• The transfer of time-critical data between different stations over a network within a
defined interval is guaranteed.
To achieve this, PROFINET provides an optimized communication channel for real-time
communication : Real Time (RT).
• An exact prediction of the time at which the data transfer takes place is possible.
• It is guaranteed that problem-free communication using other standard protocols, for
example industrial communication for PG/PC can take place within the same network.
Reduction factor
The reduction rate determines the send/receive frequency for GD packets on the basis of the
CPU cycle.
Reference ground
See Ground
Reference potential
Voltages of participating circuits are referenced to this potential when they are viewed and/or
measured.
Repeater
See Hub
Restart
On CPU start-up (e.g. after is switched from STOP to RUN mode via selector switch or with
POWER ON), OB100 (restart) is initially executed, prior to cyclic program execution (OB1).
On restart, the input process image is read in and the STEP 7 user program is executed,
starting at the first instruction in OB1.
Retentive memory
A memory area is considered retentive if its contents are retained even after a power loss
and transitions from STOP to RUN. The non-retentive area of memory flag bits, timers and
counters is reset following a power failure and a transition from the STOP mode to the RUN
mode.
Retentive can be the:
• Flag bits
• S7 timers
• S7 counters
• Data areas
Router
A router works in a way similar to a switch. With a router, however, it is also possible to
specify which communications nodes can communicate via the router and which cannot.
Communication nodes on different sides of a router can only communicate with each other if
you have explicitly enabled communication via the router between the two nodes.
See Default Router
See Switch
RT
See Real Time
Runtime error
Errors occurred in the PLC (that is, not in the process itself) during user program execution.
Segment
See Bus segment
SFB
See System function block
SFC
See System function
Signal module
Signal modules (SM) form the interface between the process and the PLC. There are digital
input and output modules (input/output module, digital) and analog input and output modules
(input/output module, analog).
SIMATIC
Name of products and systems for industrial automation from Siemens AG.
SIMATIC NCM PC
SIMATIC NCM PC is a version of STEP 7 tailored to PC configuration. For PC stations, it
offers the full range of functions of STEP 7.
SIMATIC NCM PC is the central tool with which you configure the communication services
for your PC station. The configuration data generated with this tool must be downloaded to
the PC station or exported. This makes the PC station ready for communication.
SIMATIC NET
Siemens business area for industrial communication, networks, and network components.
SIMATIC PC Station
A "PC station" is a PC with communication modules and software components within a
SIMATIC automation solution.
Slave
A slave can only exchange data after being requested to by the master.
See Master
SNMP
SNMP (Simple Network Management Protocol) is the standardized protocol for diagnostics
of the Ethernet network infrastructure and for assignment of parameters to it.
Within the office area and in automation engineering, devices of a wide range of vendors
support SNMP on Ethernet.
Applications based on SNMP can be operated on the same network at the same time as
applications with PROFINET.
The range of functions supported differs depending on the device type. A switch, for
example, has more functions than a CP 1616.
STARTUP
A START-UP routine is executed at the transition from STOP to RUN mode. Can be
triggered by means of the mode selector switch, or after power on, or by an operator action
on the programming device. An S7-300 performs a restart.
STEP 7
Engineering system. Contains programming software for the creation of user programs for
SIMATIC S7 controllers.
Subnet mask
The bits set in the subnet mask decides the part of the IP address that contains the address
of the subnet/network.
In general:
• The network address is obtained by an AND operation on the IP address and subnet
mask.
• The node address is obtained by an AND NOT operation on the IP address and subnet
mask.
Subnetwork
All the devices connected by switches are located in the same network - a subnet. All the
devices in a subnet can communicate directly with each other.
All devices in the same subnet have the same subnet mask.
A subnet is physically restricted by a router.
Substitute
See Proxy
Substitute value
Substitute values are configurable values which output modules transfer to the process when
the CPU switches to STOP mode.
In the event of an I/O access error, a substitute value can be written to the accumulator
instead of the input value which could not be read (SFC 44).
Switch
PROFIBUS is based on a bus topology. Communication nodes are connected by a passive
cable - the bus.
In contrast, Industrial Ethernet is made up of point-to-point links: Each communication node
is connected directly to one other communication node.
If a communication node needs to be connected to several other communication nodes, this
communication node is connected to the port of an active network component- a switch.
Other communications nodes (including switches) can then be connected to the other ports
of the switch. The connection between a communication node and the switch remains a
point-to-point link.
The task of a switch is therefore to regenerate and distribute received signals. The switch
"learns" the Ethernet address(es) of a connected PROFINET device or other switches and
forwards only the signals intended for the connected PROFINET device or connected switch.
A switch has a certain number of ports. At each port, connect a maximum of one PROFINET
device or a further switch.
System diagnostics
System diagnostics refers to the detection, evaluation and signaling of errors which occur
within the PLC, Examples of such error/faults include: Program errors or failures on modules.
System errors can be indicated by LEDs or in STEP 7.
System function
A system function (SFC) is a --> function integrated in the operating system of the CPU that
can be called when necessary in the STEP 7 user program.
System memory
System memory is an integrated RAM memory in the CPU. System memory contains the
address areas (e.g. timers, counters, flag bits) and data areas that are required internally by
the operating system (for example, communication buffers).
Terminating resistor
The terminating resistor is used to avoid reflections on data links.
Timer
See Timers
Timers
Timers are part of CPU system memory. The content of timer cells is automatically updated
by the operating system, asynchronously to the user program. STEP 7 instructions are used
to define the precise function of the timer cell (for example, on-delay) and to initiate their
execution (for example, start).
TOD interrupt
See Interrupt, time-of-day
Token
Allows access to the bus for a limited time.
Topology
Structure of a network. Common structures include:
• Bus topology
• Ring topology
• Star topology
• Tree topology
Transmission rate
Data transfer rate (in bps)
Twisted Pair
Fast Ethernet via twisted-pair cables is based on the IEEE 802.3u standard (100 Base-TX).
The transmission medium is a 2x2 wire, twisted and shielded cable with a characteristic
impedance of 100 ohms (AWG 22). The transmission characteristics of this cable must meet
the requirements of category 5 (see glossary).
The maximum length of the connection between end device and network component must
not exceed 100 m. The ports are implemented according to the 100 Base-TX standard with
the RJ-45 connector system.
Ungrounded
Having no direct electrical connection to ground
User memory
User memory contains the code blocks / data blocks of the user program. User memory can
be integrated in the CPU, or stored on plug-in Memory Cards or memory modules. However,
the user program is principally processed from the RAM of the CPU.
User program
In SIMATIC, a distinction is made between the operating system of the CPU and user
programs. The user program contains all instructions and declarations, as well as signal
processing data that can be controlled by the plant or the process. It is assigned to a
programmable module (for example CPU or FM) and can be structured in smaller units
(blocks).
See Operating system
See STEP 7
Varistor
Voltage-dependent resistor
WAN
Network with a span beyond that of a local area network allowing, for example,
intercontinental operation. Legal rights do not belong to the user but to the provider of the
transmission networks.
D L
Data consistency, 3-16 Load memory, 4-1
Diagnostics Local data, 4-8
Standard I/O, 6-46 Longest response time
Technological functions, 6-46 Calculation, 5-18
Differences between the CPUs, 2-3 Conditions, 5-17
Digital inputs
Configuration, 6-39
Technical data, 6-47 M
Digital outputs
Maximum cycle time, 5-9
Configuration, 6-41
Memory
Fast, 6-48
Compression, 4-13
Technical data, 6-49
Memory areas
Download
Load memory, 4-1
of blocks, 4-11
RAM, 4-2
System memory, 4-2
Memory functions
E Compression, 4-13
Error displays, 2-11 CPU memory reset, 4-13
Download of blocks, 4-11
Promming, 4-13
G RAM to ROM, 4-13
Restart, 4-14
Global data communication, 3-9
Uploading blocks, 4-12, 4-13
Warm start, 4-14
MMC - Useful life, 4-10
I Mode selector switch, 2-3, 2-6, 2-8, 2-10
I/O process image, 4-5 MPI, 3-1
IE/PB Link, Glossary-17
Industrial Ethernet, 3-16, Glossary-15
Integrated I/Os N
Usage, 6-28, 6-33
Network node, 3-11
Interfaces
MPI, 3-1
PtP interface, 3-3, 3-5
Which devices can I connect to which
O
interface?, 3-2 OB 83, 3-22
Interrupt inputs, 6-45 OB86, 3-22
Configuration, 6-39
Interrupt response time
Calculation, 5-22
Definition, 5-21
of signal modules, 5-22
of the CPUs, 5-21
Process interrupt processing, 5-23
Sample calculation, 5-27
Interrupt, delay, 5-23
P S
Power supply S7 basic communication, 3-7
Connector, 2-3, 2-6, 2-8, 2-10 S7 communication, 3-8
Process interrupt processing, 5-23 S7 connections
PROFIBUS, 3-16, Glossary-15 Distribution, 3-29
PROFIBUS International, 3-17 End point, 3-27
PROFINET of CPUs 31xC, 3-30
Implementation, 3-17 Time sequence for allocation, 3-28
PROFINET, 3-4, 3-16 Transition point, 3-27
interface, 3-3 Sample calculation
Objectives, 3-17 of the cycle time, 5-24
PROFINET CBA, 3-17 Sample calculation
PROFINET IO, 3-17 of interrupt response time, 5-27
PROFINET IO, 3-18 of the response time, 5-25
PtP interface, 3-3, 3-5 Scope of this documentation, v
SFB 52, 3-21
SFB 53, 3-21
R SFB 54, 3-21
SFB 81, 3-21
RAM, 4-2
SFC 49, 3-21
RAM to ROM, 4-13
SFC 70, 3-21
Required basic knowledge, iii
SFC 71, 3-21
Response time
SFC102, 3-21
Calculating the longest, 5-18
SFC13, 3-21
Calculating the shortest, 5-16
SFC5, 3-21
Conditions for the longest, 5-17
SFC58, 3-21
Conditions for the shortest, 5-16
SFC59, 3-21
Definition, 5-14
Shortest response time
DP cycle times, 5-14, 5-15
Calculation, 5-16
Factors, 5-14
Conditions, 5-16
Fluctuation width, 5-14
SIMATIC Micro Memory Card
Reduction with direct I/O access, 5-18
Plug-in MMCs, 6-2, 7-2
Sample calculation, 5-25
Properties, 4-9
Restart, 4-14
Slot, 2-2, 2-6, 2-8, 2-10
Retentive memory, 4-2
Simple Network Management Protocol, 3-26
Load memory, 4-2
SNMP, 3-26
Retentive behavior of memory objects, 4-3
SSL, 3-23
System memory, 4-2
W#16#0696, 3-23
Routing
W#16#0A91, 3-23
Access to stations on other subnets, 3-10
W#16#0C91, 3-23
Example of an application, 3-14
W#16#0C96, 3-23
Network node, 3-11
W#16#0x94, 3-23
Requirements, 3-13
W#16#4C91, 3-23
W#16#xy92, 3-23
Status displays, 2-11
System and Standard Functions, 3-21
System memory, 4-2, 4-5
I/O process image, 4-5
Local data, 4-8
T
Technical data
Analog inputs, 6-51
Analog outputs, 6-53
CPU 312C, 6-3, 7-3, 7-8, 7-13, 7-26, 7-33
CPU 313C, 6-8
CPU 313C-2 DP, 6-14
CPU 313C-2 PtP, 6-14
CPU 314C-2 DP, 6-21
CPU 314C-2 PtP, 6-21
Digital inputs, 6-47
Digital outputs, 6-49
U
Upload, 4-12, 4-13
Useful life of an MMC, 4-10
User program
Upload, 4-12, 4-13
W
Warm start, 4-14
Watchdog interrupt, 5-23