Program Generation
04/99
24
Getting Started with C7-621-AS-i
Network 2 : Belt ON
A
DB1.DBX2.0
// Belt_ON button on casing
A
M 15.0
// Initial position
S
DB1.DBX4.0
// Conveyor belt ON
Network 3 : Belt OFF
A
DB1.DBX2.3
// Belt_OFF button on casing
R
DB1.DBX4.0
// Output Belt_ON
Network 4 : Operating mode display
A
DB1.DBX4.0
// Belt ON
=
DB1.DBX6.0
// Green lamp on casing
=
M 21.0
// Message flag (required later)
Saving a block
You have now fully programmed your belt control. Save your function
FC1
by clicking on the
icon
in the toolbar.
For an executable program you must still write the AS-i input data to
DB1
at the start of the cycle and
the outputs from
DB1
to the AS-i output data at the end of the cycle. To do this, open
OB1
in the
SIMATIC Manager and insert the following networks and program lines.
Network 1 : Route process image of AS-i line to DB
OPN
DB1
L
PIW
256
T
DBW
0
L
PIW
258
T
DBW
2
Network 2 : Call system component belt
CALL
FC 1
// Belt control
Network 3 : Write outputs
L
DBW
4
T
PQW
256
L
DBW
6
T
PQW
258
BE
Now save your
OB1
by clicking on the
icon in the toolbar.
Setting the operating mode
Select the System Function menu by pressing
S H IF T
0
on the C7-621-AS-i.
Select the C7 System Functions menu by pressing
F1
.
Содержание simatic c7-621
Страница 2: ......
Страница 20: ...Programming Preparations 04 99 20 Getting Started with C7 621 AS i ...
Страница 55: ...04 99 Program Example Getting Started with C7 621 AS i 55 ...