Technology instructions
10.3 Motion control
S7-1200 Programmable controller
System Manual, V4.2, 09/2016, A5E02486680-AK
739
Error info ID for parameter "ErrorID"
ReferenceMarkPosition OUT Real Position of the axis at the reference mark in the previous co-
ordinate system.
"ReferenceMarkPosition" output parameter: The homing function saves the old position
before execution and provides this value in the ReferenceMarkPosition output parameter.
The output displays the following values during the different homing modes:
● Active/Passive homing: Displays the position of the axis at the zero/reference mark of the
previous coordinate system during and after active/passive homing.
● Absolute encoder adjustment: Displays the previous axis position during and after
absolute encoder adjustment.
● Direct homing: Displays the previous axis position during and after direct homing.
During homing, motion control sets the axis position to the new value of input
"MC_Home.Position". The values of "MC_Home.ReferenceMarkPosition" are valid when
"MC_Home.Done" = TRUE.
Note
Axis homing is lost under the following conditions
•
Disabling of axis by the MC_Power instruction
Switchover between automatic control and manual control
Upon start of active homing (After successful completion of the homing operation, axis
homing is available again.)
After power-cycling the CPU
After CPU restart (RUN-to-STOP or STOP-to-RUN)
To home the axis, follow these steps:
1. Check the requirements indicated above.
2. Initialize the necessary input parameters with values, and start the homing operation with
a rising edge at input parameter "Execute".
3. If output parameter "Done" and technology object tag <Axis
name>.StatusBits.HomingDone indicate the value TRUE, homing is complete.