MCA_DriveBasedHome (FB)
FUNCTION_BLOCK MCA_DriveBasedHome
This function block can be used to execute a homing procedure directly in the drive.
- Precondition
It requires the drive supports 402-profile specific homing sequences.
The function block can be used in combination with:
ECAT_402ParameterHoming_APP to send parameters
ECAT_CiA402_Control_App to control the drive statemachine and to set it to the appropriate operating mode
Note
Homing is based on the settings in drive and drive has to execute the homing algorithm.
Note
This function block has to be called within the REAL-TIME task, same task as CMC_Basic_Kernel/CMC_Basic_Kernel64, such as MotionSolution_Task built by MotionWizard.
- InOut:
Scope
Name
Type
Comment
Input
ExecuteBOOLStarts the function block at rising edge
PositionLREAL[u] Reference position, used as position value at reference position
TimeLimitLREAL[s] A time in seconds, which will be used as an upper limit for the time available to do the homing. If the time is exceeded, the function block will show an Error. With TimeLimit = 0, the limit is ignored
BufferModeNot supported, default mcABORTING used
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
AxisReference to axis
Structure: