Example Program - Siemens SIMATIC C7-621 Manual

First steps with step 7-mini and protool/lite
Hide thumbs Also See for SIMATIC C7-621:
Table of Contents

Advertisement

A 03/99

Example program

You will have created and started up the following STEP 7 program by following the instructions.
DB46:
Address
Declaration Name
0.0
stat
+2.0
stat
+4.0
stat
FC15:
Mode
Network 1 : Plant ON/OFF
A
I
124.0
=
Q
125.0
Network 2 : MANUAL mode
A
Q
125.0
AN
I
124.3
A
I
124.4
S
Q
125.1
A(
ON
Q
125.0
O
I
124.3
)
R
Q
125.1
Network 3 : AUTO mode
A
Q
125.0
A
I
124.3
A
I
124.4
S
Q
125.2
A(
ON
Q
125.0
ON
I
124.3
)
R
Q
125.2
Network 4 : Conveyor forward
A
Q
125.1
A
I
124.5
AN
I
124.6
O
M
5.0
=
Q
125.3
Network 5 : Conveyor back
A
Q
125.1
A
I
124.6
AN
I
124.5
=
Q
125.4
First Steps with the C7-621
6ZB5610-0AF02-0BA0
Fill_Time
Full_Bottles
Messages
// Start
(if input 124.0
// Plant ON (plant is then
// Plant ON
// and MANUAL mode selected (switch=0)
// Confirm acceptance of selected mode
// Manual mode activated
// If
// plant OFF (LED of DO not lit)
// OR AUTOMATIC mode selected (switch=1)
// Then select Manual mode
// If plant ON
// and AUTOMATIC mode selected (switch=1)
// and acceptance of selected mode confirmed
// Then set automatic mode
// Plant OFF (LED of DO not lit)
// or Manual mode set
// Then select AUTOMATIC mode
// If MANUAL mode set
// and Jog Forward is pressed (enabled)
// and Jog Back is not pressed (enabled)
// or filling process running in AUTOMATIC mode
// Then move conveyor forward
// If MANUAL mode set
// and Jog Back is pressed (enabled)
// and Jog Forward is not pressed (enabled)
// Then move conveyor back
Type
Initial Value Comment
Word
W#16#2003
Word
W#16#0
Word
W#16#0
on /off)
switched on/off)
Example program
47

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents