Chapter 10 Code Explanation
82
b. G91 usage
G92 X0 Y0 // Reference point (0,0)
G91 // Relative coordinate
G00 X20 Y0 //Rapidly moving gun to (20,0)
M07 //Cutting device on
G01 X120 Y100 //Cutting to(140,100)
M08 //Cutting device off
M02 // End of program
(20,0)
(140,100)
Fig 10.3 G91 usage
3. G20/G21
Format:
G20/G21
G20: inches unit. All of X,Y,I,J,R,U,V after G20 are inches unit.
G21: metric unit. All of X,Y,I,J,R,U,V after G21 are metric unit.
Note:
If no G20/G21 in the code, take the metric as data’s unit.
The conversion formula of inches and metric: 1 inches ≈ 25.4mm。
4. G00 Traverse rapidly
This instruction expresses that rapidly traverse to specific location, which the system
will rapidly move to at the rate of “G00 move speed* time ratio” from start point.
Format:
G00 X/Un Y/Vn 【Fn】
Parameters meaning:
Fn – rapidly moving to specific location at the limited rate;
Un – displacement of endpoint’s X coordinate relative to start point of current segment,
unit(mm);
Vn – displacement of endpoint’s Y coordinate relative to start point of current segment,
unit(mm);
(In the relative coordinate system):
Xn – displacement of endpoint’s X coordinate relative to start point of current segment,
unit(mm);
Yn – displacement of endpoint’s Y coordinate relative to start point of current segment,
unit(mm);
(In the absolute coordinate system):
Xn – displacement of endpoint’s X coordinate relative to working start point,