MC_CamOut

MC_CamOut 1:

The function block MC_CamOut disables a master-slave coupling.

MC_CamOut 2:

If a slave axis is uncoupled during the movement, it is not automatically stopped, but reaches a continuous velocity with which it will continue to travel endlessly. The axis can be stopped with a Stop command.

Notice

Calling during the movement

After decoupling, the slave axis switches to acceleration-free state and continues to move with the resulting constant velocity. There is no positioning based on the master travel path calculated with the coupling factor. Instead, the behavior matches the behavior after a MC_MoveVelocity command.

MC_CamOut 3: Inputs

VAR_INPUT
   Execute : BOOL;
   Options : ST_GearOutOptions;
END_VAR

Name

Type

Description

Execute

BOOL

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

Options

ST_CamOutOptions

Currently not implemented.

MC_CamOut 4: Inputs/outputs

VAR_IN_OUT
   Slave    : AXIS_REF;
END_VAR

Name

Type

Description

Slave

AXIS_REF

Axis data structure of the Slave.

The axis data structure of type AXIS_REF addresses an axis unambiguously within the system. Among other parameters, it contains the current axis status, including position, velocity or error state.

MC_CamOut 5: Outputs

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

Name

Type

Description

Done

BOOL

Becomes TRUE if the cam plate was created 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.