MC_GearOut
The function block MC_GearOut deactivates a linear master-slave coupling (gear coupling).
Note: If a slave axis is disconnected in motion, it is not stopped automatically, but it reaches a constant speed with which it continues to move endlessly. The axis can be stopped with a stop command. (see also MC_GearOutExt)
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.
Requirements
Development environment | Target system type | PLC libraries to be linked |
---|---|---|
TwinCAT v2.8 | PC (i386) | TcMC.Lib |