Mitsubishi — 9.3 Composition of a G-code

Chapter 9 Multiaxial Interpolation Example 1: G00 X 100 Y 100 Example 2: G00 X 100.0 Y 100.0  If the value of a parameter is a floating-point constant, it will be converted into an integer after it is multiplied by 1000. Only three decimal places are supported. Example: G00 X 100.123 Y 100.45678 is converted into G00 X 100123 Y 100456 .  The value of a parameter can be a 16-bit D/W register, or a 32-bit DD/WW register.  If the value of a parameter is a contant, it must be a 32-bit arabic integer. Examples:

G0 XD11 YDD20 ZWW25; G01 XDD30 YD40 ZW10 F400; G1 X100.0 Y25.0 FD50; G02 XD60 Y50.0 ID100 JDD80; G03 YDD90 RD70 F300.0  Size of a G-code  G00, G01, G02, and G03 individually occupy two steps in a program. The other G-codes individaully occupy one step in a program.  If the value of a paramter is an arabic integer, it will occupy three steps in a program. If the value of a parameter is a D/W register, it will occupy 1 step in a program. If the value of a parameter is a DD/WW register, it will occupy two steps in a program.

 Format of a G-code instruction ① G-code ② Parameter mark ③ Value of a parameter ④ Devices which can be used  Typing a G-code instruction Some G-code instructions are composed of instruction names, e.g. G90 and G91. Most G-code instructions are composed of instruction names and operands. No conditional contact precedes a G-code.  Usage of a G-code  Users can put several functions in a line. Example: G91 G01 X100.0 Y300.0 F500.0 M8 G04 X4.5;  If G00, G01, G02, and G03 are in the same line, the last G-code will be executed. Examples: G02 G00 G03 G01 X100.0 Y300.0 F500.0; 9-3