NC Programming Codes: Power Automation America, Inc
NC Programming Codes: Power Automation America, Inc
Note that some of the above G-codes are not standar d. Specific contr ol features, such as laser power
control, enable those optional codes.
M codes simple definition
M00 Unconditional st op
M01 Conditional st op
M02 End of program
M03 Spindle clockwise
M04 Spindle counter clockwise
M05 Spindle stop
M06 Tool change (see Note below)
M19 Spindle orientation
M20 Start oscillation (configured by G35)
M21 End oscillation
M30 End of program
M40 Automatic spindle gear range selection
M41 Spindle gear tr ansmission step 1
M42 Spindle gear tr ansmission step 2
M43 Spindle gear tr ansmission step 3
M44 Spindle gear tr ansmission step 4
M45 Spindle gear tr ansmission step 5
M46 Spindle gear tr ansmission step 6
M70 Spline definition, beginning and end curve 0
M71 Spline definition, beginning tangential, end curve 0
M72 Spline definition, beginning cur ve 0, end tangential
M73 Spline definition, beginning and end tangential
M80 Delete rest of distance using probe function, from axis measuring input
M81 Drive On application block (resynchronize axis position via PLC signal during the block)
M101-M108 Turn off fast output byte bit 1 (to 8)
M109 Turn off all (8) bits in the fast output byte
M111-M118 Turn on fast output byte bit 1 (to 8)
M121-M128 Pulsate (on/off ) fast output b yte bit 1 (to 8)
M140 Distance regulation “on” (configured by G265)
M141 Distance regulation “off”
M150 Delete rest of distance using probe function, for a probe input (one of 16, M151-M168)
M151-M158 Digital input b yte 1 bit 1 (to bit 8) is the activ e probe input
M159 PLC cannot define the bit mask for the probe inputs
M160 PLC can define the bit mask for the probe inputs (up to 16)
M161-M168 Digital input b yte 2 bit 1 (to bit 8) is the activ e probe input
M170 Continue the block processing look ahead of the par t program (cancel the M171)
M171 Stop the block pr ocessing look ahead of the probe input par t program segment (like a G10)
M200 Activate the handwheel operation in the automatic mode (t o introduce an offset in the program)
M201-M208 Select the axis (by number fr om 1 to 8) for the handwheel oper ation
M209 Activate the handwheel operation in the automatic mode, with PLC control of the axis selection
M210 Deactivate the handwheel input while in the automatic mode
M211 Deactivate this handwheel f eature and also remove the handwheel offset (if any)
M213 Spindle 2 clockwise
M214 Spindle 2 counter clockwise
M215 Spindle 2 st op
M280 Switchable spindle/r otary axis, rotary axis on, first combination
M281 Switchable spindle/r otary axis, rotary axis on, second combination
M290 Switchable spindle/r otary axis, spindle enabled, first combination
M291 Switchable spindle/r otary axis, spindle enabled, second combination
Note: Other machine functions, lik e tool change (usually M06) or coolant control, have their M-code value
specified by the PLC application not by the CNC softwar e. Most of the M-code values in above list are
configurable.
Other M-codes (up to M699) can be handled by the PLC application based on the par ticular machine
requirements.
Check the List of Standar d Codes
Power Automation America, Inc.
11213 West Loop Nor th, Suite 170
Houston, Texas 77055-8200
Phone: 713-263-9400
Fax: 713-686-9301
Email: sales.america@power automation.com
Back to Product Description
Back to Home