OMRON NJ501-5300, NY532-5400 Reference Manual

Machine Automation Controller Industrial PC Platform
NJ/NY-series
G code Instructions Reference Manual
NJ501-5300 NY532-5400
O031-E1-03
NOTE
1. All rights reserved. No part of this publication may be reproduced, stored in a retrieval system, or transmitted, in any form, or by any means, mechanical, electronic, photocopying, recording, or otherwise, without the prior written permission of OMRON.
2. No patent liability is assumed with respect to the use of the information contained herein.
Moreover, because OMRON is constantly striving to improve its high-quality products, the information contained
in this manual is subject to change without notice.
3. Every precaution has been taken in the preparation of this manual. Nevertheless, OMRON assumes no responsi­bility for errors or omissions. Neither is any liability assumed for damages resulting from the use of the information contained in this publication.
Trademarks
• Microsoft, Windows, Excel, and Visual Basic are either registered trademarks or trademarks of Microsoft Corpora­tion in the United States and other countries.
• EtherCAT® is registered trademark and patented technology, licensed by Beckhoff Automation GmbH, Germany.
• ODVA, CIP, CompoNet, DeviceNet, and EtherNet/IP are trademarks of ODVA.
• The SD and SDHC logos are trademarks of SD-3C, LLC.
• Intel and Intel Core are trademarks of Intel Corporation in the U.S. and / or other countries.
Other company names and product names in this document are the trademarks or registered trademarks of their respective companies.
Copyrights
Microsoft product screen shots used with permission from Microsoft.

Introduction

Thank you for purchasing an NJ/NY-series NC Integrated Controller. (“NJ/NY-series NC Integrated Controller” is sometimes abbreviated as “NC Integrated Controller”.)
This manual contains information that is necessary to use the NC Integrated Controller. Please read this manual and make sure you understand the functionality and performance of the NC Integrated Controller before you attempt to use it in a control system.
Keep this manual in a safe place where it will be available for reference during operation.
This manual only describes functions that are added to NJ501-5300 or NY532-5400.
When you use NJ501-5300, also consult manuals for the NJ-series listed in Related Manuals on page 21 for functions common to NJ501- Series including NJ501-1.
When you use NY532-5400, also consult manuals for the NY-series listed in Related Manuals on page 21 for functions common to NY532- Series including NY532-1.
Introduction
Intended Audience
This manual is intended for the following personnel, who must also have knowledge of electrical sys­tems (an electrical engineer or person with equivalent skills).
- Personnel in charge of introducing FA systems
- Personnel in charge of designing FA systems
- Personnel in charge of installing and maintaining FA systems
- Personnel in charge of managing FA systems and facilities
This manual is also intended for personnel who understand the following contents.
• For programming, this manual is intended for personnel who understand the programming language specifications in international standard IEC 61131-3 or Japanese standard JIS 3503.
• For NC programming, this manual is intended for personnel who understand the programming lan­guage specifications in international standard ISO 6983-1 or Japanese standard JIS 6315.
Applicable Products
This manual covers the following products.
• NJ-series NC Integrated Controller
NJ501-5300
• NY-series NC Integrated Controller
NY532-5400
NJ/NY-series G code Instructions Reference Manual (O031)
1

Relevant Manuals

Relevant Manuals
The following table lists the relevant manuals for this product. Read all of the manuals that are relevant to your system configuration and application before you use this product.
Most operations are performed from the Sysmac Studio and CNC Operator Automation Software.
Refer to the Sysmac Studio Version 1 Operation Manual (Cat. No. W504) for information on the Sys- mac Studio, and CNC Operator Operation Manual (Cat. No. O032) for the CNC Operator.

Relevant Manuals for NJ Series

Basic information
NJ-series CPU Unit
Hardware User’s Manual
Manual
NJ/NX-series CPU Unit Built-in
NJ/NX-series CPU Unit
Software User’s Manual
NJ/NX-series Instructions
Reference Manual
NJ/NX-series CPU Unit Motion
Control User’s Manual
Instructions Reference Manual
NJ/NX-series Motion Control
EtherCAT
NJ/NX-series CPU Unit Built-in
EtherNet/IP™ Port User’s Manual
NJ/NY-series NC Integrated
Controller User’s Manual
NJ/NY-series G code
Instructions Reference Manual
NJ/NX-series
Troubleshooting Manual
®
Port User’s Manual
Purpose of use
Introduction to NJ-series Controllers
Setting devices and hardware
Using motion control
Using EtherCAT
Using EtherNet/IP
Software settings
Using motion control
Using EtherCAT
Using EtherNet/IP
Using numerical control
Writing the user program
Using motion control 
Using EtherCAT
Using EtherNet/IP
Using numerical control 
Programming error processing
Testing operation and debugging
Using motion control
Using EtherCAT
Using EtherNet/IP
Using numerical control

