Motion synchronous actions
10.4 Actions in synchronized actions
Job planning
Programming Manual, 07/2010, 6FC5398-2BP40-0BA0
595
Examples
Example 1:
Program code Comments
ID=1 EVERY $AA_IM[B]>75 DO POS[U]=100 ; Axis U traverses, dependent on the traversing mode,
incrementally through 100 (inch/mm) or to position
100 (inch/mm) from the control zero.
; Traverse axis U by the distance calculated from the
main run variables:
ID=1 EVERY $AA_IM[B]>75 DO POS[U]=$AA_MW[V]-$AA_IM[W]+13.5
Example 2:
Program environment influences the positioning travel of the positioning axis
(no G function in the action component of the synchronized action):
Program code Comments
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=10mm X=10mm
N160 G70 Z10 F10 ; Z=254mm X=254mm
N170 G71 Z10 F10 ; Z=10mm X=10mm
N180 M30
G71 in the action component of the synchronized action clearly defines the positioning travel
of the positioning axis (metric) independent of the program environment:
Program code Comments
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=10mm X=10mm
N160 G70 Z10 F10 ; Z=254mm X=10mm (X always positions to 10mm)
N170 G71 Z10 F10 ; Z=10mm X=10mm
N180 M30