8 Homing
8-12
NJ/NX-series CPU Unit Motion Control Userās Manual (W507)
You can read Axis Variables in the user program to monitor the homing status and the input signal sta-
tus.
In the descriptions, a variable name _MC_AX[*] is used as an example, but the same information
applies to _MC1_AX[*] and _MC2_AX[*].
8-2-2 Monitoring the Homing Operation
Variable name
Data
type
Meaning Function
_MC_AX[0-255].Status.Homing BOOL Homing TRUE when homing for the MC_Home or
MC_HomeWithParameter instruction.
_MC_AX[0-255].Dtails.Homed BOOL Home
Defined
TRUE when home is defined.
FALSE: Home not defined.
TRUE: Home is defined
_MC_AX[0-255].Dtails.InHome BOOL In Home
Position
TRUE when the axis is in the range for home. It
gives an AND of the following conditions.
Home defined.
Actual current position is within the zero position
range of home. This variable is also TRUE when
the zero position is passed by while the axis is
moving for a command.
_MC_AX[0-255].DrvStatus.P_OT BOOL Positive
Limit Input
TRUE when the positive limit input is enabled.
_MC_AX[0-255].DrvStatus.N_OT BOOL Negative
Limit Input
TRUE when the negative limit input is enabled.
_MC_AX[0-255].DrvSta-
tus.HomeSw
BOOL Home Prox-
imity Input
TRUE when the home proximity input is enabled.
_MC_AX[0-255].DrvStatus.Home BOOL Home Input TRUE when the home input is enabled.