MC_WriteMotionFunctionPoint

MC_WriteMotionFunctionPoint 1:

The function block MC_WriteMotionFunctionPoint can be used to write the data of a motion function interpolation point.

The function block MC_SetCamOnlineChangeMode can be used to define when the data is transferred to the cam plate. If activation of the data is to be delayed until the master reaches a certain position, the system will initially queue the written data and activate them at the master position.

The status flag Axis.Status.CamDataQueued (AXIS_REF) can be used to check whether data have been queued, i.e. written but not yet activated.

MC_WriteMotionFunctionPoint 2: Inputs

VAR_INPUT
   Execute    : BOOL;
   CamTableID : MC_CAM_ID;
   PointID    : MC_MotionFunctionPoint_ID;
   Options    : ST_WriteMotionFunctionOptions;
END_VAR

Name

Type

Description

Execute

BOOL

The command is executed with a rising edge at Execute input.

CamTableID

MC_CAM_ID

ID of the loaded table.

PointID

MC_MotionFunctionPoint_ID

Point ID of the first point of the motion function to be read.

Options

ST_WriteMotionFunctionOptions

Data structure with additional options:

SynchronousAccess

Writing takes place via synchronous access without a time delay. Should only be used for applications that are extremely time-critical.

MC_WriteMotionFunctionPoint 3: Inputs/outputs

VAR_IN_OUT
   Point : MC_MotionFunctionPoint;
END_VAR

Name

Type

Description

Point

MC_MotionFunctionPoint

Data structure containing the data of a motion function interpolation point.

MC_WriteMotionFunctionPoint 4: Outputs

VAR_OUTPUT
   Done          : BOOL;
   Busy          : BOOL;
   Error         : BOOL;
   ErrorID       : UDINT;
END_VAR

Name

Type

Description

Done

BOOL

Becomes TRUE if the data have been read successfully.

Busy

BOOL

The Busy output becomes TRUE when the command is started with Execute and remains TRUE for as long as the command is processed. If Busy becomes FALSE again, the function block is ready for a new order. At the same time one of the outputs, Done or Error, is set.

Error

BOOL

Becomes TRUE as soon as an error occurs.

ErrorID

UDINT

If the error output is set, this parameter supplies the error number.