CNC - Computerized Numerical Control

Feed Rate Speed Converter: (mm/M = mm/s × 60)

Milimeter per seconds: mm/s

Feedrate: mm/M

Spindle Speed: (n = (Vc × 1000) ÷ (π × d))

Cutting Speed (Vc): m/M

Diameter (d): mm

Spindle Speed (n): r / min

Cutting Speed: ((Vc = π × d × n) ÷ 1000)

Diameter (d): mm

Spindle Speed (n): r / min

Cutting Speed (Vc): RPM

Feed Rate: (Vf = n × Fz × Zn)

Spindle Speed (n): r / min

Feed Per Tooth (Fz): mm / tooth

Number of flutes (Zn): Flutes

Feed Rate (Vf): mm / min

Feed Per Tooth: (Fz = Vf ÷ (n × Zn))


n = (Vc * 1000) / (π * d) = (25 * 1000) / (3.1415926535898 * 20) = 397.88735772974 (398 r/min)
Vf = Fz * Zn * n = 0.1 * 8 * 100 = 80 mm/min

mm/s - Milimeter per seconds
mm/M - Milimeter per minutes
r/min - Revolutions per minutes (r / M)
Vc - Cutting Speed (m / min)
Vf - Feed Rate (mm / min)
Fz - Feed per tooth (mm / tooth)
d, - Diameter (mm)
n - Spindle Speed (r / min)
Zn - Number of flutes
π - Variable pi: (3.1415926535898, 3.1416)
RPM - Revolutions Per Minutes

Common Letter addresses

CodeFunction
NLine number
GMotion
XHorizontal position
YVertical position
ZDepth
FFeed rate
SSpindel speed
TTool select
MMiscellaneous function
IArc-Incremental center
JArc-Incremental center
RArc-radius
					
					

Other Letter addresses

Variable Description
A Absolute or incremental position of A axis (rotational axis around X axis).
B Absolute or incremental position of B axis (rotational axis around Y axis).
C Absolute or incremental position of C axis (rotational axis around Z axis).
D Defines diameter or radial offset used for cutter compensation. D is used for depth of cut on lathes. It is used for aperture selection and commands on photoplotters.
E Precision feedrate for threading on lathes.
F Defines feed rate.
G Address for preparatory commands.
H Defines tool length offset, incremental axis corresponding to C axis (e.g., on a turn-mill).
I Defines arc center in X axis for G02 or G03 arc commands. Also used as a parameter within some fixed cycles.
J Defines arc center in Y axis for G02 or G03 arc commands. Also used as a parameter within some fixed cycles.
K Defines arc center in Z axis for G02 or G03 arc commands. Also used as a parameter within some fixed cycles, equal to L address.
L Fixed cycle loop count, Specification of what register to edit using G10.
M Miscellaneous function.
N Line (block) number in program, System parameter number to be changed using G10.
O Program name.
P Serves as parameter address for various G codes and M codes.
Q Peck increment in canned cycles.
R Defines size of arc radius, or defines retract height in milling canned cycles.
S Defines speed, either spindle speed or surface speed depending on mode.
T Tool selection.
U Incremental axis corresponding to X axis (typically only lathe group A controls). Also defines dwell time on some machines (instead of "P" or "X").
V Incremental axis corresponding to Y axis.
W Incremental axis corresponding to Z axis (typically only lathe group A controls).
X Absolute or incremental position of X axis. Also defines dwell time on some machines (instead of "P" or "U").
Y Absolute or incremental position of Y axis.
Z Absolute or incremental position of Z axis.

G-Codes

CodeFunction
G00Rapid position.
G01Linear interpolation.
G02Circular interpolation, clockwise.
G03Circular interpolation, counterclockwise.
G04Dwell: Stop for a specified time.
G05FADAL Non-Modal Rapids.
G05 P10000High-precision contour control (HPCC).
G05.1 Q1AI Advanced Preview Control.
G06Curved move.
G06.1Non-uniform rational B-spline (NURBS) Machining.
G07Imaginary axis designation.
G08.
G09Exact stop check, non-modal.
G10Programmable data input.
G11Data write cancel.
G12Full-circle interpolation, clockwise.
G13Full-circle interpolation, counterclockwise.
G14.
G15.
G16.
G17XY plane selection.
G18ZX plane selection.
G19YZ plane selection.
G20Programming in inches.
G21Programming in millimeters (mm).
G22.
G23.
G24.
G25.
G26.
G27.
G28Return to home position (machine zero, aka machine reference point).
G29.
G30Return to secondary home position (machine zero, aka machine reference point).
G31Skip function (used for probes and tool length measurement systems).
G32Single-point threading, longhand style (if not using a cycle, e.g., G76).
G33Single-point threading, longhand style (if not using a cycle, e.g., G76).
G34Variable-pitch threading.
G35.
G36.
G37.
G38.
G39.
G40Tool radius compensation off.
G41Tool radius compensation left.
G42Tool radius compensation right.
G43Tool height offset compensation negative.
G44Tool height offset compensation positive.
G45Axis offset single increase.
G46Axis offset single decrease.
G47Axis offset double increase.
G48Axis offset double decrease.
G49Tool length offset compensation cancel.
G50Position register (programming of vector from part zero to tool tip).
G51.
G52Local coordinate system (LCS).
G53Machine coordinate system.
G54Work coordinate systems (WCSs).
G54.1 P1 to P48.
G55Work coordinate systems (WCSs).
G56Work coordinate systems (WCSs).
G57Work coordinate systems (WCSs).
G58Work coordinate systems (WCSs).
G59Work coordinate systems (WCSs).
G60.
G61.
G62.
G63.
G64.
G65.
G66.
G67.
G68.
G69.
G70.
G71.
G72.
G73.
G74.
G75.
G76.
G77.
G78.
G79.
G80.
G81.
G82.
G83.
G84.
G85.
G86.
G87.
G88.
G89.
G90.
G91.
G92.
G93.
G94.
G95.
G96.
G97.
G98.
G99.

M-Codes

To be filled by OEM.

Marlin G-Code

3D-Printer Motion G-Code

Enable X:
Enable Y:
Enable Z:
G01 X200 Y200 Z200 F9000

.

Code Preview Tool

Preview a CNC FANUC File.

Code

50,50

Preview (X, Width)

Preview (Y, Height)

Preview (Z, Depth)

Preview 3D

Three-Dimention Model

X, Width Front-face Y, Height Z, Depth