Name Meaning
Data
type
Valid
range
Description
ErrorID Error Code WORD
*1
Contains the error code when an error occurs.
A value of 16#0000 indicates normal execution.
*1. The upper four digits of the event code give the error code for ErrorID. Refer to the NY
-series Troubleshooting Manual
(Cat. No. W564) for the event codes.
Output Variable Update Timing
Name Timing for changing to TRUE Timing for changing to FALSE
Done When the axis has decelerated to a stop.
• When Execute is TRUE and changes to
F
ALSE.
• After one period when Execute is FALSE.
Busy When Execute changes to TRUE.
• When Done changes to TRUE.
• When Error changes to TRUE.
• When CommandAborted changes to TRUE.
CommandAborted
• When this instruction is canceled because an-
other MC_Stop instruction was executed with
the Buf
fer Mode set to Aborting.
• When this instruction is canceled due to an er-
ror.
• When Execute is TRUE and changes to
FALSE.
• After one period when Execute is FALSE.
Error When there is an error in the execution condi-
tions or input parameters for the instruction.
When the error is cleared.
In-Out Variables
Name Meaning Data type
Valid
range
Description
Axis Axis _sAXIS_REF ---
Specifies the axis.
*1
*1. Specify a user-defined Axis Variable that was created in the Axis Basic Settings of the Sysmac Studio (default: MC_Ax-
is*) or a system-defined axis variable name (_MC_AX[*]).
If you use Sysmac Studio version 1.29 or higher
, you can specify the system-defined axis variable name for AT specifi-
cation of a user-defined variable. This will allow you to specify the user-defined variable.
If you use Sysmac Studio version 1.28 or lower, do not specify any user-defined variable created in the variable table.
Function
• You can execute the MC_ImmediateStop instruction under any conditions.
For example, you can use this instruction to stop an axis immediately even if it is decelerating to a
stop for an error
.
You cannot execute the MC_Stop instruction while Status.ErrorStop (Error Deceleration Stopping) is
TRUE, but you can execute the MC_ImmediateStop instruction.
• When this instruction is executed, the axis stops immediately according to StopMode (Stopping
Mode Selection). CommandAborted changes to TRUE for the instruction that is currently in opera-
tion.
• Status.ErrorStop (Error Deceleration Stopping) in the axis status changes to TRUE when this in-
struction is executed and an Immediate Stop Instruction Executed error (error code: 5485 hex) oc-
curs.
3 Axis Command Instructions
3-150
NY-series Motion Control Instructions Reference Manual (W561)