TS5050 | TwinCAT NC Camming

FUNCTION_BLOCK MC_CamIn

MC_CamIn 1:

The function block MC_CamIn activates master-slave coupling with a certain table.

There is an extended function block MC_CamInExt available.

Important : Detailed information about master-slave coupling with cam tables.

VAR_INPUT

VAR_INPUT
        Execute :         BOOL;
        MasterOffset :    LREAL;
        SlaveOffset :     LREAL;
        MasterScaling :           LREAL;
        SlaveScaling :    LREAL;
        StartMode :       MC_StartMode;
        CamTableID :      MC_CAM_ID;      
        InterpolationType:        MC_InterpolationType;
END_VAR

Execute : The command is executed with rising edge.

MasterOffset : Offset for the master positions.

SlaveOffset : Offset for the slave positions.

MasterScaling : Factor for master positions (default 1.0).

SlaveScaling : Factor for slave positions (default 1.0).

StartMode : Starting mode for coupled motion. Valid values are START_ABSOLUTE und START_RELATIVE.

CamTableID : Table ID.

InterpolationType : Interpolation type of the table data. The interpolation type is not used for motion functions.

VAR_OUTPUT

VAR_OUTPUT
        InSync :                BOOL;
        CommandAborted :        BOOL;
        Error :                 BOOL;
        ErrorID :       UDINT;
END_VAR

InSync : Becomes TRUE, if the coupling was successful.

CommandAborted : Becomes TRUE, if the coupling could not be carried out.

Error : Becomes TRUE, as soon as an error occurs.

ErrorID : Supplies the error number when the Error output is set

VAR_IN_OUT

VAR_IN_OUT
        Master :        NCTOPLC_AXLESTRUCT;
        Slave :         NCTOPLC_AXLESTRUCT;
END_VAR

Master : Axis structure of the master.

Slave : Axis structure of the slave.

Development Environment Target System PLC Libraries to include
TwinCAT v2.9 PC (i386) TcNcCamming.Lib