
9
CONTENTS
NJ/NY-series G code Instructions Reference Manual (O031)
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 .................................................................................................................. 2-29
G54 to G59 Select Work Coordinate System......................................................................................... 2-30
G17, G18, G19 Plane Selection ............................................................................................................. 2-31
G20 Inch Input, G21 Metric Input ........................................................................................................... 2-32
G90 Absolute Dimension, G91 Incremental Dimension ......................................................................... 2-33
Reference Point ............................................................................................................................ 2-35
G28 Return to Reference Point.............................................................................................................. 2-36
G30 Return to 2nd, 3rd and 4th Reference Point................................................................................... 2-38
Compensation Functions............................................................................................................. 2-39
G40, G41, G42 Cutter Compensation.................................................................................................... 2-40
G43, G44, G49 Tool Offset..................................................................................................................... 2-51
G50, G51 Scaling................................................................................................................................... 2-53
G50.1, G51.1 Mirroring........................................................................................................................... 2-55
G68, G69 Coordinate System Rotation.................................................................................................. 2-57
Utilities........................................................................................................................................... 2-59
G74 Left-handed Tapping Cycle............................................................................................................. 2-60
G80 Fixed Cycle Cancel......................................................................................................................... 2-62
G84 Tapping Cycle ................................................................................................................................. 2-63
G98 Fixed Cycle Return to Initial Level .................................................................................................. 2-66
G99 Fixed Cycle Return to R Point Level............................................................................................... 2-67
Chamfer and Fillet Functions ................................................................................................................. 2-68
Section 3 M Code
Auxiliary Function Output.............................................................................................................. 3-3
M Code Descriptions................................................................................................................................ 3-5
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