MC_GearOut (FB)
FUNCTION_BLOCK MC_GearOut
This function block disengages the Slave axis from the Master axis
The slave axis will keep the actual velocity.
It is assumed that this command is followed by another command, for instance MC_Stop, MC_GearIn, or any other command. If there is no new command, the default condition should be: maintain last velocity.
After issuing the function block there is no function block active on the slave axis till the next function block is issued (what can result in problems because no motion command is controlling the axis).
Alternatively, one can read the actual velocity via MC_ReadActualVelocity and issue MC_MoveVelocity on the slave axis with the actual velocity as input. The function block is here because of compatibility reasons
Note
It is not required to use this block to disengage the axis. MC_Stop/MC_Halt or any other command could be used instead.
- InOut:
Scope
Name
Type
Comment
Input
ExecuteBOOLStarts the function block at rising edge
Output
DoneBOOLShows the status of the function block. Done = TRUE if the execution is finished
BusyBOOLThe function block is not finished
ActiveBOOLIndicates that the function block has control on the axis
CommandAbortedBOOLCommand is aborted by another command from other PLCopen function block
ErrorBOOLSignals that error has occurred within function block
ErrorIDError identification. For error details refer to Enumeration ERROR_ID
Inout
SlaveReference to slave axis