7. POSITIONING CONTROL
7 − 96
(3) FOR-OFF (loop-out trigger condition setting)
(a) The set repeated range is executed while the designated bit device is OFF.
(b) The following devices are available to set the loop-out trigger condition:
1) Input (X)
2) Output (Y)
3) Internal relay (M)/Special relay (SP.M)
4) Latch relay (L)
5) Link relay (B)
6) Annunciator (F)
Repeated operation using FOR-TIMES, FOR-ON, and FOR-OFF is shown below.
[Servo Program]
2)
1)
Condition 1 Condition 2 Condition 3
FOR-TIMES K1 K2 K3
FOR-ON
X010 → ON
from start
X010 → ON
during first
execution of 3)
X010 → ON
during third
execution of 3)
FOR-OFF
X010 → OFF
from start
X011 → OFF
during first
execution of 3)
X011 → OFF
during third
execution of 3)
CPSTART2
Axis 1
Axis 2
Resultant speed 1000
ABS-2
Axis 1, 40000
Axis 2, 20000
1)
2)
INC-2
Axis 1, 30000
Axis 2, 0
INC-2
Axis 1, 20000
Axis 2, 20000
NEXT
CPEND
3)
<K 701>
Axis 2
50000
0
100000 200000
Axis 1
Operation Under Condition 3
Operation Under Condition 2
Operation Under Condition 1
Repeat 3)