Chapter 1 Programming Fundamental
15
Ⅰ
Programming
1.4.4 Conversion between the Metric and the Inch
Metric input or inch input is set by NO.0000 Bit2(INI). G codes corresponding to metric/inch
system is as follows:
G20
:
inch input
;
G21
:
mm input.
Input data unit becomes the inch or metric input unit when NO.0000 Bit2 (INI) setting is changed.
But, the angle unit is not changed. It is suggested that the system should be turned on again when INI
is modified. The unit of the following value is changed after metric/inch system is switched.
——F feedrate;
——position code;
——zero offset of workpiece;
——tool compensation value;
——graduation unit of MPG;
——movement distance in incremental feed.
NO.1001 Bit0 (INM) can be used to set machine’s metric/inch output instead of metric/inch input.
1.4.5 Linear Axis and Rotary Axis
NO.1006 Bit0 (ROTx) can set each axis to a linear axis or rotary axis. NO. 1006 Bit 1 (ROSx) can
be used to select the rotary type for each axis.
Absolute coordinate value is displayed circularly with the movement per rev set by NO.1260
when the cycle function is executed, which can prevent the rotary axis from overflowing. The cycle
function is valid when NO.1008 Bit 0(ROAx) is set to 1.
For absolute value code, the coordinate value is the corresponding angle cycle value of per rev
set by NO. 1260 after the machine moves. When NO.1008 Bit 1(RABx) is set to 0, the machine
rotates according to the shortest distance (to the target point). For incremental code, the machine
moves according to the angle defined by the code.
1.5 Structure of an NC Program
User needs to compile part programs (called program) according to command formats of CNC
system. CNC system executes programs to control the machine tool movement, the spindle
starting/stopping, the cooling and the lubricant ON/OFF to complete the machine of workpiece.
Program example:
Summary of Contents for GSK988TA
Page 6: ...GSK988TA GSK988TA1 GSK988TB Turning Center CNC System User Manual Programming Operation VI ...
Page 19: ...1 Ⅰ Programming PROGRAMMING ...
Page 227: ...209 Ⅱ Operation OPERATION ...
Page 369: ...Chater 10 Machining Example 351 Ⅱ Operation ...
Page 371: ...353 Appendix ...
Page 465: ...Appendix 1 Parameters 447 Appendix ...
Page 479: ...Appendix 3 Interface Explanation 461 Appendix ...
Page 527: ...Appendix 5 Installation Layout 509 Appendix ...