Académique Documents
Professionnel Documents
Culture Documents
06/2008
A5E00123662-07
Safety Guidelines
This manual contains notices you have to observe in order to ensure your personal safety, as well as to
prevent damage to property. The notices referring to your personal safety are highlighted in the manual
by a safety alert symbol, notices referring to property damage only have no safety alert symbol. The
notices shown below are graded according to the degree of danger.
Danger
! indicates that death or severe personal injury will result if proper precautions are not taken.
Warning
! indicates that death or severe personal injury may result if proper precautions are not taken.
Caution
! with a safety alert symbol indicates that minor personal injury can result if proper precautions are not
taken.
Caution
without a safety alert symbol indicates that property damage can result if proper precautions are not
taken.
Notice
indicates that an unintended result or situation can occur if the corresponding notice is not taken into
account.
If more than one degree of danger is present, the warning notice representing the highest degree of
danger will be used. A notice warning of injury to persons with a safety alert symbol may also include a
warning relating to property damage.
Qualified Personnel
The device/system may only be set up and used in conjunction with this documentation. Commissioning
and operation of a device/system may only be performed by qualified personnel. Within the context of
the safety notices in this documentation qualified persons are defined as persons who are authorized to
commission, ground and label devices, systems and circuits in accordance with established safety
practices and standards.
Prescribed Usage
Note the following:
Warning
! This device and its components may only be used for the applications described in the catalog or the
technical description, and only in connection with devices or components from other manufacturers
which have been approved or recommended by Siemens.
Correct, reliable operation of the product requires proper transport, storage, positioning and assembly
as well as careful operation and maintenance.
Trademarks
All names identified by ® are registered trademarks of the Siemens AG.
The remaining trademarks in this publication may be trademarks whose use by third parties for their
own purposes could violate the rights of the owner.
Disclaimer of Liability
We have reviewed the contents of this publication to ensure consistency with the hardware and
software described. Since variance cannot be precluded entirely, we cannot guarantee full consistency.
However, the information in this publication is reviewed regularly and any necessary corrections are
included in subsequent editions.
Siemens AG A5E00123662-07
Copyright © Siemens AG 2008
Automation and Drives
06/2008 Technical data subject to change
Postfach 4848
90437 NÜRNBERG
GERMANY
Introduction 1
Preparation 2
Units 3
SIMATIC
Further Information 4
S7-300
S7-300 Automation System: Getting
Started CPU 31x: Commissioning
Getting Started
06/2008
A5E00164278-04
Safety Guidelines
This manual contains notices you have to observe in order to ensure your personal safety, as well as to prevent
damage to property. The notices referring to your personal safety are highlighted in the manual by a safety alert
symbol, notices referring only to property damage have no safety alert symbol. These notices shown below are
graded according to the degree of danger.
DANGER
indicates that death or severe personal injury will result if proper precautions are not taken.
WARNING
indicates that death or severe personal injury may result if proper precautions are not taken.
CAUTION
with a safety alert symbol, indicates that minor personal injury can result if proper precautions are not taken.
CAUTION
without a safety alert symbol, indicates that property damage can result if proper precautions are not taken.
NOTICE
indicates that an unintended result or situation can occur if the corresponding information is not taken into
account.
If more than one degree of danger is present, the warning notice representing the highest degree of danger will
be used. A notice warning of injury to persons with a safety alert symbol may also include a warning relating to
property damage.
Qualified Personnel
The device/system may only be set up and used in conjunction with this documentation. Commissioning and
operation of a device/system may only be performed by qualified personnel. Within the context of the safety notes
in this documentation qualified persons are defined as persons who are authorized to commission, ground and
label devices, systems and circuits in accordance with established safety practices and standards.
Prescribed Usage
Note the following:
WARNING
This device may only be used for the applications described in the catalog or the technical description and only
in connection with devices or components from other manufacturers which have been approved or
recommended by Siemens. Correct, reliable operation of the product requires proper transport, storage,
positioning and assembly as well as careful operation and maintenance.
Trademarks
All names identified by ® are registered trademarks of the Siemens AG. The remaining trademarks in this
publication may be trademarks whose use by third parties for their own purposes could violate the rights of the
owner.
Disclaimer of Liability
We have reviewed the contents of this publication to ensure consistency with the hardware and software
described. Since variance cannot be precluded entirely, we cannot guarantee full consistency. However, the
information in this publication is reviewed regularly and any necessary corrections are included in subsequent
editions.
Requirements
● You need to have a basic understanding of electronics/electrical engineering, and have
experience in working with Microsoft® Windows™.
WARNING
When using the S7-300 as a component of plants and systems, you may be required to
follow certain rules and regulations according to the specific application. Please note the
applicable safety and accident prevention regulations, such as IEC 204 (emergency
stop systems).
Non-compliance with these regulations can result in serious injury and damage to both
machinery and equipment.
4 5 6
3
8
Figure 2-1 Sample layout (certain details of the CPUs may differ from the above illustration)
1
2
/ 3
0
/
4
0
'&9
/
0 /
0
6 5
99
Figure 2-2 Wiring the power supply and CPU (front cover open)
1.
2.
2 1
WARNING
You may come into contact with live wires that are connected to the power supply. Make
sure that the S7-300 is completely disconnected before you start wiring.
Note
Please note: If you are using 40-pin front connectors, they must also be fixed using the
fixing screw in the center of the front connector.
8. Close the front panels of the digital input and output modules and the power supply.
Procedure
1. Use the PG cable to connect the programming device to the CPU. When using a cable
with PROFIBUS connectors, remember to switch on the integrated terminating resistors.
Close the front panel cover of the CPU, then set the mode selector switch on the CPU to
STOP.
2. Connect mains, then switch on the power supply module.
The DC24V LED on the power supply is lit.
All the LEDs on the CPU light up briefly; the SF-LED and the DC5V-LED stay lit. The
STOP-LED then flashes slowly to indicate a CPU memory reset.
3. Depending on the type of CPU, you will need to insert either the SIMATIC Micro Memory
Card or the backup battery into your CPU.
4. Perform a CPU memory reset:
– Turn the mode switch to MRES. Hold it in this position until the STOP LED lights up
for the second time and then remains lit. Then release it.
– You then have 3 seconds in which to turn the mode switch back to MRES. The STOP
LED begins to flash rapidly and the CPU performs a reset. You can now release the
mode switch. The CPU has completed the memory reset when the STOP LED
remains permanently lit again.
5. Start your programming device, then run SIMATIC Manager from your Windows Desktop.
A window opens with SIMATIC Manager.
6. Select button 1.
The LED for the first input lights up.
7. Select button 2.
The LED for the second input lights up.
Add a rail
1. In the right-hand part of the window, double-click first on the SIMATIC 300(1) icon and
then on the Hardware icon.
The hardware configuration editor (HW Config) opens.
2. You can insert your hardware components from the hardware catalog in the left-hand part
of the window.
If no catalog is displayed, activate the catalog using the View > Catalog menu command.
In the hardware catalog, navigate to Rack-300 via SIMATIC 300. Copy the rail by
dragging and dropping it in the right-hand part of the window.
The rail is inserted in the right-hand part of the window
Note
Note: You can click on the power supply to display its order number. The order number
then appears in the box beneath the catalog.
Procedure
1. In the right-hand part of the window, first double-click on the CPU icon, then on the S7
program(1) icon, then on the Blocks icon and finally on the OB1 icon.
The “Properties” dialog for OB1 is displayed.
2. From the properties for the organizational block, select the ladder diagram development
language. Click on OK to confirm.
The program editor opens.
3. Carefully click on the horizontal line representing the current path.
The line is highlighted.
4. On the toolbar, click twice on the --||-- icon (normally-open contact) and then once on the
–( ) icon (coil).
The icons are inserted into the current path.
5. Click on the red question mark for the left-hand normally- open contact in the current
path.
The normally-open contact is highlighted and the question mark is replaced with a text
input box containing the cursor.
6. Enter E124.1 and press Return.
The left-hand normally-open contact is now called I124.1.
7. Label the right button in the same way with I124.2 and the coil with Q124.0.
8. set the File > Close menu command to close the editor, and click Yes when you are
prompted to save.
The editor is closed and OB 1 is saved.
Procedure
1. Use the SIMATIC 300 station and your CPU to browse to the S7 program.
In SIMATIC Manager, click on Blocks in the right-hand part of the window.
Blocks will now be highlighted.
2. Select "Download" from the "Target system" menu to transfer the program and hardware
configuration to the CPU. Confirm all windows with Yes.
The program and configuration are downloaded from the programming device to the
CPU. The program is now stored on the Micro Memory Card (in the load memory), where
it is unaffected by power failures and resets.
3. Set the CPU's mode switch to RUN.
The STOP LED is switched off. The RUN LED starts to flash and then assumes a
continuous signal.
4. Press each of the buttons alternately.
The LEDs of each input will light up in turn.
5. Press both buttons simultaneously.
The LEDs of both inputs will light up at the same time.
The LED for the first output lights up.
This equates to connection of a connected final controlling element or display.
2
______________
Preparation
3
SIMATIC ______________
Learning units
4
______________
Further Information
Getting Started
12/2006
A5E00105538-03
Safety Guidelines
This manual contains notices you have to observe in order to ensure your personal safety, as well as to prevent
damage to property. The notices referring to your personal safety are highlighted in the manual by a safety alert
symbol, notices referring only to property damage have no safety alert symbol. These notices shown below are
graded according to the degree of danger.
Danger
indicates that death or severe personal injury will result if proper precautions are not taken.
Warning
indicates that death or severe personal injury may result if proper precautions are not taken.
Caution
with a safety alert symbol, indicates that minor personal injury can result if proper precautions are not taken.
Caution
without a safety alert symbol, indicates that property damage can result if proper precautions are not taken.
Notice
indicates that an unintended result or situation can occur if the corresponding information is not taken into
account.
If more than one degree of danger is present, the warning notice representing the highest degree of danger will
be used. A notice warning of injury to persons with a safety alert symbol may also include a warning relating to
property damage.
Qualified Personnel
The device/system may only be set up and used in conjunction with this documentation. Commissioning and
operation of a device/system may only be performed by qualified personnel. Within the context of the safety notes
in this documentation qualified persons are defined as persons who are authorized to commission, ground and
label devices, systems and circuits in accordance with established safety practices and standards.
Prescribed Usage
Note the following:
Warning
This device may only be used for the applications described in the catalog or the technical description and only in
connection with devices or components from other manufacturers which have been approved or recommended by
Siemens. Correct, reliable operation of the product requires proper transport, storage, positioning and assembly
as well as careful operation and maintenance.
Trademarks
All names identified by ® are registered trademarks of the Siemens AG. The remaining trademarks in this
publication may be trademarks whose use by third parties for their own purposes could violate the rights of the
owner.
Disclaimer of Liability
We have reviewed the contents of this publication to ensure consistency with the hardware and software
described. Since variance cannot be precluded entirely, we cannot guarantee full consistency. However, the
information in this publication is reviewed regularly and any necessary corrections are included in subsequent
editions.
Prerequisites
• You require a basic knowledge of electronics/electrical engineering and experience of
working with computers and Microsoft® Windows™ 95/98/NT.
Warning
Depending on its area of application as part of a plant or system, the S7-300 may be
subject to specific rules and regulations. Please make sure that you adhere to the
applicable safety and accident-prevention regulations, for example, IEC 204 (emergency
stop systems).
Non-compliance with these regulations can lead to serious injury and damage to
machinery and equipment.
1 2 3 4
E124.1
SF 0 0 0
BF 1 1 1
2 2 2
DC5V 3 3 3
FRCE 4 4 4 A124.0
RUN E124.2 5
6
5
6
5
6
STOP
7 7 7
RUN
STOP
MRES
0 0
1 1
2 2
3 3
4 4
5 5
6 6
7 7
+
24 Volt
9 8 7 6 5
Figure 2-1 Overview of the sample configuration
1.
2.
2 1
3. Bolt the CPU tight, applying a torque of between 0.8 and 1.1 Nm.
4. Insert the micro memory card into the CPU (4); this is essential for operation.
If you do not know the content of the micro memory card, erase it first on the
programming device.
Warning
You could touch live wires if the power supply module PS 307 is switched on or the supply
cable of the power supply is connected to the mains supply.
Perform any wiring work on the S7-300 only when the power is off!
6. Wire the free cable ends of the button with L+ of the power supply.
7. Lead the wires downwards out of the front connector.
8. Secure the front connector with the screws (this establishes contact with the module).
9. Close the front panel covers of the power supply module and the front panel of the CPU.
Procedure
1. Use the PG cable to connect the programming device to the CPU. When using a cable
with PROFIBUS connectors, remember to switch on the integrated terminating resistors.
Close the front panel cover of the CPU, then set the mode selector switch on the CPU to
STOP.
2. Connect the mains cable, then switch on the power supply module PS 307.
The DC24V LED on the power supply is lit.
All the LEDs on the CPU light up briefly; the SF LED and the DC5V LED stay lit. The
STOP LED then flashes slowly to indicate a CPU memory reset.
3. Perform a CPU memory reset:
– Turn the mode switch to MRES. Hold the mode selector at this position until the STOP
LED lights up for the second time and then remains lit (approx. 3 seconds). Then
release it.
– You must press the mode switch back to MRES within 3 s. The STOP LED begins to
flash rapidly and the CPU performs a reset. You can now release the mode switch.
The CPU has completed the memory reset when the STOP LED remains permanently
lit again.
4. Start your programming device, then run SIMATIC Manager from your Windows Desktop.
A window opens with SIMATIC Manager.
5. Select button 1.
The LED of I124.1 lights up. No DO LED lights up.
6. Select button 2.
The LED of I124.2 lights up. No DO LED lights up.
Procedure
1. Follow the instructions of the STEP 7 "New Project" wizard on the programming device
and set up a new project with the following data:
– CPU type: CPU 313C
– Block to be created: OB 1
– Project name: S7_Pro1
A window, divided into two parts, opens with the title S7_Pro1 -- ....
2. Double-click the OB1 icon in the right-hand part of the window.
The editor for editing the OB 1 block opens.
3. In the "View" menu, select "LAD" to change to the ladder logic programming language.
At the bottom of the left-hand window, a current path is displayed in network 1.
4. Carefully click on the horizontal line representing the current path.
The line is highlighted.
5. On the toolbar, click twice on the --||-- icon (normally-open contact) and then once on the
–( ) icon (coil).
The icons are inserted into the current path.
6. Click on the red question mark for the left-hand normally- open contact in the current
path.
The normally-open contact is highlighted and the question mark is replaced with a text
input box containing the cursor.
7. Enter I124.1 and press Return.
The left-hand normally-open contact is now called I124.1.
8. Label the right button in the same way with I124.2 and the coil with Q124.0.
9. Close the editor and click Yes when you are prompted to save.
The editor is closed and OB 1 is saved.
Procedure
1. In SIMATIC Manager, click on SIMATIC 300 Station in the left-hand part of the window.
The Hardware and CPU 313C icons appear in the right-hand part of the window.
2. Double-click the Hardware icon in the right-hand part of the window.
The editor for editing the hardware opens.
3. If the catalog is not shown in the right section of the window, you can activate it by
selecting Catalog in the View menu.
4. Expand SIMATIC 300 and CPU-300 until you see CPU 313C.
5. Insert the CPU 313C by dragging it to slot 2 (top or bottom left-hand window).
Note
You can see the order number in the catalog if you click on a CPU. The order number of
this CPU then appears in the box beneath the catalog.
6. Check that the order number displayed for slot 2 in the lower left-hand part of the window
matches the order number of your CPU. You may need to expand the width of the order
number column to see the entire number.
If it does: Skip to the next step.
If it does not: Expand CPU-300 in the catalog until you see CPU 313C and replace the
CPU in slot 2 by dragging the CPU with the correct order number from the catalog.
7. Perform steps 3 and 4 for the power supply module PS 307 too. You insert the PS 307 in
slot 1.
8. Go to the Station menu and select Save and compile.
The hardware configuration is compiled and saved.
9. Close the editor.
The editor is closed.
Procedure
1. Use the SIMATIC 300 station and CPU 313C to browse to the S7 program. In SIMATIC
Manager click on Blocks in the right-hand part of the window.
Blocks will now be highlighted.
2. Select Download from the PLC menu to transfer the program and hardware configuration
to the CPU. Confirm all windows with Yes.
The program and configuration are downloaded from the programming device to the
CPU. The program is now stored on the Micro Memory Card (in the load memory), where
it is unaffected by power failures and resets.
3. Set the CPU's mode switch to RUN.
The STOP LED is switched off. The RUN LED starts to flash and then assumes a
continuous signal.
4. Press each of the buttons alternately.
The LEDs of inputs I124.1 and I124.2 light up alternately.
The LED of output Q124.0 is not lit.
5. Press both buttons simultaneously.
The LEDs of inputs I124.1 and I124.2 light up simultaneously.
The LED of output Q124.0 is lit. This would switch on a connected final controlling
element or indicator.
Diagnostics/Correction of Errors
Wrong operation, faulty wiring or a faulty hardware configuration may cause errors which the
CPU, CP or IE/PB-Link indicate with the SF group error LED after CPU memory reset.
How to analyze such errors and alarms is described in the CPU31xC and CPU 31x operating
instructions, Setup and Programming with STEP 7 manuals.
2
______________
Preparation
3
SIMATIC ______________
Learning units
4
S7-300 ______________
Further Information
12/2006
A5E00105537-02
Safety Guidelines
This manual contains notices you have to observe in order to ensure your personal safety, as well as to prevent
damage to property. The notices referring to your personal safety are highlighted in the manual by a safety alert
symbol, notices referring only to property damage have no safety alert symbol. These notices shown below are
graded according to the degree of danger.
Danger
indicates that death or severe personal injury will result if proper precautions are not taken.
Warning
indicates that death or severe personal injury may result if proper precautions are not taken.
Caution
with a safety alert symbol, indicates that minor personal injury can result if proper precautions are not taken.
Caution
without a safety alert symbol, indicates that property damage can result if proper precautions are not taken.
Notice
indicates that an unintended result or situation can occur if the corresponding information is not taken into
account.
If more than one degree of danger is present, the warning notice representing the highest degree of danger will
be used. A notice warning of injury to persons with a safety alert symbol may also include a warning relating to
property damage.
Qualified Personnel
The device/system may only be set up and used in conjunction with this documentation. Commissioning and
operation of a device/system may only be performed by qualified personnel. Within the context of the safety notes
in this documentation qualified persons are defined as persons who are authorized to commission, ground and
label devices, systems and circuits in accordance with established safety practices and standards.
Prescribed Usage
Note the following:
Warning
This device may only be used for the applications described in the catalog or the technical description and only in
connection with devices or components from other manufacturers which have been approved or recommended by
Siemens. Correct, reliable operation of the product requires proper transport, storage, positioning and assembly
as well as careful operation and maintenance.
Trademarks
All names identified by ® are registered trademarks of the Siemens AG. The remaining trademarks in this
publication may be trademarks whose use by third parties for their own purposes could violate the rights of the
owner.
Disclaimer of Liability
We have reviewed the contents of this publication to ensure consistency with the hardware and software
described. Since variance cannot be precluded entirely, we cannot guarantee full consistency. However, the
information in this publication is reviewed regularly and any necessary corrections are included in subsequent
editions.
Tables
Table 3-1 CONNECTOR X1 ...................................................................................................................... 3-3
Table 3-2 CONNECTOR X2 ...................................................................................................................... 3-3
Requirements
The following requirements must be met:
• You have an S7-300 station comprising a power supply module and a CPU 314C-2
DP/PtP.
• STEP 7 as of V5.2 + SP 2 is correctly installed on your PG.
• You have the CD with the sample projects or you have downloaded the sample projects
from the Internet.
• You have set up a project for the S7-300 station.
• The PG is connected to the CPU.
• You have an external 24 V DC power supply, an encoder, a drive, and the necessary
accessories, such as a front connector and wiring material.
• You provided hardware limit switches and EMERGENCY-OFF switches for safe and
reliable operation of the system.
• The CPU is correctly connected to a power supply.
Warning
Operation of an S7-300 in plants or systems is defined by special set of rules and
regulations, based on the relevant field of application. Please observe the current safety
regulations for the prevention of accidents, for example IEC 204 (EMERGENCY-OFF
equipment).
Non-compliance with these regulations can result in serious injury and damage to both
machinery and equipment.
1 2 3 4
6)
%)
'&9
)5&(
581
6723
581
6723
05(6
9ROW
8 7 6 5
Warning
You can come into contact with live wires if the PS 307 power supply module is turned on or
the power supply cable to the PS is connected to the main power supply. Perform any wiring
work on the S7-300 only when the power is off!
Procedure
1. Fit the wired front connectors to the CPU and tighten the securing screws.
2. Connect the power supply of the inputs and outputs:
– 24 V to X2, pins 1 and 21
– Ground to X2, pins 20 and 30
3. Connect the incremental position encoder to the 24 V power supply.
4. Connect the encoder signals (X2, pins 2 to 4).
; ;
,QFUHPHQWDOHQFRGHUV
6LJQDO$
6LJQDO%
6LJQDO1
X1 X2
1 21 1 21
2 22 2 22
3 23 3 23
Power section 4 24 4 24
5 25 5 25
6 26 6 26
7 27 7 27
CONV_EN 8 28 8 28
9 29 9 29
F2 Ground 10 30 10 30
M
Current signal
F1 11 11 31
GND analog 12 12 32
13 13 33
14 14 34
15 15 35
16 16 36
17 17 37
18 18 38
L1 19 19 39
L2 20 20 40
L3
7. Strip the insulation from the shielded cables and clamp the cable shield into the shield
connection element. using the shield terminal elements.
Reference
You will find information on the remaining connectors in the documentation of the S7-300.
Introduction
When installing the sample project, you have the following options:
Installing from CD
1. Start the installation program on the CD by double-clicking on the SETUP.EXE file in the
SETUP folder.
The installation program is started.
2. Now follow the instructions in the installation program.
Procedure
1. Open your project in SIMATIC Manager.
A window, divided into two parts, opens with the title of your project.
2. In your project, call the configuration table HW Config.
Procedure
1. Open the project "ZEn26_03_TF_____31xC_Pos" in the catalog
\Siemens\STEP7\Examples using the SIMATIC Manager.
A two-part window opens showing the title of the project.
2. Double-click on the S7 program "Analog 1 First Steps".
In the right-hand window, you can see the "Sources", "Blocks" and "Symbols" folders.
3. Double-click on the "Blocks" container.
This displays all the blocks of the S7 program.
4. Copy all the blocks from this folder to your project in "SIMATIC 300 Station > CPU3xx >
S7 Program > Blocks".
Procedure
1. In the "Function blocks" directory, double-click on the variable table "VAT_GETST_A" in
your project.
The variable table for monitoring and modifying is displayed.
2. Go online with "PLC > Connect to > Configured CPU".
At the bottom right, you will see that the CPU is set to "Stop" mode.
3. Activate monitoring with "Variable > Monitor".
The current values of the addresses are displayed in the "Status Value" column.
Caution
The next two test steps start the drive.
You can stop the drive again in one of the following ways:
• Set the control value for the direction to 0 again and activate it
• Set the control value for the drive enable to 0 again and activate it
• Change the CPU to STOP
"Jogging" mode
Make the following settings: You can monitor the following signal statuses in
the column "Status Value":
MODE_IN = 1: ST_ENBL = 1:
Select "Jogging" mode Start enable
DRV_EN = 1: MOD_OUT = 1:
drive enable Current mode "Jogging"
SPEED: WORKING = 1:
Speed in pulses/s Travel active
Starting the drive: ACT_POS:
DIR_P = 1: Jogging in plus direction Current actual position
DIR_M = 1: Jogging in minus direction
Remark: If both variables DIR_P and DIR_M are
activated, no positioning is possible.
"Incremental approach, relative" mode
Make the following settings: You can monitor the following signal statuses in
the column "Status Value":
MODE_IN = 4: ST_ENBL = 1:
Select "Incremental approach, relative" mode Start enable
DRV_EN = 1: MOD_OUT = 4:
drive enable Current mode "Incremental approach, relative"
TARGET: WORKING = 1:
Distance in pulses Travel active
SPEED: ACT_POS:
Speed in pulses/s Current actual position
Start drive: POS_RCD = 1:
DIR_P = 1: Incremental approach, relative in plus Position reached
direction
DIR_M = 1: Incremental approach, relative in
minus direction
Diagnostics/Correction of Errors
Incorrect operator input, faulty wiring or inconsistent configuration data may lead to errors.
For information on how to analyze such errors and messages, refer to the S7-300
documentation.
Example:
The "ZEn26_03_TF_____31xC_Pos" project contains further samples you can use for
orientation. You can customize all samples according to your personal applications.
2
______________
Preparation
3
SIMATIC ______________
Learning units
4
S7-300 ______________
Further Information
12/2006
A5E00105533-02
Safety Guidelines
This manual contains notices you have to observe in order to ensure your personal safety, as well as to prevent
damage to property. The notices referring to your personal safety are highlighted in the manual by a safety alert
symbol, notices referring only to property damage have no safety alert symbol. These notices shown below are
graded according to the degree of danger.
Danger
indicates that death or severe personal injury will result if proper precautions are not taken.
Warning
indicates that death or severe personal injury may result if proper precautions are not taken.
Caution
with a safety alert symbol, indicates that minor personal injury can result if proper precautions are not taken.
Caution
without a safety alert symbol, indicates that property damage can result if proper precautions are not taken.
Notice
indicates that an unintended result or situation can occur if the corresponding information is not taken into
account.
If more than one degree of danger is present, the warning notice representing the highest degree of danger will
be used. A notice warning of injury to persons with a safety alert symbol may also include a warning relating to
property damage.
Qualified Personnel
The device/system may only be set up and used in conjunction with this documentation. Commissioning and
operation of a device/system may only be performed by qualified personnel. Within the context of the safety notes
in this documentation qualified persons are defined as persons who are authorized to commission, ground and
label devices, systems and circuits in accordance with established safety practices and standards.
Prescribed Usage
Note the following:
Warning
This device may only be used for the applications described in the catalog or the technical description and only in
connection with devices or components from other manufacturers which have been approved or recommended by
Siemens. Correct, reliable operation of the product requires proper transport, storage, positioning and assembly
as well as careful operation and maintenance.
Trademarks
All names identified by ® are registered trademarks of the Siemens AG. The remaining trademarks in this
publication may be trademarks whose use by third parties for their own purposes could violate the rights of the
owner.
Disclaimer of Liability
We have reviewed the contents of this publication to ensure consistency with the hardware and software
described. Since variance cannot be precluded entirely, we cannot guarantee full consistency. However, the
information in this publication is reviewed regularly and any necessary corrections are included in subsequent
editions.
Tables
Table 3-1 CONNECTOR X2 ...................................................................................................................... 3-4
Prerequisites
• You have an S7-300 station comprising a power supply module and a CPU 314C-2
DP/PtP.
• STEP 7 as of V5.2 + SP 2 is correctly installed on your PG.
• You have the CD with the sample projects or you have downloaded the sample projects
from the Internet.
• You have set up a project for the S7-300 station.
• The PG is connected to the CPU.
• You have an external 24 V DC power supply, an encoder, a drive, and the necessary
accessories, such as a front connector and wiring material.
• You provided hardware limit switches and EMERGENCY-OFF switches for safe and
reliable operation of the system.
• The CPU is correctly connected to a power supply.
Warning
Operation of an S7-300 in plants or systems is defined by special set of rules and
regulations, based on the relevant field of application.
Please observe the current safety regulations for the prevention of accidents, for example
IEC 204 (EMERGENCY-OFF equipment).
Non-compliance with these regulations can result in serious injury and damage to both
machinery and equipment.
1 2 3 4
6)
%)
'&9
)5&(
581
6723
581
6723
05(6
9ROW
8 7 6 5
Warning
You can come into contact with live wires if the PS 307 power supply module is turned on or
the power supply cable to the PS is connected to the main power supply. Perform any wiring
work on the S7-300 only when the power is off!
Procedure
1. Fit the wired front connector to the CPU and tighten the securing screws.
2. Connect the power supply of the digital inputs and outputs:
– 24 V to X2, pins 1 and 31
– Ground to X2, pins 20 and 40
3. Connect the incremental position encoder to the 24 V power supply.
4. Connect the encoder signals (X2, pins 2 to 4).
; ;
,QFUHPHQWDOHQFRGHUV
6LJQDO$
6LJQDO%
6LJQDO1
. .
; ;
7. Strip the insulation from the shielded cables and clamp the cable shield into the shield
connection element. using the shield terminal elements.
Reference
You will find information on the remaining connectors in the documentation of the S7-300.
Introduction
When installing the sample project, you have the following options:
Installing from CD
1. Start the installation program on the CD by double-clicking on the SETUP.EXE file in the
SETUP folder.
The installation program is started.
2. Now follow the instructions in the installation program.
Procedure
1. Open your project in SIMATIC Manager.
A window, divided into two parts, opens with the title of your project.
2. In your project, call the configuration table HW Config.
Procedure
1. Open the project "ZEn26_03_TF_____31xC_Pos" in the catalog
\Siemens\STEP7\Examples using the SIMATIC Manager.
A two-part window opens showing the title of the project.
2. Double-click on the S7 program "Digital 1 First Steps".
In the right-hand window, you can see the "Sources", "Blocks" and "Symbols" folders.
3. Double-click on the "Blocks" container.
This displays all the blocks of the S7 program.
4. Copy all the blocks from this folder to your project in "SIMATIC 300 Station > CPU3xx >
S7 Program > Blocks".
Procedure
1. In the "Blocks" directory, double-click on the variable table "VAT_GETST_d" in your
project.
The variable table for monitoring and modifying is displayed.
2. Go online with "PLC > Connect to > Configured CPU".
At the bottom right, you will see that the CPU is set to "Stop" mode.
3. Activate monitoring with "Variable > Monitor".
The current values of the addresses are displayed in the "Status Value" column.
Caution
The next two test steps start the drive.
You can stop the drive again in one of the following ways:
• Set the control value for the direction to 0 again and activate it
• Set the control value for the drive enable to 0 again and activate it
• Change the CPU to STOP
"Jogging" mode
Make the following settings: You can monitor the following signal statuses in
the column "Status Value":
MODE_IN = 1: ST_ENBL = 1:
Select "Jogging" mode Start enable
DRV_EN = 1: MOD_OUT = 1:
drive enable Current mode "Jogging"
SPEED: WORKING = 1:
Speed: 0=Creep speed, 1=Rapid traverse Travel active
Starting the drive: ACT_POS:
DIR_P = 1: Jogging in plus direction Current actual position
DIR_M = 1: Jogging in minus direction
Note: If both variables DIR_P and DIR_M are
activated, no positioning is possible.
"Incremental approach, relative" mode
Make the following settings: You can monitor the following signal statuses in
the column "Status Value":
MODE_IN = 4: ST_ENBL = 1:
Select "Incremental approach, relative" mode Start enable
DRV_EN = 1: MOD_OUT = 4:
drive enable Current mode "Incremental approach, relative"
TARGET: WORKING = 1:
Distance in pulses Travel active
SPEED: ACT_POS:
Speed: 0=Creep speed, 1=Rapid traverse Current actual position
Start drive: POS_RCD = 1:
DIR_P = 1: Incremental approach, relative in plus Position reached
direction
DIR_M = 1: Incremental approach, relative in
minus direction
Diagnostics/Correction of Errors
Incorrect operator input, faulty wiring or inconsistent configuration data may lead to errors.
For information on how to analyze such errors and messages, refer to the S7-300
documentation.
Example:
The "ZEn26_03_TF_____31xC_Pos" project contains further samples you can use for
orientation. You can customize all samples according to your personal applications.
2
______________
Preparation
3
SIMATIC ______________
Learning units
4
S7-300 ______________
Further Information
Getting Started
12/2006
A5E00105536-02
Safety Guidelines
This manual contains notices you have to observe in order to ensure your personal safety, as well as to prevent
damage to property. The notices referring to your personal safety are highlighted in the manual by a safety alert
symbol, notices referring only to property damage have no safety alert symbol. These notices shown below are
graded according to the degree of danger.
Danger
indicates that death or severe personal injury will result if proper precautions are not taken.
Warning
indicates that death or severe personal injury may result if proper precautions are not taken.
Caution
with a safety alert symbol, indicates that minor personal injury can result if proper precautions are not taken.
Caution
without a safety alert symbol, indicates that property damage can result if proper precautions are not taken.
Notice
indicates that an unintended result or situation can occur if the corresponding information is not taken into
account.
If more than one degree of danger is present, the warning notice representing the highest degree of danger will
be used. A notice warning of injury to persons with a safety alert symbol may also include a warning relating to
property damage.
Qualified Personnel
The device/system may only be set up and used in conjunction with this documentation. Commissioning and
operation of a device/system may only be performed by qualified personnel. Within the context of the safety notes
in this documentation qualified persons are defined as persons who are authorized to commission, ground and
label devices, systems and circuits in accordance with established safety practices and standards.
Prescribed Usage
Note the following:
Warning
This device may only be used for the applications described in the catalog or the technical description and only in
connection with devices or components from other manufacturers which have been approved or recommended by
Siemens. Correct, reliable operation of the product requires proper transport, storage, positioning and assembly
as well as careful operation and maintenance.
Trademarks
All names identified by ® are registered trademarks of the Siemens AG. The remaining trademarks in this
publication may be trademarks whose use by third parties for their own purposes could violate the rights of the
owner.
Disclaimer of Liability
We have reviewed the contents of this publication to ensure consistency with the hardware and software
described. Since variance cannot be precluded entirely, we cannot guarantee full consistency. However, the
information in this publication is reviewed regularly and any necessary corrections are included in subsequent
editions.
Prerequisites
• You have an S7-300 station comprising a power supply module and a CPU 31xC.
• STEP 7 as of V5.2 + SP 2 is correctly installed on your PG.
• You have the CD with the sample projects or you have downloaded the sample projects
from the Internet.
• You have set up a project for the S7-300 station.
• The PG is connected to the CPU.
• You are set up with all the required accessories, e.g., front connector and wiring material.
• The CPU is correctly connected to a power supply.
Warning
Operation of an S7-300 in plants or systems is defined by special set of rules and
regulations, based on the relevant field of application. Please observe the current safety
regulations for the prevention of accidents, for example IEC 204 (EMERGENCY-OFF
equipment).
Non-compliance with these regulations can result in serious injury and damage to both
machinery and equipment.
1 2 3 4
6)
%)
'&9
)5&(
581
6723
581
6723
05(6
9ROW
8 7 6 5
Warning
You can come into contact with live wires if the PS 307 power supply module is turned on or
the power supply cable to the PS is connected to the main power supply. Perform any wiring
work on the S7-300 only when the power is off!
Procedure
1. Fit the front connector to the CPU and tighten the securing screws.
2. Wire the connections for the "Count 1 First Steps" sample project as follows:
RUN
STOP
MRES
L+ M
Reference
You will find information on the remaining connectors in the documentation of the S7-300.
Introduction
When installing the sample project, you have the following options:
Installing from CD
1. Start the installation program on the CD by double-clicking on the SETUP.EXE file in the
SETUP folder.
The installation program is started.
2. Now follow the instructions in the installation program.
Procedure
1. Open your project in SIMATIC Manager.
A window, divided into two parts, opens with the title of your project.
2. In your project, call the configuration table HW Config.
Procedure
1. Open the project "ZEn26_02_TF_____31xC_Cnt" in the catalog
\Siemens\STEP7\Examples via "File > Open... > Sample projects" in SIMATIC Manager.
A two-part window opens showing the title of the project.
2. Double-click on the S7 program "Count 1 First Steps".
In the right-hand window, you can see the "Sources", "Blocks" and "Symbols" folders.
3. Double-click on the "Blocks" container.
This displays all the blocks of the S7 program.
4. Copy all the blocks from this folder to your project in "SIMATIC 300 Station > CPU3xx >
S7 Program > Blocks".
Procedure
1. In the "Function blocks" directory, double-click on the variable table "VAT_GETST_C" in
your project.
The variable table for monitoring and modifying is displayed.
2. Go online with "PLC > Connect to > Configured CPU".
At the bottom right, you will see that the CPU is set to "Stop" mode.
3. Activate monitoring with "Variable > Monitor".
The current values of the addresses are displayed in the "Status Value" column.
4. Switch the CPU to RUN.
At the bottom right, you will see that the CPU is set to "RUN" mode.
5. In the variable S_IMP_H of the VAT, select the count pulse source:
– S_IMP_H = 0:
The pulse source is a programmed SW clock generator. Its frequency is adjustable via
the T_PULSE variable. The clock is connected to the pulse input via a digital output.
– S_IMP_H = 1:
Specify the count pulses by manually setting and resetting the S_IMP_T variable in the
VAT.
6. You can perform the following tests:
Diagnostics/Correction of Errors
Incorrect operator input, faulty wiring or inconsistent configuration data may lead to errors.
For information on how to analyze such errors and messages, refer to the S7-300
documentation.
Example:
The "ZEn26_02_TF_____31xC_Cnt" project contains further samples you can use for
orientation. You can customize all samples according to your personal applications.
2
______________
Preparation
3
SIMATIC ______________
Learning units
4
S7-300 ______________
Further Information
Getting Started
12/2006
A5E00105535-02
Safety Guidelines
This manual contains notices you have to observe in order to ensure your personal safety, as well as to prevent
damage to property. The notices referring to your personal safety are highlighted in the manual by a safety alert
symbol, notices referring only to property damage have no safety alert symbol. These notices shown below are
graded according to the degree of danger.
Danger
indicates that death or severe personal injury will result if proper precautions are not taken.
Warning
indicates that death or severe personal injury may result if proper precautions are not taken.
Caution
with a safety alert symbol, indicates that minor personal injury can result if proper precautions are not taken.
Caution
without a safety alert symbol, indicates that property damage can result if proper precautions are not taken.
Notice
indicates that an unintended result or situation can occur if the corresponding information is not taken into
account.
If more than one degree of danger is present, the warning notice representing the highest degree of danger will
be used. A notice warning of injury to persons with a safety alert symbol may also include a warning relating to
property damage.
Qualified Personnel
The device/system may only be set up and used in conjunction with this documentation. Commissioning and
operation of a device/system may only be performed by qualified personnel. Within the context of the safety notes
in this documentation qualified persons are defined as persons who are authorized to commission, ground and
label devices, systems and circuits in accordance with established safety practices and standards.
Prescribed Usage
Note the following:
Warning
This device may only be used for the applications described in the catalog or the technical description and only in
connection with devices or components from other manufacturers which have been approved or recommended by
Siemens. Correct, reliable operation of the product requires proper transport, storage, positioning and assembly
as well as careful operation and maintenance.
Trademarks
All names identified by ® are registered trademarks of the Siemens AG. The remaining trademarks in this
publication may be trademarks whose use by third parties for their own purposes could violate the rights of the
owner.
Disclaimer of Liability
We have reviewed the contents of this publication to ensure consistency with the hardware and software
described. Since variance cannot be precluded entirely, we cannot guarantee full consistency. However, the
information in this publication is reviewed regularly and any necessary corrections are included in subsequent
editions.
Prerequisites
• You have an S7-300 station comprising a power supply module and a CPU 31xC-2 PtP.
The serial connection is established via the 15-pole sub-D socket at the right side.
• STEP 7 as of V5.2 + SP 2 is correctly installed on your PG.
• You have the CD with the sample projects or you have downloaded the sample projects
from the Internet.
• You have set up a project for the S7-300 station.
• The PG is connected to the CPU.
• You have prepared your connection partner for serial data transfer and connected the
required patch cord.
• The CPU is correctly connected to a power supply.
Warning
Operation of an S7-300 in plants or systems is defined by special set of rules and
regulations, based on the relevant field of application. Please observe the current safety
regulations for the prevention of accidents, for example IEC 204 (EMERGENCY-OFF
equipment).
Non-compliance with these regulations can result in serious injury and damage to both
machinery and equipment.
You can come into contact with live wires if the PS 307 power supply module is turned on
or the power supply cable to the PS is connected to the main power supply. Perform any
wiring work on the S7-300 only when the power is off!
1 2 3 4
6)
%)
'&9
)5&(
581
6723
581
6723
05(6
9ROW
8 7 6 5
Introduction
When installing the sample project, you have the following options:
Installing from CD
1. Start the installation program on the CD by double-clicking on the SETUP.EXE file in the
SETUP folder.
The installation program is started.
2. Now follow the instructions in the installation program.
Procedure
1. Open your project in SIMATIC Manager.
A window, divided into two parts, opens with the title of your project.
2. In your project, call the configuration table HW Config.
Procedure
1. Open the project "ZEn26_01_TF_____31xC_PtP" in the catalog
\Siemens\STEP7\Examples via "File > Open... > Sample projects" in the SIMATIC
Manager.
A two-part window opens showing the title of the project.
2. Double-click on the station "CPU 31xC ASCII".
Your station is opened.
3. Open the S7 program for the station CPU and double-click on the "Function blocks"
container.
This displays all the blocks of the S7 program.
4. With the exception of system data, copy all the function blocks from this folder to your
project in "SIMATIC 300 Station > CPU3xx > S7 Program > Function blocks".
Procedure
1. In the "Function blocks" directory, double-click on the variable table "VAT1" in your
project.
The variable table for monitoring and modifying is displayed.
2. Go online with "PLC > Connect to > Configured CPU".
At the bottom right, you will see that the CPU is set to "Stop" mode.
3. Activate monitoring with "Variable > Monitor".
The current values of the addresses are displayed in the "Status Value" column.
4. Switch the CPU to RUN.
At the bottom right, you will see that the CPU is set to "RUN" mode. Data transfer is
started. You can view the number of transmissions at the operand "DB42.DBW0" (Send
counter). "DB41.DBW18" (Receive counter) indicates data is being received.
Diagnostics/Correction of Errors
Incorrect operator input, faulty wiring of the serial interface or inconsistent configuration data
may lead to errors.
For information on how to analyze such errors and messages, refer to the S7-300
documentation.
Example:
The "ZEn26_01_TF_____31xC_PtP" project contains further samples you can use for
orientation. You can customize all samples according to your personal applications.
2
______________
Preparation
3
SIMATIC ______________
Learning units
4
S7-300 ______________
Further Information
Getting Started
12/2006
A5E00105534-02
Safety Guidelines
This manual contains notices you have to observe in order to ensure your personal safety, as well as to prevent
damage to property. The notices referring to your personal safety are highlighted in the manual by a safety alert
symbol, notices referring only to property damage have no safety alert symbol. These notices shown below are
graded according to the degree of danger.
Danger
indicates that death or severe personal injury will result if proper precautions are not taken.
Warning
indicates that death or severe personal injury may result if proper precautions are not taken.
Caution
with a safety alert symbol, indicates that minor personal injury can result if proper precautions are not taken.
Caution
without a safety alert symbol, indicates that property damage can result if proper precautions are not taken.
Notice
indicates that an unintended result or situation can occur if the corresponding information is not taken into
account.
If more than one degree of danger is present, the warning notice representing the highest degree of danger will
be used. A notice warning of injury to persons with a safety alert symbol may also include a warning relating to
property damage.
Qualified Personnel
The device/system may only be set up and used in conjunction with this documentation. Commissioning and
operation of a device/system may only be performed by qualified personnel. Within the context of the safety notes
in this documentation qualified persons are defined as persons who are authorized to commission, ground and
label devices, systems and circuits in accordance with established safety practices and standards.
Prescribed Usage
Note the following:
Warning
This device may only be used for the applications described in the catalog or the technical description and only in
connection with devices or components from other manufacturers which have been approved or recommended by
Siemens. Correct, reliable operation of the product requires proper transport, storage, positioning and assembly
as well as careful operation and maintenance.
Trademarks
All names identified by ® are registered trademarks of the Siemens AG. The remaining trademarks in this
publication may be trademarks whose use by third parties for their own purposes could violate the rights of the
owner.
Disclaimer of Liability
We have reviewed the contents of this publication to ensure consistency with the hardware and software
described. Since variance cannot be precluded entirely, we cannot guarantee full consistency. However, the
information in this publication is reviewed regularly and any necessary corrections are included in subsequent
editions.
Prerequisites
• You have an S7-300 station comprising a power supply module and a CPU 313C or
314C.
• STEP 7 as of V5.2 + SP 2 is correctly installed on your PG.
• You have the CD with the sample projects or you have downloaded the sample projects
from the Internet.
• You have set up a project for the S7-300 station.
• The PG is connected to the CPU.
• The CPU is correctly connected to a power supply.
• I/O wiring is not required for this sample.
Warning
Operation of an S7-300 in plants or systems is defined by special set of rules and
regulations, based on the relevant field of application. Please observe the current safety
regulations for the prevention of accidents, for example IEC 204 (EMERGENCY-OFF
equipment).
Non-compliance with these regulations can result in serious injury and damage to both
machinery and equipment.
You can come into contact with live wires if the PS 307 power supply module is turned on
or the power supply cable to the PS is connected to the main power supply. Perform any
wiring work on the S7-300 only when the power is off!
1 2 3 4
6)
%)
'&9
)5&(
581
6723
581
6723
05(6
9ROW
8 7 6 5
Introduction
When installing the sample project, you have the following options:
Installing from CD
1. Start the installation program on the CD by double-clicking on the SETUP.EXE file in the
SETUP folder.
The installation program is started.
2. Now follow the instructions in the installation program.
Procedure
1. Open the project "ZEn26_04_TF_____31xC_PID" in the catalog
\Siemens\STEP7\Examples via "File > Open... > Sample projects" in SIMATIC Manager.
A two-part window opens showing the title of the project.
2. Double-click the S7 program "Controlling 2 CONT_C".
In the right-hand window, you can see the "Sources", "Blocks" and "Symbols" folders.
3. Double-click on the "Blocks" container.
This displays all the blocks of the S7 program.
4. With the exception of system data, copy all the blocks from this folder to your project in
"SIMATIC 300 Station > CPU3xx > S7 Program > Function blocks".
Procedure
1. Start the parameter assignment screen form via SIMATIC/STEP7/Configure PID Control.
The input dialog "PID Control" is displayed.
2. In PID control, open your project with "File > Open". Select instance DB101 for SFB 41
and confirm the dialog with "OK".
You are returned to the parameter assignment screen form. The configured parameters
are displayed. Changes to this sample program are not required.
3. Close the parameter assignment screen form with "File > Close".
The parameter assignment screen form is closed.
4. In SIMATIC Manager, select "SIMATIC 300 Station > CPU3xx > S7 Program > Function
blocks".
This displays all the blocks of the S7 program.
5. Download all of the S7 blocks it contains to your CPU via "PLC > Download" (CPU in
STOP mode).
The program and configuration are downloaded from the PG to the CPU.
Procedure
1. In the "Function blocks" directory, double-click on the variable table "VAT1" in your
project.
The variable table for monitoring and modifying is displayed.
2. Go online with "PLC > Connect to > Configured CPU".
At the bottom right, you will see that the CPU is set to "STOP" mode.
3. Activate monitoring with "Variable > Monitor".
The current values of the addresses are displayed in the "Status Value" column.
4. Switch the CPU to RUN.
At the bottom right, you will see that the CPU is set to "RUN" mode. The controller is
started.
5. Modify the setpoint "SP_INT".
You can monitor the output value "OUTV" that is proportional to the setpoint "SP_INT".
6. Call the STEP 7 tool PID Control (see step 3). Select IDB101 and click on "Online" mode.
In the "Test" menu, select and start the curve plotter function.
You can view the graphic profile of some of the control variables (actual value, setpoint,
control offset, etc.).
Diagnostics/Correction of Errors
Incorrect operator input or inconsistent configuration data may lead to errors.
For information on how to analyze such errors and messages, refer to the S7-300
documentation.
Example:
The "ZEn26_04_TF_____31xC_PID" project contains further samples you can use for
orientation. You can customize all samples according to your personal applications.
2
______________
Preparation
3
SIMATIC ______________
Learning units
4
PROFINET ______________
Further Information
12/2006
A5E00268410-03
Safety Guidelines
This manual contains notices you have to observe in order to ensure your personal safety, as well as to prevent
damage to property. The notices referring to your personal safety are highlighted in the manual by a safety alert
symbol, notices referring only to property damage have no safety alert symbol. These notices shown below are
graded according to the degree of danger.
Danger
indicates that death or severe personal injury will result if proper precautions are not taken.
Warning
indicates that death or severe personal injury may result if proper precautions are not taken.
Caution
with a safety alert symbol, indicates that minor personal injury can result if proper precautions are not taken.
Caution
without a safety alert symbol, indicates that property damage can result if proper precautions are not taken.
Notice
indicates that an unintended result or situation can occur if the corresponding information is not taken into
account.
If more than one degree of danger is present, the warning notice representing the highest degree of danger will
be used. A notice warning of injury to persons with a safety alert symbol may also include a warning relating to
property damage.
Qualified Personnel
The device/system may only be set up and used in conjunction with this documentation. Commissioning and
operation of a device/system may only be performed by qualified personnel. Within the context of the safety notes
in this documentation qualified persons are defined as persons who are authorized to commission, ground and
label devices, systems and circuits in accordance with established safety practices and standards.
Prescribed Usage
Note the following:
Warning
This device may only be used for the applications described in the catalog or the technical description and only in
connection with devices or components from other manufacturers which have been approved or recommended by
Siemens. Correct, reliable operation of the product requires proper transport, storage, positioning and assembly
as well as careful operation and maintenance.
Trademarks
All names identified by ® are registered trademarks of the Siemens AG. The remaining trademarks in this
publication may be trademarks whose use by third parties for their own purposes could violate the rights of the
owner.
Disclaimer of Liability
We have reviewed the contents of this publication to ensure consistency with the hardware and software
described. Since variance cannot be precluded entirely, we cannot guarantee full consistency. However, the
information in this publication is reviewed regularly and any necessary corrections are included in subsequent
editions.
CPU 315-2 PN/DP, 317-2 PN/DP, 319-3 PN/DP: Configuring the PROFINET interface
Getting Started, 12/2006, A5E00268410-03 iii
Table of contents
CPU 315-2 PN/DP, 317-2 PN/DP, 319-3 PN/DP: Configuring the PROFINET interface
iv Getting Started, 12/2006, A5E00268410-03
Introduction 1
1.1 Introduction
Introduction
In the following steps we will show you the basics of configuring the PROFINET interface.
To do so we will be using the CPU 317-2 PN/DP as an example.
The procedure for configuring the PROFINET interface of the CPU 315-2 PN/DP and
319-3 PN/DP is the same as that used to configure the CPU 317-2 PN/DP.
Depending on your previous experience this configuration will take between one and two
hours to complete.
CPU 315-2 PN/DP, 317-2 PN/DP, 319-3 PN/DP: Configuring the PROFINET interface
Getting Started, 12/2006, A5E00268410-03 1-1
Introduction
1.1 Introduction
CPU 315-2 PN/DP, 317-2 PN/DP, 319-3 PN/DP: Configuring the PROFINET interface
1-2 Getting Started, 12/2006, A5E00268410-03
Preparation 2
2.1 Preparation
Scope
Requirements
• Basic knowledge of electronic and electrical systems engineering.
• Knowledge in the area of network engineering would be of advantage.
• You have already worked with the STEP7 programming software.
• We assume that you are familiar with the Microsoft® Windows™ operating system.
Warning
Operation of an S7-300 as part of plants or systems is subject to special rules and
regulations, based on its field of application. This includes current safety regulations and
directives for the prevention of accidents, such as IEC 204 (EMERGENCY-OFF
equipment.)
You risk severe injury, or damage to machines and equipment if you ignore these
directives.
CPU 315-2 PN/DP, 317-2 PN/DP, 319-3 PN/DP: Configuring the PROFINET interface
Getting Started, 12/2006, A5E00268410-03 2-1
Preparation
2.1 Preparation
CPU 315-2 PN/DP, 317-2 PN/DP, 319-3 PN/DP: Configuring the PROFINET interface
2-2 Getting Started, 12/2006, A5E00268410-03
Preparation
2.1 Preparation
&38
36 31'3
Figure 2-1 Configuring with CPU 317-2 PN/DP
CPU 315-2 PN/DP, 317-2 PN/DP, 319-3 PN/DP: Configuring the PROFINET interface
Getting Started, 12/2006, A5E00268410-03 2-3
Preparation
2.1 Preparation
1 2
L+
4
M
L+ 5
M
L+
DC 24V
M L+
M
8 7 6
220V/ 120V
Figure 2-2 Wire the power supply and the CPU (front panel covers are open.)
CPU 315-2 PN/DP, 317-2 PN/DP, 319-3 PN/DP: Configuring the PROFINET interface
2-4 Getting Started, 12/2006, A5E00268410-03
Learning units 3
3.1 1. Step: Mount mounting rails and modules
1.
2.
CPU 315-2 PN/DP, 317-2 PN/DP, 319-3 PN/DP: Configuring the PROFINET interface
Getting Started, 12/2006, A5E00268410-03 3-1
Learning units
3.1 1. Step: Mount mounting rails and modules
2 1
CPU 315-2 PN/DP, 317-2 PN/DP, 319-3 PN/DP: Configuring the PROFINET interface
3-2 Getting Started, 12/2006, A5E00268410-03
Learning units
3.2 2. Step: Wiring the power supply and CPU
Note
To use a SIMATIC Micro Memory Card with unknown content, erase it on the PG before
doing so.
Warning
You may come into contact with live wires that are connected to the power supply. Make
sure that the S7-300 is completely disconnected before you start wiring.
Procedure
1. Open the front panels of the power supply and the CPU.
2. Detach the strain relief clip from the power supply.
3. Strip the flexible power cable, dress it with crimped wire ferrules and connect the IE/PB-
Link to the power supply module (blue on terminal M, black on terminal L1, protective
conductor on terminal PE).
4. Screw the strain relief clamp in place.
5. Next, wire the power supply to the CPU. Use flexible cable with a conductor cross-section
of 1 mm2.
Strip the ends to a length of approx. 6 mm, the crimp on the wire end ferrules. Connect
terminals L+ and M on the power supply to those on the CPU.
6. Check that the line voltage selector switch is set to the correct line voltage.
The default line voltage setting for the power supply module is 230 VAC.
To label a front connector, follow the steps outlined below:
– Remove the protective cap with a screwdriver,
– set the selector switch to match your line voltage,
– then insert the protective cap again.
CPU 315-2 PN/DP, 317-2 PN/DP, 319-3 PN/DP: Configuring the PROFINET interface
Getting Started, 12/2006, A5E00268410-03 3-3
Learning units
3.3 3 . Step: Commissioning the hardware
Procedure
1. Connect the PG/PC to the switch. Use the twisted-pair cables with RJ45 connectors.
Result: The PG/PC is interconnected with the CPU.
2. Connect the switch to PROFINET interface X2 of your CPU with Industrial Ethernet. Use
the twisted-pair cables with RJ45 connectors.
Result: The CPU is connected to the switch.
3. Connect the PROFINET IO device (ET 200S for example) to the switch. Use the twisted-
pair cables with RJ45 connectors.
Result: The IO device is connected to the switch.
4. Verify that the SIMATIC Micro Memory Card is inserted in the CPU slot.
5. Close the front panel cover of the CPU, then set the mode selector switch on the CPU to
STOP.
6. Connect the mains cable, then switch on the power supply module.
Result: The DC24V-LED of the power supply module is lit.
All the LEDs of the CPU light briefly; the SF-LED and the DC5V-LED stay lit. The STOP-
LED then flashes rapidly when the CPU performs an automatic memory reset.
After completion, the STOP LED is lit.
7. Start your PG/PC, then run SIMATIC Manager from your Windows Desktop.
Result: A window opens with SIMATIC Manager.
CPU 315-2 PN/DP, 317-2 PN/DP, 319-3 PN/DP: Configuring the PROFINET interface
3-4 Getting Started, 12/2006, A5E00268410-03
Learning units
3.4 4 . Step: Set up the PG/PC interface
Procedure
1. Select "Start > SIMATIC > STEP 7 > Customize PG/PC interface".
Result: The dialog box for setting the PG/PC opens.
2. Select the access path. Then set the TCP/IP protocol for the network card used.
Click "Properties". Set the "Assign project-specific IP address" option in the "Properties"
dialog box. Confirm twice with "OK".
Result: Your PG/PC settings are applied.
CPU 315-2 PN/DP, 317-2 PN/DP, 319-3 PN/DP: Configuring the PROFINET interface
Getting Started, 12/2006, A5E00268410-03 3-5
Learning units
3.5 5 . Step: Configuring hardware in HW-Configuration of STEP 7
Add a rail
1. In the right-hand part of the window, double-click first on the SIMATIC 300(1) icon and
then on the Hardware icon.
Result: The hardware configuration editor (HW Config) opens.
2. You can insert your hardware components from the hardware catalog in the left-hand part
of the window.
If no catalog is displayed, use the menu command View > Catalog to activate this.
In the hardware catalog, select SIMATIC 300 and then Rack 300. Drag-and-drop the
mounting rail to the upper part of the HW Config window.
Result: This pastes the mounting rail into the upper section of the HW Config window.
Note
You can click the power supply module to view its order number. The order number then
appears in the box beneath the catalog.
CPU 315-2 PN/DP, 317-2 PN/DP, 319-3 PN/DP: Configuring the PROFINET interface
3-6 Getting Started, 12/2006, A5E00268410-03
Learning units
3.6 6. Step: To insert CPU 317-2 PN/DP and assign it and IP address
3.6 6. Step: To insert CPU 317-2 PN/DP and assign it and IP address
Introduction
Each Ethernet node is identified by a international unique address. This so-called MAC
address is preset by the manufacturer and cannot be changed.
In the following steps you will assign an IP address in the the Ethernet to this physical
address.
Procedure
1. Select CPU-300 from the hardware catalog. Drag-and- drop the CPU 317 PN/DP to slot 2
of the mounting rail.
The CPU 317-2 PN/DP is inserted in slot 2 and the properties dialog box of the
PROFINET interface X2 is displayed.
CPU 315-2 PN/DP, 317-2 PN/DP, 319-3 PN/DP: Configuring the PROFINET interface
Getting Started, 12/2006, A5E00268410-03 3-7
Learning units
3.6 6. Step: To insert CPU 317-2 PN/DP and assign it and IP address
CPU 315-2 PN/DP, 317-2 PN/DP, 319-3 PN/DP: Configuring the PROFINET interface
3-8 Getting Started, 12/2006, A5E00268410-03
Learning units
3.6 6. Step: To insert CPU 317-2 PN/DP and assign it and IP address
4. Click "View".
Result: The PG reads the MAC address and shows it on the dialog box.
5. Select the line with the MAC address of the CPU and confirm with "OK".
Result: The message window opens.
7. Close HW-Config via the menu command "Station > Close" and answer question
regarding saving with "Yes".
Result: HW Config is closed. The CPU now appears in the station in SIMATIC Manager.
CPU 315-2 PN/DP, 317-2 PN/DP, 319-3 PN/DP: Configuring the PROFINET interface
Getting Started, 12/2006, A5E00268410-03 3-9
Learning units
3.7 7. Step: Commissioning the CPU 317-2 PN/DP
Procedure
1. Set the mode switch of the CPU to "RUN".
Result: The STOP LED is off. The RUN LED starts to flash and then assumes a
continuous signal.
The LINK LED indicates a physical Ethernet connection.
The RX/TX LED is lit or flashes when data are transmitted/received via Ethernet.
Result
You completed the STEP 7 configuration of PROFINET interface X2 of your CPU 317-2
PN/DP.
• Other nodes can now access the CPU on the Ethernet subnet.
• The new functions now allow you to configure your project, or to reconfigure it, via the
integrated PROFINET interface of the CPU.
• All PG/OP functions and other communication functions of CPU 317-2 PN/DP are now
available via integrated PROFINET interface.
CPU 315-2 PN/DP, 317-2 PN/DP, 319-3 PN/DP: Configuring the PROFINET interface
3-10 Getting Started, 12/2006, A5E00268410-03
Further Information 4
Reference
For detailed information on address assignment for the PROFINET interface, refer to the
STEP 7 Online Help.
Diagnostics/Correction of Errors
Wrong operation, faulty wiring or a faulty hardware configuration may cause errors which the
CPU indicates with the SF group error LED after a CPU memory reset.
For information on how to analyze such errors and alarms, refer to the CPU 31xC and CPU
31x operating instructions, Setup.
CPU 315-2 PN/DP, 317-2 PN/DP, 319-3 PN/DP: Configuring the PROFINET interface
Getting Started, 12/2006, A5E00268410-03 4-1
Further Information
CPU 315-2 PN/DP, 317-2 PN/DP, 319-3 PN/DP: Configuring the PROFINET interface
4-2 Getting Started, 12/2006, A5E00268410-03