Name Meaning Data type Valid range
De-
fault
Description
ReferenceType
(Reserved)
Position
T
ype Selec-
tion
_eMC_REFER-
ENCE_TYPE
1: _mcFeedback
1
*3
(Reserved)
StopMode Stopping
Mode Se-
lection
_eMC_STOP_MOD
E
1: _mcImmediate-
Stop
4: _mcNonStop
4
*3
Specify the stopping method.
1: Perform an immediate stop
4: Do not stop
*1. Refer to W
indowOnly on page 3-367 for details.
*2. Refer to Unit Conversion Settings in the NY-series Industrial Panel PC / Industrial Box PC Motion Control User’s
Manual (Cat. No. W559) for information on command units.
*3. The default value for an enumeration variable is actually not the number, but the enumerator.
Output Variables
Name Meaning
Data
type
Valid
range
Description
Done Done BOOL TRUE or
FALSE
TRUE when the instruction is completed.
Busy Executing BOOL TRUE or
F
ALSE
TRUE when the instruction is acknowledged.
RecordedPosition Latched Posi-
tion
LREAL Negative
number
,
positive
number, or
0
Contains the latched position.
The unit is in command units.
*1
CommandAborted Command
Aborted
BOOL TRUE or
F
ALSE
TRUE when the instruction is aborted.
Error Error BOOL TRUE or
F
ALSE
TRUE while there is an error.
ErrorID Error Code WORD
*2
Contains the error code when an error occurs.
A value of 16#0000 indicates normal execution.
*1. Refer to Unit Conversion Settings in the NY
-series Industrial Panel PC / Industrial Box PC Motion Control User’s
Manual (Cat. No. W559) for information on command units.
*2. 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 latched position is recorded and the
instruction is completed after the trigger signal
occurs.
• If stopping is specified, when the axis stops at
the latched position after the latched position
is recorded and the instruction is completed
after the trigger signal occurs.
• 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.
3 Axis Command Instructions
3-362
NY-series Motion Control Instructions Reference Manual (W561)