Sequence number N
The set of non-contradictory orders that can be given to the machine at once is called a sequence. They are identified by the letter N, and on a normal lathe up to 9999 successive orders can be given. If the program is not very long, it can be numbered 10 by 10, in case it is necessary to introduce an unforeseen complementary order, thus we will have N10, N20, N30, etc. or we could have, N10, N11, N20, etc.[12].
Preparatory functions G
Under the letter G accompanied by a number, a wide variety of functions are grouped that allow the lathe to perform the appropriate and necessary tasks for its work.
There are five basic types of preparatory functions:
1- Mobility functions The most important mobility functions are the following:.
G00. Quick scroll. Indicates the fastest possible movement of the tool carriage, from the reference point to the point where each tool begins work. Special care must be taken when using this function since the trajectory is not controlled by the user but rather the lathe acts based solely on the maximum travel speed. It is never mechanized with it. It only acts at the beginning of the program, each time a tool change occurs, and at the end of the program when returning to the reference point.
G01. Linear interpolation. Indicates that the tool is moving at the programmed work feed, allowing the classic turning and facing operations as well as the machining of cones "Cone (geometry)").
G02 Circular interpolation to the right (clockwise) It is used when it is necessary to machine spherical or radial areas with controlled speed.
G03. Circular interpolation to the left (counterclockwise). It is used when it is necessary to machine empty spherical areas, or left-hand radii.
There are other G mobility functions, which are less important and depend on the equipment installed in the machine.
2- Technological functions The technological functions are those that refer to the way of programming the speed of the head and the work progress. The head rotation speed can be programmed to the desired revolutions per minute, for which function G97 will be prefixed, or it can be programmed to rotate at a constant cutting speed in m/min. In this case it is indicated with function G96. The same happens with the work advance, if you want to program the advance in mm/rev, the G95 function is prefixed and if you want to work in mm/min, the G94 function is prefixed.
3- Conversion functions The most important function of this group is the one that corresponds to the origin transfer to locate the piece zero that is carried out using the G59 function. There are also functions if the dimensioning is in inches or millimeters. Although it has already pre-established the one that will be used normally. Another case of conversion is if it is programmed with absolute dimensions or incremental dimensions.
4- Special machining functions. The most popular of these functions is the one that corresponds to a threading cycle represented by function G33. Other functions of this type are facing, drilling, tapping, reaming, etc.
5- Modal functions. In CNC programs, there are functions that, once programmed, remain active until a contrary function is programmed, or the program is terminated. These functions are called modal functions. As many functions as desired can be programmed in a block, as long as they are not incompatible with each other. For example, functions G00 and G01 cannot be programmed in a block.[13].
T-D Tool Programming
Numerical control lathes have a front drum where a variable number of tools can be housed, generally from 6 to 20 different tools. The tools are programmed with a letter T followed by the number it occupies on the drum, for example T2, the letter T is the initial of this word in English (tool). As each tool has a different length and a different cutting tip radius, it is necessary to enter the correct values for each tool into the program so that the program can run normally.
Apart from the length of the tool, there are G functions to introduce a correction according to the value of the radius of the tool at the cutting tip. Tool radius compensation is of great importance in machining, especially in parts that contain irregular profiles. Lathe tool plates always have rounded tips, this way they are more rigid. The smaller the radius of the tip, the less tendency it has to splinter.[14].