Motion synchronous actions
10.4 Actions in synchronized actions
Job planning
604 Programming Manual, 07/2010, 6FC5398-2BP40-0BA0
Example
Moving the control zero of an axis
Program code Comments
WHEN $AA_IM[a] >= 89.5 DO PRESETON(a4,10.5) ; Shift the control zero of the
axis a through 10.5 length units
inch or mm) in the positive axis
direction
10.4.20 Spindle motions
Function
Spindles can be positioned completely unsynchronized with respect to the part program from
synchronized actions. This type of programming is advisable for cyclic sequences or
operations that are strongly dependent on events.
If conflicting commands are issued for a spindle via simultaneously active synchronized
actions, the most recent spindle command takes priority.
Example of starting/stopping/positioning spindles
Program code Comments
ID=1 EVERY $A_IN[1]==1 DO M3 S1000 ;
et the direction of rotation and
speed
ID=2 EVERY $A_IN[2]==1 DO SPOS=270 ; Position spindle
Example of setting the direction and speed of rotation/ positioning the spindle
Program code Comments
ID=1 EVERY $A_IN[1]==1 DO M3 S300 ;
et the direction of rotation and
speed
ID=2 EVERY $A_IN[2]==1 DO M4 S500 ; Specify a new direction of
rotation and a new speed
ID=3 EVERY $A_IN[3]==1 DO S1000 ; Specify a new speed
ID=4 EVERY ($A_IN[4]==1) AND ($A_IN[1]==0) DO
SPOS=0
; Position spindle