Commanding agents
Programming Example
Starting an NC program in another channel
Start the CNC program JM-1-ch2.nc in a channel where the log_id is "1" without position request and without initialising the decoder. The transfer parameter @PL5 can be read out in the commanded channel; all other @Plx cannot. An error occurs at a read attempt.
%ExampleMC_MovePath1 Master
N010 #MC_MovePath [CH=1, JobID = 5, FileName = "JM-1-ch2.nc", \
InitializeOnActualPosition = OFF, SetDefaultConfig = OFF \
@PL2 = 1000.5 @PL5 = 50]
N020 M30
Parameters can be accessed in the JM-1-ch2.nc program.
%ExampleMC_MovePath1 Slave „JM-1-ch2.nc“
N010 V.L.Parameter1 = @PL5 ;V.L.Parameter1 = 50
N020 X@PL2 ;Commanded X Position 1000.5
;…