3 Axis Command Instructions
MC_ImmediateStop
The MC_ImmediateStop instruction stops an axis according to the stopping mode that is set with the
StopMode (Stopping Mode Selection) input variable regardless of the status of the axis.
Instruction
Name
MC_ImmediateStop Immediate
Stop
Variables
Input Variables
Name
Meaning
Execute
Execute
StopMode
Stopping
Mode
Selection
* The default value for an enumeration variable is actually not the number, but the enumerator.
Output Variables
Name
Meaning
Done
Done
Busy
Executing
CommandAborted
Command
Aborted
Error
Error
ErrorID
Error Code
* Refer to the NY-series Troubleshooting Manual (Cat. No. W564).
3-142
FB/
Graphic expression
FUN
FB
MC_ImmediateStop_instance
MC_ImmediateStop
Axis
Execute
StopMode
Data type
Valid range
BOOL
TRUE or FALSE
_eMC_
1: _mcImmediateStop
STOP_-
2: _mcImmediateStopFEReset
MODE
3: _mcFreeRunStop
Data type
Valid range
BOOL
TRUE or
FALSE
BOOL
TRUE or
FALSE
BOOL
TRUE or
FALSE
BOOL
TRUE or
FALSE
WORD
*
MC_ImmediateStop_instance (
Axis :=parameter,
Execute :=parameter,
Axis
StopMode :=parameter,
Done
Done =>parameter,
Busy
Busy =>parameter,
CommandAborted
CommandAborted
Error
=>parameter,
ErrorID
Error =>parameter,
ErrorID =>parameter
);
Default
FALSE
The instruction is executed when
Execute changes to TRUE.
Select the stopping mode.
*
1
1: Perform an immediate stop.
2: Perform an immediate stop and
reset the following error counter.
3: Perform an immediate stop and
turn OFF the Servo.
Description
TRUE when the instruction is completed.
TRUE when the instruction is acknowledged.
TRUE when the instruction is aborted.
TRUE while there is an error.
Contains the error code when an error occurs. A value
of 16#0000 indicates normal execution.
NY-series Motion Control Instructions Reference Manual (W561)
ST expression
Description