2
NJ/NY-series G code Instructions Reference Manual (O031)
Purpose of use
Basic information
NJ-series CPU Unit
Hardware User’s Manual
NJ/NX-series CPU Unit
Software User’s Manual
Relevant Manuals
Manual
NJ/NX-series Instructions
Reference Manual
NJ/NX-series CPU Unit Motion
Control User’s Manual
NJ/NX-series Motion Control
Instructions Reference Manual
NJ/NX-series CPU Unit Built-in
EtherCAT
®
Port User’s Manual
EtherNet/IP™ Port User’s Manual
NJ/NX-series CPU Unit Built-in
NJ/NY-series NC Integrated
Controller User’s Manual
NJ/NY-series G code
Instructions Reference Manual
NJ/NX-series
Troubleshooting Manual
Learning about error management and
corrections
Maintenance
Using motion control
Using EtherCAT
Using EtherNet/IP
*1. Refer to the NJ/NX-series Troubleshooting Manual (Cat. No. W503) for the error management concepts and the error items. However,
refer to the manuals that are indicated with triangles () for details on errors corresponding to the products with the manuals that are indicated with triangles ().
*1
NJ/NY-series G code Instructions Reference Manual (O031)
3
Relevant Manuals

Relevant Manuals for NY Series

Basic information
NY-series Industrial Panel PC
Hardware User’s Manual
Purpose of use
NY-series Industrial Box PC
Hardware User’s Manual
Manual
NY-series Industrial Panel PC / Industrial Box PC
Setup User’s Manual
Software User’s Manual
NY-series Industrial Panel PC / Industrial Box PC
NY-series
Instructions Reference Manual
Motion Control User’s Manual
NY-series Industrial Panel PC / Industrial Box PC
NY-series Motion Control
Instructions Reference Manual
NY-series Industrial Panel PC / Industrial Box PC
Built-in EtherCAT Port User’s Manual
Built-in EtherNet/IP Port User’s Manual
NY-series Industrial Panel PC / Industrial Box PC
NC Integrated Controller User’s Manual
NJ/NY-series
G code Instructions Reference Manual
NJ/NY-series
Troubleshooting Manual
NY-series
Introduction to NY-series Panel PCs
Introduction to NY-series Box PCs
Setting devices and hardware
Using motion control
Using EtherCAT
Using EtherNet/IP
Making setup
Making initial settings
Preparing to use Controllers
Software settings
Using motion control
Using EtherCAT
Using EtherNet/IP
Using numerical control
Writing the user program
Using motion control 
Using EtherCAT
Using EtherNet/IP
Using CNC functions 
Programming error processing
Testing operation and debugging
Using motion control
Using EtherCAT
Using EtherNet/IP
Using numerical control
Learning about error management and
corrections
Maintenance
Using motion control
Using EtherCAT
Using EtherNet/IP
*1
*2


*1. Refer to the NY-series Industrial Panel PC / Industrial Box PC Setup User’s Manual (Cat. No. W568) for how to set up
and how to use the utilities on Windows.
*2. Refer to the NY-series Troubleshooting Manual (Cat. No. W564) for the error management concepts and the error items.
However, refer to the manuals that are indicated with triangles () for details on errors corresponding to the products with the manuals that are indicated with triangles ().
4
NJ/NY-series G code Instructions Reference Manual (O031)

Manual Structure

