Motion synchronous actions
10.4 Actions in synchronized actions
Job planning
10-44 Programming Manual, 03/2006 Edition, 6FC5398-2BP10-1BA0
Example
The program environment affects the positioning travel of the positioning axis
(no G function in the action part of the synchronized action)
N100 R1=0
N110 G0 X0 Z0
N120 WAITP(X)
N130 ID=1 WHENEVER $R==1 DO POS[X]=10
N140 R1=1
N150 G71 Z10 F10 ;Z=10 mm X=10 mm
N160 G70 Z10 F10 ;Z=254 mm X=254 mm
N170 G71 Z10 F10 ;Z=10 mm X=10 mm
N180 M30
G71 in the action part of the synchronized action clearly determines the positioning travel of
the positioning axis (metric), whatever the program environment.
N100 R1=0
N110 G0 X0 Z0
N120 WAITP(X)
N130 ID=1 WHENEVER $R==1 DO G71 POS[X]=10
N140 R1=1
N150 G71 Z10 F10 ;Z=10 mm X=10 mm
N160 G70 Z10 F10 ;Z=254 mm X=10 mm (X positioned
;always to 10 mm)
N170 G71 Z10 F10 ;Z=10 mm X=10 mm
N180 M30
If you do not want the axis motion to start at the beginning of the block, the override for the
axis can be held at 0 until the appropriate time from a synchronized action.
WHENEVER $A_IN[1]==0 DO $AA_OVR[W]=0
G01 X10 Y25 F750 POS[W]=1500
FA=1000
;The positioning axis is halted as long as digital input 1 = 0