1. Basic programming instruction G code of machining center
The preparation function is also called G function or G code. The CNC system of the machining center is FAINUC -6M system. The G codes are shown in Table 4-1. have to be aware of is. When two or more G codes belonging to the same level are specified in a program, only the G code instructed after * is valid; in a fixed instruction block, if any G code in group 01 is specified, the fixed function will be automatically Cancel, the system is in the G80 state, and the G codes of group 01 are not affected by any canned cycle G codes.
2. Auxiliary function codes of basic programming instructions for machining centers
The auxiliary function code is expressed by the address word M and two digits, and is mainly used for the manufacturability instructions during the machining operation of the machine tool. Such as the start and stop of the spindle, the switch of cutting fluid, etc.
(1) MO program stop: MO is actually a pause command. When the block with MO instruction is executed, the spindle stops, the feed stops, the cutting fluid is turned off, and the program stops. It is like executing a single block operation, saving all the state information. Use NC-STANT command to start, the machine tool can continue to run.
(2) MI choose to stop: the function of this command is similar to MO. But it must be under the condition that the "optional stop" button on the operation panel is pressed in advance. After executing other instructions of the program segment programmed with M1 instruction. Will stop executing the program. If the "optional stop" button is not pressed, the M1 command is invalid and the program continues to execute.
(3) M2 End of program: This instruction is used to end all programs. After executing this command, the machine tool stops automatic operation and the cutting fluid is turned off. This instruction is often used for machine reset.
(4) M3: The spindle rotates clockwise.
(5) M4: The spindle rotates counterclockwise.
(6) M5: The spindle stops.
(7) M6: Change the tool.
(8) M7: Cutting fluid is on.
(9) M9: Cutting fluid off.
(10) M17: The subroutine ends.
(11) M30: End of program, similar to M2





