Output Variables
Name Meaning
Data
type
Valid
range
Description
Enabled Enable BOOL TRUE or
F
ALSE
TRUE while the axis is being controlled.
InZone In Zone BOOL TRUE or
F
ALSE
TRUE when the axes position is within the zone.
Busy Executing BOOL TRUE or
F
ALSE
TRUE when the instruction is acknowledged.
Error Error BOOL TRUE or
F
ALSE
TRUE while there is an error.
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
Enabled When Enable changes to TRUE. When Enable changes to F
ALSE.
InZone When the zone is entered.
• When the zone is exited.
• When Enable changes to F
ALSE.
Busy When Enable changes to TRUE.
• When Error changes to TRUE.
• When Enable changes to 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
• If the axis command position or actual current position is above the FirstPosition and below the
LastPosition (i.e., if it is in the specified zone) when Enable of this instruction is TRUE, the output
variable InZone will change to TRUE.
Y
ou can use ReferenceType (Position Type Selection) to set either the command position or actual
position as the axis information to monitor.
• You can perform zone monitoring for any axis type.
• If FirstPosition or LastPosition is changed while Enable is TRUE, the new value is applied in the pe-
riod in which it is changed.
3 Axis Command Instructions
3-356
NY-series Motion Control Instructions Reference Manual (W561)