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)
Notice | |
Migrating to TwinCAT 2.11 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. |
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 |