Flexible NC programming
1.13 Program coordination (INIT, START, WAITM, WAITMC, WAITE, SETM, CLEARM)
Job planning
Programming Manual, 07/2010, 6FC5398-2BP40-0BA0
111
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 Comments
START(1, 2) ; Execute start in the 1st and 2nd channels
Similar to this, programming with the channel identifiers:
Program code Comments
START(CHAN_X, CHAN_Y) ; 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.
Programming with integer variable:
Program code Comments
DEF INT chanNo1, chanNo2) ; Define channel number
chanNo1=CHAN_X chanNo2=CHAN_Y
START(chanNo1, chanNo2)