Block responsible for changing the axis status from Homing to Standstill.
Ladder Representation

Execution Features
Program Memory Size |
70 Bytes |
Data Memory Size |
8 Bytes |
Block Structure
Variable Type |
Name |
Data Type |
Description |
VAR_IN_OUT |
Axis |
BYTE |
Selection of operation axis (0 - Real axis) (1 - Virtual 1 axis) |
VAR_INPUT |
Execute |
BOOL |
Block enabling |
VAR_OUTPUT |
Done |
BOOL |
Output enabling |
Error |
BOOL |
Error in the execution flag |
|
ErrorID |
WORD |
Identifier of the occurred error |
|
VAR |
MC_HOMEDIRECT_INST_0 |
MC_HOMEDIRECT |
Instance of access to block structure |
Operation
When this block detects a leading edge in Execute, if the axis status is Homing, the axis status changes to the Standstill.
When Execute has FALSE value, Done remains FALSE. The Done output is activated when the block finishes the execution successfully, remaining at TRUE level until Execute receives FALSE.
If there is any error in the execution, the Error output is enabled and ErrorID displays an error code according to the table below.
Code |
Description |
71 |
P202 different from 4. |
75 |
Status of the Drive different from "Homing". |
Example in Ladder

In the up transition of FINISH_EXECUTE, the MC_FinishHoming block is executed. With this, the Busy and Active signals of this block are set and the status of the selected axis changes to Standstill. When the process finishes, the Done output of the block is set and remains TRUE while the Execute input is set.
Example in ST
The example below displays the instructions for applying the example above in the ST language.
VAR FINISH_EXECUTE, DONE : BOOL; MC_FINISHHOMING_INST_0 : FB_MC_FinishHoming; END_VAR
FINISH_EXECUTE := MC_FINISHHOMING_INST_0.Execute; MC_FINISHHOMING_INST_0(Axis:=0); DONE := MC_FINISHHOMING_INST_0.Done;
|
|---|