Example: Program from workpiece
Program code
N10 INIT(2,"/_N_WKS_DIR/_N_SHAFT1_WPD/_N_CUT1_MPF")
Example: INIT command with relative path specification
Program /_N_MPF_DIR/_N_MAIN_MPF is selected in channel 1
Program code
N10 INIT(2,"MYPROG")
Example: Channel name and channel number with integer variable
$MC_CHAN_NAME[0]= "CHAN_X" ;name of 1st channel
$MC_CHAN_NAME[1]= "CHAN_Y" ;name of 2nd channel
Program code
START(1, 2)
Similar to this, programming with the channel identifiers:
Program code
START(CHAN_X, CHAN_Y)
Programming with integer variable:
Program code
DEF INT chanNo1, chanNo2)
chanNo1=CHAN_X chanNo2=CHAN_Y
START(chanNo1, chanNo2)
Job planning
Programming Manual, 02/2011, 6FC5398-2BP40-1BA0
1.13 Program coordination (INIT, START, WAITM, WAITMC, WAITE, SETM, CLEARM)
Comments
; Execute start in the 1st and 2nd channels
Comments
; Select program /_N_MPF_DIR/_N_MYPROG_MPF in channel 2
Comments
; Execute start in the 1st and 2nd channels
; The channel_X and channel_Y identifiers represent
;channel numbers 1 and 2 internally, due to the
$MC_CHAN_NAME machine data. They also execute a start in
the 1st and 2nd channel accordingly.
Comments
; Define channel number
Flexible NC programming
119