Siemens SIMATIC S7-300 Series, CPU 314 IFM, CPU 315, CPU 315-2 DP, CPU 316-2 DP, CPU 318-2, CPU 312 IFM, CPU 318-2 DP, CPU 313, CPU 314 Reference Manual
At our premises in Wrocław, we have a fully equipped servicing facility. Here we perform all the repair
works and test each later sold unit. Our trained employees, equipped with a wide variety of tools and
having several testing stands at their disposal, are a guarantee of the highest quality service.
Buy this product at RGB AUTOMATYKA
OPERATOR
PANELS
BUY
∠
Page 3
Preface, Contents
SIMATIC
PLC S7-300,CPU Specifications CPU 312 IFMto CPU 318-2 DP
Reference Manual
CPUsCPU 31x-2 as DP Master/DP
Slave and Direct Communication
Cycle and Reaction timesCPU Function, depending on
CPU and STEP 7 Version
Tips and Tricks
Appendix
Standards, Certificates andApprovals
Dimensioned Drawings
List of Abbreviations
12345
AB
C
This manual is part of the documentationpackage with the order number6ES7398-8FA10-8BA0
Edition 10/2001
A5E00111190-01
This documentation can no longer be ordered underthe given number!
Glossary, Index
Page 4
Safety Guidelines
This manual contains notices intended to ensure personal safety, as well as to protect the products andconnected equipment against damage. These notices are highlighted by the symbols shown below andgraded according to severity by the following texts:
Danger
!
indicates that death, severe personal injury or substantial property damage will result if proper precautionsare not taken.
Warning
!
indicates that death, severe personal injury or substantial property damage can result if properprecautions are not taken.
Caution
!
indicates that minor personal injury can result if proper precautions are not taken.
Caution
indicates that property damage can result if proper precautions are not taken.
Notice
draws your attention to particularly important information on the product, handling the product, or to aparticular part of the documentation.
Qualified Personnel
Only qualified personnel should be allowed to install and work on this equipment. Qualified persons aredefined as persons who are authorized to commission, to ground and to tag circuits, equipment, andsystems in accordance with established safety practices and standards.
Correct Usage
Note the following:
Warning
!
Trademarks
The reproduction, transmission or use of this document or itscontents is not permitted without express written authority.Offenderswill be liable for damages. All rights, including rightscreatedby patent grant or registration of a utility model ordesign, are reserved.
Siemens AGBereich Automatisierungs- und AntriebstechnikGeschaeftsgebiet Industrie-AutomatisierungssystemePostfach 4848, D- 90327 Nuernberg
Index-2
Siemens AktiengesellschaftA5E00111190
This device and its components may only be used for the applications described in the catalog or thetechnical description, and only in connection with devices or components from other manufacturers whichhave been approved or recommended by Siemens.
This product can only function correctly and safely if it is transported, stored, set up, and installedcorrectly,and operated and maintained as recommended.
SIMATIC, SIMATIC HMI and SIMATIC NET are registered trademarks of SIEMENS AG.Third parties using for their own purposes any other names in this document which refer to trademarks
might infringe upon the rights of the trademark owners.
Disclaim of LiabilityCopyright WSiemens AG 2001 All rights reserved
Wehave checked the contents of this manual for agreementwiththe hardware and software described. Since deviationscannot be precluded entirely, we cannot guarantee fullagreement.However, the data in this manual are reviewedregularly and any necessary corrections included insubsequent editions. Suggestions for improvement arewelcomed.
Siemens AG 2001Technical data subject to change.
PLC S7-300, CPU Specifications CPU 312 IFM to CPU 318-2 DP
A5E00111190-01
Page 5
Preface
Purpose of the Manual
This manual gives you a brief overview of 312 IFM to 318-2 CPUS in an S7-300.You can look up information on how to operate the system, its functions andtechnical data of the CPUs.
Essential know-how
General knowledge of automation technology is required for comprehension of thisManual. You should also be acquainted with basic STEP 7 software as describedin your Programming with STEP 7 V 5.1 Manual.
PLC S7-300, CPU Specifications CPU 312 IFM to CPU 318-2 DPA5E00111190-01
iii
Page 6
Preface
Scope of the Manual
The manual covers the following CPUs and Hardware/Software versions:
This manual describes all modules that are valid at the time the manual isreleased. We reserve the right to release product information for new modules ornew module versions.
Alterations from Previous Version
The following changes were made in the Structuring, CPU Data Manual, Order no.6ES7398-8AA03-8BA0, Edition 2:
Now, this manual only contains the CPU description. For information on the
S7-300 structure and installation refer to the Installation Manual.
CPU 318-2 DP as of Firmware Version V3.0.0 behaves as DP Master according
to PROFIBUS DPV1.
Agreement for CPU 314IFM
The CPU 314IFM is available in 2 versions:
with slot for Memory Card(6ES7314-5EA10-0AB0)without slot for Memory Card(6ES7314-5EA0x-0AB0)
All details in this chapter apply to both versions of CPU 314IFM, unless explicitreference is made to differences between them.
iv
PLC S7-300, CPU Specifications CPU 312 IFM to CPU 318-2 DP
A5E00111190-01
Page 7
Approbation, Standards and Approvals
The SIMATIC S7-300 series conforms to:
Requirements and criteria to IEC 61131, Part 2CE labeling
–EC Guideline 73/23/EEC on Low Voltages–EC Guideline 89/336/EEC on electromagnetic compatibility (EMC)
Canadian Standards Association: CSA C22.2 Number 142, tested (Process
Control Equipment)
Underwriters Laboratories, Inc.: UL 508 registered (Industrial Control
Equipment)
Underwriters Laboratories, Inc.: UL 508 (Industrial Control Equipment)Factory Mutual Research: Approval Standard Class Number 3611C-Tick Australia
Preface
PLC S7-300, CPU Specifications CPU 312 IFM to CPU 318-2 DPA5E00111190-01
v
Page 8
Preface
Integration in the Information Technology Environment
This Manual forms part of the S7-300 documentation package:
Reference Manual “CPU Data”
CPU Data of CPU 312 IFM to 318-2 DPCPU Data of CPU 312C to 314C-2 PtP/DP
“Technological Functions” Manual
Manual
Samples
Description on how to operate, of the functionsand of technical data of the CPU
Description of specific technologicalfunctions:
PositioningCounting
You are reading this manual
Point-to-point connectionRules
The CD contains examples oftechnological functions
Installation Manual
Manual
Description of how to create a project and howto install, wire, network and commission anS7-300
“CPU 31xC:Positioning with Analog Output”“CPU 31xC: Positioning with Digital Outputs”
“CPU 31xC: Counting”“CPU 31xC: Point-to-point Communication
“CPU 31xC: Controlling”“CPU 31xC:
“S7-300”
Figure 1-1S7-300, information technology environment
Description and technological details of signal modules, power supplymodules and interface modules
List of the CPU’s system resources andtheir execution times.Listing of all runtime function blocks (OBs/SFCs/SFBs) and their execution times
the various Getting Started manuals offer helpfor commissioning your applications
vi
PLC S7-300, CPU Specifications CPU 312 IFM to CPU 318-2 DP
A5E00111190-01
Page 9
Complementary to this documentation package you require the following manuals:
Manual “Integrated Functions CPU 312 IFM/314 IFM”
ManualOrderno.: 6ES7398-8CA00-8BA0
Reference Manual “System Software forS7-300/400 System and Standard Functions”
Preface
Description of technological functions of theCPUs 312 IFM/314 IFM.
Reference manualPart of the STEP 7 documentation package,
order no. 6ES7810-4CA05-8BR0
Figure 1-2Additional Documentation
Further Support
Please contact your local Siemens representative if you have any queries aboutthe products described in this manual.
http://www.ad.siemens.de/partner
Training Center
Newcomers to SIMATIC S7 PLCs are welcome to take part in our respectivetraining courses. Please contact your local Training Center, or the central TrainingCenter in D-90327 Nuremberg, Germany:
Phone: +49 (911) 895-3200.http://www.sitrain.com
Description of the SFCs, SFBs and OBs of theCPUs. This description is also available in theSTEP 7 Online Help.
PLC S7-300, CPU Specifications CPU 312 IFM to CPU 318-2 DPA5E00111190-01
PLC S7-300, CPU Specifications CPU 312 IFM to CPU 318-2 DP
A5E00111190-01
Page 11
SIMATIC Documentation on the Internet
Documentation is available free of charge on the Internet under:http://www.ad.siemens.de/supportPlease use the Knowledge Manager offered at these locations for quick location of
your required documentation. Our Internet Forum offers a “Documentation”conferencing room for your questions and solution proposals.
http://www.ad.siemens.de/support
Service & Support on the Internet
As a supplement to our provided documentation we offer our complete know-howbase on the Internet.
http://www.ad.siemens.de/supportThere you will find:Up-to-date product information (News), FAQs (Frequently Asked Questions),
Downloads, Tips and Tricks.
Preface
Our Newsletter always offers you the most up-to-date information on your
products.
The Knowledge Manager finds the right documents for you.Users and specialists across the globe share their experiences in our Forum.Your local service partner for Automation & Drives is found in our Service
Partner Database.
Information relating to on–site Service, repairs, spare parts and lots more is
available to you under the topic “Service”.
PLC S7-300, CPU Specifications CPU 312 IFM to CPU 318-2 DPA5E00111190-01
ix
Page 12
Preface
x
PLC S7-300, CPU Specifications CPU 312 IFM to CPU 318-2 DP
3-7Response time of the CPUs to process interrupts 3-14 . . . . . . . . . . . . . . . . . . .
3-8Diagnostic Interrupt Response Times of the CPUs 3-15 . . . . . . . . . . . . . . . . . .
3-9Reproducibility of the Delay and Watchdog Interrupts of the CPUs 3-17 . . . . .
xiv
PLC S7-300, CPU Specifications CPU 312 IFM to CPU 318-2 DP
A5E00111190-01
Page 17
CPUs
In This Section
SectionContentsPage
1.1Control and Display Elements1-2
1.2CPU Communication Options1-11
1.3Test Functions and Diagnostics1-19
1.4CPUs - Technical Specifications1-24
Agreement for CPU 314IFM
The CPU 314IFM is available in 2 versions:
with slot for memory card (6ES7314-5EA10-0AB0)without slot for memory card (6ES7314-5EA0x-0AB0/
6314ES7314-5EA8x-0AB0)
All details in this chapter apply to both versions of the CPU314IFM unless explicitreference is made to differences between them.
1
PLC S7-300, CPU Specifications CPU 312 IFM to CPU 318-2 DPA5E00111190-01
1-1
Page 18
CPUs
1.1Control and Display Elements
Figure 1-1 shows you the control and display elements of a CPU. The order of the elements in some CPUs might differ from the order shown in thefigure below. The individual CPUs do not always have all the elements shown here.Table 1-1 shows you the differences.
Status and fault LEDs
Status and fault displays forDP interface
Mode selector
Slot for memorycard
Compartment for backupbattery or rechargeablebattery
Connection for power supplyand system ground
Figure 1-1Control and Display Elements of the CPUs
ML+M
Multipoint Interface(MPI)
PROFIBUS-DPinterface
Differences Between CPUs
Table 1-1The Differences in Control and Display Elements Between CPUs
Element312 IFM313314
LEDs for DPinterface
Backupbattery/accumulator
Connection forpower supply
Memory cardNoYesNoYesYesPROFIBUS-DP
interface
NoNo
accumu-
lator
No; via
the front
connector
NoYes
NoYes
314 IFM
-5AE0x--5AE10
315315-2316-2318-2
DPDP
-
Yes
Yes
1-2
PLC S7-300, CPU Specifications CPU 312 IFM to CPU 318-2 DP
A5E00111190-01
Page 19
1.1.1Status and Fault Displays
Displays for the CPU:
SF ... (red) ...hardware/software errorBATF ... (red) ...battery error (not CPU 312 IFM)DC5V ... (green) ... 5V DC supply for CPU and S7-300 bus is ok.FRCE ... (yellow) ...force job is activeRUN ... (green) ... CPU in RUN mode; LED flashes at start-up with 1 Hz; in HALT mode with 0.5 HzSTOP ... (yellow) ... CPU in STOP/HALT or STARTUP mode;
LED flashes on request to reset memory
Displays for the PROFIBUS:
CPUs
CPU 315-2 DP/CPU 316-2 DP
CPU 318-2
Figure 1-2Status and Fault Displays of the CPUs
BUSF ... (red) ... hardware or software fault at PROFIBUS interface
BUS1F ... (red) ... hardware or software fault at interface 1BUS2F ... (red) ... hardware or software fault at interface 2
PLC S7-300, CPU Specifications CPU 312 IFM to CPU 318-2 DPA5E00111190-01
1-3
Page 20
CPUs
1.1.2Mode Selector Switch
The mode selector is the same in all CPUs.
Mode Selector Positions
The positions of the mode selector are explained in the order in which they appearon the CPU.
Details on CPU operating modes are found in the STEP 7 Online Help .
PositionDescriptionDescription
RUN-PRUN-PROGRAM
mode
RUN modeRUN modeThe CPU scans the user program.
Stop modeStop modeThe CPU does not scan user programs.
MRES modeMemory resetMomentary-contact position of the mode selector for CPU memory
The CPU scans the user program.The key cannot be taken out in this position.
The user program cannot be changed without passwordconfirmation.
The key can be removed in this position to prevent anyone notauthorized to do so from changing the operating mode.
The key can be removed in this position to prevent anyone notauthorized to do so from changing the operating mode.
reset (or a cold start as well in the case of the 318-2).Memory reset per mode selector switch requires a specific
sequence of operation.
1-4
PLC S7-300, CPU Specifications CPU 312 IFM to CPU 318-2 DP
A5E00111190-01
Page 21
1.1.3Backup battery/accumulator
Exceptions
The CPUs 312IFM and 313 do not have a real time clock so they do not need anaccumulator battery.The CPU 312IFM does not have a buffer which means that you can not insert abattery.
Backup battery or rechargeable battery?
Table 1-2 shows the differences in the backup provided by an accumulator and abackup battery.
Table 1-2Using a Backup Battery or Accumulator
CPUs
Backup
with...
Rechargeable battery
Backupbattery
... Backs upRemarksBackup
Real-time clock onlyThe rechargeable battery is charged
after CPU POWER ON.
Note
You must create a backup of theuser program either on MemoryCard or, in the case of CPU314IFM314 (-5AE0x-), on EPROM.
User program (if not
stored on memory cardand protected against losson power failure)
More data areas in data
blocks are to be retainedthan possible withoutbattery
Note
The >CPU can retain part of thedata without backup battery. Youonly need a backup battery if youwant to retain more data than this.
The real-time clock
Time
120 h
(at 25C)
60 h
(at 60C)
... after 1hour ofrecharging
1 year
PLC S7-300, CPU Specifications CPU 312 IFM to CPU 318-2 DPA5E00111190-01
1-5
Page 22
CPUs
then uploaded from the memory card to
1.1.4Memory card
Exceptions
You cannot insert a memory card with the CPUs 312 IFM and 314 IFM (-5AE0x).These CPUs have an integrated read-only memory.
Purpose of the Memory Card
With the memory card, you can expand the load memory of your CPU.You can store the user program and the parameters that set the responses of the
CPU and modules on the memory card.You can also back up your CPU operating system to a Memory Card. except
CPU 318-2.If you store the user program on the memory card, it will remain in the CPU when
the power is off even without a backup battery.
Available Memory Cards
The following memory cards are available:
Table 1-3Memory Cards
Capacity
16 KB32 KB
64 KB256 KB128 KB512 KB
1 MB2 MB
4 MB128 KB256 KB512 KB
1 MB
2 MB
TypeRemarks
The CPU supports the following functions:
Loading of the user program on the
module into the CPU
module into the CPUWith this function, the memory of the
With this function, the memory of the
5 V FEPROM
CPU is reset, the user program isdownloaded onto the memory card, andthen uploaded from the memory card tothe CPU’s RAM.
Copying RAM data to ROM (not with
CPU318-3182)
CPU318-3182)
5 V RAMOnly with the CPU 318-2
1-6
PLC S7-300, CPU Specifications CPU 312 IFM to CPU 318-2 DP
A5E00111190-01
Page 23
1.1.5MPI and PROFIBUS-DP Interface
Table 1-4CPU Interfaces
CPUs
CPU 312 IFM
CPU 313
CPU 314IFM
CPU 314
MPI interfaceMPI interfacePROFIBUS-DP
MPI
---Reconfiguration as
CPU 315-2DPCPU 316-2DP
MPI/DP InterfacePROFIBUS-DP
interface
MPIDP
a PROFIBUS-DPinterface ispossible
CPU 318-2
MPI interface
The MPI is the interface of the CPU for the programming device/OP and forcommunication in an MPI subnet.
MPI/DP
interface
DP
-
Typical (default) transmission speed is 187.5 Kbps (CPU 318-2: adjustable up to12 Mbps).
Communication with an S7-200 requires 19.2 Kbps.The CPU automatically broadcasts its set bus parameters (e.g. baud rate) at the
MPI interface. This means that a programming device, for example, canautomatically ”hook up” to an MPI subnet.
PROFIBUS-DP Interface
CPUs equipped with 2 interfaces provide a PROFIBUS-DP interface connection.Transmission rates up to 12 Mbps are possible.
The CPU automatically broadcasts its set bus parameters (e.g. baud rate) at thePROFIBUS-DP interface. This means that a programming device, for example,can automatically ”hook up” to a PROFIBUS subnet.
In Step 7 you can switch off automatic transfer of bus parameter.
PLC S7-300, CPU Specifications CPU 312 IFM to CPU 318-2 DPA5E00111190-01
1-7
Page 24
CPUs
Connectable Devices
MPIPROFIBUS-DP
Programming device/PC and OPS7 programmable controller with MPI interface
(S7-300, M7-300, S7-400, M7-400, C7-6xx)
S7-200 (Note: 19.2 Kbps only)
Only 19.2 Kbps for S7-200 in MPI Subnet
Note
At 19.2 Kbps for communicating with S7-200,
–a maximum of 8 nodes(CPU, PD/OP, FM/CP with own MPI address) is
permitted in a subnet, and
–no global data communication can be carried out.
Programming device/PC and OPS7 programmable controllers with the
Please consult the S7200 Manual for further information!
Removing and Inserting Modules in the MPI Subnet
You must not plug in or remove any modules (SM, FM, CP) of an S7-300configuration while data is being transmitted over the MPI.
Warning
!
If you remove or plug in S7-300 modules (SM, FM, CP) during data transmissionvia the MPI, the data might be corrupted by disturbing pulses.
You must not plug in or remove modules (SM, FM, CP) of an S7-300 configurationduring data transmission via the MPI!
1-8
PLC S7-300, CPU Specifications CPU 312 IFM to CPU 318-2 DP
A5E00111190-01
Page 25
Loss of GD packets Following Change in the MPI Subnet During Operation
Warning
!
Loss of data packets in the MPI subnet:Connecting an additional CPU to the MPI subnet during operation can lead to loss
of GD packets and to an increase in cycle time.Remedy:
1.Disconnect the node to be connected from the supply.
2.Connect the node to the MPI subnet.
3.Switch the node on.
CPUs
PLC S7-300, CPU Specifications CPU 312 IFM to CPU 318-2 DPA5E00111190-01
1-9
Page 26
CPUs
1.1.6Clock and Runtime Meter
Table 1-5 shows the characteristics and functions of the clock for the variousCPUs.
When you assign parameters to the CPU in STEP 7, you can also set functionssuch as synchronization and the correction factor(see the STEP 7 online helpsystem).
PLC S7-300, CPU Specifications CPU 312 IFM to CPU 318-2 DP
A5E00111190-01
Page 27
Behavior of Clock in POWER OFF Mode
The following table shows the clock behavior with the power of the CPU off,depending on the backup:
BackupCPU 314 to 318-2CPU 312 IFM and 313
Withbackupbattery
Withaccumulator
NoneAt POWER ON, the clock continues
The clock continues to operate inpower off mode.
The clock continues to operate inpower off mode for the backup timeof the accumulator. When the poweris on, the accumulator is recharged.
In the event of backup failure, anerror message is not generated.When the power comes on again,the clock continues at the clock timeat which the power went off.
to operate using the clock time atwhich POWER OFF took place.Since the CPU is not backed up, theclock does not continue at POWEROFF.
CPUs
At POWER ON, the clock continuesto operate using the clock time atwhich POWER OFF took place.Since the clock does not have apower buffer, it does not continue torun in POWER OFF mode.
1.2Communication Options of the CPU
The CPUs offer you the following communication options:
PLC S7-300, CPU Specifications CPU 312 IFM to CPU 318-2 DPA5E00111190-01
1-11
Page 28
CPUs
Table 1-6CPU Communication Options
Communications
PG/OP CommunicationxxA CPU can maintain several on-line connections
S7 Basic CommunicationxxUsing the I system functions, you can transfer data over the
Routing of PG FunctionsxxWith CPUs 31x-2 and STEP 7 as of V 5/0, you can route
S7 Communicationx-S7 communication takes place via configured S7
Global Data Communicationx-The CPUs of the S7-300/400 can exchange global data
MPIDPDescription
simultaneously with one or more programming devices oroperator panels. For PD/OP communication via the DPinterface, you must activate the “Programming, modifyingand monitoring via the PROFIBUS” function whenconfiguring and assigning parameters to the CPU.
MPI/DP network within an S7-300 (acknowledged dataexchange). Data exchange takes place via non-configuredS7 connections.
x-Using the XI system functions, you can transfer data to
other communication peers in the MPI subnet(acknowledged data exchange). Data exchange takesplace via non-configured S7 connections.
A listing of I/X SFCs is found in the Instruction List. Detailsare found in the STEP 7 Online Help or in the System andStandard Functions reference manual.
your PG/PC to S7 stations of other subnets, e.g. fordownloading user programs or hardware configurations, orexecuting, testing and commissioning functions. Routingwith the DP interface requires you to activate the“Programming, Status/Control...” function when configuringand assigning parameters to the CPU.
Details on routing are found in the STEP 7-Online Help.
connections. Here, the S7-300-CPUs are servers forS7-400 CPUs. That is, S7-400 CPUs have read/writeaccess to S7-300 CPUs.
with one another (unacknowledged data exchange).
1-12
PLC S7-300, CPU Specifications CPU 312 IFM to CPU 318-2 DP
A5E00111190-01
Page 29
Connection Resources
Every communication connection requires a communication resource on theS7 CPU as a management unit for the duration of the communication. EveryS7 CPU has a certain number of connection resources available to it according toits technical specifications which can be assigned to various communicationservices (PD/OP communication, S7 communication or S7 basic communication).
The distribution of connection resources differs between CPUs 312 IFM to 316-2DP (see the table 3-6) and the CPU 318-2 (see Table 1-8):
CPUs
PLC S7-300, CPU Specifications CPU 312 IFM to CPU 318-2 DPA5E00111190-01
1-13
Page 30
CPUs
Connection Resources for CPUs 312IFM to 316-2 DP
Communication resources are independent of the interface in CPUs 315-2 DP and316-2 DP. That is, a PG communication occupies a connection resource,regardless of whether the connection was established via MPI or DP interface.
Table 1-7Connection Resources for CPUs 312 IFM to 316-2 DP
Communication Function
PD communication/OP communication
OP communicationS7 basic communication
In order to make the allocation of connection resources dependent notonly on the chronological sequence in which various communicationservices are registered, connection resources can be reserved for thefollowing services:
Description
PD communication and OP communicationS7 basic communication
For PD/OP communication, at least one connection resource is reservedas the default setting. Lower values are not possible.
The technical specifications of the CPUs detail the possible connectionresources settings and the default settings in each case. In STEP 7 youspecify a ”redistribution” of communication resources when you configurethe CPU.
S7 communicationOther communication services such as S7 communication using
PUT/GET functions can not use these communication resources even ifthey establish their connection at an earlier time. Instead, the remainingavailable connection resources that have not been specifically reservedfor a particular service are used.
Example based on CPU 314 which has 12 connection resourcesavailable:
-You reserve 2 connection resources for PD communication
-You reserve 6 connection resources for OP communication
-You reserve 1 connection resource for S7 basic communication In this case, you still have three communication resources available
for S7 communication, PG/OP communication and S7 basiccommunication.
Note on OP Communication Resources: When using more than threeOPs, error messages might occur due to temporary lack of resources inthe CPU. Examples of such error messages are “44 Transmission error#13” or “#368 S7 communication error class 131 No. 4”. Remedy: Acknowledge error messages manually or after a time delayconfigured in PROTOOL (in “System Messages”→→“Display time”).
Routing of PG functionsThe CPUs provide connection resources for four routed connections.(CPU 31x-2 DP)Those connection resources are available in addition.
Communication via a CP343-1 with data lengths >240bytes for Send/Receive
The CP requires a free connection resource that is not reserved forPD/OP/S7 basic communication.
1-14
PLC S7-300, CPU Specifications CPU 312 IFM to CPU 318-2 DP
A5E00111190-01
Page 31
Connection Resources for CPU 318-2
Table 1-8Communication Resources for CPU 318-2
CPUs
Communication Function
PD/OP communicationThe CPU 318-2 provides a total of 32 connection resources (with CPU
as connection terminal point) for these communication functions. Those32 connection resources can be freely allocated to the variouscommunication functions.
S7 basic communication
When allocating connection resources, you should observe the followingpoints:
Description
The number of connection resources differs for each interface as
follows:–MPI/DP Interface 32 communication resources
Routing of PD functions
–DP-SS: 16 communication resources
In the case of connections that do not have the CPU as their terminal
point (e.g. an FM or in the case of routing) you must deduct 2connection resources from the total resources and 1 connection
S7 communication
resource per interface.Figure 1-3 shows the principle of allocation of connection resources.An example of how connection resources are dimensioned is found in
Chapter LEERER MERKER.
Principle of Connection Resource Allocation for CPU 318-2
CPU 318-2
32 connection resources forconnections via the MPI/DPinterface
Figure 1-3Principle of Connection Resource Allocation for CPU 318-2
PLC S7-300, CPU Specifications CPU 312 IFM to CPU 318-2 DPA5E00111190-01
A total of 32 connectionresources for connections viathe MPI/DP and/or DPinterface
MPI/DP
DP
16 connection resources forconnections via the DPinterface
1-15
Page 32
CPUs
Interface Resources for CPU 318-2 - Example Calculation
1.Two network transitions by routing on the CPU
Resources used:
-2 connection resources of the MPI/DP interface are used;
-2 connection resources of the DP interface are used;
-all 4 connection resources available to both interfaces are used;
2. 4 connections for S7 basic communication and PG/OP communication with the
CPU as connection terminal point via MPI/DP interfaceResources used:
-4 connection resources of the MPI/DP interface are used;
-all 4 connection resources available to both interfaces are used;
Resources still availabe:
-26 connection resources of the MPI/DP interface;
-14 connection resources of the DP interface;
-24 of the connection resources available to both interfaces
Data Consistency for Communication
An essential aspect of the transmission of data between devices is its consistency.The data that is transmitted together should all originate from the same processingcycle and should thus belong together, i.e. be consistent.
If there is a programmed communication function such as X-SEND/ X-RCV whichaccesses shared data, then access to that data area can be co-ordinated bymeans of the parameter “BUSY” itself.
However, with S7 communication functions not requiring a block in the userprogram of the 31x CPU (as server), e.g. PUT/GET or read/write operations viaOP communication, the dimension of data consistency must be taken into accountduring programming. The following differences between CPUs 312IFM to 316-2 DPand CPU 318-2 must be taken into account:
1-16
PLC S7-300, CPU Specifications CPU 312 IFM to CPU 318-2 DP
A5E00111190-01
Page 33
CPU 312 IFM to 316-2 DPCPU 318-2
CPUs
PUT/GET functions of S7 communication, orreading/writing variables via OPcommunication, are processed during thecycle checkpoint of the CPU.
A defined process interrupt reaction time isensured by consistent copying ofcommunication variables in blocks of 32 bytes(CPU Versions lower than described in thismanual: Blocks of up to 8 Bytes) into/out ofuser memory during the cycle checkpoint ofthe operating system. Data consistency is notguaranteed for any larger data areas.
Therefore, communication variables in theuser program must not exceed a length of 8or 32 byte if data consistency is required.
If you copy communication variables usingSFC 81 “UBLKMOV”, the copying process isnot interrupted by higher priority classes.
PUT/GET functions of S7 communication, orreading/writing to variable via OPcommunication are processed in defined timewindows in the CPU 318-2 operating system.For that reason, the user program can beinterrupted after every command(Byte/Word/Double Word command) when acommunication variable is being accessed.The data consistency of a communication
The data consistency of a communicationvariable is therefore only possible within thelimits of the command boundaries used in theuser program.
If a data consistency size greater than Byte,Word or DWord is required, communicationvariables in the user program must always becopied using SFC81 “UBLKMOV” thatguarantees consistent reading/writing of thecomplete communication variable area.
PLC S7-300, CPU Specifications CPU 312 IFM to CPU 318-2 DPA5E00111190-01
1-17
Page 34
CPUs
Details
... on the communication topic are found in the STEP 7 Online Help and in themanual Communication with SIMATIC.
... on communications SFCs/SFBs are found in the STEP 7 Online Help and in theStandard and System functions reference manual.
Global Data Communication with S7-300 CPUs
Below you will find important features of global data communication in the S7-300.
Send/Receive Conditions
For the communication via GD circuits, you should observe the followingconditions:
Required for the GD packet transmitter is:
Reduction
ratioTransmitter
Required for the GD packet receiver is:
Reduction
timeTransmitter
ratioReceiver
Non-observance of these conditions can lead to the loss of a GD packet. Thereasons for this are:
Cycle
Cycle
timeTransmitter
timereceiver
60 ms (CPU 318-2: 10 ms
Reduction
ratioTransmitter
Cycle
The performance capability of the smallest CPU in the GD circuitSending and receiving of global data is carried out asynchronously by the
sender and receiver.
Loss of global data is displayed in the status field of a GD circuit if you haveconfigured this with STEP 7.
Note
Note when communicating via global data: sent global data is not acknowledgedby the receiving partner!
The sender therefore receives no information on whether a receiver and whichreceiver has received the sent global data.
Send Cycles for Global Data
In STEP 7(as of Version 3.0), the following situation can arise if you set “Sendafter every CPU cycle” with a short CPU cycle time (< 60 ms): the operatingsystem overwrites GD packets the CPU has not yet transmitted. Tip: Loss ofglobal data is displayed in the status field of a GD circuit if you have configured thiswith STEP 7.
1-18
PLC S7-300, CPU Specifications CPU 312 IFM to CPU 318-2 DP
A5E00111190-01
Page 35
1.3Test Functions and Diagnostics
The CPUs provide you with:
Testing functions for commissioningDiagnostics via LEDs and STEP 7.
1.3.1Testing Functions
The CPUs offer you the following testing functions:
Monitor VariablesModify VariablesForcing (note the differences between CPUs)Monitor block
CPUs
Set BreakpointDetails on the testing functions are found in the STEP 7 Online Help.
Important for the Status FB!
The STEP 7 function “Status FB” increases CPU cycle time!In STEP 7 you can specify a maximum permissible increase in cycle time (not
CPU 318-2). In this case, in STEP 7 you must specify process mode for the CPUparameters.
PLC S7-300, CPU Specifications CPU 312 IFM to CPU 318-2 DPA5E00111190-01
1-19
Page 36
CPUs
Different Features of Forcing S7-300
Please note the different features of forcing in the different CPUs:
CPU 318-2CPU 312IFM to 316-2DP
The variables of a user program withfixed preset values (force values)cannot be changed or overwritten bythe user program.
It is not permissible to force peripheralor process image areas lying in therange of consistent user data.
The following can be variables:Inputs/outputs
Peripheral I/OsMemory markers
You can force up to 256 variables.
The variables of a user program withfixed preset values (force values) canbe changed or overwritten in the userprogram.(See Figure 1-4 on page 1-21)
The following can be variables:Inputs/OutputsYou can force up to 10 variables.
1-20
PLC S7-300, CPU Specifications CPU 312 IFM to CPU 318-2 DP
A5E00111190-01
Page 37
Forcing with the CPU 312 IFM to 316-2 DP:
Caution
!
With S7-300 CPUs, forcing is the same as “cyclical modify”
Forced values in the input process image can be overwritten by write instructions(e.g. T EB x, = E x.y, copying with SFC etc.) and peripheral read instructions (e.g.L PEW x) in the user program, as well as by write instructions of PG/OP opera-tions!
Outputs initialized with forced values only return the forced value if the user pro-gram does not execute any write accesses to the outputs using peripheral writecommands (e.g. TPQB x) and if no PG/OP functions write to these outputs!
Always note that forced values in the I/O process image cannot be overwritten bythe user program or PG/OP functions!
Execute forcejob for inputs
CPUs
Execute forcejob for inputs
PIOtransfer
Execute forcejob for outputs
OS .... Operating system execution
Figure 1-4The Principle of Forcing with S7-300 CPUs (CPU 312IFM to 316-2DP)
OS
PIItransfer
Forcedvalue
User program
Forced valueoverwritten by TPQW!
T PQW
PIOtransfer
Execute forcejob for outputs
OS
Forcedvalue
PIItransfer
PLC S7-300, CPU Specifications CPU 312 IFM to CPU 318-2 DPA5E00111190-01
1-21
Page 38
CPUs
1.3.2Diagnosticswith LED Display
InTable 1-9, only the LEDs relevant to the diagnosis of the CPU and S7-300 arelisted. You will find the significance of the PROFIBUS-DP interface LEDs explainedin Chapter 2.
Table 1-9Diagnostic LEDs of the CPU
LED
SFComes on in
the event of
BATFComes on
when
StopComes on
whenFlashes when
Hardware faultsProgramming errorsParameter assignment errorsCalculation errorsTiming errorsFaulty memory cardBattery fault or no backup at power onI/O fault/error (external I/O only)Communication error
The backup battery is missing, faulty or not charged.Note Also lit if a rechargeable battery is installed. Reason:The user program is not backed up the rechargeable battery.
The CPU is not processing a user programThe CPU requests a memory reset
1.3.3Diagnostics with STEP 7
Description
1-22
Note
Please note that this is not a fail-safe or redundant system, regardless of its exi-sting extensive monitoring and error reaction functions.
If an error occurs, the CPU enters the cause of the error in the diagnostic buffer.You can read the diagnostic buffer using the programming device.
The CPU switches to STOP if an error or interrupt event occurs, or your userprogram reacts accordingly with error or interrupt OBs. Details on STEP 7diagnostic functions are found in the STEP 7 Online Help.
In the Instruction list you can find an overview
of the OBs you can use to react to respective error or interrupt events, as wellas of the OBs you can program in the respective CPU
PLC S7-300, CPU Specifications CPU 312 IFM to CPU 318-2 DP
A5E00111190-01
Page 39
CPU Reaction on Missing Error OB
If you have not programmed an error OB, the CPU reacts as follows:
CPU goes into STOP on missing ...CPU Remains in RUN with Missing ...
OB 80(Runtime error)OB 85(Program cycle error)OB 86(Station failure in the PROFIBUS-
DP subnet)OB 87(Communication error)OB 121(Programming error)OB 122(Peripheral direct access
error)
CPU Behavior When There Is No Interrupt OB
If you have not programmed an interrupt OB, the CPU reacts as follows:
CPUs
OB 81(Power break)
CPU goes into STOP on missing ...CPU Remains in RUN with Missing ...
For the watchdog interrupt OB 35/32, you can specify times starting from 1 ms.Note: The smaller the selected watchdog interrupt period, the more likelywatchdog interrupt errors will occur. You must take into account the operatingsystem times of the CPU in question, the runtime of the user program and theextension of the cycle by active programming device functions, for example.
OB 32/35 (Watchdog interrupt)
PLC S7-300, CPU Specifications CPU 312 IFM to CPU 318-2 DPA5E00111190-01
1-23
Page 40
CPUs
1.4CPUs - Technical Specifications
In This Section
You will find the technical specifications of the CPU.You will find the technical specifications of the integrated inputs/outputs of the
CPU 312 IFM and 314 IFM.
You will not find the features of the CPU 31x-2 DP as a DP master/DP slave.
Refer to Chapter 2.
SectionContentsPage
1.4.1CPU 312 IFM1-25
1.4.2CPU 3131-37
1.4.3CPU 3141-40
1.4.4CPU 314 IFM1-43
1.4.5CPU 3151-60
1.4.6CPU 315-2 DP1-63
1.4.7CPU 316-2 DP1-66
1.4.8CPU 318-21-69
1-24
PLC S7-300, CPU Specifications CPU 312 IFM to CPU 318-2 DP
A5E00111190-01
Page 41
1.4.1CPU 312 IFM
Special Features
Integrated I/Os (Wiring via 20-pole front connector)No backup battery and therefore maintenance-freeAn S7-300 with CPU 312 IFM can be mounted only on one rack
Integrated Functions of the CPU 312 IFM
Integrated FunctionsDescription
Process interruptInterrupt input means: inputs configured with this function trigger a process
interrupt at the corresponding signal edge.
Interrupt input options for the digital inputs 124.6 to 125.1 must be programmed
in STEP 7.
CounterThe CPU 312 IFM offers these special functions as an alternative at the digital
inputs 124.6 to 125.1.
Frequency meter
For a description of the special functions “Counter” and “Frequency meter”,
please refer to the Integrated Functions Manual.
CPUs
“Interrupt Inputs” of the CPU 312 IFM
If you wish to use the digital inputs 124.6 to 125.1 as interrupt inputs, you mustprogram these in STEP 7 in the CPU parameters.
Note the following points:These digital inputs have a very low signal delay. At this interrupt input, the
module recognizes pulses with a length as of approx. 10 to 50 s. Always useshielded cable to connect active interrupt inputs in order to avoid interruptstriggered by line interference.Note The minimum pulse width of an interrupt trigger pulse is 50 s.
The input status associated with an interrupt in the input process image or with
LPIB always changes with ”normal” input delay of approx.3 ms.
PLC S7-300, CPU Specifications CPU 312 IFM to CPU 318-2 DPA5E00111190-01
1-25
Page 42
CPUs
Start information for OB40
Table 1-10 shows the temporary (TEMP) variables of OB40 relevant for the“Interrupt inputs” of the CPU 312 IFM. Refer to theSystem and Standard functionsreference manual for details on the process interrupt OB.
Table 1-10Start Information for OB 40 for the Interrupt Inputs of the Integrated I/Os
Byte
6/7OB40_MDL_ADDRWORDB#16#7CAddress of the interrupt triggering
8 onOB40_POINT_ADDRDWORDSee Figure 1-5Signaling of the interrupt triggering
VariableData TypeDescription
module (in this case, the CPU)
integrated inputs
Display of the Interrupt Inputs
In variable OB40_POINT_ADDR, you can view the interrupt inputs which havetriggered a process interrupt. Figure 1-5 shows the allocation of the interrupt inputsto the bits of the double word.
Note: Several bits can be set if interrupts are triggered by several inputs withinshort intervals (< 100 s). That is, the OB is started once only, even if severalinterrupts are pending.
3130
5413
Reserved
2
0Bit No.
PRIN from I124.6PRIN from I 124.7PRIN from I125.0PRIN from I 125.1
1-26
PRIN: Process interrupt
Figure 1-5Display of the States of the Interrupt Inputs of the CPU 312 IFM
PLC S7-300, CPU Specifications CPU 312 IFM to CPU 318-2 DP
A5E00111190-01
Page 43
Front View
CPUs
Status and fault LEDs
Mode selector
Multipoint Interface(MPI)
Figure 1-6Front View of the CPU 312 IFM
I124.0I1I2I3I4I5I6I7
I125.0
I1
Q124.0
Q1Q2Q3Q4Q5
Front connector,used to connectthe integratedI/O, powersupply andsystem ground.
PLC S7-300, CPU Specifications CPU 312 IFM to CPU 318-2 DPA5E00111190-01
Digital inputsE 124.0 to E 127.7Digital outputsA 124.0 to A 124.7
Integrated Functions
Counter1 (see Integrated
Frequency meterup to 10 kHz max.
Functions) manual
(see Integrated Functions) manual
1-30
PLC S7-300, CPU Specifications CPU 312 IFM to CPU 318-2 DP
A5E00111190-01
Page 47
Technical Specifications of the Special Inputs of the CPU 312IFM
CPUs
Module-Specific Data
Number of inputs4
I 124.6 to 125.1
Cable length
Shieldedmax. 100 m (109yd.)
Voltages, Currents, Potentials
Number of inputs that canbe triggered simultaneously
4
(horizontal
configuration)up to 60°C
(vertical configuration)
up to 40°C
Status, Interrupts; Diagnostics
Status display1 green LED per
Interrupts
4
4
channel
Process interruptConfigurable
Diagnostic functionsNone
Sensor Selection Data
Input voltage
Rated valueFor “1” signal
I 125.0 and I 125.1I 124.6 and I 124.7
For “0” signal
Input current
For “1” signal
I 125.0 and I 125.1I 124.6 and I 124.7
Input delay time
For “0” to “1”For “1” to “0”
Input characteristic
E 125.0 and E 125.1E 124.6 and 124.7
Connection of 2-wireBEROs
Permissible idle current
I 125.0 and I 125.1I 124.6 and I 124.7
Time, Frequency
24V DC
15 to 30 V15 to 30 V
-3 to 5 V
min. 2 mAmin. 6.5 mA
max. 50 smax. 50 s
to IEC 1131, Type 1to IEC 1131, Type 1
no
max. 0.5 mAmax. 2 mA
Internal conditioning timefor
Interrupt processing
Input frequency 10 kHz
PLC S7-300, CPU Specifications CPU 312 IFM to CPU 318-2 DPA5E00111190-01
max. 1.5 ms
1-31
Page 48
CPUs
Technical Specifications of the Digital Inputs of the CPU 312IFM
Note
Alternatively, you can configure the inputs I 124.6 and I 124.7 as special inputs, inwhich case the technical specifications listed for the special inputs apply to theinputs I 124.6 and I 124.7.
Module-Specific Data
Number of inputs8Cable length
UnshieldedShielded
Voltages, Currents, Potentials
Number of inputs that canbe triggered simultaneously
max. 600 mmax. 1000 m
8
(horizontal
configuration)up to 60°C
(vertical configuration)
up to 40°C
Galvanic isolationNo
8
8
Status, Interrupts; Diagnostics
Status display1 green LED per
channelInterruptsNoneDiagnostic functionsNone
Sensor Selection Data
Input voltage
Rated valueFor “1” signalFor “0” signal
Input current
24V DC
11 to 30 V
-3 to 5 V
For “1” signaltypical 7 mA
Input delay time
For “0” to “1”For “1” to “0”
Input characteristicto IEC 1131, Type 2Connection of 2-wire
BEROs
Permissible quiescent
current
1.2 to 4.8 ms
1.2 to 4.8 ms
Possible
max. 2 mA
1-32
PLC S7-300, CPU Specifications CPU 312 IFM to CPU 318-2 DP
A5E00111190-01
Page 49
Technical Specifications of the Digital Outputs of the CPU 312IFM
CPUs
Module-Specific Data
Number of outputs6Cable length
UnshieldedShielded
Voltages, Currents, Potentials
Total current of outputs (pergroup)
max. 600 mmax. 1000 m
(horizontal
configuration)up to 40°Cup to 60°C
(vertical configuration)
up to 40°C
Galvanic isolationNo
Status, Interrupts; Diagnostics
Status display1 green LED per
InterruptsNoneDiagnostic functionsNone
max. 3 Amax. 3 A
max. 3 A
channel
Actuator Selection Data
Output voltage
For “1” signalmin. L+ (-0.8 V)
Output current
For “1” signal
Rated valuePermissible range
0.5 A5 mA to 0.6 A
For “0” signal
Residual currentLoad impedance range48 to 4 kLamp loadmax. 5 WParallel connection of 2
outputs
For dual-channel
triggering of a load
For performance
increaseTriggering of a digital inputPossibleSwitching frequency
For resistive loadFor inductive load to
IEC947-5-1, DC 13
For lamp load
Inductive breaking voltagelimited internally to
max. 0.5 mA
Possible
Not possible
max.100 Hzmax. 0.5 Hz
max. 100 Hztypical V 30
Short-circuit protection ofthe output
Response threshold
PLC S7-300, CPU Specifications CPU 312 IFM to CPU 318-2 DPA5E00111190-01
yes, electronicallytimed
typical 1 A
1-33
Page 50
CPUs
Wiring diagram of the CPU 312 IFM
Figure 1-7 shows the wiring diagram of the CPU 312 IFM. Use a 20-pole frontconnector to wire the CPU’s integrated I/O.
Caution
!
The CPU 312 IFM has no reverse polarity protection. Polarity reversal destroysthe integrated outputs. Nonetheless, in this case the CPU does not switch toSTOP and the status displays are lit. In other words, the fault is not indicated.
I124.0I1I2I3I4I5I6I7I125.0
Figure 1-7Wiring diagram of the CPU 312 IFM
Grounded Configuration Only
You can use the CPU 312 IFM in a grounded configuration only. In the CPU 312IGFM, system ground is connected internally to chassis ground (M) (seeFigure 1-8, page 1-36).
I1Q124.0Q1Q2Q3Q4Q5
1-34
PLC S7-300, CPU Specifications CPU 312 IFM to CPU 318-2 DP
A5E00111190-01
Page 51
Power Supply Connections
The
CPU 312 IFM andthe integrated I/Os
are connected to power at the terminals 18 and 19 (see Figure 1-7).
Short-circuit reaction
On short-circuit at one of the integrated outputs of CPU 312 IFM, proceed asfollows:
1.Switch the CPU 312 IFM to STOP or switch off the power supply.
2.Eliminate the cause of the short-circuit.
3.Switch the CPU 312 IFM back to RUN or switch the power supply back on.
CPUs
PLC S7-300, CPU Specifications CPU 312 IFM to CPU 318-2 DPA5E00111190-01
1-35
Page 52
CPUs
Basic Circuit Diagram of the CPU 312 IFM
Figure 1-8 shows the block diagram of CPU 312 IFM.
CPU
CPU power
supply
Figure 1-8Basic Circuit Diagram of the CPU 312 IFM
L +M
M
1-36
PLC S7-300, CPU Specifications CPU 312 IFM to CPU 318-2 DP
PLC S7-300, CPU Specifications CPU 312 IFM to CPU 318-2 DP
A5E00111190-01
Page 59
1.4.4CPU 314IFM
Special Features
Integrated I/Os (wired with 40-pole front connector)Details on analog value processing and how to connect measuring transducers,
load and actuators to analog I/O is found in the Module Data reference manual.Figures 1-14 and 1-15 on page 1-59 show wiring examples.
Memory card
The CPU 314 IFM is available in 2 versions: with and without Memory Card slot.
With slot for memory card:6ES7 314-5AE10-0AB0Without slot for memory card:6ES7 314-5AE0x-0AB0
CPUs
Integrated Functions of the CPU 314 IFM
IntegratedFunctions
Process interrupt
Interrupt input means: inputs configured with this function trigger a processinterrupt at the corresponding signal edge.
If you wish to use the digital inputs 126.0 to 126.3 as interrupt inputs, you mustprogram these using STEP 7.
Note:Your user program should access analog inputs of your CPUindividually per L PEW in order to avoid an increase of interruptresponse times. Double-word addressing can increase the access
times by up to 200 s!CounterThe CPU 314 IFM offers these special functions as an alternative at theFrequency meter
digital inputs 126.0 to 126.3. For a description of these special
functions, please refer to the Integrated Functions Manual.Counter A/B
PositioningCONT_CThese functions are not restricted to specific inputs and outputs of theCONT_S
CPU 314 IFM. For a description of these functions, please refer to the
System and Standard Functions Reference Manual.PULSEGEN
Description
PLC S7-300, CPU Specifications CPU 312 IFM to CPU 318-2 DPA5E00111190-01
1-43
Page 60
CPUs
“Interrupt Inputs” of the CPU 314 IFM
If you want to assign interrupt functions to the digital inputs 126.0 to 126.4,configure your CPU parameters in STEP 7 accordingly.
Note the following points:These digital inputs have a very low signal delay. At this interrupt input, the module
recognizes pulses with a length as of approx. 10 to 50 s. Always use shieldedcable to connect active interrupt inputs in order to avoid interrupts triggered by lineinterference.
Note The minimum pulse width of an interrupt trigger pulse is 50 s.
Start information for OB40
Table 1-10 shows the temporary (TEMP) variables of OB40 relevant for the“Interrupt inputs” of the CPU 314 IFM. Refer to theSystem and Standard functionsreference manual for details on the process interrupt OB.
Table 1-11Start Information for OB 40 for the Interrupt Inputs of the Integrated I/Os
Byte
6/7OB40_MDL_ADDRWORDB#16#7CAddress of the interrupt triggering
8 onOB40_POINT_ADDRDWORDSee Figure 1-9Signaling of the interrupt triggering
VariableData TypeDescription
module (in this case, the CPU)
integrated inputs
1-44
PLC S7-300, CPU Specifications CPU 312 IFM to CPU 318-2 DP
A5E00111190-01
Page 61
Display of the Interrupt Inputs
In variable OB40_POINT_ADDR, you can view the interrupt inputs which havetriggered a process interrupt. Figure 1-9 shows the allocation of the interrupt inputsto the bits of the double word.
Note: Several bits can be set if interrupts are triggered by several inputs withinshort intervals (< 100 s). That is, the OB is started once only, even if severalinterrupts are pending.
CPUs
3130
Reserved
PRIN: Processinterrupt
Figure 1-9Display of the States of the Interrupt Inputs of the CPU 314 IFM
5413
2
0Bit No.
PRIN from I126.0PRIN from I126.1PRIN from I 126.2PRIN from I126.3
PLC S7-300, CPU Specifications CPU 312 IFM to CPU 318-2 DPA5E00111190-01
1-45
Page 62
CPUs
Front View of the CPU 314 IFM
M
L+M
Status and error LEDs
Mode selector switch
Compartment for backup battery or
rechargeable battery
Jumper (removable)
Figure 1-10Front View of the CPU 314 IFM
IN
OUTOUT
Connection for power supply and system groundMultipoint interface MPI
Integrated I/OsMemory Card slot (only -5AE10-)
1-46
PLC S7-300, CPU Specifications CPU 312 IFM to CPU 318-2 DP
max. 15 V,continuous; 15 V for max. 1s (duty factor 1:20)
max.30 mA
for voltage output
2-wire connection4-wire connection
PossibleNot possible
for current output
2-wire connection
Possible
Linearity error (relative tooutput range)
Accuracy of reproducibility(in transient state at 25°C,relative to output range)
1-52
0.06 %
0.05 %
PLC S7-300, CPU Specifications CPU 312 IFM to CPU 318-2 DP
A5E00111190-01
Page 69
Technical Specifications of the Special Inputs of the CPU 314IFM
CPUs
Module-Specific Data
Number of inputs4
I 126.0 to 126.3
Cable length
Shieldedmax. 100 m (109yd.)
Voltages, Currents, Potentials
Number of inputs that canbe triggered simultaneously
4
(horizontal
configuration)up to 60°C
(vertical configuration)
up to 40°C
Status, Interrupts; Diagnostics
Status display1 green LED per
Interrupts
4
4
channel
Process interruptConfigurable
Diagnostic functionsNone
Sensor Selection Data
Input voltage
Rated valueFor “1” signal
For “0” signal
Input current
24V DC11 V to 30 V
18 to 30 V withangular encoder andintegrated”Positioning”function
-3 to 5 V
For “1” signaltypical 6.5 mA
Input delay time
For “0” to “1”For “1” to “0”
Input characteristicto IEC 1131, Type 2Connection of 2-wire
BEROs
< 50 s (typical 17s)
< 50 s (typical 20s)
Possiblemax. 2 mA
Permissible quiescent
current
Time, Frequency
Internal conditioning timefor
Interrupt processing
Input frequency 10 kHz
max. 1.2 ms
PLC S7-300, CPU Specifications CPU 312 IFM to CPU 318-2 DPA5E00111190-01
1-53
Page 70
CPUs
Technical Specifications of the Digital Inputs of the CPU 314IFM
Module-Specific Data
Number of inputs16Cable length
UnshieldedShielded
Voltages, Currents, Potentials
Rated load current L+
Polarity reversal
protection
Number of inputs that canbe triggered simultaneously
max. 600 mmax. 1000 m
24V DCYes
16
(horizontal
configuration)up to 60°C
(vertical configuration)
up to 40°C
Galvanic isolation
between channels and
backplane bus
Permissible potentialdifference
Between different
circuits
16
16
Yes
75V DC60V AC
Status, Interrupts; Diagnostics
Status display1 green LED per
channelInterruptsNoneDiagnostic functionsNone
Sensor Selection Data
Input voltage
Rated valueFor “1” signalFor “0” signal
Input current
24V DC
11 to 30 V
-3 to 5 V
For “1” signaltypical 7 mA
Input delay time
For “0” to “1”For “1” to “0”
Input characteristicto IEC 1131, Type 2Connection of 2-wire
BEROs
1.2 to 4.8 ms
1.2 to 4.8 ms
Possible
max. 2 mA
Permissible quiescent
current
Insulation tested at500V DCCurrent consumption
on power supply L+max. 40 mA
1-54
PLC S7-300, CPU Specifications CPU 312 IFM to CPU 318-2 DP
A5E00111190-01
Page 71
Technical Specifications of the Digital Outputs of the CPU 314IFM
Remarks
When the supply voltage is switched on a pulse occurs on the digital outputs! Thiscan be 50 ms long within the permissible output current range. You must not,therefore, use the digital outputs to trigger high-speed counters.
(residual current)Load impedance range48 to 4 kLamp loadmax. 5 WParallel connection of 2
outputs
For dual-channel
triggering of a load
For performance
increaseTriggering of a digital inputPossibleSwitching frequency
For resistive loadFor inductive load to
IEC947-5-1, DC 13
For lamp load
Inductive breaking voltagelimited internally to
Short-circuit protection ofthe output
Response threshold
0.5 A5 mA to 0.6 Amax. 0.5 mA
Possible, onlyoutputs of the samegroup
Not possible
max.100 Hzmax. 0.5 Hz
max. 100 Hztypical L+ (- 48 V)
yes, electronicallytimed
typical 1a
Status display1 green LED per
channelInterruptsNoneDiagnostic functionsNone
PLC S7-300, CPU Specifications CPU 312 IFM to CPU 318-2 DPA5E00111190-01
1-55
Page 72
CPUs
Wiring diagram of the CPU 314 IFM
Figure 1-11 shows the wiring diagram of the CPU 314 IFM.For the connection of integrated I/O you require two 40-pole front connectors
(Order no.: 6ES7392-1AM00-0AA0).Always wire up digital inputs 126.0 to 126.3 with shielded cable due to their low
input delay time.
Caution
!
Wiring errors at the analog outputs can cause the integrated analog I/O of theCPU to be destroyed! (for example, if the interrupt inputs are wired by mistake tothe analog output).The analog output of the CPU is only indestructible up to 15 V (output with respectto M
ANA
).
Special inputs
Analog outputs
Analog inputs
AOAO
AIAIAI
AIAIAI
AIAIAI
AIAIAI
Digital inputsDigital outputs
1 L+
I 126.0I 126.1I 126.2I 126.3
PQW 128
UI
UI
-
UI
-U
I
-U
I
-
PIW 128
PIW 130
PIW 132
PIW 134
1 L+
M
124.0
124.1
124.2
124.3
124.4
124.5
124.6
124.7
125.0
125.1
125.2
125.3
125.4
125.5
125.6
125.7
ANA
2L+
124.0
124.1
124.2
124.3
124.4
124.5
124.6
124.7
2M
3L+
125.0
125.1
125.2
125.3
125.4
125.5
125.6
125.7
1M
3M
Figure 1-11Wiring diagram of the CPU 314 IFM
1-56
PLC S7-300, CPU Specifications CPU 312 IFM to CPU 318-2 DP
A5E00111190-01
Page 73
Basic Circuit Diagrams of the CPU 314 IFM
Figures 1-12 and 1-13 show the basic circuit diagrams for the integratedinputs/outputs of the CPU 314 IFM.
CPUs
L +
V
A
CPU interface
M
M
+
ANA
Ref
M
DAC
Multiplexer
V
A
ADC
M
M
ANA
Internal supply
CPU interface
M
ANA
Figure 1-12Basic Circuit Diagram of the CPU 314 IFM (Special Inputs and Analog Inputs/Outputs)
PLC S7-300, CPU Specifications CPU 312 IFM to CPU 318-2 DPA5E00111190-01
1-57
Page 74
CPUs
1 L+
M
M
CPU
interface
1M
24V
Figure 1-13Basic Circuit Diagram of the CPU 314 IFM (Digital Inputs/Outputs)
M
2L+
24V
2M
3L+
24V
3M
1-58
PLC S7-300, CPU Specifications CPU 312 IFM to CPU 318-2 DP
A5E00111190-01
Page 75
Wiring the Analog Inputs
CPUs
1 L+
AI
U
AI
I
AI_
M
ANA
L +
2-wiremeasurementtransducer
AI_ and Mthem.
M
- we recommend to jumper
ANA
Figure 1-14Connecting 2-wire measurement transducers to the analog inputs of CPU 314 IFM
1 L+
AIAIAI_
AIAIAI_
UI
UI
Shielded cables
Unwired channel groups:Connect AI_ with M
L +M
4-wiremeasurementtransducer
M
ANA
.
When using 4-wire measurement transducers,
M
ANA
Figure 1-15Wiring of 4-wire measurement transducers to the analog inputs of CPU 314 IFM
PLC S7-300, CPU Specifications CPU 312 IFM to CPU 318-2 DPA5E00111190-01
PLC S7-300, CPU Specifications CPU 312 IFM to CPU 318-2 DP
A5E00111190-01
Page 85
1.4.8CPU 318-2
Special Features
4 accumulatorsThe configuration of MPI interfaces can be changed: MPI or PROFIBUS DP
(DP Master).Configurable data areas (Process image, local data)Information on differences between CPU 318-2 and other CPUs is found in
Chapter 4.1.
DP master or DP slave
You can operate the CPU 318-2 DP as DP Master or DP Slave in aPROFIBUS-DP network. However, note that only one of the interfaces can be aDP Slave. For details on PROFIBUS-DP characteristics of CPU 318-2 DP refer toChapter 2.
CPUs
Definable Data Areas and Occupied Working Memory
In your CPU 318-2 configuration, you can change the size of the I/O processimage and the local data areas.Increasing default values for the process image and local data requires additionalmemory that would otherwise be available for user programs.Take following dimensions into account:
Input process image:1 byte PII occupies
12 Byte in memory
Output process image:1 Byte PIO occupies
12 bytes in memory
Example:
256 bytes in PII occupy 3072 bytes,
2047 byte in PIO already occupy 24564 bytes in memory.Local data 1 local data byte occupies
1 byte in memory
256 byte is default, depending on the priority class. With 14 priority classes
there are therefore 3584 bytes occupied in the working memory. With a
maximum size of 8192 bytes you can still allocate 4608 bytes, which are then
no longer available for the user program in the working memory.
Communication
You can transform the first CPU interface from MPI to DP interface operation. Youcan operate the CPU as DP Master or DP Slave on this DP interface. Routingreduces the maximum possible number of connections for each one of the twointerfaces by one connection per active PG/OP communication used by the CPU318-2 as network node.
PLC S7-300, CPU Specifications CPU 312 IFM to CPU 318-2 DPA5E00111190-01
1-69
Page 86
CPUs
FM 353/354, distributed
If you implement the CPU 318-2 as DP Master, you can operate FM 353 as of6ES7 353-1AH01-0AE0, firmware version 3.4/03 and FM 354 as of 6ES7354-1AH01-0AE0, firmware version 3.4/03 in distributed mode with an ET 200M.
You cannot operate the following modules in an S7-300 equipped with a 318-2CPU
FM 357 up to 6ES7 357-4_H02-3AE_, firmware version 2.1;FM NC up to 6FC5 250-3AX00-7AH0, firmware version 3.7 + Toolbox 6FC5
252-3AX2Z-6AB0, Software Version 3.6;
SM 338 up to 6ES7 338-7UH00-0AC0, version 07;SIXWAREX M up to 7MH4 553-1AA41, firmware version 0119;SINAUT ST7 TIM, 6NH7 800-_A__0 (Tip: Use a TIM module as stand alone node)
Peripheral access in CPU 318-2 is not permitted
for T PAW operations on centrally inserted peripheral modules with correspondingaddress bytes assigned to different peripheral modules.
1-70
PLC S7-300, CPU Specifications CPU 312 IFM to CPU 318-2 DP
A5E00111190-01
Page 87
CPU 318-2, Technical Data
CPU and Product Version
MLFB
Hardware version
6ES7 318-2AJ00-0AB003
Firmware versionV 3.0Matching programming
package
Memory
Work memory
STEP 7 V 5.1 +Service Pack 02
integral256 KB data/
256 KB code
Expandableno
Load memory
integral64 KB
Expandable FEPROMUp to 4 MBExpandable RAMUp to 2 MB
Current consumption (idle)typical 1.2 AInrush currenttypical 8Al 2 t0.4 A2sExternal fusing for supply
lines (recommendation)PD supply at MPI (15 to
30V DC)Power lossestypical 12 WBatteryYes
Backup margin at 25
C and continuous CPU
buffering
Battery shelf life at
25CAccumulatorYes
Circuit breaker; 2 A,Type B or C
max. 200 mA
min. 1 year
approx. 5 years
Clock back-up period
–at 0 to 25CApprox. 4 weeks
–at 40 CApprox. 3 weeks
–at 60 CApprox. 1 week
Battery charging timeApprox. 1 hour
PLC S7-300, CPU Specifications CPU 312 IFM to CPU 318-2 DPA5E00111190-01
1-73
Page 90
CPUs
1-74
PLC S7-300, CPU Specifications CPU 312 IFM to CPU 318-2 DP
A5E00111190-01
Page 91
CPU 31x-2 as DP Master/DP Slave andDirect Communication
Introduction
In this chapter you will find the features and technical specifications of the CPUs315-2 DP, 316-2DP and 318-2. You will need these in order to use the CPU as aDP master or a DP slave and configure it for direct communication.
Agreement: Since DP Master/Slave behavior is the same for all CPUs, the CPUsdescribed below are referred to as CPU 31x-2.
Note on CPU 318-2: With a CPU 318-2 you can operate the MPI-/DP interface asDP interface. In this case, however, you can only configure it as DP Master andnot as DP Slave.
In This Chapter
SectionContentsPage
2.1
2.2DP Address Areas of the CPUs 31x-22-4
2.3CPU 31x-2 as DP Master2-5
2.4Diagnostics of the CPU 31x-2 as DP Master2-6
2.5CPU 31x-2 as DP Slave2-13
2.6Diagnostics of the CPU 31x-2 as DP Slave2-18
2.7Direct data exchange2-32
2.8Diagnosis with Direct Communication2-33
Information on DPV1 Functionality2-2
2
Additional Literature
Descriptions and notes on system configuration, configuration of a PROFIBUSsubnet and on diagnostics in a PROFIBUS subnet is found in the STEP 7 OnlineHelp.
PLC S7-300, CPU Specifications CPU 312 IFM to CPU 318-2 DPA5E00111190-01
2-1
Page 92
CPU 31x-2 as DP Master/DP Slave and Direct Communication
2.1Information on DPV1 Functionality
The aim
The EN50170 Standard for Distributed Peripherals was subject to furtherdevelopment. All changes were incorporated in IEC 61158 / EN 50170,Volume 2, PROFIBUS. In order to simplify matters we now refer to DPV1Mode.
How do I identify a DPV1 Master/Slave?
DP Master CPUs of the S7-400 family and the CPU 318-2, respectively withintegrated DP interface, support DPV1 Master functionality as of Firmware Version
3.0.0.DP Slaves, listed in the STEP 7 hardware catalog under their family name can be
identified as DPV1 Slaves with the help of the info text. DP Slaves implemented inSTEP 7 via GSD files support V1 functionality as of GSD Revision 3.
As of which STEP 7 version is migration to DPV1 mode possible?
As of STEP 7 V5.1, Servicepack 2.
Which operating modes are available for DPV1 modules?
You are using a DPV1 automation module, but do not want to migrate to DPV1mode. In this case you use S7 compatible mode. In this mode, the automationmodule is compatible to EN50170. In this case, however, you cannot utilize fullDPV1 functionality. You could, for example, use the new SFBs 52...54. However,default values are written to non-existing data.
You are using a DPV1 compatible automation module and want to migrate to DPV1mode. In this case, use DPV1 mode for full functionality. In your station you cancontinue using automation modules not supporting DPV1 as usual.
Can I use all previous slaves after migration to DPV1 mode?
Yes, without restriction. The only difference here is that your previous slaves do notsupport extended DPV1 functions.
2-2
PLC S7-300, CPU Specifications CPU 312 IFM to CPU 318-2 DP
A5E00111190-01
Page 93
CPU 31x-2 as DP Master/DP Slave and Direct Communication
Can I use DPV1 Slaves without this migration?
Yes, without restriction. In this case, DPV1 Slaves behave as conventional Slaves.SIEMENS DPV1 Slaves can also be operated in S7 compatible mode. For DPV1Slaves of other manufacturers you require a GSD file to EN50170 below Revision
3. DPV1 – station-wide.You must convert the complete station to DPV1 mode if you migrate to DPV1. In
STEP 7 you can configure this mode in the HW Config module (DP Mode).
Details on migration to DPV1 mode are found in our Customer Supportunder FAQ topic ID: 7027576
PLC S7-300, CPU Specifications CPU 312 IFM to CPU 318-2 DPA5E00111190-01
2-3
Page 94
CPU 31x-2 as DP Master/DP Slave and Direct Communication
2.2DP Address Areas of the CPUs 31x-2
Address areas of CPUs 31x-2
Address area315-2 DP316-2DP318-2
DP address areafor I/Os
of these in the I/Oprocess images
In the input address area, DP diagnostic addresses occupy 1 byte for the DPmaster and for each DP slave. Under these addresses, for example, you can callDP standard diagnostics for the respective nodes (LADDR parameter of SFC13).The DP diagnostic addresses are specified during configuration. If you do notspecify any DP diagnostic addresses, STEP 7 assigns these addresses, indecrements starting at the highest byte.
1024 bytes2048 bytes8192 bytes
Bytes 0 to 127Bytes 0 to 127Bytes 0 to 255
(default)Can be set up to
byte 2047
Configuring modules with addresses assigned to the peripheral area
Always configure a module address in a peripheral area either completely inside orcompletely outside of the process image. Otherwise, consistency is not ensuredand corrupted data might be generated.
2-4
PLC S7-300, CPU Specifications CPU 312 IFM to CPU 318-2 DP
A5E00111190-01
Page 95
CPU 31x-2 as DP Master/DP Slave and Direct Communication
2.3CPU 31x-2 as DP Master
Introduction
This section covers the features and technical specifications of the CPU when it isused as a DP master.
The features and technical specifications of the CPU 31x-2 as the “standard” CPUare listed in Section 1.
Prerequisite
Should the MPI/DP interface be a DP interface? If so, you must then configure theinterface as a DP interface.
Before the CPU can be put into operation, it must be configured as a DP master.This means carrying out the following steps in STEP 7 :
Configure the CPU as a DP master.Assign a PROFIBUS address.Assign a master diagnostic address.Integrate DP slaves into the DP master system.
Is a DP slave a CPU 31x-2?If so, you will find that DP slave in the PROFIBUS-DP catalog as
“pre-configured station”. This DP slave CPU must be assigned a slavediagnostic address in the DP master. Interconnect the DP master and the DPslave CPU. Specify the address areas for data exchange with the DP slaveCPU.
Status/Control, Programming via PROFIBUS
As an alternative to the MPI interface, you can program the CPU viaPROFIBUS-DP interface or execute the PG’s status and control functions.
Note
The use of Monitor and Modify via the PROFIBUS-DP interface lengthens the DPcycle.
Equidistance
As of STEP 7 V 5.x you can configure bus cycles of the same length (equidistant)for PROFIBUS subnets. You can find a detailed description of equidistance in theSTEP 7 online help system.
PLC S7-300, CPU Specifications CPU 312 IFM to CPU 318-2 DPA5E00111190-01
2-5
Page 96
CPU 31x-2 as DP Master/DP Slave and Direct Communication
Power-Up of the DP Master System
CPU 31x-2DP is DP MasterCPU 318-2 is DP Master
You can also set power-up time monitoringof the DP slaves with the “Transfer of parameters to modules”parameter.
This means that the DP slaves must be powered up and configured by the CPU (as DPmaster) in the set time.
Using the parameters “Transfer of parameters to modules” and “Ready message from modules” you canset power-up time monitoring for the DPslaves.
PROFIBUS Address of the DP Master
You cannot set the 126 as the PROFIBUS address for the CPU 31x-2.
2.4Diagnostics of the CPU 31x-2 as DP Master
Diagnosis with LEDs
Table 2-1 describes the meaning of the BUSF LED.For display the BUSF LED assigned to the PROFIBUS-DP interface is always it orit flashes.
Table 2-1Meaning of the BUSF LED of the CPU 31x-2 as DP Master
BUSF
LED offConfiguring data OK;
all configured slaves are addressable.
LED onBus fault (hardware fault).Check for bus cable breaks or short-circuit.
DP interface fault.Different transmission rates in
multiple DP master mode.
LEDflashes
Station failure.
At least one of the configured slaves
cannot be addressed.
DescriptionRemedy
–
Evaluate the diagnostic data. Reconfigure or
correct the configuring data.
Check the bus cable connection to the
CPU31x-312, or check whether the bus isinterrupted.
Wait until the CPU 31x-2 has powered up. If the
LED does not stop flashing, check the DPslaves or evaluate the diagnostic data for theDP slaves.
2-6
PLC S7-300, CPU Specifications CPU 312 IFM to CPU 318-2 DP
A5E00111190-01
Page 97
CPU 31x-2 as DP Master/DP Slave and Direct Communication
Reading Diagnostic Data with STEP7
Table 2-2Reading Diagnostic Data with STEP 7
DP Master
CPU 31x-2”DP slave
Modules or
registers in
STEP 7
diagnostics”tab
SFC 13“DPNRM_DG”
SFC 59“RD_REC”
SFC 51“RDSYSST”
SFB 52“RDREC”(only 318-2)
SFB 54“RALRM”(only 318-2)
ApplicationSee...
Display slave diagnostic dataas plain text on the STEP 7user interface
Reading out slave diagnosis(store in the data area of theuser program)
Read out data records of the S7diagnosis (store in the dataarea of the user program)
Read out system state sub-lists.In the diagnostics interrupt withthe SSL ID W#16#00B4, callSFC51 and read out the SSL(system diagnostic list) of theslave CPU.
Applicable to DPV1environment:
Read out data records of the S7diagnosis (store in the dataarea of the user program)
Applicable to DPV1environment:
Read out interrupt informationwithin the correspondinginterrupt OB
See “Diagnosis of Hardware” inthe STEP 7 Online Help andSTEP 7 User Manual
Configuration for the CPU 31x-2,see Section 2.6.4; SFC, see
System and Standard Functions
Reference ManualConfiguration for other slaves,see their description
System and Standard Functions
Reference Manual
Evaluating Diagnostics in the User Program
The following figures show you how to evaluate the diagnosis in the user program. Note the order number for the CPU 315-2DP:
CPU 315-2DP < 6ES7 315-2AF03-0AB0CPU 315-2DP as of 6ES7315-2AF03-0AB0
...see Figure 2-1 on page 2-8...see Figure 2-2 on page 2-9
PLC S7-300, CPU Specifications CPU 312 IFM to CPU 318-2 DPA5E00111190-01
CPU 316-2DP as of 6ES7316-2AG00-0AB0CPU 316-2 as of 6ES7318-2AJ00-0AB0
2-7
Page 98
CPU 31x-2 as DP Master/DP Slave and Direct Communication
CPU 315-2DP smaller than 6ES7 315-2AF03-0AB0
Diagnostic event
OB82 is called
Read out the parameter OB 82_MDL_TYPEin the local data of OB 82:
The module class is in the bits 0 to 3 (DPslave type)
0011 =DP slave according tothe standard
Read outOB82_MDL_ADDR
(Diagnostic address of theDP slave = STEP 7diagnostic address)
Call SFC 13
Enter the diagnosticaddress in the LADDRparameter
Call SFC 13
Enter the diagnosticaddress in the LADDRparameter
1011=CPU as DP slave (I slave)
Read outOB82_MDL_ADDR
(Diagnostic address of theDP slave = STEP 7diagnostic address)
Call SFC 51
Enter the diagnosticaddress in the INDEXparameter (always theinput address here)
Enter the ID W#16#00B3in the SZL_ID parameter(=diagnostic data of amodule)
Other ID:S7-DP Slave
Readout OB82_MDL_ADDR andRead out OB82_IO_FLAG
(= identifier I/O module)
Enter bit 0 of OB82_IO_Flag as bit15 in OB82_MDL_ADDRResult: Diagnostics address
”OB82_MDL_ADDR*”
For the diagnosis of themodules involved:
Call SFC 51
Enter the diagnostic address“OB82_MDL_ADDR*” in theINDEX parameter
Enter the ID W#16#00B3 inthe SZL_ID parameter(=diagnostic data of amodule)
Figure 2-1Diagnostics with CPU 315-2DP < 315-2AF03
PLC S7-300, CPU Specifications CPU 312 IFM to CPU 318-2 DP
2-8
A5E00111190-01
Page 99
CPU 31x-2 as DP Master/DP Slave and Direct Communication
CPU 315-2DP as of 6ES7 315-2AF03-0AB0CPU 3162DP; 318-2
Diagnostic event
OB82 is called
only 318-2
Read out OB82_MDL_ADDRand
Read out OB82_IO_FLAG
(= identifier I/O module)
Enter bit 0 of OB82_IO_Flag as bit15 in OB82_MDL_ADDRResult: Diagnostics address
”OB82_MDL_ADDR*”
For diagnosis of the whole DP slave:Call SFC 13
Enter the diagnostic address“OB82_MDL_ADDR*” in the LADDRparameter
For the diagnosis of the modules involved:Call SFC 51
Enter the diagnostic address“OB82_MDL_ADDR*” in the INDEX parameter
Enter the ID W#16#00B3 in the SZL_ID parameter(=diagnostic data of a module)
Figure 2-2Diagnostics with CPU 31x-2 (315-2DP as of 315-2AF03)
For the diagnostics of therespective modules:
call SFB 54 (in DPV1 mode)
Set MODE = 1Diagnostic data is written tothe parameters TINFO andAINFO.
PLC S7-300, CPU Specifications CPU 312 IFM to CPU 318-2 DPA5E00111190-01
2-9
Page 100
CPU 31x-2 as DP Master/DP Slave and Direct Communication
Diagnostic Addresses
With a CPU 31x-2, you assign the diagnostic addresses for the PROFIBUS-DP.Make sure during configuration that DP diagnostic addresses are assigned to boththe DP master and the DP slave.
CPU 31x-2 as DP SlaveCPU 31x-2 as DP Master
PROFIBUS
During configuration you must specify two diagnosticaddresses:
Diagnosticaddress
When you configure the DP master, youmust specify (in the associated project ofthe DP master) a diagnostic address forthe DP slave. In the following, thisdiagnostic address is referred to asallocated to the DP master.
The DP master receives information onthe status of the DP slave or on a businterruption via this diagnostic address(see also Table 2-3).
Figure 2-3Diagnostic Addresses for DP Master and DP Slave
Diagnosticaddress
When you configure the DP slave, youmust also specify (in the associatedproject of the DP slave) a diagnosticaddress that is allocated to the DP slave.In the following, this diagnostic addressis referred to as allocated to the DPslave.
The DP slave receives information onthe status of the DP master or on a businterruption via this diagnostic address(see also Table 2-8 on page 2-23).
2-10
PLC S7-300, CPU Specifications CPU 312 IFM to CPU 318-2 DP
A5E00111190-01
Loading...
+ hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.