NameMeaning Data type Valid range DefaultDescription
EnableEnableBOOL TRUE or FALSE FALSE The device is ready for operation when
Enable is TRUE, and not ready when it is
FALSE.
Output Variables
NameMeaning Data type Valid rangeDescription
StatusServo ON BOOL TRUE or FALSE TRUE when the device is ready for operation.
BusyExecuting BOOL TRUE or FALSE TRUE when the instruction is acknowledged.
ErrorErrorBOOL TRUE or FALSE TRUE while there is an error.
ErrorIDError Code WORD
*
Contains the error code when an error occurs.
A value of 16#0000 indicates normal execution.
NameTiming for changing to TRUETiming for changing to FALSE
StatusWhen the specified axis becomes
ready for operation.
• When operation ready status for the
specified axis is cleared.
• When Error changes to TRUE.
Bu
syWhen Enable changes to TRUE.• W
hen Enable changes to FALSE.
• When Error changes to TRUE.
E
rrorWhen there is an error in the execution
conditions or input parameters for the
instruction.
When the error is cleared.
MC_Power_instance
Error
AxisAxis
EnableStatus
Busy
MC_Power
ErrorID
Level-2 section heading
Level-3 section heading
Manual Structure
Manual Structure
Some of the instructions described in this manual are common to the NJ/NX-series.
Therefore, note the following conditions.
• You cannot connect a CJ-series Unit with NY-series Controllers. In explanation of the instructions,
skip items and samples related to CJ-series Units.
• In explanation of the instructions, replace the term “CPU Unit” with “NY-series Controller.”
• NY-series Controllers have no SD Memory Card slots. Instead, they provide the Virtual SD Memory
Card function that uses the Windows shared folder. Therefore, replace the term “SD Memory Card”
with “Virtual SD Memory Card.”
Refer to the NY-series Industrial Panel PC / Industrial Box PC Software User’s Manual (Cat. No.
W558) and NY-series Industrial Panel PC / Industrial Box PC Setup User’s Manual (Cat. No. W568)
for details on the Virtual SD Memory Card function.
Page Structure
The following page structure is used in this manual.
4
NY-series Motion Control Instructions Reference Manual (W561)
Special information
Icons indicate
precautions, additional
information, or reference
information.
Level-2 section heading
Level-1 section number
Level-3 section heading
The level-1 section number
is given.
The level-2 section heading
is given.
The level-3 section heading
is given.
3-3
3
Axis Command Instructions
NJ-series Motion Control Instructions Reference Manual (W508)
r
ew
oP
_
C
M
3
noitcnuF
* Specify an Axis Variable that was created in the Axis Basic Settings of the Sysmac Studio. (The default axis variable names
are MC_Axis***.)
• When
Enable changes to TRUE, the axis specified by Axis is made ready to operate.
You can control the axis when it is ready to operate.
• When Enable changes to FALSE, the ready status is cleared for the axis specified by Axis.
You cannot control the axis after the ready status is cl eared because it will not acknowledge operation commands. Also, an error occurs if a motion command is executed for an axis for which the
ready status is cleared. You can execute the MC_Power (Power Servo) and MC_Reset (Reset Axis
Error) instructions even for axes that are not ready.
• You can use this instruction to disable the operation of axes while they are in motion. In this case,
CommandAborted will change to TRUE. Output of the operation comman
d will stop and the axis will
not longer be ready for operation.
• If home is not defined for a Servomotor with an absolute encoder, compensation is performed using
the absolute encoder home offset to define home when the axis is ready to operate.
For details on the absolute encoder home offset, refer to the
NJ-series CPU Unit Motion Control
U
ser’s Manual (Cat. No. W507).
Precautions for Correct UsePrecautions for Correct Use
• You can use this instruction for servo axes and virtual servo axes. If the instruction is used for
encoder axes or virtual encoder axes, an error will occur.
• Executing this Instruction for the Master Axis of Synchronized Control
When master axis operation is disabled for a vertical axis, the position of the master axis may
change rapidly. This may cause the motion of th e slave axis to change rapidly. Take suitable
measures to prevent the slave axis from moving rapidly, such as applying a brake to the master axis or leaving master axis operation enabled until after synchronized control is completed.
• W
hen Enable changes to TRUE, Busy (Executing) changes to TRUE to indicate that the instruction
was acknowledged.
• After the axis becomes ready for operation, Status (Ser vo ON) changes to TRUE.
• W
hen Enable changes to FALSE, Busy (Executing) changes to FALSE. Status (Servo ON) changes
t
o FALSE when ready status is cleared. Status (Servo ON) outputs the axis ready status regardless
o
f whether Enable is TRUE or FALSE.
In-Out
Variables
NameMeaning Data type Valid rangeDescription
AxisAxis_sAXIS_REF ---
Specify the axis.
*
Function
Timing Charts
Enable
Status
Busy
The specified axis becomes
ready for operation.
Rea
dy status is cleared for the
specified axis.
Manual Structure
Special Information
NY-series Motion Control Instructions Reference Manual (W561)
Note These pages are for illustrative purposes only. They may not literally appear in this manual.
Special information in this manual is classified as follows:
Precautions for Safe Use
Precautions on what to do and what not to do to ensure safe usage of the product.
Precautions for Correct Use
Precautions on what to do and what not to do to ensure proper operation and performance.
Additional Information
Additional information to read as required.
This information is provided to increase understanding or make operation easier
Information on dif
and for different versions of the Sysmac Studio is given.
Version Information
ferences in specifications and functionality for Controller with different unit versions
.
5
Manual Structure
6
NY-series Motion Control Instructions Reference Manual (W561)
Sections in this Manual
1
2
3
4
5
A
I
1
2
3
4
5
A
I
Introduction to Motion Control Instructions
V
ariables and Instructions
Axis Command Instructions
Axes Group Instructions
Common Command Instructions
Appendices
Index
Sections in this Manual
NY-series Motion Control Instructions Reference Manual (W561)
Special Information .......................................................................................................................................... 5
Sections in this Manual ........................................................................................... 7
Terms and Conditions Agreement........................................................................ 13
Warranty, Limitations of Liability ....................................................................................................................13
Function ........................................................................................................................................................3-4
Function ........................................................................................................................................................3-9
Function ......................................................................................................................................................3-19
Function ......................................................................................................................................................3-45
Function ......................................................................................................................................................3-50
Function ......................................................................................................................................................3-55
Function ......................................................................................................................................................3-82
Function ......................................................................................................................................................3-90
Function ....................................................................................................................................................3-106
Function .................................................................................................................................................... 3-115
Function ....................................................................................................................................................3-141
Function ....................................................................................................................................................3-150
Function ....................................................................................................................................................3-162
Function ....................................................................................................................................................3-168
Function ....................................................................................................................................................3-178
Function ....................................................................................................................................................3-233
Function ....................................................................................................................................................3-240
Precautions for Correct Use .....................................................................................................................3-245
Function ....................................................................................................................................................3-248
Function ....................................................................................................................................................3-270
Function ....................................................................................................................................................3-290
Function ....................................................................................................................................................3-297
Function ....................................................................................................................................................3-319
Function ....................................................................................................................................................3-330
Function ....................................................................................................................................................3-337
Function ....................................................................................................................................................3-350
Function ....................................................................................................................................................3-356
Function ....................................................................................................................................................3-364
NY-series Motion Control Instructions Reference Manual (W561)
CONTENTS
Function ....................................................................................................................................................3-382
Function ....................................................................................................................................................3-387
Function ....................................................................................................................................................3-393
Function ....................................................................................................................................................3-403
Function ....................................................................................................................................................3-409
Function ....................................................................................................................................................3-413
Function ....................................................................................................................................................3-418
Function ....................................................................................................................................................3-437
Function ....................................................................................................................................................3-450
Function ....................................................................................................................................................3-460
Function ........................................................................................................................................................4-3
Function ........................................................................................................................................................4-7
Function ......................................................................................................................................................4-13
Function ......................................................................................................................................................4-42
Function ......................................................................................................................................................4-45
Function ......................................................................................................................................................4-49
Function ......................................................................................................................................................4-76
Function ......................................................................................................................................................4-83
Function ......................................................................................................................................................4-87
Function ......................................................................................................................................................4-92
Function ......................................................................................................................................................4-96
Function ....................................................................................................................................................4-101
Function ....................................................................................................................................................4-107
Function ........................................................................................................................................................5-3
Function ........................................................................................................................................................5-9
Function ......................................................................................................................................................5-16
Function ......................................................................................................................................................5-20
Function ......................................................................................................................................................5-48
Function ......................................................................................................................................................5-63
Appendices
A-1 Instructions for Which Multi-execution Is Supported ....................................................... A-2
A-1-1
A-1-2 State Transitions and Instructions for which Multi-execution Is Supported................................ A-4
A-2 Connecting to NX Units...................................................................................................... A-10
A-3 Version Information ............................................................................................................ A-11
Index
12
Axis and Axes Group Status ...................................................................................................... A-2
NY-series Motion Control Instructions Reference Manual (W561)
Terms and Conditions Agreement
Terms and Conditions Agreement
Warranty, Limitations of Liability
Warranties
Exclusive Warranty
Omron’s exclusive warranty is that the Products will be free from defects in materials and work-
manship for a period of twelve months from the date of sale by Omron (or such other period ex-
pressed in writing by Omron). Omron disclaims all other warranties, express or implied.
Limitations
OMRON MAKES NO WARRANTY OR REPRESENTATION, EXPRESS OR IMPLIED, ABOUT
NON-INFRINGEMENT, MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE OF
THE PRODUCTS. BUYER ACKNOWLEDGES THAT IT ALONE HAS DETERMINED THAT THE
PRODUCTS WILL SUITABLY MEET THE REQUIREMENTS OF THEIR INTENDED USE.
Omron further disclaims all warranties and responsibility of any type for claims or expenses based
on infringement by the Products or otherwise of any intellectual property right.
Buyer Remedy
Omron’s sole obligation hereunder shall be, at Omron’s election, to (i) replace (in the form originally
shipped with Buyer responsible for labor charges for removal or replacement thereof) the non-com-
plying Product, (ii) repair the non-complying Product, or (iii) repay or credit Buyer an amount equal
to the purchase price of the non-complying Product; provided that in no event shall Omron be re-
sponsible for warranty, repair, indemnity or any other claims or expenses regarding the Products
unless Omron’s analysis confirms that the Products were properly handled, stored, installed and
maintained and not subject to contamination, abuse, misuse or inappropriate modification. Return
of any Products by Buyer must be approved in writing by Omron before shipment. Omron Compa-
nies shall not be liable for the suitability or unsuitability or the results from the use of Products in
combination with any electrical or electronic components, circuits, system assemblies or any other
materials or substances or environments. Any advice, recommendations or information given orally
or in writing, are not to be construed as an amendment or addition to the above warranty.
See http://www.omron.com/global/ or contact your Omron representative for published information.
Limitation on Liability; Etc
OMRON COMPANIES SHALL NOT BE LIABLE FOR SPECIAL, INDIRECT, INCIDENTAL, OR CON-
SEQUENTIAL DAMAGES, LOSS OF PROFITS OR PRODUCTION OR COMMERCIAL LOSS IN ANY
NY-series Motion Control Instructions Reference Manual (W561)
13
Terms and Conditions Agreement
WAY CONNECTED WITH THE PRODUCTS, WHETHER SUCH CLAIM IS BASED IN CONTRACT,
W
ARRANTY, NEGLIGENCE OR STRICT LIABILITY.
Further, in no event shall liability of Omron Companies exceed the individual price of the Product on
which liability is asserted.
Application Considerations
Suitability of Use
Omron Companies shall not be responsible for conformity with any standards, codes or regulations
which apply to the combination of the Product in the Buyer
er’s request, Omron will provide applicable third party certification documents identifying ratings and
limitations of use which apply to the Product. This information by itself is not sufficient for a complete
determination of the suitability of the Product in combination with the end product, machine, system, or
other application or use. Buyer shall be solely responsible for determining appropriateness of the par-
ticular Product with respect to Buyer’s application, product or system. Buyer shall take application re-
sponsibility in all cases.
’s application or use of the Product. At Buy-
NEVER USE THE PRODUCT FOR AN APPLICATION INVOLVING SERIOUS RISK TO LIFE OR
PROPERTY OR IN LARGE QUANTITIES WITHOUT ENSURING THAT THE SYSTEM AS A WHOLE
HAS BEEN DESIGNED TO ADDRESS THE RISKS, AND THAT THE OMRON PRODUCT(S) IS
PROPERLY RATED AND INSTALLED FOR THE INTENDED USE WITHIN THE OVERALL EQUIP-
MENT OR SYSTEM.
Programmable Products
Omron Companies shall not be responsible for the user’s programming of a programmable Product, or
any consequence thereof.
Disclaimers
Performance Data
Data presented in Omron Company websites, catalogs and other materials is provided as a guide for
the user in determining suitability and does not constitute a warranty
Omron’s test conditions, and the user must correlate it to actual application requirements. Actual per-
formance is subject to the Omron’s Warranty and Limitations of Liability.
. It may represent the result of
14
Change in Specifications
Product specifications and accessories may be changed at any time based on improvements and oth-
er reasons. It is our practice to change part numbers when published ratings or features are changed,
or when significant construction changes are made. However
NY-series Motion Control Instructions Reference Manual (W561)
, some specifications of the Product may
Terms and Conditions Agreement
be changed without any notice. When in doubt, special part numbers may be assigned to fix or estab-
lish key specifications for your application. Please consult with your Omron’
time to confirm actual specifications of purchased Product.
s representative at any
Errors and Omissions
Information presented by Omron Companies has been checked and is believed to be accurate; how-
ever
, no responsibility is assumed for clerical, typographical or proofreading errors or omissions.
NY-series Motion Control Instructions Reference Manual (W561)
15
Safety Precautions
Safety Precautions
Refer to the following manuals for safety precautions.
NY-series
IPC Machine Controller
Industrial Panel PC
Hardware User
NY-series
IPC Machine Controller
Industrial Box PC
Hardware User
NY-series
IPC Machine Controller
Industrial Panel PC / Industrial
Box PC
Setup User
NY-series
IPC Machine Controller
Industrial Panel PC / Industrial
Box PC
Software User
NY-series
Instructions Reference Manual
NY-series
IPC Machine Controller
Industrial Panel PC / Industrial
Box PC
Motion Control User
NY-series
Motion Control Instructions
Reference Manual
’s Manual
’s Manual
’s Manual
’s Manual
’s Manual
W557
W556
W568
W558
W560
W559
W561
NY532-££££
NY512-££££
NY532-££££
NY512-££££
NY532-££££
NY512-££££
NY532-££££
NY512-££££
NY532-££££
NY512-££££
NY532-££££
NY512-££££
Learning the basic
specifications of the
NY-series Industrial
Panel PCs, including
introductory information, designing, installation, and maintenance.
Mainly hardware information is provided.
Learning the basic
specifications of the
NY-series Industrial
Box PCs, including
introductory information, designing, installation, and maintenance.
Mainly hardware information is provided.
Learning about initial
setting of the NY-series Industrial PCs
and preparations to
use Controllers.
Learning how to program and set up the
Controller functions
of an NY-series Industrial PC.
Learning detailed
specifications on the
basic instructions of
an NY
-series Indus-
trial PC.
Learning about motion control settings
and programming
concepts of an NYseries Industrial PC.
Learning about the
specifications of the
motion control instructions of an NY
series Industrial PC.
-
An introduction to the entire NY-series system is provided along with the following information on the Industrial Panel PC.
• Features and system configuration
• Introduction
• Part names and functions
• General specifications
• Installation and wiring
• Maintenance and inspection
An introduction to the entire NY-series system is provided along with the following information on the Industrial Box PC.
• Features and system configuration
• Introduction
• Part names and functions
• General specifications
• Installation and wiring
• Maintenance and inspection
The following information is provided on an
introduction to the entire NY-series system.
• Two OS systems
• Initial settings
• Industrial PC Support Utility
• NYCompolet
• Industrial PC API
• Backup and recovery
The following information is provided on the
NY-series Controller functions.
• Controller operation
• Controller features
• Controller settings
• Programming based on IEC 61131-3 lan-
guage specifications
The instructions in the instruction set (IEC
61131-3 specifications) are described.
The settings and operation of the Controller
and programming concepts for motion control are described.
The motion control instructions are described.
22
NY-series Motion Control Instructions Reference Manual (W561)
NY-series
IPC Machine Controller
Industrial Panel PC
/ Industrial
Box PC
Built-in EtherCA
Manual
NY-series
IPC Machine Controller
Industrial Panel PC
/ Industrial
Box PC
Built-in EtherNet/IP™ Port Us-
’s Manual
er
NJ/NY-series
NC Integrated Controller
’s Manual
User
NJ/NY-series
G code
Instructions Reference Manual
NY-series
roubleshooting Manual
T
Sysmac Studio Version 1
Operation Manual
CNC Operator
Operation Manual
NX-series
EtherCA
User’s Manual
T® Port User’s
T® Coupler Unit
W562
W563
O030NJ501-5300
O031NJ501-5300
W564
W504SYSMAC
O032
W519
NY532-££££
NY512-££££
NY532-££££
NY512-££££
NY532-5400
NY532-5400
NY532-££££
NY512-££££
-SE2£££
SYSMAC-RTNC0£££D
NX-ECC£££
Using the built-in
EtherCAT port in an
NY-series Industrial
PC.
Using the built-in
EtherNet/IP port in
an NY-series Industrial PC.
Performing numerical
control with NJ/NYseries Controllers.
Learning about the
specifications of the
G code/M code instructions.
Learning about the
errors that may be
detected in an NYseries Industrial PC.
Learning about the
operating procedures
and functions of the
Sysmac Studio.
Learning an introduction of the CNC Operator and how to
use it.
Learning how to use
the NX-series EtherCAT Coupler Unit
and EtherCAT Slave
Terminals.
Information on the built-in EtherCAT port is
provided.
This manual provides an introduction and
provides information on the configuration,
features, and setup.
Information on the built-in EtherNet/IP port
is provided.
Information is provided on the basic setup,
tag data links, and other features.
Describes the functionality to perform the
numerical control.
The G code/M code instructions are described.
Concepts on managing errors that may be
detected in an NY-series Controller and information on individual errors are described.
Describes the operating procedures of the
Sysmac Studio.
An introduction of the CNC Operator, installation procedures, basic operations, connection operations, and operating procedures for main functions are described.
The following items are described: the overall system and configuration methods of an
EtherCAT Slave Terminal (which consists of
an NX-series EtherCAT Coupler Unit and
NX Units), and information on hardware,
setup, and functions to set up, control, and
monitor NX Units through EtherCAT.
Related Manuals
NY-series Motion Control Instructions Reference Manual (W561)
Referencing lists of
the data that is required to configure
systems with NX-series Units.
Learning how to use
the EtherCA
I/O terminals.
Learning how to use
the Servomotors/
Servo Drives with
built-in EtherCAT
Communications.
Learning how to use
the AC Servomotors/
Servo Drives with
built-in EtherCAT
Communications.
T remote
Describes the hardware, setup methods,
and functions of the NX Units.
Manuals are available for the following
Units.
Digital I/O Units, Analog I/O Units, System
Units, Position Interface Units, Communications Interface Units, Load Cell Input Unit,
and IO-Link Master Units.
Lists of the power consumptions, weights,
and other NX Unit data that is required to
configure systems with NX-series Units are
provided.
Describes the hardware, setup methods
and functions of the EtherCAT remote I/O
terminals.
Describes the hardware, setup methods
and functions of the Servomotors/Servo
Drives with built-in EtherCAT Communications.
Describes the hardware, setup methods
and functions of the AC Servomotors/Servo
Drives with built-in EtherCAT Communications.
The Linear Motor Type models and dedicated models for position control are available
in G5-series.
24
NY-series Motion Control Instructions Reference Manual (W561)
Revision History
W561-E1-05
R
evision code
Cat. No.
A manual revision code appears as a suffix to the catalog number on the front and back covers of the
manual.
Revision History
Revision
code
01September 2016 Original production
02April 2017Corrected mistakes.
03October 2017Corrected mistakes.
04January 2019Corrected mistakes.
05July 2019
DateRevised content
• Made changes accompanying the addition of 1S-series AC Servomotors/
Servo Drives.
• Made changes accompanying th addition of the MC_CamMonitor (Cam Mon-
itor) instruction and the MC_Of
instruction.
• Made changes accompanying the release of Sysmac Studio version 1.29.
fsetPosition (Position Offset Compensation)
NY-series Motion Control Instructions Reference Manual (W561)
25
Revision History
26
NY-series Motion Control Instructions Reference Manual (W561)
1
Introduction to Motion Control Instructions
This section gives an introduction to motion control instructions supported by NY-series Controller
1-1 Motion Control Instructions .......................................................................... 1-2
1-1-1 Function Blocks for PLCopen® Motion Control............................................... 1-2
1-1-2 Overview of Motion Control Instructions ......................................................... 1-2
1-1-3 Precautions for Master and Auxiliary Axes in Synchronized Control.............. 1-6
1-2 Basic Information on Motion Control Instructions .....................................1-8
1-2-1 Motion Control Instruction Names .................................................................. 1-8
1-2-2 Languages for Motion Control Instructions ..................................................... 1-8
1-2-3 Motion Control Instruction Locations .............................................................. 1-9
1-2-4 Multi-execution of Motion Control Instructions.............................................. 1-17
1-2-5 Online Editing of Motion Control Instructions................................................ 1-18
1-2-6 Changes in the Operating Mode of the Controller ........................................ 1-18
s.
1
NY-series Motion Control Instructions Reference Manual (W561)
1-1
1 Introduction to Motion Control Instructions
1-1
1-1-1
Motion Control Instructions
Motion control instructions are used in the user program to execute motion controls for an NY-series
Controller. These instructions are defined as function blocks.
The motion control instructions of the MC Function Module are based on the technical specifications of
function blocks for PLCopen® motion control.
There are two types of motion control instructions: PLCopen®-defined instructions and instructions that
are unique to the MC Function Module.
This section provides an overview of the PLCopen® motion control function blocks and motion control
instructions.
For details on motion control instructions, refer to the NY-series Industrial Panel PC / Industrial Box PC
Motion Control User’s Manual (Cat. No. W559).
Refer to the NX-series Position Interface Units User’s Manual (Cat. No. W524) for information on us-
ing the NX-series Position Interface Units.
Function Blocks for PLCopen® Motion Control
1-1-2
PLCopen® standardizes motion control function blocks to define a program interface for the languages
specified in IEC 61
Single-axis positioning, electronic cams, and multi-axes coordinated control are defined along with ba-
sic procedures for executing instructions.
By using PLCopen® motion control function blocks, programming can be more easily reused without
hardware dependence.
Costs for training and support are also reduced.
Additional Information
PLCopen
PLCopen® is a promotion body for IEC 61
worldwide membership structure.
IEC 61131-3 is an international standard for PLC programming.
PLCopen® Japan is the promotion committee for the Japanese market and consists of members that have concerns related to the Japanese market.
• The website of PLCopen® Japan is http://www.plcopen-japan.jp/.
• The website of PLCopen® Europe (headquarters) is http://www.plcopen.org/.
131-3 (JIS B 3503).
®
131-3 that has its headquarters in Europe and a
Overview of Motion Control Instructions
1-2
This section describes items defined in the technical specifications of function blocks for PLCopen
motion control and provides an overview of their application in the MC Function Module.
Types of Motion Control Instructions
The following table list the different types of motion control instructions.
NY-series Motion Control Instructions Reference Manual (W561)
®
Loading...
+ 714 hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.