Programming of CNC Machines. Ken Evans

Чтение книги онлайн.

Читать онлайн книгу Programming of CNC Machines - Ken Evans страница 12

Programming of CNC Machines - Ken Evans

Скачать книгу

to be used are taken from the blueprint.

      For all CNC machines, we follow certain principles to define the method of selecting Workpiece Zero from within the part program. At the beginning of the program, we input the value of the distance between Machine Zero and the selected Workpiece Zero, by employing function G92 or G54 through G59 for Machining Centers and function G50 or G54 for Turning Centers. These measured values are either input directly into the program, as in the case of G92 for Mills and G50 for Lathes, or in offset registers in the control for G54 through 59. Let us review the same situation as above and note the changes of the point coordinates when applying Workpiece Zero.

      G92X15.0Y10.0 or G54-59X0.0Y0.0

      P1 = X0, Y0

      P2 = X0, Y-2.0

      P3 = X-5.0, Y-2.0

      P4 = X-5.0, Y0

image

      Figure 20 Workpiece Zero Point

      The values X15.0 and Y10.0 for G92 or G54 through 59 are valid until they are recalled by the same function, but with different coordinates, for X and Y. When programming Machining Centers, we place function G92 or G54 through 59 only at the beginning of the program, whereas the values assigned to function G50 for Turning Centers will need to be added to the program with respect to each tools position. Once this activation is read by the control, all coordinates will be measured from the new Workpiece Zero allowing the use of part dimensions for programmed moves.

image

      Figure 21 Workpiece Zero for Turning Centers

      With Turning Centers, Workpiece Zero in the direction of the Z axis is most often on the face surface of the workpiece, and the centerline axis of the spindle is Workpiece Zero in the direction of the X axis.

      On Machining Centers, Workpiece Zero is frequently located on the corner of the workpiece or in alignment with the Datum of the workpiece.

      The application of Workpiece Zero is quite advantageous to the programmer because the input values of X, Y, and Z in the program can be taken directly from the drawing. If the program is used another time, the values of coordinates X and Y (assigned to functions G50 and G92 or G54 through G59) will have to be inserted again, prior to automatic operation.

image

      Figure 22 Absolute and Incremental Coordinate System Points

       Absolute and Incremental Coordinate Systems

      When programming in an absolute coordinate system, the positions of all the coordinates are based upon a fixed point or origin of the coordinate system. The tool path from point P1 to P10, for example, is illustrated on the next page:

XY
P10.00.0
P20.010.5
P32.510.5
P42.58.5
P55.58.5
P66.59.5
P76.512.0
P811.012.0
P911.01.0
P1010.00.0

      Programming with an incremental coordinate system is based upon the determination of the tool path from its current position to its next consecutive position and in the direction of all the axes. Sign determines the direction of motion. Based on the drawing from the previous example, we can illustrate the tool path in an incremental coordinate system, starting and ending at P1.

XY
P20.010.5
P32.50.0
P40.0-2.0
P53.00.0
P61.01.0
P70.02.5
P84.50.0
P90.0-11.0
P10-1.0-1.0
P1-10.00.0

       Coordinate Input Format

      CNC machines allow input values of inches specified by the command G20, or millimeters specified by the command G21, and degrees with a decimal point and significant zeros in front of (leading) or at the end (trailing) of the values. When using inch programming the two ways distances can be specified:

      Programming with a decimal point

1 inch = 1. or 1.0
1 1/4 inch = 1.250 or 1.25
1/16 inch = 0.0625 or .0625

      Programming with significant trailing zeros

      In this case, the zero furthest to the right corresponds with the ten thousandths of an inch.

1 inch = 10000
1 1/8 inch = 11250
1 1/32 inch = 10313

      These two coordinate input formats are the standard on all CNC machines

      With modern controllers neither leading nor trailing zeros are required, the decimal placement is the significant factor. In this case the input is as follows:

1 inch = 1. or 1.0
1 1/4 inch = 1.25
1/16 inch = .0625 or 0.0625

      The language described in this book is used for controlling machine tools is known informally as “G-Code”. This language is used worldwide and is reasonably consistent. The standard it is governed by was established by the Electronics Industries Association and the International Standards Organization called EIA/ISO for short. Because of this standardization a program created for a particular part on one machine may be used on other similar machines with minimal changes required.

      Each program is a set of instructions that controls the tool path. The program is made up from blocks of information separated by the semicolon symbol (;). This symbol (;) is defined as the end of the block (EOB) character. Each block contains one or more program words. For example:

WordWordWordWordWord
N02G01X3.5Y4.728F8.0

Скачать книгу