Output Variables
Name Meaning Data type Valid range Description
Enabled Enable BOOL TRUE or FALSE TRUE when the axis is being controlled.
Busy Executing BOOL TRUE or FALSE TRUE when the instruction is acknowledged.
CalcPosition Calculated
Position
LREAL Negative number,
positive number
, or
0
Contains the position for the specified time stamp.
The unit is command units.
*1
Error Error BOOL TRUE or FALSE 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
Enabled When Enable changes to TRUE.
• After one period when Enable is F
ALSE.
• When Error changes to TRUE.
Busy When Enable changes to TRUE.
• When Enable changes to FALSE.
• When Error changes to TRUE.
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 ---
Specify the axis.
*1*2
*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.
*2. Specify the encoder axis that is assigned to the NX-series Encoder Input Unit or the axis for the OMRON 1S-series
Servo Drive with built-in EtherCAT communications.
Function
• The MC_TimestampToPos instruction calculates the actual current position at the time stamp that is
specified by the input variable based on the actual current position and time stamp of the axis.
•
For the axis, specify an NX-series Encoder Input Unit.
• If the Count Mode is set to Linear Mode in the axis parameters and an overflow or underflow occurs
in the calculated position, the calculated value will be the underflow value or the overflow value. In
this case, no error will occur.
3 Axis Command Instructions
3-437
NY-series Motion Control Instructions Reference Manual (W561)
MC_TimeStampToPos
3
Function