04/99
Displaying and Entering Values in Screens
Getting Started with C7-621-AS-i
37
The editor automatically inserts a new line, in which you enter the next data block word. This data
word 2 is to have the name
number_parcels
, the type
WORD
, and the initial value
W#16#0
.
Create the data word 4 with the name
messages
, the type
WORD
and the initial value
W#16#0
. This
data word is required for the event messages to be configured and is explained later in more detail.
You have now created the data block DB46. Save it and load it into the C7-621-AS-i control system.
Now you must still modify the function FC2. Open the FC2 in the SIMATIC Manager and in the first
network overwrite the load instruction of the counter with
L DB46.DBW0.
Then transfer the count to
the second data word of the data block DB46 instead of to the MW22.
Network 1 : Count
A
DB1.DBX1.0
// Position switch
A
DB1.DBX4.0
// Belt ON
A
DB1.DBX0.1
// Inductive Bero
FP
M30.0
// Rising edge
CV
C1
// Count forward
L
C1
// Transfer count to Db46.DBW2
T
DB46.DBW2
AN
C1
// Count = 0
A
DB1.DBX4.0
// Belt ON
L
C#0
// Write preset count
S
C1
// Initialize counter
L
DB46.DW2
// If the value in DB46.DW2 is greater than
L
DB46.DW0
// the maximum value set, the counter is
>I
R
C1
// reset
Save the block and load it into the CPU again. Via the menu item
Accessible Nodes
activate the
function
Save RAM to ROM
, so that the current program is also stored in the flash memory. Make
sure that the C7-CPU is in the operating mode STOP during this save process. Then select the CPU
mode RUNP again.
Содержание 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 ...