Commanding agents

A CNC program running in the commanding channel starts a job in another channel “agent” using the #MC_MovePath command.

Release Note

release_note

Available as of V3.1.3110

Syntax of the NC command:

#MC_MovePath [SYN] [ CH=.. JobID=.. FileName=.. @PL<1…20>=..
                                        [InitializeOnActualPosition=..]
                                        [SetDefaultConfig=..]
                                        [ReportSceneSampling=..]
                                        [ReportRunTimeMeasure=..]
                                        [ReportAxesPositionSample=.]. ]

SYN

Synchronous command execution of the ISO program. Before the command is executed, an implicit channel synchronisation takes place (implicit #FLUSH WAIT).

CH=..

Logical channel number of the channel in which the job is executed. The link between the CNC channel number and the CNC channels is specified in the start-up list. (See Parameter).

JobID=..

User-specific job identification number (job ID). Every number must be unique in the commanding program of the master channel.
For example, this ID is used in the #WAIT MC_Status command for job identification.

FileName=<filename>

Filename of the ISO program which is to be started.

@P<i>=..

Parameter transfer to the commanded ISO program. These parameters can be accessed in the called “main program” by @PL<i>.

InitializeOnActualPosition=..

Requests current positions at program start.

See Channel operation mode- SUPPRESS_POSITION_REQUEST

If InitializeOnActualPosition is not used, the current configuration specified applies.

ON

Request the position regardless of the current configuration.

OFF

“No position request” regardless of the current configuration.

USE_ACTUAL

The current configuration specified applies

SetDefaultConfig
=..

Initialises decoder working data at program start.

See Channel operation mode- SUPPRESS_PROG_START_INIT

If SetDefaultConfig is not used, the current configuration specified applies.

ON

Initialisedecoder working data.

OFF

Deselect initialisation of decoder working data.

USE_ACTUAL

The current configuration specified applies

ReportSceneSample=..

Enables the interface to log scene data.

See Channel operation mode- BEARB_MODE_SCENE

If ReportSceneSample is not used, the current configuration specified applies.

ON

Log scene data.

OFF

Disable scene data logging.

USE_ACTUAL

The current configuration specified applies

ReportRunTimeMeasure=..

Enables the interface to log time stamps.

See Channel operation mode - ONLINE_PROD_TIME

If ReportRunTimeMeasure is not used, the current configuration specified applies.

ON

Generate time stamp data.

OFF

Disable logging of time stamp data.

USE_ACTUAL

The current configuration specified applies

ReportAxesPositionSample=..

Enables the interface to log axis positions.

See Channel operation mode- ON_LINE

If ReportAxesPositionSample is not used, the current configuration specified applies.

ON

Generate log data of axis positions.

OFF

Disable logging of axis positions.

USE_ACTUAL

The current configuration specified applies.

Programing Example

prg_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

;…

Notice

notice

After reading in #MC_MovePath, the interpretation of the CNC program is not continued until the job commanded by the command is successfully stored in the job queue of the channel agent.