TS5050 | TwinCAT NC Camming

FUNCTION_BLOCK MC_CamOut

MC_CamOut 1:

The function block MC_CamOut deactivates a master-slave coupling.

MC_CamOut 2: Remark: If the Set Point Generator Type is set to '7 Phases (optimized)', the slave axis will reduce its acceleration to zero after it is being decoupled and it will then continue moving endless at constant velocity. The decoupled axis will not be positioned to any target position. The behavior is comparable to a move commanded by MC_MoveVelocity. With TwinCAT 2.10 the set point generator type is selectable. From TwinCAT 2.11 the setting is fixed to '7 Phases (optimized)'. If a project is upgraded from TwinCAT 2.10 to TwinCAT 2.11, the behavior will be as described here. After updating an existing application to TwinCAT 2.11, it might be necessary to adapt the PLC program.

VAR_INPUT

VAR_INPUT
        Execute : BOOL;
END_VAR

Execute : The command is executed with rising edge.

VAR_OUTPUT

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

Done : Becomes TRUE, if decoupling was successful.

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
        Slave : NCTOPLC_AXLESTRUCT;
END_VAR

Slave : Axis structure of the slave.

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