MC_CamRemove

MC_CamRemove 1:

MC_CamRemove removes a cam plate from a multi-cam environment. See also MC_CamIn_V2.

Important:

ActivationMode (time or position from which the operation takes place)

MC_CamRemove 2: Inputs

VAR_INPUT    
   Execute            : BOOL;
   ActivationMode     : MC_CamActivationMode := MC_CAMACTIVATION_INSTANTANEOUS;
   ActivationPosition : LREAL;
   CamTableID         : MC_CAM_ID;
   Options            : ST_CamRemoveOptions;
END_VAR

Name

Type

Description

Execute

BOOL

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

ActivationMode

MC_CamActivationMode

The ActivationMode is used to specify the time or position at which the cam plate coupling or switchover is to take place.
ActivationMode can also be specified when a slave is coupled for the first time.

ActivationPosition

LREAL

Optional master position at which a cam plate is switched, depending on the ActivationMode.
(Not required for first coupling.)
If the MC_CAMACTIVATION_ATMASTERCAMPOS ActivationMode is used, the position refers to the unscaled cam plate. If the position in the application refers to the scaled cam plate, it can be divided by the MasterScaling before the function block is called.

CamTableID

MC_CAM_ID

ID of the cam plate that is removed from the coupled system.

Options

ST_CamRemoveOptions

Currently not used.

MC_CamRemove 3: Inputs/outputs

VAR_IN_OUT
   Master : AXIS_REF;
   Slave  : AXIS_REF;
END_VAR

Name

Type

Description

Master

AXIS_REF

Axis data structure of the master.

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_CamRemove 4: Outputs

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

Name

Type

Description

Done

BOOL

Becomes TRUE if the cam plate operation was completed successfully. In operations with activation position, Done only becomes TRUE after the actual deactivation.

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.

Active

BOOL

Active indicates that the command is executed. Active becomes TRUE if the command was issued successfully but the operation is still queued. If the cam plate is activated depending on the ActivationMode, Active becomes FALSE and InSync is set.

CommandAborted

BOOL

Becomes TRUE if the command could not be fully executed. The axis may have become decoupled during the coupling process (simultaneous command execution).

Error

BOOL

Becomes TRUE as soon as an error occurs.

ErrorID

UDINT

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