3.6.08 MC_GearOut
Last modified by xingzhi lin on 2025/12/26 17:26
Terminate the executing MC_GearIn, MC_GearInPos instructions.
Instruction format
| Instruction | MC_GearOut(FB) | |
| Name | Electronic gear coupling disconnection | |
| Graphical performance | ST performance | |
| MC_GearOut( Slave: =, Execute: =, Done=>, Busy=>, Error=>, ErrorID=>); | |
Related variables
| Input and output variable | Name | Data type | Effective range | Initial value | Description |
| Slave | Slave axis | AXIS_REF_SM3 | - | - | Map to an axis, i.e. an instance of AXIS_REF_SM3 |
| Input variable | Name | Data type | Effective range | Initial value | Description |
| Execute | Execution | BOOL | [FALSE, TRUE] | FALSE | Rising edge signal execution instruction |
| Output variable | Name | Data type | Effective range | Initial value | Description |
| Done | Completed | BOOL | [FALSE, TRUE] | FALSE | After completing, cam coupling disconnect from master axis |
| Busy | flag | BOOL | [FALSE, TRUE] | FALSE | Instruction in execution |
| Error | Error | BOOL | [FALSE, TRUE] | FALSE | When an error occurs, set to TRUE |
| ErrorID | Error ID | SMC_ERROR | Refer to SMC_ERROR | 0 | When an error occurs, the error ID is output. |
Function description
(1) Execute rising edge to perform the action of cutting out the electronic gear;
(2) If Excute is TRUE and Error is FALSE, Busy output is TRUE, Done output is TRUE;
(3) After the electronic gear is cut out, the speed of the slave axis is the speed before cutting out, so it is necessary to cooperate with the MC_Stop instruction to stop the slave axis;
(4) Execute falling edge, Done is FALSE;
(5) MC_Stop instruction executes the reset Busy signal.

Error description
The relevant parameter settings are wrong, which will cause the instruction alarm; An axis not enabled causes a instruction alarm.
