Flexible NC programming
1.13 Program coordination
Job planning
1-42 Programming Manual, 03/2006 Edition, 6FC5398-2BP10-1BA0
Channel numbers
Up to 10 channels can be specified as channel numbers for the channels requiring
coordination.
Channel names
Channel names must be converted into numbers using variables (see "Variables and
arithmetic parameters"). Alternatively, the channel names defined using $MC_CHAN_NAME
can also be programmed rather than channel numbers. The defined names must comply
with the NC naming conventions (i.e. the first two characters must be either letters or an
underscore).
Caution
Protect the number assignments so that they are not changed unintentionally.
The names must not already exist in the NC with a different meaning, e.g. as key words,
commands, axis names etc.
SETM() and CLEARM()
SETM()and CLEARM() can also be programmed independently of a synchronized action.
See Chapter "Set/delete wait markers: SETM CLEARM"
Example
Channel called "MACHINE" is to contain channel number 1,
channel called "LOADER" is to contain channel number 2:
DEF INT MACHINE=1, LOADER=2
The variables are given the same names as the channels.
The statement START is therefore:
START(MACHINE)
Example: program coordination
Channel 1:
%_N_MPF100_MPF
N10 INIT(2,"MPF200")
N11 START(2)
.
;Processing in channel 2
N80 WAITM(1,1,2)
.
;Wait for WAIT mark 2 in channel 1 and
;in channel 2 and execution continued in
channel 1
N180 WAITM(2,1,2)
.
;Wait for WAIT mark 2 in channel 2 and
;in channel 2 and execution continued in
channel 1
N200 WAITE(2) ;Wait for end of program in channel 2
N201 M30
…
;Program end channel 1, total end