MC_GearOut (FB)

FUNCTION_BLOCK MC_GearOut

This function block disengages the Slave axis from the Master axis

../../../../../../_images/plcopen.png
  • 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

Execute

BOOL

Starts the function block at rising edge

Output

Done

BOOL

Shows the status of the function block. Done = TRUE if the execution is finished

Busy

BOOL

The function block is not finished

Active

BOOL

Indicates that the function block has control on the axis

CommandAborted

BOOL

Command is aborted by another command from other PLCopen function block

Error

BOOL

Signals that error has occurred within function block

ErrorID

ERROR_ID

Error identification. For error details refer to Enumeration ERROR_ID

Inout

Slave

Axis_Ref

Reference to slave axis