
Designing a Sequential Control System based on the Example of a Drill
S7-GRAPH for S7 300/400 Programming Sequential Control Systems
3-18
C79000-G7076-C526-01
3.13
Downloading the Program to the CPU and Testing the
Sequencer
Downloading the User Program
To allow you to download the program to the CPU, you must download all the
blocks (DB1, FB1, OB1, FC72 or FC70/71) to the CPU of the programmable
controller in the SIMATIC Manager. Follow the steps outlined below:
1. Open the “Drill Program" S7 program in the SIMATIC Manager and select the
“Blocks" folder.
2. Select the menu command PLC > Download.
Note
It is best to download the S7-Graph block in the STOP mode since following
downloading of the instance DB, the sequencer is automatically set to the initial
state.
You should only download S7-Graph blocks in the RUN-P mode when the
sequencer is in the initial state or in the OFF state. If you download the blocks the
sequencer in a different state, for example when overwriting an old block, problems
may occur in the synchronization of the sequencer with the process.
Testing the User Program
To test the user program, you require an online connection to a CPU.
1. Open the project window in the SIMATIC Manager.
2. Open the sequencer by double-clicking FB1.
3. Select the menu command Debug > Monitor.
Result: The program status is displayed (the initial step is active). Active steps
are displayed in color.
Note
A monitoring time is programmed in step 2. If the step activation time exceeds the
configured monitoring time (500 ms) in the supervision condition, the system
recognizes a supervision error and the disturbed step is displayed in red. If a fault
occurs, you must first meet the condition for switching to the next transition. Using
the PG function Debug > Control Sequencer you can then acknowledge (see
also Section "Control Sequencer").