MC_DigitalCamSwitch_EL5131

MC_DigitalCamSwitch_EL5131 1:

The MC_DigitalCamSwitch_EL5131 function block is a digital cam switch based on an EL5131 incremental encoder terminal.

Position and time cams can be used with this function block.

MC_DigitalCamSwitch_EL5131 2: Inputs

VAR_INPUT
    Enable  : BOOL;
    Options : ST_CamSwitchOptions;
END_VAR

Name

Type

Description

Enable

BOOL

The cam controller is activated via the Enable input. The initial state remains unchanged, as long as Enable=FALSE.

Options

ST_CamSwitchOptions

Optional parameter

MC_DigitalCamSwitch_EL5131 3:/MC_DigitalCamSwitch_EL5131 4: Inputs/outputs

VAR_IN_OUT
    Axis         : AXIS_REF;
    Switches     : CAMSWITCH_REF;
    TrackOptions : TRACK_REF;
    EL5131_IO    : EL5131_IoInterface;
END_VAR

Name

Type

Description

Axis

AXIS_REF

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

Switches

CAMSWITCH_REF

The Switches data structure contains a reference to the parameterization of all cams on the cam track.

TrackOptions

TRACK_REF

The TrackOptions data structure contains the parameterization for the cam track.

EL5131_IO

 

Process image of the terminal.

MC_DigitalCamSwitch_EL5131 5: Outputs

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

Name

Type

Description

InOperation

BOOL

InOperation is TRUE, as long as the cam controller is active and the cam track is calculated according to the cam parameterization.

Busy

BOOL

Busy is TRUE as long as the block function is not completed.

Error

BOOL

Becomes TRUE if an error occurs.

ErrorID

UDINT

If the error output is set, this parameter supplies the Overview of NC Errors.

Requirements

Development environment

PLC libraries to include

TwinCAT 3.1 Build 4024.55

Tc2_MC2 3.3.59

Tc2_MC2_XFC 3.3.25