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

InstructionMC_GearOut(FB)
NameElectronic gear coupling disconnection
Graphical performanceST performance

1764850539216-719.png

MC_GearOut(

Slave: =,

Execute: =,

Done=>,

Busy=>,

Error=>,

ErrorID=>);

Related variables

Input and output variableNameData typeEffective rangeInitial valueDescription
SlaveSlave axisAXIS_REF_SM3--Map to an axis, i.e. an instance of AXIS_REF_SM3
Input variableNameData typeEffective rangeInitial valueDescription
ExecuteExecutionBOOL[FALSE, TRUE]FALSERising edge signal execution instruction
Output variableNameData typeEffective rangeInitial valueDescription
DoneCompletedBOOL[FALSE, TRUE]FALSEAfter completing, cam coupling disconnect from master axis
BusyflagBOOL[FALSE, TRUE]FALSEInstruction in execution
ErrorErrorBOOL[FALSE, TRUE]FALSEWhen an error occurs, set to TRUE
ErrorIDError IDSMC_ERRORRefer to SMC_ERROR0When 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.

1764850483907-883.png

Error description

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

Information

Note: Please refer to [3.8 Error ID description] to know the relevant error ID description.