Omron NY532-5400 Instruction & Reference Manual

Omron NY532-5400 Instruction & Reference Manual

Nj/ny-series, machine automation controller, industrial pc platform, g code
Hide thumbs Also See for NY532-5400:
Table of Contents

Advertisement

Machine Automation Controller
Industrial PC Platform
NJ/NY-series
G code
Instructions Reference Manual
NJ501-5300
NY532-5400
O031-E1-02

Advertisement

Table of Contents
loading

Summary of Contents for Omron NY532-5400

  • Page 1 Machine Automation Controller Industrial PC Platform NJ/NY-series G code Instructions Reference Manual NJ501-5300 NY532-5400 O031-E1-02...
  • Page 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. Every precaution has been taken in the preparation of this manual. Neverthe- less, OMRON assumes no responsibility for errors or omissions.
  • Page 3: Introduction

    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.
  • Page 4: Relevant Manuals

    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.
  • Page 5 Relevant Manuals Manual Basic information Purpose of use 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 ().
  • Page 6: Relevant Manuals For Ny Series

    Relevant Manuals Relevant Manuals for NY Series Manual Basic information Purpose of use Introduction to NY-series Panel PCs  Introduction to NY-series Box PCs  Setting devices and hardware  Using motion control   Using EtherCAT  Using EtherNet/IP ...
  • Page 7: Manual Structure

    Manual Structure Manual Structure Page Structure and Symbols The following page structure and symbols are used in this manual. Level 1 heading 4 Installation and Wiring Level 2 heading Level 3 heading Mounting Units Level 2 heading Gives the current Level 3 heading headings.
  • Page 8: Special Information

    Manual Structure Special Information 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.
  • Page 9: Sections In This Manual

    Sections in this Manual Sections in this Manual Basic Information on NC Programming G Code M Code PROGRAM CODES Appendices NJ/NY-series G code Instructions Reference Manual (O031)
  • Page 10: Table Of Contents

    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 ............................
  • Page 11 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 Rate ............... 2-24 Coordinate System ........................2-27 G52 Local Coordinate System Set ......................2-28 G53 Dimension Shift Cancel ........................
  • Page 12 CONTENTS 4-2-3 while ............................4-6 4-2-4 do/while ............................4-6 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...
  • Page 13 CONTENTS NJ/NY-series G code Instructions Reference Manual (O031)
  • Page 14: Terms And Conditions Agreement

    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.
  • Page 15: Application Considerations

    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.
  • Page 16: Safety Precautions

    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) •...
  • Page 17: Precautions For Safe Use

    Precautions for Safe Use 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) •...
  • Page 18: Precaution For Correct Use

    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) •...
  • Page 19: Regulations And Standards

    Regulations and Standards 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) NJ/NY-series G code Instructions Reference Manual (O031)
  • Page 20: Versions

    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.
  • Page 21 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.
  • Page 22 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. Double-click EtherCAT under Configurations and Setup in the Multiview Explorer.
  • Page 23: Related Manuals

    NJ101- NJ/NY-series O030 NJ501-5300 Performing numeri- Describes the functionality to perform the NC Integrated Controller User’s NY532-5400 cal control with numerical control. Use this manual together Manual NJ/NY-series Control- with the NJ/NY-series G code Instructions lers. Reference Manual (Cat. No. O031) when pro- gramming.
  • Page 24 Related Manuals Manual name Cat. No. Model numbers Application Description NJ/NX-series Troubleshooting W503 NX701- Learning about the Concepts on managing errors that may be Manual NX102- errors that may be detected in an NJ/NX-series Controller and NX1P2- detected in an information on individual errors are described.
  • Page 25 Related Manuals Manual name Cat. No. Model numbers Application Description NY-series Motion Control W561 NY532-1 Learning about the The motion control instructions are described. Instructions Reference Manual specifications of the NY512-1 motion control instructions of an NY-series Industrial NY-series IPC Machine Con- W562 NY532-1...
  • Page 26: Terminology

    Terminology Terminology Term Description NJ501-1 Represents NJ501-1300/-1400/-1500. NJ/NY-series G code Instructions Reference Manual (O031)
  • Page 27: Revision History

    Revision History Revision History A manual revision code appears as a suffix to the catalog number on the front and back covers of the manual. O031-E1-02 Cat. No. Revision code Revision code Date Revised content October 2017 Original production July 2018 •...
  • Page 28 Revision History NJ/NY-series G code Instructions Reference Manual (O031)
  • Page 29: Basic Information On Nc Programming

    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 .
  • Page 30: Instructions

    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 Instruc Modal group Initial modal Name Outline of function tion 00 Non-modal Dwell Stops the CNC coordinate system for a predefined period of time.
  • Page 31 1 Basic Information on NC Programming Instruc Modal group Initial modal Name Outline of function tion 07 Tool radius Cancels tool compen- Enables selection of a tool for control, automati- sation cally moves the tool to the left side or right side of the programmed path, and correct the radius of the Tool Compensation, left tool.
  • Page 32: M Codes

    1 Basic Information on NC Programming M Codes Type Instruction Name Outline of function Reservation Program Stop Stops the execution of the NC program at the block where M00 auxiliary func- is commanded. tion output Optional Stop As is the case with M00, stops the execution of the NC program at the block where M01 is commanded.
  • Page 33: Instruction Parameters

    1 Basic Information on NC Programming Instruction Parameters The following describes the parameters used in each instruction. Parameter Description Relevant codes Recommended range Target A-axis Position [com- G00/G01/G02/G03 -1,000,000 ≤ A ≤ 1,000,000 mand units] A-axis middle point [command G28/G30 -1,000,000 ≤...
  • Page 34 1 Basic Information on NC Programming Parameter Description Relevant codes Recommended range Target X-axis Position [com- G00/G01/G02/G03 -1,000,000 ≤ X ≤ 1,000,000 mand units] Dwell time [s] 0≤X≤100,000 X-axis middle point [command G28/G30 -1,000,000 ≤ X ≤ 1,000,000 units] X-axis center [command units] G50/G50.1/G68 -1,000,000 ≤...
  • Page 35: G Code Descriptions

    1 Basic Information on NC Programming G Code Descriptions The program format generally called the G code is defined by ISO 6983 (JIS B 6315). A combination of characters such as G, M and X, and digits is called a word, and a line consisting of two or more words are called a block.
  • Page 36 1 Basic Information on NC Programming Optional Skip Block If an optional signal is entered, the block where the related command is written is skipped. Enter the command as /N *1. N is a constant from 1 to 31. G17 G91 G01 ta1000 td1000 F1000 S1000 M03 // The optional block skip can be written at the beginning of line only.
  • Page 37: What Is Modal

    1 Basic Information on NC Programming What is Modal? There are two types of G codes: One that is valid only in its block, and the other that continues to be valid until another G code of the same group is specified. The former is called non-modal G code, and the latter modal G code.
  • Page 38 1 Basic Information on NC Programming 1 - 10 NJ/NY-series G code Instructions Reference Manual (O031)
  • Page 39: G Code

    G Code This section describes the specifications of the G code. Interpolation Functions ......... 2-3 Dwell .
  • Page 40 2 G Code 2 - 2 NJ/NY-series G code Instructions Reference Manual (O031)
  • Page 41: Interpolation Functions

    Interpolation Functions Instruction Name Page Rapid Positioning P. 2-4 Linear Interpolation P. 2-6 G02/G03 Circular Interpolation P. 2-8 Skip Function P. 2-13 2 - 3 NJ/NY-series G code Instructions Reference Manual (O031)
  • Page 42: G00 Rapid Positioning

    2 G Code G00 Rapid Positioning This instruction positions a tool. Modal/Non-modal Modal Modal group 01 Rapid Positioning Instruction format G00 X- Y- Z- A- B- C- Relevant G codes G90, G91 Parameters Parameter Name Description Target X-axis Position Specifies the destination position [command units] on the X-axis.
  • Page 43 2 G Code Programming Example The following program performs positioning with the absolute dimensions. N010 G90 // Absolute dimension N011 G00 X100 Y50 2 - 5 NJ/NY-series G code Instructions Reference Manual (O031)
  • Page 44: G01 Linear Interpolation

    2 G Code G01 Linear Interpolation This instruction performs linear interpolation. Modal/Non-modal Modal Modal group 01 Rapid Positioning Instruction format G01 F- ta- td- ts- X- Y- Z- A- B- C- Relevant G codes G90, G91, F, ta, td, ts Parameters Parameter Name...
  • Page 45 2 G Code Function This command moves the CNC motor with the specified velocity, acceleration time, deceleration time, and jerk time to operate a tool linearly from the current position to a target position. Unlike G00, if two or more continuous operating functions are aligned, the commands are blended to accelerate or decelerate.
  • Page 46: G02, G03 Circular Interpolation

    2 G Code G02, G03 Circular Interpolation These instructions perform circular interpolation. Modal/Non-modal Modal Modal group 01 Rapid Positioning Circular When specifying the arc G02 F- ta- td- ts- X- Y- Z- I- J- K- A- B- C- Interpola- center tion When specifying the arc G02 F- ta- td- ts- X- Y- Z- R- A- B- C-...
  • Page 47 2 G Code Function This command moves CNC motors with the specified velocity, acceleration time, deceleration time, and jerk time to operate a tool in an arc motion from the current position to a target position. For relationship between acceleration time, deceleration time, and jerk time and the speed waveforms, refer to the programming example of G64 Continuous-path Mode on page 2-22.
  • Page 48 2 G Code  The following shows circular interpolation with Arc radius specification (radius < 0) N010 G90 ....Absolute dimension N011 G17 ....XY Plane selection N012 G02 X140 Y50 R-40 F300 When radius < 0, a circle larger than a semicircle is drawn. Target Position Center Current position...
  • Page 49 2 G Code  Spiral interpolation N01 G17 G64 G91 F1000 N02 M03 S300 N03 G02 Y10 J50 // First rotation of spiral interpolation N04 Y10 J40 // Second rotation of spiral interpolation N05 Y10 J30 // Third rotation of spiral interpolation N06 M05 N07 M30 // End of program...
  • Page 50 2 G Code  Conical interpolation N01 G17 G64 G91 F1000 N02 M03 S300 N03 G02 Y10 J50 Z10 // First rotation of conical interpolation N04 Y10 J40 Z10 // Second rotation of conical interpolation N05 Y10 J30 Z10 // Third rotation of conical interpolation N06 M05 N07 M30 // End of program...
  • Page 51: G31 Skip Function

    2 G Code G31 Skip Function If a skip signal is input externally during execution of a movement command, the commanded move- ment is interrupted to execute commands in the next block. Modal/Non-modal Non-modal Modal group 00 Non-modal Instruction format G31 X- Y- Z- A- B- C- Relevant G codes G90, G91...
  • Page 52 2 G Code Programming Example Use the skip function and measure the wear volume of tool length. In this example, the tool touches the sensor and skip signal is input while it moves toward the cutting surface. The stop position is captured using the skip signal, and notified to the sequence control program as an argument of M code output.
  • Page 53: Dwell

    Dwell Instruction Name Page Dwell P. 2-16 2 - 15 NJ/NY-series G code Instructions Reference Manual (O031)
  • Page 54: G04 Dwell

    2 G Code G04 Dwell This instruction stops the NC program only for a specified period of time. Modal/Non-modal Non-modal Modal group 00 Non-modal G04 F- Instruction format G04 P- G04 X- Relevant G codes Parameters Parameter Name Description Specification in seconds Specifies a stop time [s] of the NC program.
  • Page 55: Feed Functions

    Feed Functions Instruction Name Page F Function Feedrate Function (F function) P. 2-18 ta/td/ts Acceleration Time, Deceleration P. 2-19 Time, Jerk Time Exact Stop P. 2-20 Exact Stop Mode P. 2-21 Continuous-path Mode P. 2-22 G500/G501 Multi-block Acceleration/Deceler- P. 2-24 ation Rate 2 - 17 NJ/NY-series G code Instructions Reference Manual (O031)
  • Page 56: Feedrate Function (F Function)

    2 G Code Feedrate Function (F function) This instruction specifies the feedrate. Modal/Non-modal Modal Instruction format F{data} Relevant G codes G01, G02, G03 This instruction specifies the feedrate using a numeric value after the F code. Zero (0) and a negative value cannot be specified. The velocity is specified in command units/min.
  • Page 57: Acceleration Time, Deceleration Time, Jerk Time

    2 G Code Acceleration Time, Deceleration Time, Jerk Time These instructions specify an acceleration time, deceleration time, and jerk time. Modal/Non-modal Modal Acceleration Time ta{data} Instruction format Deceleration Time td{data} Jerk Time ts{data} Relevant G codes G01, G02, G03 Specify the acceleration time with a numeric value after the ta code. Specify the deceleration time with a numeric value after the td code.
  • Page 58: G09 Exact Stop

    2 G Code G09 Exact Stop This instruction stops deceleration upon termination of the block that is currently running. Modal/Non-modal Non-modal Modal group 00 Non-modal Instruction format Relevant G codes G01, G02, G03 Parameters This command does not have any parameters to set. Function Executing G09 decelerates to a stop simultaneously with in-position check upon the termination of a block.
  • Page 59: G61 Exact Stop Mode

    2 G Code G61 Exact Stop Mode This instruction stops operation between blocks to prevent corner blending from being executed. Modal/Non-modal Modal Modal group 15 Path Control Instruction format Relevant G codes G01, G02, G03 Parameters This command does not have any parameters to set. Function The G61 stops an operation between blocks to prevent the execution of blending of the corner and cut- ting corners with an acute angle during operation.
  • Page 60: G64 Continuous-Path Mode

    2 G Code G64 Continuous-path Mode When two or more sequential operations are aligned, the former can be blended with the latter and accelerated/decelerated. Modal/Non-modal Modal Modal group 15 Path Control Instruction format Relevant G codes G01, G02, G03, G500, G501 Parameters This command does not have any parameters to set.
  • Page 61 2 G Code This shows the path of X-Y plane. Shows the speed waveforms. The parameters shown in the figure are values ta=1000, td=1000, and ts=500 that have been specified in the NC program. Feedrate 1500 1000 Time ta + ts td + ts -500 -1000...
  • Page 62: G500, G501 Multi-Block Acceleration/Deceleration Rate

    2 G Code G500, G501 Multi-block Accelera- tion/Deceleration Rate Modal/Non-modal Modal Modal group 23 Multi-block Acceleration/Deceleration Rate Instruction format G500, G501 Relevant G codes G01, G02, G03, G64 Parameters This command does not have any parameters to set. Function When this command is enabled in Continuous-path Mode, the Controller reads the path ahead and searches for a location where the limitation of position, velocity or acceleration may be exceeded.
  • Page 63 2 G Code Programming Example The following program shows a movement command which draws a line with a series of infinitesimal movements when the multi-block acceleration/deceleration rate is enabled or disabled. N01 G17 G64 G91 G01 F100 N02 M03 S300 N03 G500 // Enables multi-block acceleration/deceleration rate N04 X1...
  • Page 64 2 G Code N01 G17 G64 G91 G01 F100 N02 M03 S300 N03 G501 // Disables multi-block acceleration/deceleration rate N04 X1 N05 X1 N06 X1 N07 X1 N08 X1 N09 X1 N10 X1 N11 X1 N12 X1 N13 X1 N14 M05 N15 M30 Feedrate N05 N06 N07 N08 N09 N10 N11 N12...
  • Page 65: Coordinate System

    Coordinate System Instruction Name Page Local Coordinate System Set P. 2-28 Dimension Shift Cancel P. 2-29 G54 to G59 Select Work Coordinate System P. 2-30 G17/G18/G19 Plane Selection P. 2-31 G20/G21 Inch Input/Metric Input P. 2-32 G90/G91 Absolute Dimension/Incremental P. 2-33 Dimension For coordinate system types, refer to the NJ/NY-series NC Integrated Controller User’s Manual (Cat.
  • Page 66: G52 Local Coordinate System Set

    2 G Code G52 Local Coordinate System Set This instruction creates coordinate system in the Work Coordinate System. Modal/Non-modal Non-modal Modal group 00 Non-modal Set a Local Coordinate Sys- G52 X- Y- Z- A- B- C- tem. Local Coordinate Instruction format System Setting Release a Local Coordinate G52 X0 Y0 Z0 A0 B0 C0...
  • Page 67: G53 Dimension Shift Cancel

    2 G Code G53 Dimension Shift Cancel This instruction runs commands in the machine coordinate system. Modal/Non-modal Non-modal Modal group 00 Non-modal Instruction format G53 X- Y- Z- A- B- C- G50, G51, G50.1, G51.1, G68, G69, G52, G54 to G59, G40, G41, G42, G43, G44, Relevant G codes Parameters Parameter...
  • Page 68: G54 To G59 Select Work Coordinate System

    2 G Code G54 to G59 Select Work Coordi- nate System These instructions change the current Work Coordinate System. Modal/Non-modal Modal Modal group 14 Coordinate System Selection 1st work coordinate system 2nd work coordinate system 3rd work coordinate system Instruction format 4th work coordinate system 5th work coordinate system 6th work coordinate system...
  • Page 69: G17, G18, G19 Plane Selection

    2 G Code G17, G18, G19 Plane Selection These instructions select a plane to be the basis of instructions. Modal/Non-modal Modal Modal group 02 Plane X-Y Plane Instruction format Z-X Plane Y-Z Plane Relevant G codes G02, G03, G41, G42, G68, G69 Parameters This command does not have any parameters to set.
  • Page 70: G20 Inch Input, G21 Metric Input

    2 G Code G20 Inch Input, G21 Metric Input These instructions toggle the units. Modal/Non-modal Modal Modal group 06 Unit Inch input Instruction format Metric input Relevant G codes Parameters This command does not have any parameters to set. Function Switches all the settings of the CNC coordinate system, command values, and the unit of current val- ues.
  • Page 71: G90 Absolute Dimension, G91 Incremental Dimension

    2 G Code G90 Absolute Dimension, G91 Incremental Dimension These instructions set a feed command to the Absolute Dimension or Incremental Dimension com- mand. Modal/Non-modal Modal Modal group 03 Distance Absolute command Instruction format Incremental command G00, G01, G02, G03, G28, G30, G31, G74, G84, Relevant G codes G50, G51, G50.1, G51.1, G68, G69 Parameters...
  • Page 72 2 G Code 2 - 34 NJ/NY-series G code Instructions Reference Manual (O031)
  • Page 73: Reference Point

    Reference Point Instruction Name Page Return to Reference Point P. 2-36 Return to 2nd, 3rd and 4th Refer- P. 2-38 ence Point 2 - 35 NJ/NY-series G code Instructions Reference Manual (O031)
  • Page 74: G28 Return To Reference Point

    2 G Code G28 Return to Reference Point This instruction returns the tool automatically to the reference point via the specified middle point. Modal/Non-modal Non-modal Modal group 00 Non-modal Instruction format G28 X- Y- Z- A- B- C- G90, G91, G50, G51, G50.1, G51.1, G68, G69, G54 to G59, G40, G41, G42, G43, Relevant G codes G44, G49 Parameters...
  • Page 75 2 G Code Programming Example After cutting operation, the tool moves to the middle position (10, 10) and returns to the reference point (0, 0). N01 G17 G91 G64 F1000 N02 M03 S500 N03 G00 X10 Y20 N04 G01 X40 N05 Y10 N06 X-40 N07 Y-10...
  • Page 76: G30 Return To 2Nd, 3Rd And 4Th Reference Point

    2 G Code G30 Return to 2nd, 3rd and 4th Reference Point This instruction returns the tool to the 2nd, 3rd, or 4th reference point. Modal/Non-modal Non-modal Modal group 00 Non-modal Return to 2nd Reference Point G30 X- Y- Z- A- B- C- Return to 2nd, Return to 2nd Reference Point G30 P2 X- Y- Z- A- B- C-...
  • Page 77: Compensation Functions

    Compensation Functions Instruction Name Page G40/G41/G42 Cutter Compensation P. 2-40 G43/G44/G49 Tool Offset P. 2-51 G50/G51 Scaling P. 2-53 G50.1/G51.1 Mirroring P. 2-55 G68/G69 Coordinate System Rotation P. 2-57 2 - 39 NJ/NY-series G code Instructions Reference Manual (O031)
  • Page 78: G40, G41, G42 Cutter Compensation

    2 G Code G40, G41, G42 Cutter Compensa- tion These instructions compensate the path by considering the tool diameter. Modal/Non-modal Modal Modal group 07 Tool radius Cancels tool compensation Instruction format Tool Compensation, left Tool Compensation, right Relevant G codes G01, G02, G03, G17, G18, G19 Parameters This command does not have any parameters to set.
  • Page 79 2 G Code Function This command assumes the correction of cylindrical tool radius orthogonal to a plane. The correction offset adapts automatically to two axes vertical to the plane, and the corrected path shifts from the com- manded path by the tool radius. This command acts on G01, G02, and G03.
  • Page 80 2 G Code : Path after correction : Specified path N01 G19 // YZ plane N02 G01 G90 N03 G41 // or G42 N04 Y15 Z10 N05 Z20 N06 Y40 N07 Z10 N08 G40 N09 Z0 (Left) (Right) Compensated circular speed When Circular Interpolation (G02/G03) is used simultaneously with G40, G41, or G42, the path of the tool center differs from the commanded path that applies to the tool edge.
  • Page 81 2 G Code Tool diameter compensation: Corner circular interpolation (Added Arc) When the angle of a corner exceeds 270 degrees, this command automatically adds an arc with the same radius as the cutter radius. : Path after correction : Specified path Arc added Start of Correction at Inside the Corner Programmed path...
  • Page 82 2 G Code Start of Correction at Outside the Corner  No arc is added Corrected linear Tool center path Tool center path interpolation operation Corrected circular Cutter interpolation Compensation operation Startup Startup Programmed move move path Programmed path Cutter Compensation Cutter Compensation ...
  • Page 83 2 G Code Correction processing at Inside the Corner Programmed path Programmed path Linear interpolation operation Cutter Circular Compensation Linear interpolation Linear Cutter interpolation Cutter Cutter operation interpolation Compensation operation Compensation Compensation operation Tool center path Tool center path Programmed path Programmed path Linear interpolation operation Circular...
  • Page 84 2 G Code Correction processing at Outside the Corner Circular Linear interpolation interpolation operation Programmed path Programmed path operation Cutter Cutter Compensation Compensation Arc added Arc added Cutter Compensation Cutter Compensation Tool center path Linear interpolation Tool center path Linear interpolation operation operation ...
  • Page 85 2 G Code  Cutter radius correction of outside corner with a shallow angle Cutter Compensation Programmed path Programmed path Cutter Compensation Linear interpolation operation Circular Cutter Cutter interpolation Compensation Compensation operation Tool center path Tool center path Circular interpolation operation Termination of Correction at Inside the Corner ...
  • Page 86 2 G Code  An arc is added Corrected linear interpolation operation Tool center path Tool center path Corrected circular Cutter Compensation interpolation Arc added Arc added operation Programmed path Cutter Cutter Compensation Compensation Move of Move of cancel cancel Programmed path Detection of Overcut : Path after correction...
  • Page 87 2 G Code Prevention of Overcut : Path after correction : Specified path When an overcut is detected, some operations are skipped to prevent the overcut. If the tool passes the inside of an arc that is smaller than the tool, the error cannot be prevented. The user needs to use a tool smaller than the arc, or change the arc that causes the error to a straight line.
  • Page 88 2 G Code Use of M100 for transferring the tool change request to the sequence control program is an example. When using this command, refer to the instruction manual provided by the machine tool manufacturer. Cutter Compensation of G41/G42 has the following restrictions for operation during correction. •...
  • Page 89: G43, G44, G49 Tool Offset

    2 G Code G43, G44, G49 Tool Offset These instructions compensate the path by considering the tool length. Modal/Non-modal Modal Modal group 08 Tool length offset Tool length correction, in positive direction Instruction format Tool length correction, in negative direction Cancels tool offset Relevant G codes G01, G02, G03, G17, G18, G19...
  • Page 90 2 G Code Programming Example The following program executes a series of operations from the start to the end of tool offsetting. This sample programming shows the change of tool length during the cutting operation. N01 G17 G64 G90 G01 F100 N02 M100 VA1 // Tool change Tool ID #1 (Tool length: 8) N03 G43...
  • Page 91: G50, G51 Scaling

    2 G Code G50, G51 Scaling These instructions magnifies or compresses a commanded shape. Modal/Non-modal Modal Modal group 11 Scaling Disables scaling When specifying the X, Y and G51 X- Y- Z- P- Instruction format Z-axis scales simultaneously Enables scaling When specifying the X, Y and G51 X- Y- Z- I- J- K- Z-axis scales separately...
  • Page 92 2 G Code Programming Example The following program enlarges the circle defined in the subprogram to double size. N11 G64 G90 G01 F100 N12 M03 S300 N13 G51 X20 Y15 P2 // Sets scaling to double. N14 M98 P1000 // Cuts the figure of double size (indicated by the solid line in the following figure).
  • Page 93: G50.1, G51.1 Mirroring

    2 G Code G50.1, G51.1 Mirroring These instructions invert the path on the specified coordinate system. Modal/Non-modal Modal Modal group 22 Mirroring Disables mirroring G50.1 Instruction format Enables mirroring G51.1 X- Y- Z- Relevant G codes G00, G01, G02, G03, G17, G18, G19 Parameters Parameter Name...
  • Page 94 2 G Code Programming Example The following program reverses a figure defined in the subprogram across the symmetric axes. N11 G64 G90 G01 F100 N12 M03 S300 N13 G51.1 X30 // Line symmetry to X=30 N14 M98 P1000 // Cuts the mirrored figure by calling the subprogram (indicated by the solid line in the following figure).
  • Page 95: G68, G69 Coordinate System Rotation

    2 G Code G68, G69 Coordinate System Rotation These instructions rotate a specified figure. Modal/Non-modal Modal Modal group 16 rotation Enables rotation G68 X- Y- Z- R- Instruction format Disables rotation Relevant G codes G00, G01, G02, G03, G17, G18, G19 Parameters Parameter Name...
  • Page 96 2 G Code Programming Example The following program rotates a figure defined in the subprogram. N11 G17 G64 G91 G01 F1000 N12 M03 S500 N13 X10 N14 G68 X10 Y0 R90 // Sets the rotation angle to 90° N15 M98 P1000 // Cuts the rotated figure (indicated by the solid line in the following figure) N16 G69...
  • Page 97: Utilities

    Utilities Instruction Name Page Left-handed Tapping Cycle P. 2-60 Fixed Cycle Cancel P. 2-62 Tapping Cycle P. 2-63 Fixed Cycle Return to Initial Level P. 2-66 Fixed Cycle Return to R Point P. 2-67 Level 2 - 59 NJ/NY-series G code Instructions Reference Manual (O031)
  • Page 98: G74 Left-Handed Tapping Cycle

    2 G Code G74 Left-handed Tapping Cycle This instruction performs reverse tapping machining. Modal/Non-modal Modal Modal group 09 Fixed cycle Instruction format G74 X- Y- Z- R- P- K- Relevant G codes G80, G98, G99, G90, G91 Parameters Parameter Name Description Target X-axis Position Specifies the destination position [command units] on the...
  • Page 99 2 G Code If the spindle axis is assigned to the coordinate system, the number of rotations of spindle axis from the R point level to the Z point is as follows. Spindle speed = Z-axis movement amount ×  When the CNC coordinate system does not have the spindle axis G74 Xx Yy Zz Rr Pp Kk //if G91 and G98 are activated //if G91 and G99 are activated...
  • Page 100: G80 Fixed Cycle Cancel

    2 G Code G80 Fixed Cycle Cancel This instruction cancels a fixed cycle. Modal/Non-modal Modal Modal group 09 Fixed cycle Instruction format Relevant G codes G74, G84 Parameters This command does not have any parameters to set. Function This command must be inserted into the end of a fixed cycle. 2 - 62 NJ/NY-series G code Instructions Reference Manual (O031)
  • Page 101: G84 Tapping Cycle

    2 G Code G84 Tapping Cycle This instruction performs tapping machining. Modal/Non-modal Modal Modal group 09 Fixed cycle Instruction format G84 X- Y- Z- R- P- K- Relevant G codes G80, G98, G99, G90, G91 Parameters Parameters are the same as for Left-handed Tapping Cycle (G74). Function This command is the same as Left-handed Tapping cycle (G74) except that the rotation direction of spindle axis is different.
  • Page 102 2 G Code Programming Example The following program makes three holes consecutively. The return point of the first and last hole mak- ing is handled as the initial level, and that of other hole making as the R point to shorten the cycle time. The command position follows the specifications for the Absolute Dimension (G90) and Incremental Dimension (G91).
  • Page 103 2 G Code  Incremental dimension N01 G17 G64 G91 F100 S300 // Incremental dimension N02 G99 G84 X10 Y0 Z-10 R-5 P1000 K1 // Start of tapping cycle N03 G99 X10 N04 G98 X10 N05 G80 // End of tapping cycle N06 X10 N07 M30 Initial level (0)
  • Page 104: G98 Fixed Cycle Return To Initial Level

    2 G Code G98 Fixed Cycle Return to Initial Level This instruction sets the return position of a fixed cycle to the initial level. Modal/Non-modal Modal Modal group 10 Return level Instruction format Relevant G codes G74, G84 Parameters This command does not have any parameters to set. Function This command sets the return position of a fixed cycle to the initial level.
  • Page 105: G99 Fixed Cycle Return To R Point Level

    2 G Code G99 Fixed Cycle Return to R Point Level This instruction sets the return position of a fixed cycle to the R-point level. Modal/Non-modal Modal Modal group 10 Return level Instruction format Relevant G codes G74, G84 Parameters This command does not have any parameters to set.
  • Page 106: Chamfer And Fillet Functions

    2 G Code Chamfer and Fillet Functions This NC Integrated Controller does not support chamfer and fillet functions. These functions can use with Linear Interpolation (G01) and Circular Interpolation (G02, G03). Supporting the chamfer function : Coordinates after correction : Original coordinates N01 G91 N02 G01 X3 Y-3 N03 G01 X2 Y2...
  • Page 107: M Code

    M Code This section describes the specifications of the M code. Auxiliary Function Output ........3-3 Reservation Auxiliary Functions .
  • Page 108 3 M Code 3 - 2 NJ/NY-series G code Instructions Reference Manual (O031)
  • Page 109: Auxiliary Function Output

    Auxiliary Function Output Instruction Name Page Auxiliary Function Output P. 3-5 3 - 3 NJ/NY-series G code Instructions Reference Manual (O031)
  • Page 110 3 M Code Auxiliary Function Output sends the command from the NC program with machine auxiliary functions that are performed in the sequence control program. The sequence control program reads the output from the NC program with a CNC instruction. Also, you can make a program to respond to the Auxiliary Function Output with a CNC instruction in the sequence control program.
  • Page 111: M Code Descriptions

    3 M Code M Code Descriptions The M code is information used to interlock with external devices in each process of positioning opera- tion. M{data}{[VA{data} VB{data} VC{data} VD{data} VE{data} VF{data} VG{data} Instruction format VH{data}]} • Specify a number (0 to 191) after M-code. •...
  • Page 112 3 M Code 3 - 6 NJ/NY-series G code Instructions Reference Manual (O031)
  • Page 113: Reservation Auxiliary Functions

    Reservation Auxiliary Functions Instruction Name Page Program Stop P. 3-8 Optional Stop P. 3-9 M02/M30 End of Program P. 3-10 3 - 7 NJ/NY-series G code Instructions Reference Manual (O031)
  • Page 114: M00 Program Stop

    3 M Code M00 Program Stop This instruction stops the NC program. Instruction format Relevant M codes The NC program is stopped at the block where M00 is commanded. The machine status (modal status) does not change after the stop until the operation is restarted or wound back.
  • Page 115: M01 Optional Stop

    3 M Code M01 Optional Stop This instruction stops the NC program by optional input. Instruction format Relevant M codes As is the case with M00, execution of the NC program is stopped at the block where M01 is com- manded, subject to Optional input.
  • Page 116: M02, M30 End Of Program

    3 M Code M02, M30 End of Program These instructions end the NC program. Instruction format Relevant M codes Indicates the end of the NC program. The NC program is stopped to enable reset mode. When a block where M30 is specified is executed, return to the head of the program. Therefore, the blocks after M30 or M02 are ignored.
  • Page 117: Spindle Axis

    Spindle Axis Instruction Name Page Spindle Axis Rotation Function (S function) P. 3-12 Spindle CW P. 3-13 Spindle CCW P. 3-14 Spindle OFF P. 3-15 Spindle Orientation P. 3-16 3 - 11 NJ/NY-series G code Instructions Reference Manual (O031)
  • Page 118: Spindle Axis Rotation Function (S Function)

    3 M Code Spindle Axis Rotation Function (S function) This instruction specifies a rotational speed of the spindle axis. Modal/Non-modal Modal Instruction format S{data} Relevant M codes M03, M04 Specifies the rotational speed of the spindle axis with a number (0 or positive number) next to S code. The unit of rotational speed is r/min (revolutions per minute).
  • Page 119: M03 Spindle Cw

    3 M Code M03 Spindle CW This instruction rotates the spindle clockwise (CW). Instruction format Relevant M codes S{data}, M05 Rotates the spindle axis in the clockwise direction at the specified speed. If the spindle axis is already activated, its speed is changed according to the rotation direction and the rotational speed that is set.
  • Page 120: M04 Spindle Ccw

    3 M Code M04 Spindle CCW This instruction rotates the spindle counter-clockwise (CCW). Instruction format Relevant M codes S{data}, M05 Operates the spindle axis in the counter-clockwise direction at the specified speed. If the spindle axis is already activated, its speed is changed according to the rotation direction and the rotational speed that is set.
  • Page 121: M05 Spindle Off

    3 M Code M05 Spindle OFF This instruction stops the spindle. Instruction format Relevant M codes S{data}, M03, M04 Stops the spindle axis. For the information on the spindle axis operation and the timing of completion of M05, refer to the instruction manual provided by the machine tool manufacturer.
  • Page 122: M19 Spindle Orientation

    3 M Code M19 Spindle Orientation This instruction stops the spindle at the specified phase position. Instruction format Relevant M codes M03, M04, M05 Use this command to adjust phase of the spindle axis when you replace tools and carry out other tasks. This function rotates the spindle axis at the Spindle orientation velocity setting, and stops it at the phase position specified for the Spindle orientation position setting.
  • Page 123 3 M Code Programming Example The following program returns the tool to the reference point and the spindle axis to a tool change posi- tion, from the state where the spindle axis is rotating, while moving the tool rotation position to a posi- tion where the tool can be changed.
  • Page 124 3 M Code 3 - 18 NJ/NY-series G code Instructions Reference Manual (O031)
  • Page 125: Programming

    Programming Instruction Name Page Subprogram Call P. 3-20 Subprogram End P. 3-21 3 - 19 NJ/NY-series G code Instructions Reference Manual (O031)
  • Page 126: M98 Subprogram Call

    3 M Code M98 Subprogram Call The M98 is a function to call a subprogram from the program currently running. Specify a subprogram to call by a number next to the P argument. The called subprogram is executed from the first block. When M99 is executed in the subprogram, the execution control returns to the main program from which the subprogram was called.
  • Page 127: M99 Subprogram End

    3 M Code M99 Subprogram End The M99 is a function to return the execution control from the program currently running to the other program from which the current program was called. The M99 function behaves differently between when a subprogram is called by a subprogram and when it is called by a main program.
  • Page 128 3 M Code 3 - 22 NJ/NY-series G code Instructions Reference Manual (O031)
  • Page 129: Program Codes

    PROGRAM CODES This section describes the specifications of program codes. 4-1 Calculation and Logic Operation ....... . . 4-2 4-1-1 Operator priority .
  • Page 130: Calculation And Logic Operation

    4 PROGRAM CODES Calculation and Logic Operation 4-1-1 Operator priority Priority Operators Combination order High - (Unary) *, /, % Left combination +, - Left combination ==, !=, <, >, <=, >= && 4-1-2 Arithmetic operators Addition (+) This operator adds numbers. This is a binary operator and cannot be used as a unary operator. L3=L1+L2 // OK L2=+L1 // NG L2=+1 // OK.
  • Page 131: Functions

    4 PROGRAM CODES Division (/) This operator is a binary operator that divides numbers. L3=L1/L2 // OK L0=0/0 // nan L0=1/0 // inf L0=-1/0 // -inf Modulo (%) This binary operator gives a surplus (remainder of division). L0=7%3 // 1 L0=-7%3 // -1 L0=7%-3 // 1 L0=-7%-3 // -1...
  • Page 132 4 PROGRAM CODES Syntax Operation Domain [Unit] Range [Unit] atanh({expression}) Inverse hyperbolic tangent -1.0 to +1.0 All real numbers [Radian] cbrt({expression}) Cube root All real numbers All real numbers ceil({expression}) Round to a larger integer All real numbers All real numbers cos({expression}) Cosine of trigonometric func- All real numbers...
  • Page 133: Condition Comparators

    4 PROGRAM CODES 4-1-4 Condition comparators Condition comparators are used to compare numbers. The result of comparison is represented by a truth-value (TRUE or FALSE). The truth-value is not adapted to general numerical expressions. Syntax Operation {exp1} == {exp2} Equality comparison operator {exp1} != {exp2} None equality comparison operator {exp1} <...
  • Page 134: Branch And Repetition

    4 PROGRAM CODES Branch and Repetition 4-2-1 if/else For conditional sentence “if({condition})”, the command(s) right after this sentence is executed when the condition is TRUE. If the left brace ({) is found right after this conditional sentence, all the subse- quent commands to the right brace (}) are executed in accordance with the condition.
  • Page 135: User Variables

    4 PROGRAM CODES User Variables 4-3-1 Local Variables (“L”) These variables can be shared by the same subprograms. They are 64-bit floating point arrays inde- pendent in each subprogram. The user can use from L0 to L255, but cannot use L256 and subsequent variables.
  • Page 136 4 PROGRAM CODES 4 - 8 NJ/NY-series G code Instructions Reference Manual (O031)
  • Page 137: Appendices

    Appendices A-1 Program Parsing by CNC Operator ....... A-2 A-1-1 Intermediate code format .
  • Page 138: A-1-1 Intermediate Code Format

    Appendices A-1 Program Parsing by CNC Operator When a user creates an NC program, the CNC Operator converts it into intermediate codes and trans- fers them to an external SD card mounted on the NC Integrated Controller. The original NC program created by the user Program parsing by CNC Operator Intermediate codes...
  • Page 139 Appendices Between words A space is inserted between words. Block number A block number is created as N + G-code line number before program parsing, regardless of its description or not. Comment Any content described as a comment is ignored by intermediate codes. EOB (End of Block) M999.001 or M999.002 is inserted into the end of block.
  • Page 140: Program Parsing Example

    Appendices A-1-2 Program Parsing Example The following gives an example of program parsing by CNC Operator.  The original NC program created by the user Main program N01 G17 G64 G91 G01 F1000 // block-number = N{line-number} N02 M03 S1000 /1 N03 X10 // Optional Block Skip N04 X[P0]...
  • Page 142 The Netherlands Hoffman Estates, IL 60169 U.S.A. Tel: (31)2356-81-300/Fax: (31)2356-81-388 Tel: (1) 847-843-7900/Fax: (1) 847-843-7787 © OMRON Corporation 2017-2018 All Rights Reserved. OMRON (CHINA) CO., LTD. OMRON ASIA PACIFIC PTE. LTD. In the interest of product improvement, Room 2211, Bank of China Tower, No.

This manual is also suitable for:

Nj501-5300

Table of Contents