Académique Documents
Professionnel Documents
Culture Documents
SIMATIC S7-300 SIMATIC S7-300 Automation System S7-300: Getting Started CPU 31xC: Commissioning
______________
Introduction
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
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.