4-9
4 Installation and Wiring
NJ-series CPU Unit Hardware User’s Manual (W500)
stinUgnitnuoM3-4
4
stnenopmoCrellortnoCgnitcennoC1-3-4
4-3 Mounting Units
The Units that make up an NJ-series Controller can be connected simply by pressing the Units together and locking the sliders by moving them toward the back of the Units. The End Cover is connected in the same way to the Unit on the far right side of the Controller.
1 Join the Units so that the connectors fit exactly.
2 The yellow sliders at the top and bottom of each Unit lock the Units together. Move the sliders
toward the back of the Units as shown below until they click into place.
Precautions for Correct UsePrecautions for Correct Use
4-3-1 Connecting Controller Components
Connector
Hook
Hook holes
Slider
Lock
Release
Move the sliders toward the back until they lock into place.
Level 1 heading Level 2 heading Level 3 heading
Level 2 heading
A step in a procedure
Manual name
Special information
Level 3 heading
Page tab
Gives the current headings.
Indicates a procedure.
Icons indicate precautions, additional information, or reference information.
Gives the number of the main section.
The sliders on the tops and bottoms of the Power Supply Unit, CPU Unit, I/O Units, Special I/O Units, and CPU Bus Units must be completely locked (until they click into place) after connecting the adjacent Unit connectors.

Page Structure and Symbols

The following page structure and symbols are used in this manual.
Manual Structure
Note This illustration is only provided as a sample. It may not literally appear in this manual.
NJ/NY-series G code Instructions Reference Manual (O031)
5
Manual Structure
Precautions for Safe Use
Precautions for Correct Use
Additional Information
Version Information

Special Information

Special information in this manual is classified as follows:
Precautions on what to do and what not to do to ensure safe usage of the product.
Precautions on what to do and what not to do to ensure proper operation and performance.
Additional information to read as required.
This information is provided to increase understanding and ease of operation.
Information on differences in specifications and functionality for NC Integrated Controller with different unit versions and for different versions of the Sysmac Studio and the CNC Operator are given.
Note References are provided to more detailed or related information.
6
NJ/NY-series G code Instructions Reference Manual (O031)
1
2
3
4
A
1
2
3
4
A
Basic Information on NC Programming
G Code
M Code
PROGRAM CODES
Appendices

Sections in this Manual

Sections in this Manual
NJ/NY-series G code Instructions Reference Manual (O031)
7

CONTENTS

