Job Recruitment Website - Job information - Wire cutting, what is M code?

Wire cutting, what is M code?

M0 1: Select Stop.

Similar to M00, the program will automatically stop after executing the program segment containing M0 1. M0 1 is effective only when the select stop switch on the machine tool operation panel is pressed.

M02: The main program ends.

Automatic operation stops and CNC device is reset. The program stops at the current position.

M03: Spindle rotates forward. (Spindle rotates counterclockwise)

There is an S instruction in the program section, and M03 is executed to determine the speed.

M04: Spindle reversal. (Spindle rotates clockwise)

Same as M03

M05: Spindle stops.

Perform M03 spindle stop.

M07, M08: Cooling.

Machine tools have different configurations, divided into liquid cooling and fog cooling. Perform M07 and M08 to turn on the cooling system.

M09: Cooling.

All the cooling systems are shut down.

M30: The main program ends.

The emphasis here is on M02 and M30. The former means that the program stops at the end line, and the latter means that the program stops and returns to the program header.

M98: subroutine call.

Use the yes instruction nested in another program. M98 is followed by the program number to be called.

M99: subroutine ends.

After M99, the program returns to the main program. If there is no M98 before M99, the program returns to the main program head, forming an infinite loop. This method is usually used for incremental cycle cutting.