G CodesG codes are used to configure the photo plotter. Commonly implemented codes include:
Typically for laser photo plotters, G54 codes are rarely necessary. Older vector plotter controllers may require this preparatory G codes for changing apertures (i.e. G54D10*). A common situation where G codes are mandatory for all machines is when the data is switching from vectors to arcs and vice versa. When switching from drawing vectors (G01) to drawing arc (G02, G03), the controller must be informed of the change of mode. Another important case for G codes is when determining if the arc is a quadrant (G74) or Full 360 (G75). Quadrant arcs never cross quadrant boundaries, because the center coordinate offsets (I,J Codes) are always unsigned (even if they are negative!). Therefore, it requires at least four G74 arcs to draw one complete circle. Center coordinate offsets for 360 arcs (G75) can be positive or negative, allowing for a single command to draw a complete circle. In either case, the center coordinates are given relative to the start point of the arc. The most dramatic difference between Quadrant and Full 360 arcs is that a Quadrant arc with identical start and end points has a sweep of 0 degrees, whereas a similar Full 360 arc is a full circle. The G90 code tells the machine controller that all data following is absolute data. Hence, if following X & Y data follows, the controller will move to the absolute value given by the X & Y value. G91 tells the machine controller that all data following is incremental data. The machine will move the data by the amount of the X & Y value, rather than to the absolute coordinate point. Example: X1000Y1000D02* X3000Y3000D01* In absolute mode (G90), the machine will first move to coordinate point X1000 and Y1000 with the light off, then draw a line to coordinate point X3000 and Y3000 with the light on. In incremental mode (G91) the machine will first move to coordinate point X1000 and Y1000 with the light off, then draw a line to coordinate point X4000 and Y4000 with the light on. This was done by adding X1000 + X3000 = X4000 and Y1000 + Y3000 = Y4000. Here are some more examples of G code usage in conjunction with X, Y, and D code values:
|
| | Ordering | Office Hours | Price Estimator | Privacy Policy | About Us | Legal | |