Siemens SIMATIC C7-621 Manual page 48

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

Advertisement

Example program
FC16 : Filling cycle
Network 1 : Fill bottles
A
I
125.0
L
DB46.DBW0
SE
T
1
A
T
1
=
Q
125.5
Network 2 : Scratchpad memory for conveyor, AUTO
A
Q
125.2
A(
ON
I
125.0
O
A
I
125.0
AN
T
1
)
=
M
5.0
Network 3 : Count full bottles
A
I
125.1
CU
C
1
A
Q
125.0
L
C#0
S
C
1
L
C
1
T
DB46.DBW2
OB1 : Filling plant
Network 1 : Mode section
CALL
FC
15
Network 2 : Filling cycle
CALL
FC
16
Network 3 : Data interface
L
QW
124
T
DB46.DBW4
48
// Bottle sensor 1 has detected a bottle
// Load filling time (3s)
// Set extended pulse (3s)
// When timer 1 reaches level 1
// Open inlet valve
// If AUTOMATIC mode set
// and
// no bottles have been detected by bottle sensor 1
// or
// bottle sensor 1 has detected a bottle
// and filling process not running (valve closed)
// Then the conveyor is moving
// Bottle sensor 2
// Increase counter by 1
// When plant is switched on
// Reset counter to 0
// Write current counter state to
// data block word
A 03/99
First Steps with the C7-621
6ZB5610-0AF02-0BA0

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the SIMATIC C7-621 and is the answer not in the manual?

Table of Contents