04/99
Program Generation
Getting Started with C7-621-AS-i
23
Editing a block
Now open the LAD/STL/FBD editor by double-clicking on the newly created
Function FC1
in the
SIMATIC MANAGER.
Click on
Title
next to the block number FC1 and assign the block name
Belt control.
Now give the first network the name
Initial position.
To do this, click on the entry
Title
next to
the network number.
Click in the gray field below the line
Network 1
: to activate it. Enter a network comment in this field:
There must be no parcel on the belt.
Below the network comment you can now insert your program lines. To do this, click in the white area
below the gray comment field. This opens a box with the current cursor position. When making your
entry, make sure you include the relevant blanks (at least one blank each as a separator between
operation code, operand and comment) in each program line, otherwise STEP 7 will not recognize the
instruction and will signal this in red italics. Insert the following in the first network:
FC1: Belt control
Network 1 : Initial position
AN
DB1.DBX0.0
// Opto_Bero : no parcel
AN
DB1.DBX1.0
// Position switch: no parcel
A
DB1.DBX0.1
// Ejector in initial position
=
M 15.0
// Initial position
To insert a new network, click on
in the toolbar. In this network, program the operating status of
your system.
Содержание 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 ...