Function - Omron Sysmac NY-series Instruction & Reference Manual

Industrial pc platform, motion control
Hide thumbs Also See for Sysmac NY-series:
Table of Contents

Advertisement

Output Variables
Name
Meaning
Enabled
Enable
Busy
Executing
CalcPosition
Calculated
Position
Error
Error
ErrorID
Error Code
*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
Enabled
When Enable changes to TRUE.
Busy
When Enable changes to TRUE.
Error
When there is an error in the execution condi-
tions or input parameters for the instruction.
In-Out Variables
Name
Axis
Axis
*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.
NY-series Motion Control Instructions Reference Manual (W561)
Data type
Valid range
BOOL
TRUE or FALSE
BOOL
TRUE or FALSE
LREAL
Negative number,
positive number, or
BOOL
TRUE or FALSE
WORD
Timing for changing to TRUE
Meaning
Data type
_sAXIS_REF
3 Axis Command Instructions
TRUE when the axis is being controlled.
TRUE when the instruction is acknowledged.
Contains the position for the specified time stamp.
The unit is command units.
0
TRUE while there is an error.
Contains the error code when an error occurs.
*2
A value of 16#0000 indicates normal execution.
Timing for changing to FALSE
After one period when Enable is FALSE.
When Error changes to TRUE.
When Enable changes to FALSE.
When Error changes to TRUE.
When the error is cleared.
Valid
range
---
Specify the axis.
Description
*1
Description
*1*2
3-437
3

Advertisement

Table of Contents
loading

Table of Contents