MC_MovePath

When implemented, this function block enables the execution of an NC program. The name of the file containing the NC program is specified in the data structure MC_PATH_DATA_REF.

Block diagram

FB parameters

VAR_IN_OUT

Variable name

Data type

Description

AxesGroup

AXES_GROUP_REF

Axis group reference

PathData

MC_PATH_DATA_REF

Reference to the path description.

This implementation means an NC program.

VAR_INPUT

Variable name

Data type

Description

Execute

BOOL

Starts the command on the rising edge.

BufferMode

MC_BUFFER_MODE

The input defines when a job is activated provided that other jobs are already active when the FB is commanded or are waiting for execution. It also defines the path generated at the transition between 2 jobs. The following values are possible:

mcAborting         = 0

mcBuffered         = 1

mcBlendingPrev  = 3

VAR_OUTPUT

Variable name

Data type

Description

Done

BOOL

NC program execution is completed.

Busy

BOOL

TRUE indicates that the function block is executing a job.

Active

BOOL

The command for the FB is not yet completed.

CommandAborted

BOOL

NC program execution was aborted.

Error

BOOL

TRUE indicates that an error occurred.

ErrorID

WORD

Error code

JobID

UDINT

Ordinal number of the last job sent by the FB.

Fb

MCV_FB_REF

Optional for use in applications with job management (MCV_GrpReadJobAck)

This output is available as of CNC Build V3.1.3103.1.