Skip to main content

7.16.5 MC_HOME

Function

Axis performs a "search home" sequence.

LD graphics

alt text

Parameter description

ParametersTypeDeclarationDescriptionRemarks
AxisAXISVAR_IN_OUTSystem axis for executing commandsInvoke Function Block
ExecuteBOOLVAR_INrising edge on mode
PositionLREALVAR_INRetain
HomingModeUSINTVAR_INDefine zero return mode: 1-35, of which 15,16,31,32 are reserved
BufferModeUSINTVAR_INDefine the temporal order of FB: 0 means to immediately abort the ongoing movement (default value);
1 means to affect the axis when the last movement is "complete"
DoneBOOLVAR_OUTReference known and set up for success
BusyBOOLVAR_OUTWhether FB has valid output, True: FB has not ended
ActiveBOOLVAR_OUTFB control axis
CommandAbortedBOOLVAR_OUTThe command was terminated by another command
ErrorBOOLVAR_OUTAn error signal has occurred within the FB
ErrorIDWORDVAR_OUTError ID