Professional Documents
Culture Documents
Contents Page
Objectives .......................................................................................................................................... 2
Commissioning Checklist ............................................................................................................... 3
LEDs on the S7-300™ Power Supply ............................................................................................. 4
LEDs on the S7-300™ CPU ............................................................................................................ 5
LEDs on Digital Modules ................................................................................................................. 6
LEDs on the S7-400™ Power Supply ............................................................................................ 7
LEDs on the S7-400™ CPU ............................................................................................................. 8
Performing a Memory Reset and Warm Restart .............................................................................. 9
Hardware Configuration and Parameter Assignment ....................................................................... 10
Inserting a Station .......................................................................................................................... 11
Starting the HW Config Editor ........................................................................................................... 12
Generating a Hardware Setpoint Configuration ................................................................................. 13
CPU Properties: Cycle/Clock Memory ........................................................................................... 14
Saving the HW Setpoint Configuration and Downloading it in Module ............................................. 15
Uploading the Actual HW Configuration into the PG/PC ................................................................... 16
Module Address Overview ............................................................................................................... 17
HW Config: Edit Symbolic Names, Monitor / Modify Variables ...................................................... 18
Monitoring and Modifying Variables ................................................................................................. 19
Saving the Variable Table ............................................................................................................... 20
Opening a Variable Table and Establishing a Connection to the CPU ............................................. 21
Modifying Outputs in the Stop State ................................................................................................ 22
Exercise 1: Performing a CPU Memory Reset and Warm Restart ...................................................... 23
Exercise 2: Retrieving a Project and Save As .................................................................................... 24
Exercise 3: Adapting the Setpoint Configuration ................................................................................. 25
Exercise Preparation: Attaching the Fault Simulation Connector ..................................................... 26
Exercise 4: Testing the Sensor‘s Wiring on the Conveyor Model ....................................................... 27
Exercise 5: Testing the Actuator‘s Wiring on the Conveyor Model .................................................. 28
Exercise 6: Checking the Interface of the TP170B.............................................................................. 29
Exercise 7: Downloading a ProTool Project ........................................................................................ 30
Exercise 8: Downloading the Program ................................................................................................ 31
Exercise 9: Function Test of the Conveyor Model............................................................................... 32
Checklist The checklist shows the individual preparatory steps for commissioning the
hardware. If you do not want to use the default setting, it may be necessary to
assign parameters to the modules before you check the inputs and outputs.
The individual steps are described in more detail on the following pages.
LED The power supply has a diagnostic LED "DC24V" on the front side of the
module. Use this LED to determine the state of the power supply.
Status Displays SF = System Fault: group error, programming error or fault from a
( LEDs ) diagnostics-capable module
BATF = Battery fault: battery is empty or is not present
DC 5V = 5V supply voltage present.
FRCE = Lights up when a forcing is active.
RUN = Flashes when the CPU starts up and
is steady on in the RUN mode.
STOP = Is steady on in the STOP mode,
Flashes slowly when a memory reset is requested and
flashes quickly when a memory reset is carried out.
SF DP = System Fault DP: group error in the Distributed Peripherals
is steady on when there is a fault in the distributed peripherals
BUSF (BF) = Bus fault, is steady on when there is an interrupted cable, for
example.
Flashes when there is a station failure, for example
S7-300 S7-400
Status LEDs for every individual channel
Signal state
at the terminals
• Signal state
at the terminals
(for digital inputs)
• Internal state,
before the opto-
coupler
(for digital
outputs)
Status LEDs There are LEDs for diagnostics purposes for every input and output channel on
the module. These LEDs can be helpful in locating program errors.
The LEDs indicate:
• the process state for digital inputs
• the process state for S7-300 digital outputs
• the internal state before the optocoupler for S7-400 digital outputs.
On/Off switch
(Standby)
Battery
compartment
3-pin power
connection
Power Supply The power supply (PS) supplies the internal 5V voltage for the modules.
Automatic adjustment is made for line frequencies from 48 to 64 Hz.
LED "BAF" Battery fault. Lights up if the battery voltage on the backplane bus is too low.
Example: No batteries present or battery failure and there is no external power
supply available.
LED "BATT1F/ Lights up in the case of battery reversal, if no battery is present, or the battery
BATT2F" is half discharged. The BATT.INDIC switch for battery monitoring is set to the
1BATT position (for one battery), the 2BATT position (for 2 batteries) or OFF (no
battery monitoring).
LED "DC 5V/DC 24V" Is lit when the 5V/24V DC output voltage is within the tolerance limits and
flashes to indicate voltage recovery after a short circuit or overload.
"FMR" Ackn.Switch Acknowledgement switch for acknowledging and resetting a fault message
when the fault has been eliminated.
ON/OFF Switch Switches the output voltage (5/24 VDC) to 0V and switches off the LEDs by
(Standby) interrupting the control current circuit. (The power supply is then in standby
mode because the primary line voltage cannot be switched off.)
INTF INTF
EXTF EXTF
BUS1F BUS1F
FRCE BUS2F
FRCE
Fault LEDs CPUs have fault LEDs that provide first information about an occurred error or
that give the CPU status:
RUN RUN
1. Set the mode selector switch to STOP STOP
MRES
STOP
MRES
RUN-P
2. Hold the mode selector switch in the MRES position until RUN
RUN
the STOP LED has flashed twice slowly. STOP
Release the mode selector switch so that it returns to MRES
STOP
the STOP position.
MRES
RUN-P
RUN RUN
4. Set the mode selector switch to the RUN-P (RUN)
STOP
position ! (A warm restart is carried out in the transition MRES
STOP from STOP to RUN/RUN-P)
MRES
Memory Reset When a memory reset is performed on an S7 CPU, the following happens:
• all CPU user data as well as the entire load and work memory are cleared
• the CPU interrupts all connections to other communications partners
• the CPU parameters and all modules are set to default values
• in the case that a memory card is used, the CPU copies the relevant portion
of the stored program needed for execution into the internal RAM
Warm Restart During a warm restart, the process images and the non-retentive data are
deleted. A new cycle begins after the process image input tables (PII) are read
in.
HW Configuration The modules are supplied from the factory with preset parameters. If these
default settings are OK, a hardware configuration is not necessary.
A configuration is necessary:
• if you want to modify preset parameters or addresses of a module (such as
to enable the hardware interrupt of a module)
• if you want to configure communication connections
• with stations that have distributed peripherals (PROFIBUS-DP)
• with S7-400™ stations that have several CPUs (multicomputing) or
expansion racks
• with fault-tolerant programmable logic controllers (option package).
Actual Configuration In an assembled system, the actual existing configuration and parameter
assignment of the modules can be uploaded from the CPU. This creates a new
HW station in the project.
A configuration upload is necessary, for example, if the project structure does not exist locally at the PG.
After the actual configuration is read out, you can set parameters and add part
numbers.
Notes With the S7-400™, the CPU can be assigned parameters in such a way, that
when there are differences between the setpoint configuration and the actual
configuration, the CPU startup is interrupted.
To call the HW Config tool, there must be a hardware station in the SIMATIC®
Manager.
Insert Station
You insert a new station in the current project by selecting the menu options
Insert -> Station -> SIMATIC® 300 Station or SIMATIC® 400 Station.
You can then change the name that is automatically given to this station -
"SIMATIC® 300 (1)" - to one of your choice.
HW Config This tool helps you configure, assign parameters to and diagnose the hardware.
"Hardware This is a window in the "HW Config“ application you use for inserting
Configuration" components from the "Hardware Catalog" window.
The title bar of this window contains the name of the project and the station
name.
You can add Profibus Slaves that do not exist in the catalog later on. To add
slaves, you use GSE files that are provided by the manufacturer of the slave
device. The GSE file contains a description of the device. To include the slave in
the hardware catalog, use the Options -> Install New GSE Files menu and then
Options -> Update Catalog. You will find the new devices in the catalog under
Profibus, additional field devices.
Generating a This means specifying how the modules are to be arranged in the rack. This
Setpoint configuration, specified by you, is referred to as the setpoint configuration.
Configuration
Rack For example, you open a SIMATIC® 300 station in the Hardware Catalog.
Opening the "RACK-300" folder shows the icon for a DIN rail. You can insert this
in the "Hardware Configuration" window by double-clicking on it (or using drag &
drop).
Two rack component lists then appear in the two-part window: a plain list in the
top part and a detailed view with order numbers, MPI addresses and I/O
addresses in the bottom part.
Power Supply If a load current power supply is required double click or use drag & drop to
insert the appropriate "PS-300" module from the catalog in slot no.1 in the list.
CPU You select the CPU from the "CPU-300" folder, for example, and insert it in slot
no. 2.
Slot No. 3 Slot no. 3 is reserved as the logical address for an interface module (for multi-
tier configurations).
If this position is to be reserved in the actual configuration for the later
installation of an IM, you must insert a dummy module DM370 (DUMMY).
"Inserting" Modules From slot no. 4 onwards, you can insert a choice of up to 8 signal modules
(SM), communications processors (CP) or function modules (FM) from the
HardwareCatalog using drag & drop or with a double-click.
The slots on which the selected module can be inserted are automatically
highlighted in green.
Double-click
Size of the With the CPU 318-2 and several S7-400™ CPUs, you can specify the size of
Process Image the process image (in bytes). The process image area always begins with input
and output byte 0.
Clock Memory Clock memories are bit memories that change their binary value periodically
(pulse-to-pause ratio 1:1).
Each bit in the clock memory byte is assigned a particular period/frequency.
Example of a flashing light with a flashing frequency of 2Hz :
Download
(only when CPU
is in STOP mode)
Save You select the Station->Save menu to save the current configuration in the
current project (without generating system data blocks).
Save and Compile When you select the Station->Save and Compile menu or click the
icon in the toolbar, the configuration and parameter assignment data are
also saved in system data blocks.
Consistency Check You select the Station -> Consistency Check menu to check whether it is
possible to generate configuration data from the entries made.
Download in Module You select the PLC -> Download menu or click the icon in the toolbar to
download the selected configuration to the PLC.
The PLC must be in "STOP" mode!
System Data Blocks The system data blocks (SDBs) are generated and modified when you configure
the hardware and compile the hardware configuration. SDBs contain
configuration data and module parameters. When a system data block is
downloaded, it is stored in the CPU‘s work memory.
This makes it easier to replace modules, because the parameter assignment
data is downloaded to the new module from the system data blocks on startup.
In the programming device, the system data blocks are saved under: Project \
Station \ CPU \ S7_program \ Blocks \ System_data.
You double-click the System data briefcase icon to see the list of
system data blocks.
If you use a memory card as Flash EPROM, you should save the SDBs there as
well. That way, the configuration is not lost if you operate without battery backup
and there is a power failure.
Actual Configuration During startup, the CPU generates an actual configuration. That is, the CPU
saves the arrangement of the modules and allocates the addresses in
accordance with a fixed algorithm. If no parameters have been assigned, the
default parameters defined at the factory are used.
The system stores this actual configuration in system data blocks.
Uploading to PG/PC There are two ways of uploading the actual configuration to the PG/PC:
1. In the SIMATIC® Manager:
select the PLC -> Upload Station menu.
2. In the HW Config tool:
select the PLC -> Upload menu or click the icon.
Storage on PG/PC The actual configuration read from the hardware is inserted as a new station in
the selected project on the PG/PC.
Note When you read out the actual configuration, the order numbers of the modules
cannot be completely identified. For this reason, you should check the
configuration. If required, insert the exact module type of the existing modules.
To do so, choose the module, and then select the Options -> Specify Module
menu.
“Address Overview”
Abbreviations:
R. Rack number
S. Slot number of the relevant module
DP Relevant only when Distributed Peripherals (I/O) are used
IF Interface module ID when programming the M7 system (in C++).
Edit Symbolic Names You can directly access the symbol table from the "HW Config" tool. This allows
you to assign symbolic names to the inputs and outputs during hardware
configuration or at a later date when you can make suppliments or changes.
You open the symbol table with a right mouse click on the module. Select Edit Symbolic Names in the
follow-up box. A section of the symbol table with the relevant addresses is
then opened.
Monitor/Modify You can monitor or modify the addresses of the configured modules directly from
Variables the HW Config tool. The signals of the input modules can be "checked" and the
signals of the output modules can be "controlled" using the Monitor/Modify
(Variables) function.
Product Support Directly from the Internet, you can fetch information on modules or components
Information from the Product Support pages. As well, it is also possible to update HW Config
by incorporating individual components such as new CPUs or new DP devices
into the current STEP 7 version.
Requirements:
The PG/PC has an Internet connection, a browser for displaying Internet pages,
and the function is enabled in the HW Config Settings along with the
specification of the Internet address.
Note "Symbolic Addressing" and the editing of symbol tables is dealt with in depth in
the "Symbols" chapter. The Monitor / Modify Variables function is dealt with in
the "Troubleshooting" chapter.
• The monitor values can be updated every cycle when you select the
Variable -> Monitor menu option or click the icon.
3b. To activate the modify values every cycle, select the Variable -> Modify
menu option or click the icon.
4. Use the "Monitor" function to confirm that the modify value has been
entered in the variable you selected.
Modify Value Valid You can make the "Modify value" entered in a table invalid by selecting that
value and clicking on the icon.
The now "invalid" value is displayed like a comment. You can make the modify
value "valid" again when you click on the icon again. Only valid modify
values can be activated.
Saving the You can use Table -> Save or Table -> Save as... to save a variable table.
Variable Table The first time a variable table is saved, the Save As... dialog window opens.
The Save as ... window allows the user to select the Blocks folder that the
variable table will be stored in.
You can give the variable table any name you choose. The name is inserted as
the symbolic name in the symbol table.
You can reuse saved variable tables for monitoring and modifying, making it
unnecessary to re-enter the variables.
Accessible CPUs
Configured
Directly CPU
connected
Station 11
Station (VAT Station 2 Station 3
CPU from
HW
Station
"Station
2")
PG
Area of Use You can double-click to reopen variable tables that are stored in a Blocks folder
of an S7 program at a later time for test purposes.
However, before you can activate the "Monitor" and "Modify" functions, an online
connection to a CPU has to be established.
Using the menu commands PLC -> Connect to . . . provides three connection
choices: Configured CPU, Direct CPU and Accessible CPU. There are toolbar
icons for connecting to the Configured CPU or Direct CPU.
Configured CPU If the variable table is stored in the Blocks folder of a hardware-dependent S7
program (assigned to a CPU in the project view), a connection to the station with
the MPI address is established. This station was also assigned to the higher-
level CPU with the help of the HW Config tool.
If the variable table is stored in the Blocks folder of a hardware-independent S7
program folder (assigned directly to the project root in the project view), the MPI
address of the hardware-independent S7 program can be established using the
Properties dialog of the program folder while in the online view of the SIMATIC®
Manager.
Direct CPU This menu command establishes an online connection between the active
variable table and the CPU to which the MPI cable from the PG/PC to the
programmable controller is connected. The PG can determine to which PLC it is
connected through the MPI cable.
Accessible CPU This menu command establishes an online connection between the active
variable table and a CPU that you select. If the user program is already linked to
a CPU, this menu command can be used to change the CPU.
Select a CPU to which you want to establish an online connection in the dialog
box. You can choose between configured and accessible CPUs.
Function and The "Enable Peripheral Outputs" function can only be activated when the CPU is
Area of Use in the STOP state. It switches off the output disable of the peripheral outputs
(PQ). This enables you to modify the peripheral output when the CPU is in the
STOP mode.
The "Enable Peripheral Outputs" function is used mainly to check the wiring of
the peripheral outputs. It can, however, also be used to continue to control
actuators in the process, even though the CPU has gone into the STOP mode
because an error has occurred.
What To Do To enable the peripheral outputs, proceed as follows:
1. Open or edit a variable table (VAT) that contains the peripheral outputs that
you want to test or modify
(specify the peripheral outputs byte-by-byte, word-by-word or doubleword-
by- doubleword; you cannot modify individual output bits!)
2. Select the PLC -> Connect to… menu option to establish a connection to the
CPU you want
3. Switch the CPU to the STOP state
4. Enter the appropriate values for the peripheral outputs you want to modify in
the "Modify Value" column.
Examples: PQB 7 Modify Value: 2#01000011
PQW 2 W#16#0027
PQD 4 DW#16#0001
5. Use Variable -> Enable Peripheral Outputs to activate the modifying of the
outputs
6. Use Variable -> Activate Modify Values to modify the peripheral outputs.
7. To assign new modify values, enter these and then activate them with
Variable -> Activate Modify Values
Note Modifying or "Enable Peripheral Outputs" remains active until you deactivate it
using Variable -> Enable Peripheral Outputs or you press the ESC key. When
you change the operating mode of the CPU from STOP to RUN or STARTUP,
the Enable Peripheral Outputs is deactivated and a message appears.
Task You are to perform a CPU memory reset and check whether the memory reset
was successful.
What to Do 1. Carry out the memory reset according to the steps in the slide above
2. Check the success of the memory reset (only if you have a CPU previous to
Oct. 2002. The memory reset was successful when only system blocks
(SDBs, SFCs, SFBs) are left in the CPU .
In the SIMATIC Manager -> switch to the Online View using
-> double-click on MPI=2 -> double-click on Blocks
Notes When the CPU memory is reset, all user data in the CPU are deleted.
To make sure that no “old” blocks are left in the CPU, a memory reset of the
CPU should be performed. The following takes place during a memory reset:
• All user data are deleted
(with the exception of the MPI parameter assignments).
• Hardware test and initialization
• If an Eprom memory card or a Micro Memory Card is installed, the CPU
copies the memory card contents back into the internal RAM after the
memory reset.
• If no memory card or Micro Memory Card is installed, the preset MPI address
is retained. If, however, a memory card is installed, the MPI address stored
on it is loaded.
• The contents of the diagnostic buffer (which can be displayed with the PG)
are retained
Task You are to retrieve a project and save it under the name "My_Project".
Notes The project contains the program for the conveyor model as you edited it in the
previous course - ST-SERV1, a hardware station and a ProTool/Pro project for
the TP170B.
Task Since different training units and CPUs are used for the courses, the available
CPU has to be integrated into the setpoint configuration.
During the course, corrections to the hardware configuration also have to be
made.
Note If you have an S7-400 training unit, use the HW Station "S7-400".
Task In the following two exercises, you are to check the wiring of the sensors and
actuators of the conveyor model to the digital input and output modules.
The errors that you are to determine are simulated using a fault simulation
connector. This connector must first be attached to the conveyor model.
Task In this exercise, you are to check the wiring of the conveyor model‘s sensors to
the digital input modules according to the symbol table (see slide). You will
check the wiring of the actuators in the next exercise.
Note The errors that occur are simulated by the fault simulation unit that you just
attached. Your task is to determine the errors, not to eliminate them!
Example:
Conveyor to the right
Task Now check the wiring of the conveyor model‘s actuators to the digital output
modules using the function "Enable Peripheral Outputs" .
What to Do 1. Open the "I/O Conveyor Model" variable table from the previous exercise
SIMATIC® Manager -> open the Blocks folder of the HW Station
"S7_300_Station" -> double-click on "I/O Conveyor Model"
2. Add the peripheral output byte PAB 0 Display format "binary" to the variable
table
3. Even if it isn‘t necessary here:
Establish a connection to the directly connected CPU
PLC -> Connect to -> Direct CPU
4. Activate the function "Enable Peripheral Outputs"
Variable -> Enable Peripheral Outputs
5. To test the output wiring, enter the state 1 for the respective output in the
column "Modify Value", activate it using and observe whether
the
Transfer
Start
Control
Panel
M OK X
P
I Panel is the only master on bus
Station Parameters
1
Address:
1s
Time-out:
Transfer Settings
OK X NetworkParameters
S7-Transfer Settings OK X
Channel Directories
Transmission Rate: 187,5
kbits\s
Channel 1: MPI
Serial:
Profibus Highest Station: 31
Remote Control
Enable Channel
Channel 2: Properties...
MPI Enable Channel
Task The interface of the TP170B is to be set up as in the slide, so that the
ProTool/Pro project can then be downloaded from the PG.
Task The "Demo_1" S7 program contains the program for the conveyor model from
the previous course - ST-SERV1.
This program is to be downloaded and in the next exercise the function is to be
tested.
System Function The conveyor model is to be operated through a screen on the TP170B as
follows.
System ON/OFF The system is switched on through the "System On" button and off through the
"System Off" button.
When the system is on, you can then set the manual mode or the automatic
mode.
Manual Mode The manual mode is selected with the "Auto/Manual" switch and is accepted
with the "Accept" button.
In manual mode, a part can be moved in the direction of the light barrier with
"Jog right" or in the other direction with "Jog left" as long as the appropriate
button is pressed.
Automatic Mode When the system is on, automatic mode can be selected with the "Auto/Manual"
switch and can be accepted with the "Accept" button.
In automatic mode, the parts are placed on the conveyor in front of the proximity
sensor "Ini1" or "Ini2". After acknowledging with the appropriate "S1" or "S2"
momentary-contact switch, the conveyor moves until the part has crossed the
light barrier. If the conveyor doesn‘t reach the light barrier within 6 seconds, the
conveyor stops and a fault is indicated on an LED on the simulator. This fault
can be acknowledged by pressing the momentary-contact switch I1.0
("T_Ackn_Fault).
The number of completed parts are counted as they cross the light barrier and
are displayed on the output field "Actual_Quantity". When the preset setpoint
quantity is reached, it is indicated on the LED "H4" on the conveyor model. Until
this is acknowledged with the momentary-contact switch "S4", no new transport
function can be started.