5-22
Writing the User Program
CLM01.4-LAP-01VRS
DOK-CONTRL-CLM01.4LAP1-FK01-EN-P
Example:
0000 CLC 0002
0001 AEA Q1.00.4 0
0002 COU +00000 Q1.00.4 000010
0003 PSI 1 +000050.000 999
0004 WAI 01.000
0005 BCE 0001 Q1.00.4 0
0006 JST 0001
Positioning is executed ten times. Then, output Q1.00.4 is set and the
system waits for a new start signal.
Note on actual count offset for ’COU’ (Count) and ’BAC’ (Branch
Conditional on Count):
The counter shown on the display or using Status 4 via the serial interface
can be used to check the counter status. The actual quantity is not
apparent within the command itself. Once a ’COU’ command (’BAC’
command) has been read in, the actual quantity can be manipulated. To
accomplish this, the actual quantity offset must be entered. With the ’BAC’
command, the offset has one less digit.
Actual Quantity
Offset
Effect
+00000
or
-00000
No effect on the actual quantity
+02345
or
-02345
The actual quantity offset, with its operational sign,
is added to the actual quantity
000000
When the operational sign is a ‘0,’ the actual
quantity is set to zero
The actual quantity offset is significant only if the ’COU’ command (’BAC’
command) has been read in (even via the RS interface). When the
program is running, the offset has no meaning. In the user program, the
actual quantity can be reset to zero using the ’CLC’ command.
During a production cycle, it may be necessary to change the desired
target quantity. This can be accomplished by overwriting the quantity
within the command and then resaving.
In order to prevent unintentional repetition of a one-time correction every
time the program is read in, the offset within the command itself is reset to
‘+00000’ once the actual quantity offset has been accepted. This prevents
unintentional changes from being made to the actual quantity.
Note:
The current actual quantity of every counter is retained even in
the event of a fault, emergency stop, change of operating
mode or shutdown!
The program proceeds to the next instruction following the time period of
one cycle.
Содержание CLM1.4
Страница 117: ...7 20 Functions CLM01 4 LAP 01VRS DOK CONTRL CLM01 4LAP1 FK01 EN P Notes...
Страница 205: ...9 42 Interfaces CLM01 4 LAP 01VRS DOK CONTRL CLM01 4LAP1 FK01 EN P Notes...
Страница 213: ...10 8 Command Communications CLM01 4 LAP 01VRS DOK CONTRL CLM01 4LAP1 FK01 EN P Notes...
Страница 233: ...11 20 Diagnostic Messages CLM01 4 LAP 01VRS DOK CONTRL CLM01 4LAP1 FK01 EN P Notes...
Страница 272: ......
Страница 273: ...Printed in the U S A Barcode...