MDI_DriveBasedHome (FB)
FUNCTION_BLOCK MDI_DriveBasedHome
- This function block is used to put the axis into home mode and trigger homing based on the selected home type. The details of the datum sequence are dependent on the home type selected and the profiling is done dependent on the other relevant input settings. The PositionOffset input is used to set the axis position at the end of a successful datum sequence.
Note
1.This function block only supports e530 drive.
2.This function block can only be aborted by MDI_Stop.
- InOut:
Scope
Name
Type
Initial
Comment
Input
ExecuteBOOLFALSE
Starts the datum sequence on a rising edge.
HomingModeINT37
DS402 standard (1-37) and some ABB specific types (41-44) acceptable.
HighSpeedREAL10.0
Unit is uu/s, mostly used in first cycle, range>0.
LowSpeedREAL1.0
Unit is uu/s, mostly used in second backoff cycle, range>0.
AccelDecelREAL100.0
AccelDecel rate in user units/sec^2, range>0.
PositionOffsetDINT0
Position set when homing is complete.
TimeOutDINT5000
Unit is ms, process timeout from Execute.
TorqueThresholdREAL10.0
% of Torque used to determine torque limit if homing mode = 41~44.
TorqueThresholdTimeDINT100
Unit is ms, used to determine torque limit reached if homing mode = 41~44.
Inout
AxisReference to axis.
Output
DoneBOOLIndicates that the axis has homed successfully.
BusyBOOLSets to true while the homing sequence is in progress.
CommandAbortedBOOLCommand is aborted by another command from other MDI function block.
ErrorBOOLSignals that an error has occurred within function block.
ErrorIDContains the error code when there is an error.