Programming instructions
 ADT-CNC4620 Programming Manual 
- 1 -
Contents 
1.  PROGRAMMING BASICS .................................................................................................... - 1 - 
1.1.  INTRODUCTION OF CNC MACHINE TOOL .............................................................................- 1 - 
1.2.  DEFINITION OF COORDINATE AXIS .......................................................................................- 2 - 
1.3.  MACHINE TOOL COORDINATE SYSTEM AND MECHANICAL HOME .........................................- 2 - 
1.4.  WORKPIECE COORDINATE SYSTEM AND PROGRAM HOME ....................................................- 3 - 
1.5.  ABSOLUTE/RELATIVE COORDINATE PROGRAMMING ............................................................- 4 - 
1.6.  CONVERSION BETWEEN IMPERIAL AND METRIC SYSTEM*....................................................- 5 - 
1.7.  PROGRAM CONSTITUTION ...................................................................................................- 5 - 
1.8.  GENERAL STRUCTURE OF PROGRAM....................................................................................- 6 - 
1.9.  MAIN PROGRAM AND SUBROUTINE......................................................................................- 8 - 
2.  M S F T INSTRUCTION......................................................................................................... - 9 - 
2.1.  AUXILIARY FUNCTION (M CODE) ........................................................................................- 9 - 
2.1.1.  Subroutine call M98 ..................................................................................................- 10 - 
2.1.2.  Return from subroutine and return to main program M99........................................- 10 - 
2.1.3.  Principal axis control M03, M04, M05 .....................................................................- 12 - 
2.1.4.  Coolant control M08, M09........................................................................................- 12 - 
2.1.5.  Tailstock control M10, M11 ......................................................................................- 13 - 
2.1.6.  Chuck control M12, M13 ..........................................................................................- 13 - 
2.1.7.  Lubricant control M32, M33 .....................................................................................- 13 - 
2.1.8.  Program pause M00...................................................................................................- 14 - 
2.1.9.  Program running ends and return to program beginning M30..................................- 14 - 
2.2.  PROGRAMMABLE I/O INSTRUCTIONS.................................................................................- 14 - 
2.2.1.  Programmable input instruction M88........................................................................- 14 - 
2.2.2.  Programmable output instruction M89......................................................................- 14 - 
2.3.  PRINCIPAL AXIS FUNCTION (S INSTRUCTION).....................................................................- 14 - 
2.3.1.  Principal axis rotation switching control...................................................................- 15 - 
2.3.2.  Principal axis rotation analog voltage control...........................................................- 15 - 
2.3.3.  Principal axis rate ......................................................................................................- 15 - 
2.3.4.  Constant line speed control G96, constantrotation speed control G97* ...................- 16 - 
2.3.5.  Principal axis maximum rotation limit*....................................................................- 16 - 
2.4.  FAST MOVING AND FEEDING FUNCTION (G98/G99, F INSTRUCTION) .................................- 16 - 
2.4.1.  Fast moving ...............................................................................................................- 16 - 
2.4.2.  Cutting feeding instruction F.....................................................................................- 17 - 
2.4.3.  G98, G99 ...................................................................................................................- 18 - 
2.4.4.  Manual feeding..........................................................................................................- 19 - 
2.5.  TOOL COMPENSATION FUNCTION (T INSTRUCTION) ...........................................................- 19 - 
3.  G INSTRUCTION................................................................................................................. - 21 - 
3.1.  INTRODUCTION .................................................................................................................- 21 - 
3.1.1.  Modal, non-modal and initial state............................................................................- 21 - 
3.1.2.  Relative definition .....................................................................................................- 21 - 










