Motion synchronous actions
10.4 Actions in synchronized actions
Job planning
10-48 Programming Manual, 03/2006 Edition, 6FC5398-2BP10-1BA0
Program sequence in the second channel:
WHEN TRUE DO GET(Z) ;Move Z axis to second channel
WHENEVER($AA_TYP[Z]==0) DO
RDISABLE
;Read-in disable as long as Z axis is in
;other channel
N210 G4 F0.1
WHEN TRUE DO GET(Z) ;Z axis is NC program axis
WHENEVER($AA_TYP[Z]<>1) DO
RDISABLE
;Read-in disable until Z axis is program axis
N220 G4 F0.1
WHEN TRUE DO RELEASE(Z) ;Z axis in second channel is neutral axis
WHENEVER($AA_TYP[Z]==1) DO
RDISABLE
;Read-in disable as long as Z axis is program
;axis
N230 G4 F0.1
N250 WAITM(10, 1, 2) ;Synchronize with channel 1
Program sequence in the first channel continues:
N150 WAIM(10, 1, 2) ;Synchronize with channel 2
WHEN TRUE DO GET(Z) ;Move Z axis to this channel
WHENEVER($AA_TYP[Z]==0) DO
RDISABLE
;Read-in disable as long as Z axis is in
;other channel
N160 G4 F0.1
N199 WAITE(2) ;Wait for end of program in channel 2
N999 M30
Example: Axis replacement in technology cycle
The U axis U ($MA_AUTO_GET_TYPE=2) has been declared in the first and second
channel and channel 1 currently has the interpolation right. The following technology cycle is
started in channel 2:
GET(U) ;Move U axis to channel
POS[U]=100 ;U axis is to be moved to position 100
The command-axis-movement line POS[U] is not executed until the U axis has been moved
to channel 2.