9 Motion Control Functions
9-80
NJ/NX-series CPU Unit Motion Control Userās Manual (W507)
⢠The value set from the Sysmac Studio is restored if power to the CPU Unit is cycled or the
user program is downloaded with the Synchronization menu command of the Sysmac Studio.
Use the MC_Write (Write MC Setting) and MC_WriteAxisParameter (Write Axis Parameters)
instructions only when you need to temporarily change the in-position check time.
ļ¬ Monitor Information That Is Related to In-position Checks
You can read Axis Variables from the user program to monitor when positioning finishes.
In the descriptions, a variable name _MC_AX[*] is used as an example, but the same information
applies to _MC1_AX[*] and _MC2_AX[*].
* This also includes states where processing is performed while in motion at velocity 0, during following error
counter resets, during synchronized control, and during coordinated motion.
You can read Axes Group Variables from the user program to monitor when positioning finishes for
the axes group.
In the descriptions, a variable name _MC_GRP[*] is used as an example, but the same information
applies to _MC1_GRP[*] and _MC2_GRP[*].
*1 This also includes states where processing is performed while in motion at a velocity of 0.
*2 This variable is FALSE when all composition axes in the axes group are within the in-position ranges set in the
axis parameters.
For details on the instruction to write the MC settings and the instruction to write the axis parame-
ters, refer to the MC_Write (Write MC Setting) and MC_WriteAxisParameter (Write Axis Parame-
ters) instruction in the NJ/NX-series Motion Control Instructions Reference Manual (Cat. No. W508).
Refer to the NX-series Position Interface Units Userās Manual (Cat. No. W524) for the differences
when you use NX-series Pulse Output Units.
Variable name Data type Meaning Function
_MC_AX[0-255].Details.Idle BOOL Idle TRUE when processing is not currently
performed for the command value,
except when waiting for in-position
state.* Idle and InPosWaiting are mutu-
ally exclusive. They cannot both be
TRUE at the same time.
_MC_AX[0-255].Details.InPosWaiting BOOL In-position
Waiting
TRUE when waiting for in-position state.
The in-position check is performed when
positioning for the in-position check.
Variable name Data type Meaning Function
_MC_GRP[0-63].Details.Idle BOOL Idle TRUE when processing is not currently
performed for the command value,
except when waiting for in-position
state.
*1
Idle and InPosWaiting are mutually
exclusive. They cannot both be TRUE at
the same time.
_MC_GRP[0-63].Details.InposWaiting BOOL In-position
Waiting
TRUE when waiting for in-position state
for any composition axis.
*2
The in-position check is performed when
positioning for the in-position check.