CNC milling program structure and commonly used code

1. Structure of CNC milling program

A complete CNC milling program consists of three parts: the beginning of the program, the contents of the program, and the end of the program.

(1) The beginning of the NC milling program

The program number is the beginning of the program, and it is also the start marker of the program for searching and calling in the program directory in the memory of the numerical control device. The program number is generally composed of an address code and a four-digit number. Common program-defined address codes are O, P, or %.

(2) Program content

Program content is the main part of the entire program and consists of several program sections. Each program segment consists of several words, each consisting of an address code and several numbers. An instruction word represents a unit of information that represents a position or an action of a machine tool.

(3) The end of the program

The end of the program generally consists of the auxiliary function code M02 (end of program instruction) or M30 (end of program instruction and return program start instruction).

2. The meaning of the words in the program section

(1) Block format

The block format refers to the rules for writing words, characters and data in a block. At present, the word address programmable format is commonly used. It consists of a statement word, a data word, and a program end symbol. The prefix of each word is an English letter, which is called the word address code. The word address code programmable section format is shown in the following table.

Common forms of table segments

N156

G

G

X

Y

Z

A

B

C

F

M

Word address code programmable section format is characterized by: the order of the respective sequence in the program segment is not strict, the unnecessary words and the same continue with the previous block can be omitted; each program segment can have Multiple G commands or G codes; data words can be more or less, the program is short, intuitive, not error-prone, and thus widely used.

(2) Block number abbreviation sequence number

It is usually represented by numbers. The symbol N is also prefixed to the number. Many modern CNC systems do not require a block number, and the block number can be omitted.

(3) Preparation function

The preparation function is abbreviated as the G function, which consists of the preparation function address character G and numbers. For example, the linear interpolation command G01 and the G instruction code have been standardized.

The G code indicates the preparation function. The purpose is to pre-set the control system to some expected state, or to a certain machining mode and state. For example, G00 presets the machine to the fast motion state. The preparation function indicates its own meaning. The G code will cause the controller to accept the programming instruction after the G code in a special way.

(4) Coordinate character

The coordinate word is composed of coordinate address characters and numbers, and is arranged in a certain order. Each group number must have the address character X, Y, Z as the address code. The address characters of each coordinate axis are arranged in the following order. X, Y , Z, U, V, W, P, Q, R, A, B, C, where X, Y, Z are the end coordinates of the tool motion.

The program segment will indicate whether the coordinate value is absolute or incremental and is imperial or metric. The movement to the target position is either rapid or linear.

(5) Feed function F

The feed function consists of feed address characters F and numbers, the number indicating the selected feedrate.

(6) Spindle speed function S

The spindle speed function consists of the spindle address character S and numbers. The number indicates the spindle speed in rpm.

(7) Tool function T

The tool function consists of address characters T and numbers to specify the tool number.

(8) Auxiliary functions

The auxiliary function is abbreviated as M function and consists of auxiliary operation address characters M and numbers.

(9) Block end symbol

The block end symbol is placed after the last useful character of the block and indicates the end of the block. Because the control is different, the terminator should be defined according to the programming manual.

It should be noted that there are many international standards for the format of CNC machine tools. With the development of numerical control machine tools, their system functions are more powerful and more convenient to use. There are certain differences in program format between different numerical control systems. Therefore, it is necessary to carefully understand the programming of a numerical control system when a specific numerical control machine tool is mastered. format.

Polyester Polyol For Elastomer

Polyester Polyol is a type of polyol that is derived from the reaction between a polyol (such as glycerol or ethylene glycol) and a dicarboxylic acid (such as adipic acid or phthalic anhydride). It is commonly used as a raw material in the production of polyurethane foams, coatings, adhesives, and elastomers.


Polyester polyols have several advantages over other types of polyols. They have good chemical resistance, mechanical properties, and thermal stability. They also have low toxicity and are environmentally friendly. Additionally, polyester polyols can be easily modified to achieve desired properties, such as increased flexibility or flame retardancy.


Polyester polyols are typically liquid at room temperature and have a high molecular weight. They can be further reacted with isocyanates to form polyurethane materials, which have a wide range of applications in various industries, including automotive, construction, and furniture.

PU resin, also known as polyurethane resin, is widely used in the production of synthetic leather. Synthetic leather, also referred to as faux leather or artificial leather, is a man-made fabric that imitates the appearance and feel of genuine leather. PU resin is a key component in the manufacturing process of synthetic leather, as it provides the material with its durability, flexibility, and water resistance.


The process of producing synthetic leather involves coating a fabric substrate, such as polyester or nylon, with a layer of PU resin. This resin is typically applied in liquid form and then undergoes a curing process to solidify and bond with the fabric. The resulting material has a leather-like texture and appearance.


PU resin offers several advantages for synthetic leather production. It has excellent abrasion resistance, making the synthetic leather more durable and long-lasting. It also provides flexibility, allowing the material to be easily shaped and molded into different forms. Additionally, PU resin offers good water resistance, preventing the synthetic leather from absorbing moisture and becoming damaged.


Moreover, PU resin can be customized to achieve different finishes and textures, such as smooth, grainy, or embossed patterns, depending on the desired aesthetic. It can also be colored in various shades to mimic different types of leather. This versatility makes PU resin a popular choice for synthetic leather manufacturers.


Overall, PU resin plays a crucial role in the production of synthetic leather, providing the material with its desirable qualities of durability, flexibility, and water resistance.

Polyester Polyol For Elastomer,Polyester Polyol For Tpu,Prepolymer Chemical Material,Polyurethne Raw Chemical

XUCHUAN CHEMICAL(SUZHOU) CO., LTD , https://www.xuchuanpu.com