CONTENTS
Introduction ..............................................................................................................1
Intended Audience....................................................................................................................................... 1
Applicable Products..................................................................................................................................... 1
Relevant Manuals .....................................................................................................2
Relevant Manuals for NJ Series .................................................................................................................. 2
Relevant Manuals for NY Series.................................................................................................................. 4
Manual Structure ......................................................................................................5
Page Structure and Symbols....................................................................................................................... 5
Special Information...................................................................................................................................... 6
Sections in this Manual ...........................................................................................7
Terms and Conditions Agreement ........................................................................12
Warranty, Limitations of Liability ................................................................................................................ 12
Application Considerations ........................................................................................................................ 13
Disclaimers ................................................................................................................................................ 13
Safety Precautions .................................................................................................14
Precautions for Safe Use....................................................................................... 15
Precaution for Correct Use....................................................................................16
Regulations and Standards...................................................................................17
Versions ..................................................................................................................18
Checking Versions..................................................................................................................................... 18
Related Manuals .....................................................................................................21
Terminology ............................................................................................................ 24
Revision History .....................................................................................................25
Section 1 Basic Information on NC Programming
Instructions ............................................................................................................................................... 1-2
Instruction Parameters.............................................................................................................................. 1-5
G Code Descriptions.................................................................................................................................1-7
What is Modal?......................................................................................................................................... 1-9
Section 2 G Code
Interpolation Functions.................................................................................................................. 2-3
G00 Rapid Positioning.............................................................................................................................. 2-4
G01 Linear Interpolation ...........................................................................................................................2-6
G02, G03 Circular Interpolation................................................................................................................2-8
G31 Skip Function ..................................................................................................................................2-13
Dwell .............................................................................................................................................. 2-15
G04 Dwell ...............................................................................................................................................2-16
Feed Functions ............................................................................................................................. 2-17
Feedrate Function (F function) ............................................................................................................... 2-18
8
NJ/NY-series G code Instructions Reference Manual (O031)
CONTENTS
Acceleration Time, Deceleration Time, Jerk Time .................................................................................. 2-19
G09 Exact Stop ...................................................................................................................................... 2-20
G61 Exact Stop Mode ............................................................................................................................ 2-21
G64 Continuous-path Mode ................................................................................................................... 2-22
G500, G501 Multi-block Acceleration/Deceleration................................................................................2-24
Coordinate System ....................................................................................................................... 2-31
G52 Local Coordinate System Set......................................................................................................... 2-32
G53 Dimension Shift Cancel .................................................................................................................. 2-33
G54 to G59 Select Work Coordinate System......................................................................................... 2-34
G17, G18, G19 Plane Selection............................................................................................................. 2-35
G20 Inch Input, G21 Metric Input ........................................................................................................... 2-37
G90 Absolute Dimension, G91 Incremental Dimension ......................................................................... 2-38
Reference Point ............................................................................................................................ 2-39
G28 Return to Reference Point.............................................................................................................. 2-40
G30 Return to 2nd, 3rd and 4th Reference Point................................................................................... 2-42
Compensation Functions............................................................................................................. 2-43
G40, G41, G42 Tool Radius Compensation ........................................................................................... 2-44
G43, G44, G49 Tool Offset..................................................................................................................... 2-54
G50, G51 Scaling................................................................................................................................... 2-57
G50.1, G51.1 Mirroring........................................................................................................................... 2-59
G68, G69 Coordinate System Rotation.................................................................................................. 2-61
Utilities........................................................................................................................................... 2-63
G74 Left-handed Tapping Cycle ............................................................................................................. 2-64
G80 Fixed Cycle Cancel......................................................................................................................... 2-66
G84 Tapping Cycle ................................................................................................................................. 2-67
G98 Fixed Cycle Return to Initial Level .................................................................................................. 2-70
G99 Fixed Cycle Return to R Point Level............................................................................................... 2-71
Chamfer and Fillet Functions ................................................................................................................. 2-72
Section 3 M Code
Auxiliary Function Output.............................................................................................................. 3-3
M Code Descriptions................................................................................................................................ 3-6
Reservation Auxiliary Functions ................................................................................................... 3-7
M00 Program Stop ................................................................................................................................... 3-8
M01 Optional Stop.................................................................................................................................... 3-9
M02, M30 End of Program ..................................................................................................................... 3-10
Spindle Axis .................................................................................................................................. 3-11
Spindle Axis Rotation Function (S function)........................................................................................... 3-12
M03 Spindle CW .................................................................................................................................... 3-13
M04 Spindle CCW.................................................................................................................................. 3-14
M05 Spindle OFF ................................................................................................................................... 3-15
M19 Spindle Orientation......................................................................................................................... 3-16
Programming ................................................................................................................................ 3-19
M98 Subprogram Call ............................................................................................................................ 3-20
M99 Subprogram End ............................................................................................................................ 3-21
Section 4 PROGRAM CODES
4-1 Calculation and Logic Operation ......................................................................................... 4-2
4-1-1 Operator priority.......................................................................................................................... 4-2
4-1-2 Arithmetic operators.................................................................................................................... 4-2
4-1-3 Functions .................................................................................................................................... 4-3
4-1-4 Condition comparators................................................................................................................ 4-5
4-1-5 Conditional join operators........................................................................................................... 4-5
4-2 Branch and Repetition .......................................................................................................... 4-6
4-2-1 if/else .......................................................................................................................................... 4-6
4-2-2 switch/case ................................................................................................................................. 4-6
NJ/NY-series G code Instructions Reference Manual (O031)
9
CONTENTS
4-2-3 while............................................................................................................................................4-6
4-2-4 do/while....................................................................................................................................... 4-6
4-3 User Variables........................................................................................................................ 4-7
4-3-1 Local Variables (“L”) ....................................................................................................................4-7
4-3-2 Coordinate System Global Variables (“Q”).................................................................................. 4-7
4-3-3 Global Variables (“P”) ..................................................................................................................4-7
4-3-4 Variable Indirection......................................................................................................................4-7
Appendices
A-1 Program Parsing by CNC Operator .....................................................................................A-2
A-1-1 Intermediate code format ............................................................................................................A-2
A-1-2 Program Parsing Example ..........................................................................................................A-4
A-2 Version Information...............................................................................................................A-5
10
NJ/NY-series G code Instructions Reference Manual (O031)
CONTENTS
NJ/NY-series G code Instructions Reference Manual (O031)
11

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 workman­ship for a period of twelve months from the date of sale by Omron (or such other period expressed 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 responsible 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 Companies shall not be liable for the suitability or unsuitability or the results from the use of Products in combi­nation with any electrical or electronic components, circuits, system assemblies or any other materi­als 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 WAY CONNECTED WITH THE PRODUCTS, WHETHER SUCH CLAIM IS BASED IN CONTRACT, WARRANTY, 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.
12
NJ/NY-series G code Instructions Reference Manual (O031)

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’s application or use of the Product. At Buyer’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 com­plete determination of the suitability of the Product in combination with the end product, machine, sys­tem, or other application or use. Buyer shall be solely responsible for determining appropriateness of the particular Product with respect to Buyer’s application, product or system. Buyer shall take applica­tion responsibility in all cases.
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.
Terms and Conditions Agreement
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. It may represent the result of Omron’s test conditions, and the user must correlate it to actual application requirements. Actual perfor­mance is subject to the Omron’s Warranty and Limitations of Liability.
Change in Specifications
Product specifications and accessories may be changed at any time based on improvements and other reasons. It is our practice to change part numbers when published ratings or features are changed, or when significant construction changes are made. However, some specifications of the Product may be changed without any notice. When in doubt, special part numbers may be assigned to fix or establish key specifications for your application. Please consult with your Omron’s representative at any time to confirm actual specifications of purchased Product.
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.
NJ/NY-series G code Instructions Reference Manual (O031)
13

Safety Precautions

Safety Precautions
Refer to the following manuals for safety precautions.
NJ-series CPU Unit Hardware User’s Manual (Cat. No. W500)
NY-series Industrial Panel PC Hardware User’s Manual (Cat. No. W557)
NJ/NY-series NC Integrated Controller User’s Manual (Cat. No. O030)
CNC Operator Operation Manual (Cat. No. O032)
14
NJ/NY-series G code Instructions Reference Manual (O031)

Precautions for Safe Use

Refer to the following manuals for precautions for safe use.
NJ-series CPU Unit Hardware User’s Manual (Cat. No. W500)
NY-series Industrial Panel PC Hardware User’s Manual (Cat. No. W557)
NJ/NY-series NC Integrated Controller User’s Manual (Cat. No. O030)
CNC Operator Operation Manual (Cat. No. O032)
Numerical Control
• With CNC version 1.01 or lower, Tool Offset(G43/G44) compensates in Z-axis direction regardless of the specified plane (G17/G18/G19).
With CNC version 1.02 or higher, Tool Offset (G43/G44) compensates the position in the axis direc­tion that is vertical to the specified plane (G17/G18/G19).
In addition, if you select a plane with this instruction when the value of tool offset is other than 0, tool offset is canceled (G49).
If you upgrade the CNC version to version 1.02 or higher, confirm on the above change.
Precautions for Safe Use
NJ/NY-series G code Instructions Reference Manual (O031)
15

Precaution for Correct Use

Precaution for Correct Use
Refer to the following manuals for precautions for correct use.
NJ-series CPU Unit Hardware User’s Manual (Cat. No. W500)
NY-series Industrial Panel PC Hardware User’s Manual (Cat. No. W557)
NJ/NY-series NC Integrated Controller User’s Manual (Cat. No. O030)
CNC Operator Operation Manual (Cat. No. O032)
16
NJ/NY-series G code Instructions Reference Manual (O031)

Regulations and Standards

Refer to the following manuals for regulations and standards.
NJ-series CPU Unit Hardware User’s Manual (Cat. No. W500)
NY-series Industrial Panel PC Hardware User’s Manual (Cat. No. W557)
Regulations and Standards
NJ/NY-series G code Instructions Reference Manual (O031)
17

Versions

Versions
Hardware revisions and unit versions are used to manage the hardware and software in NJ/NY-series Units and EtherCAT slaves. The hardware revision or unit version is updated each time there is a change in hardware or software specifications. Even when two Units or EtherCAT slaves have the same model number, they will have functional or performance differences if they have different hard­ware revisions or unit versions.

Checking Versions

You can check versions on the ID information indications or with the Sysmac Studio.
Checking Unit Versions on ID Information Indications
The unit version is given on the ID information indication on the side of the product.
Checking the Unit Version of an NJ-series CPU Unit
The ID information on the NJ501-5300 is shown below.
ID information indication
CNC version
Unit model Unit version
NJ501 - 5300
CNC Ver.1.00
PORT1 MAC ADDRESS: PORT2 MAC ADDRESS:
Lot No. DDMYY xxxx
Ver.1.

 
Hardware revision
HW Rev.
MAC addressLot number and serial number
Checking the Unit Version of an NY-series Controller
The ID information on an NY-series NY52-1 Controller is shown below.
18
ID information indication
Unit version
CNC version

Ver.1. CNC Ver.1.00
NJ/NY-series G code Instructions Reference Manual (O031)
Versions
Checking Unit Versions with the Sysmac Studio
You can use the Sysmac Studio to check unit versions. The procedure is different for Units and for Eth­erCAT slaves.
Checking the Unit Version of an NJ-series CPU Unit
You can use the Production Information while the Sysmac Studio is online to check the unit version of a Unit. You can do this for the CPU Unit, CJ-series Special I/O Units, and CJ-series CPU Bus Units. You cannot check the unit versions of CJ-series Basic I/O Units with the Sysmac Studio.
Use the following procedure to check the unit version.
1 Double-click CPU/Expansion Racks under Configurations and Setup in the Multiview
Explorer. Or, right-click CPU/Expansion Racks under Configurations and Setup and select Edit from the menu.
The Unit Editor is displayed.
2 Right-click any open space in the Unit Editor and select Production Information.
The Production Information Dialog Box is displayed.
Checking the Unit Version of an NY-series Controller
You can use the Production Information while the Sysmac Studio is online to check the unit version of a Unit. You can only do this for the Controller.
1 Right-click CPU Rack under Configurations and Setup - CPU/Expansion Racks in the Multi-
view Explorer and select Production Information.
The Production Information Dialog Box is displayed.
Changing Information Displayed in Production Information Dialog Box
1 Click the Show Detail or Show Outline Button at the lower right of the Production Informa-
tion Dialog Box.
The view will change between the production information details and outline.
Outline View Detail View
The information that is displayed is different for the Outline View and Detail View. The Detail View displays the unit version, hardware version, and software versions. The Outline View displays only the unit version.
Note The hardware revision is separated by “/” and displayed on the right of the hardware version.
NJ/NY-series G code Instructions Reference Manual (O031)
19
Versions
Checking the Unit Version of an EtherCAT Slave
You can use the Production Information while the Sysmac Studio is online to check the unit version of an EtherCAT slave. Use the following procedure to check the unit version.
1 Double-click EtherCAT under Configurations and Setup in the Multiview Explorer. Or,
right-click EtherCAT under Configurations and Setup and select Edit from the menu.
The EtherCAT Tab Page is displayed.
2 Right-click the master on the EtherCAT Tab Page and select Display Production Information.
The Production Information Dialog Box is displayed.
The unit version is displayed after “Rev.”
Changing Information Displayed in Production Information Dialog Box
1 Click the Show Detail or Show Outline Button at the lower right of the Production Informa-
tion Dialog Box.
The view will change between the production information details and outline.
Outline View Detail View
20
NJ/NY-series G code Instructions Reference Manual (O031)

Related Manuals

Related Manuals
The following manuals are related. Use these manuals for reference.
Manual name Cat. No. Model numbers Application Description
NJ-series CPU Unit Hardware User’s Manual
NJ/NX-series CPU Unit Software User’s Manual
NJ/NX-series Instructions Ref­erence Manual
NJ/NX-series CPU Unit Motion Control User’s Manual
NJ/NX-series Motion Control Instructions Reference Manual
NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual
NJ/NX-series CPU Unit
Built-in EtherNet/IP User’s Manual
NJ/NY-series NC Integrated Controller User’s Manual
NJ/NY-series G code Instructions Reference Manual
Port
W500
W501
W502
W507
W508
W505
W506
O030
O031
NJ501-

NJ301-

NJ101-

NX701-

NX102-

NX1P2-

NJ501-

NJ301-

NJ101-

NX701-

NX102-

NX1P2-

NJ501-

NJ301-

NJ101-

NX701-

NX102-

NX1P2-

NJ501-

NJ301-

NJ101-

NX701-

NX102-

NX1P2-

NJ501-

NJ301-

NJ101-

NX701-

NX102-

NX1P2-

NJ501-

NJ301-

NJ101-

NX701-

NX102-

NX1P2-

NJ501-

NJ301-

NJ101-

NJ501-5300 NY532-5400
NJ501-5300 NY532-5400
Learning the basic specifications of the NJ-series CPU Units, including introductory information, designing, installation, and main­tenance. Mainly hardware infor­mation is provided.
Learning how to pro­gram and set up an NJ/NX-series CPU Unit. Mainly software infor­mation is provided.
Learning detailed specifications on the basic instructions of an NJ/NX-series CPU Unit.
Learning about motion control set­tings and program­ming concepts.
Learning about the specifications of the motion control instructions.
Using the built-in Eth­erCAT port on an NJ/NX-series CPU Unit.
Using the built-in Eth­erNet/IP port on an NJ/NX-series CPU Unit.
Performing numeri­cal control with NJ/NY-series Control­lers.
Learning about the specifications of the G code/M code instructions.
An introduction to the entire NJ-series system is provided along with the following informa­tion on the CPU Unit.
• Features and system configuration
• Introduction
• Part names and functions
• General specifications
• Installation and wiring
• Maintenance and inspection
The following information is provided on a Controller built with an NJ/NX-series CPU Unit.
• CPU Unit operation
• CPU Unit features
• Initial 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 CPU Unit and programming concepts for motion control are described.
The motion control instructions are described.
Information on the built-in EtherCAT port is provided. This manual provides an introduction and pro­vides information on the configuration, fea­tures, 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. Use this manual together with the NJ/NY-series G code Instructions Reference Manual (Cat. No. O031) when pro­gramming.
The G code/M code instructions are described. Use this manual together with the
NJ/NY-series NC Integrated Controller User’s Manual (Cat. No. O030) when programming.
NJ/NY-series G code Instructions Reference Manual (O031)
21
Related Manuals
Manual name Cat. No. Model numbers Application Description
NJ/NX-series Troubleshooting Manual
Sysmac Studio Version 1 Operation Manual
CNC Operator Operation Manual
NY-series IPC Machine Con­troller Industrial Panel PC Hardware User’s Manual
NY-series IPC Machine Con­troller Industrial Box PC Hard­ware User’s Manual
NY-series IPC Machine Con­troller Industrial Panel PC / Industrial Box PC Setup User’s Manual
NY-series IPC Machine Con­troller Industrial Panel PC / Industrial Box PC Software User’s Manual
NY-series Instructions Refer­ence Manual
NY-series IPC Machine Con­troller Industrial Panel PC / Industrial Box PC Motion Con­trol User’s Manual
NX701-
W503
W504 SYSMAC-
O032 SYSMAC-
W557
W556
W568
W558
W560
W559

NX102-

NX1P2-

NJ501-

NJ301-

NJ101-

SE2
RTNC0D
NY532-1

NY512-1

NY532-1

NY512-1

NY532-1

NY512-1

NY532-1

NY512-1

NY532-1

NY512-1

Learning about the errors that may be detected in an NJ/NX-series Con­troller.
Learning about the operating proce­dures and functions of the Sysmac Studio.
Learning an introduc­tion of the CNC Oper­ator and how to use it.
Learning the basic specifications of the NY-series Industrial Panel PCs, including introductory informa­tion, designing, instal­lation, and maintenance. Mainly hardware infor­mation is provided.
Learning the basic specifications of the NY-series Industrial Box PC, including introductory informa­tion, designing, instal­lation, and maintenance. Mainly hardware infor­mation is provided.
Learning the initial set­tings of the NY-series Industrial PCs and preparations to use Controllers.
Learning how to pro­gram 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 con­cepts of an NY-series Industrial PC.
Concepts on managing errors that may be detected in an NJ/NX-series Controller and information on individual errors are described.
Describes the operating procedures of the Sysmac Studio.
An introduction of the CNC Operator, installa­tion procedures, basic operations, connection operations, and operating procedures for main functions are described.
An introduction to the entire NY-series system is provided along with the following informa­tion 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 informa­tion 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 & recovery
The following information is provided on the NY-series Controller functions.
• Controller operations
• Controller functions
• 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.
22
NJ/NY-series G code Instructions Reference Manual (O031)
Manual name Cat. No. Model numbers Application Description
NY-series Motion Control Instructions Reference Manual
W561
NY532-1
NY512-1


Learning about the specifications of the motion control
The motion control instructions are described.
instructions of an NY-series Industrial PC.
NY-series IPC Machine Con­troller Industrial Panel PC / Industrial Box PC Built-in Eth­erCAT Port User’s Manual
W562
NY512-1


Using the built-in Eth­erCAT port in an NY-series Industrial PC.
Information on the built-in EtherCAT port is provided. This manual provides an introduction and pro­vides information on the configuration, fea-
NY532-1
tures, and setup.
NY-series IPC Machine Con­troller Industrial Panel PC / Industrial Box PC Built-in Eth-
erNet / IP
Port User’s Manual
W563
NY532-1
NY512-1


Using the built-in Eth­erNet/IP port in an NY-series Industrial PC.
Information on the built-in EtherNet/IP port is provided. Information is provided on the basic setup, tag data links, and other features.
Related Manuals
NY-series Troubleshooting Manual
W564
NY532-1
NY512-1


Learning about the errors that may be detected in an NY-series Industrial PC.
Concepts on managing errors that may be detected in an NY-series Controller and infor­mation on individual errors are described.
NJ/NY-series G code Instructions Reference Manual (O031)
23

Terminology

Terminology
Term Description
NJ501-1 Represents NJ501-1300/-1400/-1500.
24
NJ/NY-series G code Instructions Reference Manual (O031)

Revision History

O031-E1-03
Revision 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 code Date Revised content
01 October 2017 Original production 02 July 2018 • Added information on the
03 April 2021 • Made changes accompanying release of version 1.02 of the CNC ver-
• Corrected mistakes.
sion.
• Corrected mistakes.
NX102-
Revision History
.
NJ/NY-series G code Instructions Reference Manual (O031)
25
Revision History
26
NJ/NY-series G code Instructions Reference Manual (O031)
Basic Information on NC Pro­gramming
This section provides the list of available instructions, and the descriptions of parame­ters and modal.
Instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-2
G Codes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-2
M Codes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-4
Instruction Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-5
G Code Descriptions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-7
What is Modal? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-9
1
NJ/NY-series G code Instructions Reference Manual (O031)
1 - 1
1 Basic Information on NC Programming

Instructions

The following table lists the G codes and M codes supported by NJ501-5300 and NJ532-5400.
G Codes
Modal group Initial modal
00 Non-modal --- G04 Dwell Stops the CNC coordinate system for a predefined
00 Non-modal --- G09 Exact Stop Executes a forcible control deceleration stop
00 Non-modal --- G28 Return to Reference
00 Non-modal --- G30 Return to 2nd, 3rd or
00 Non-modal --- G31 Skip Function Provides Rapid Positioning (G00) and input stop. 00 Non-modal --- G52 Local Coordinate Sys-
00 Non-modal --- G53 Dimension Shift Cancel Runs commands in the machine coordinate sys-
01 Rapid Position­ing
02 Plane G17 G17 X-Y Plane Selection Changes a plane, the reference of Circular Interpo-
03 Distance G90 G90 Absolute command Enables absolute position mode for all axes in the
06 Unit Operation
G01 G00 Rapid Positioning Performs a point-to-point operation in the minimum
depends on the Orthogo­nal Axis Command Unit setting
Instruc
tion
Point
4th Reference Point
tem Set
G01 Linear Interpolation Moves a CNC motor from the current position to a
G02 Circular Interpolation in
CW direction
G03 Circular Interpolation in
CCW direction
G18 Z-X Plane Selection G19 Y-Z Plane Selection
G91 Incremental command Enables relative Incremental position mode for all
G20 Inch input Switches all the settings of the CNC coordinate
G21 Metric input
Name Outline of function
period of time.
together with the registration of in-position at the termination of a block.
Moves the tool to the reference point (position 0) via the middle point specified by an argument of the instruction.
Moves the tool to the 2nd, 3rd and 4th reference point.
Creates coordinates in the Work Coordinate Sys­tem.
tem.
time by following the restrictions of CNC motor set­tings.
specified position. Moves the tool on an arc path on the XY, YZ, or ZX
plane.
lation (G02/G03), Tool Radius Compensation (G40/G41/G42), and Coordinate System Rotation (G68/G69).
CNC coordinate system, and moves the axes to a specified position in the current coordinate system.
axes in the CNC coordinate system, and moves the axes a certain distance from the last command position.
system, command values, and the unit of current values.
1 - 2
NJ/NY-series G code Instructions Reference Manual (O031)
Loading...
+ 118 hidden pages