KADsuite · KODEX Module · Rev A

KODEX

The machinist's reference bible. G-code, CNC parameters, mechanical engineering formulas, plasma & laser cutting settings, welding procedures, and fabrication standards — unified in one searchable knowledge base.

200+
G / M Codes
8
Process Types
12
Calculators
60+
Ref Tables
Quick Ref
At a Glance
Common values & constants
Spindle Speed
N = (SFM × 3.82) / D
RPM from surface speed
Feed Rate
F = N × IPT × Z
in/min from chip load
Kerf Width
laser: 0.1–0.3mm
plasma: 1–3mm typical
Plasma Voltage
100–200V arc
depends on thickness + gas
🔥
Weld Preheat (steel)
≥150 °F for >1″
per AWS D1.1
Bend Allowance
BA = (π/180) × r × A
inside radius method
Tensile (mild steel)
400–500 MPa
A36 / S275
Drill Speed (HSS)
40–80 SFM (steel)
200–300 SFM (aluminum)
G-Code
G-Code Reference

G-codes (preparatory codes) direct the machine's physical motion and positioning. The following table covers the most common modal and non-modal G-codes per FANUC / ISO 6983 conventions. Always verify against your specific controller's documentation.

⚠ Controller Variance: G-code interpretation varies by controller (FANUC, Siemens, Haas, GRBL, LinuxCNC). Always check your machine's specific programming manual. This table follows ISO 6983 / FANUC 0i conventions.
CodeFunctionTypeExample
G00Rapid PositioningModal (0)G00 X10 Y10 Z5
G01Linear InterpolationModal (0)G01 X50 Y30 F200
G02Circular Interpolation CWModal (0)G02 X20 Y20 I5 J0 F150
G03Circular Interpolation CCWModal (0)G03 X20 Y20 R10 F150
G04Dwell (pause)Non-modalG04 P500
G17XY Plane SelectionModal (2)G17
G18XZ Plane SelectionModal (2)G18
G19YZ Plane SelectionModal (2)G19
G20Inch UnitsModal (6)G20
G21Millimetre UnitsModal (6)G21
G28Return to Machine HomeNon-modalG28 Z0
G40Cancel Cutter CompensationModal (7)G40
G41Cutter Comp LeftModal (7)G41 D01
G42Cutter Comp RightModal (7)G42 D01
G43Tool Length Offset +Modal (8)G43 H01 Z5
G49Cancel Tool Length OffsetModal (8)G49
G54–G59Work Coordinate SystemsModal (14)G54
G73High-Speed Peck Drill CycleModal (9)G73 X0 Y0 Z-20 Q3 R2 F80
G74Left-Hand Tapping CycleModal (9)G74 X0 Y0 Z-15 F125
G76Fine Boring CycleModal (9)G76 X0 Z-20 R0.5 F50
G80Cancel Canned CycleModal (9)G80
G81Drill CycleModal (9)G81 X10 Y10 Z-20 R2 F100
G83Deep Peck Drill CycleModal (9)G83 Z-40 Q5 R2 F60
G84Tapping CycleModal (9)G84 Z-15 F125
G90Absolute PositioningModal (3)G90
G91Incremental PositioningModal (3)G91
G92Set Work Coordinate OriginNon-modalG92 X0 Y0 Z0
G94Feed per MinuteModal (5)G94
G95Feed per RevolutionModal (5)G95
G96Constant Surface SpeedModal (13)G96 S200
G97Constant Spindle SpeedModal (13)G97 S1500
G98Return to Initial PlaneModal (10)G98
G99Return to R PlaneModal (10)G99
M-Code Reference

M-codes (miscellaneous functions) control machine auxiliary functions: spindle, coolant, tool change, and program flow.

CodeFunctionNotes
M00Program StopStops spindle, coolant, feed — requires cycle start to resume
M01Optional StopActive only when Optional Stop switch is ON
M02End of ProgramReturns control to start, may reset offsets
M03Spindle CWM03 S1500 — start spindle clockwise at 1500 RPM
M04Spindle CCWFor left-hand tools or reverse tapping
M05Spindle StopDecelerates and stops spindle
M06Tool ChangeM06 T02 — change to tool 2
M07Coolant Mist ONActivates mist coolant
M08Flood Coolant ONActivates flood coolant
M09Coolant OFFDeactivates all coolant
M19Spindle OrientPositions spindle at defined angle for tool change
M30End of Program + ResetEnds program and resets to start, preferred over M02
M48Enable OverrideRe-enables feed/speed override controls
M49Disable OverrideLocks feed/speed overrides at 100%
M98Call SubprogramM98 P1234 L3 — call O1234 three times
M99Return from SubprogramReturns to main program after M98 call
Example Program Structure
G-Code · FANUC ( KODEX Sample Program — Face Mill Op )
O0001 ( Program number )
N10 G21 G17 G40 G49 G80 G90 ( Safety line: mm, XY, cancel comp/TLO/cycles, absolute )
N20 G28 G91 Z0 ( Return Z to home )
N30 T01 M06 ( Tool change: T01 face mill )
N40 G54 ( Work offset 1 )
N50 G43 H01 Z50 ( Tool length offset, rapid to Z50 )
N60 M03 S1200 ( Spindle CW 1200 RPM )
N70 M08 ( Flood coolant ON )
N80 G00 X-10 Y0 ( Rapid to start XY )
N90 G00 Z2 ( Rapid to Z clearance )
N100 G01 Z-0.5 F500 ( Feed to depth 0.5mm )
N110 G01 X110 F800 ( Face mill pass )
N120 G00 Z50 ( Rapid retract )
N130 M05 ( Spindle stop )
N140 M09 ( Coolant off )
N150 G28 G91 Z0 ( Z home )
N160 M30 ( End + reset )
CNC
Feeds & Speeds
Spindle Speed (RPM)
N = (SFM × 3.82) / D
N = RPM · SFM = Surface Feet/Min · D = cutter diameter (inches)
Metric Spindle Speed
N = (1000 × Vc) / (π × D)
N = RPM · Vc = cutting speed (m/min) · D = diameter (mm)
Feed Rate (in/min)
F = N × IPT × Z
N = RPM · IPT = inches per tooth (chip load) · Z = number of flutes
Material Removal Rate
MRR = W × D × F
W = width of cut · D = depth of cut · F = feed rate (all same units)
Chip Load per Tooth
IPT = F / (N × Z)
Rearrangement of feed rate formula to verify chip load
Horsepower Required
HP = (MRR × Kp) / E
Kp = specific cutting force (hp·min/in³) · E = spindle efficiency (0.8–0.9)
Recommended Starting Speeds by Material
MaterialHSS SFMCarbide SFMIPT (0.5″ end mill)Coolant
Aluminum 6061200–500600–12000.002–0.005″Air/flood
Mild Steel (A36)50–100200–4000.001–0.003″Flood
Stainless 30430–60100–2000.0008–0.002″Flood (sulfur-free)
Titanium Ti-6Al-4V20–4060–1200.0005–0.0015″High-pressure flood
Cast Iron50–90200–4000.001–0.003″Dry or air
Brass150–300500–8000.002–0.005″Dry or mist
HDPE / Nylon300–600800–15000.004–0.010″Air / dry
Carbon Fiber (CFRP)300–6000.001–0.003″Dry (compressed air)
Calc
CNC Calculator
Spindle Speed & Feed Rate RPM / IPM
Surface Speed (SFM)
Cutter Diameter (in)
Chip Load / Tooth (in)
Number of Flutes
Results
RPM
Bend Allowance Sheet Metal
Material Thickness (mm)
Inside Bend Radius (mm)
Bend Angle (°)
K-Factor
Bend Allowance
mm
Tap Drill Size 75% Thread
Thread Standard
Thread Size
Tap Drill Size
Mech
Fits & Tolerances

ISO 286 defines the system of limits and fits for cylindrical features. The fit type is specified by a fundamental deviation letter and an IT grade number. Hole-basis system is standard; the hole is held constant and the shaft is adjusted.

Fit TypeISO Symbol (Ø50)DescriptionTypical Use
Loose RunningH11/c11Large clearance; free relative motionAgricultural, rough machinery
Free RunningH9/d9Good clearance; no precision requiredShafts in plain bearings, large temp range
Close RunningH8/f7Moderate clearance; lubrication neededJournal bearings, gear shafts
SlidingH7/g6Small clearance; accurate location + slidingPrecision slides, valve spindles
Locational ClearanceH7/h6Smallest clearance; accurate stationary locationSpigots, flanges, dowel pins
Locational TransitionH7/k6May be clearance or interferenceHubs on shafts (easily assembled)
Locational InterferenceH7/p6Light interference; rigidity & alignmentThin-wall bushings, light press fits
Medium DriveH7/s6Medium interference; press-fit assemblyStandard press fits; semi-permanent
Force / ShrinkH7/u6High interference; heavy press or heat fitHigh-torque drive fits; permanent
IT Grades: IT01–IT18 define tolerance magnitude. IT6 is precision; IT11 is rough. For reference, a Ø50mm IT7 tolerance = ±0.025mm (50µm).
Mech
Thread Standards
ThreadPitch (mm)Tap Drill (mm)Clearance DrillTPI (if UNC/UNF)
M30.52.53.2
M40.73.34.3
M50.84.25.3
M61.05.06.4
M81.256.758.5
M101.58.510.5
M121.7510.213.0
M162.014.017.0
M202.517.521.0
1/4″-20 UNC1.275.1 (#7)6.8 (17/64)20
5/16″-18 UNC1.416.9 (F)8.318
3/8″-16 UNC1.598.5 (5/16)9.916
1/2″-13 UNC1.9511.1 (27/64)13.513
1/4″-28 UNF0.9075.4 (#3)6.828
3/8″-24 UNF1.0588.7 (Q)9.924
Mech
Material Properties
MaterialTensile UTS (MPa)Yield (MPa)HardnessDensity (g/cm³)Note
Steel A36 / S275400–550250~130 HB7.85Structural mild steel
Steel 4140 (Ann.)655415~197 HB7.85Chromoly, heat-treatable
Steel 4140 (HT)1020655~302 HB7.85Hardened & tempered
Stainless 304515205~201 HB7.93Austenitic, non-magnetic
Stainless 316515205~217 HB7.99Molybdenum; marine grade
Aluminum 6061-T6310276~95 HRB2.70Most common structural Al
Aluminum 7075-T6572503~150 HB2.81Aerospace; high-strength
Copper C11022070~40 HRB8.94Electrolytic tough pitch
Brass C360385310~78 HRB8.50Free machining brass
Ti-6Al-4V950880~36 HRC4.43Aerospace titanium alloy
Cast Iron (Grey)100–200~200 HB7.20Brittle; excellent compression
HDPE22–3118–25~65 Shore D0.95Food-safe plastic
Delrin (Acetal)62–76~80 Shore D1.42Precision plastic; low friction
Plasma
Plasma Cutting

Plasma cutting uses an ionized gas jet (plasma arc) to melt and expel metal. Air plasma works on mild steel, stainless, and aluminum. Nitrogen and argon-hydrogen mixes improve cut quality on stainless and thicker materials. Standoff height (torch-to-work distance) critically affects cut quality — typically 1.5–4mm for most systems.

MaterialThicknessCurrent (A)Speed (mm/min)GasKerf (mm)
Mild Steel3mm40A3500–4500Air1.5–2.0
Mild Steel6mm50–60A1500–2500Air1.8–2.5
Mild Steel12mm80–100A700–1200Air2.5–3.5
Mild Steel25mm100–130A200–500Air / O₂3.0–4.5
Stainless 3043mm45A3000–4000N₂1.8–2.2
Stainless 30410mm80A900–1400N₂2.5–3.0
Aluminum3mm40A4000–5500Air / N₂1.5–2.0
Aluminum10mm70A1500–2500Air / N₂2.5–3.5
Pierce Point: For CNC plasma, lead-in lines (typically 3–5mm) prevent pierce damage at the start of a cut. Increase pierce height to 150% of cut height, then ramp down.
Laser
Laser Cutting

CO₂ lasers (10.6µm) excel at non-metals (acrylic, wood, fabric). Fiber lasers (1.06µm) are superior for metals. Diode lasers are low-cost entry-level for wood/leather. Cut quality is governed by power (W), speed (mm/min), focus point, and assist gas (O₂ for mild steel, N₂ for stainless/aluminum clean edge).

MaterialThicknessPower (W)Speed (mm/min)Assist GasKerf (mm)
Acrylic (CO₂)3mm40–60W8000–15000Air0.1–0.2
Acrylic (CO₂)10mm100–150W2000–4000Air0.2–0.3
MDF (CO₂)6mm60–80W5000–10000Air0.2–0.4
Mild Steel (Fiber)1mm500–1000W10000–25000O₂0.1–0.15
Mild Steel (Fiber)3mm1000–2000W5000–12000O₂0.15–0.25
Mild Steel (Fiber)6mm2000–3000W2000–5000O₂ / N₂0.25–0.4
Stainless (Fiber)2mm1000–2000W4000–9000N₂0.12–0.2
Aluminum (Fiber)2mm1500–3000W5000–10000N₂0.15–0.25
Weld
Welding Processes
ProcessCodePositionsBest ForFiller / Electrode
MIG / GMAW135/136AllMild steel, fab shops, high productionER70S-6 wire (mild), ER308L (SS)
TIG / GTAW141AllPrecision, thin gauge, SS, Al, TiER70S-2 (steel), ER4043/5356 (Al)
Stick / SMAW111AllSite work, dirty/rusty metal, thick plateE6010, E6011, E7018
Flux-Core / FCAW136All (gas); 1F–2F (self)Structural, outdoor, thick gaugeE71T-1 (gas), E71T-11 (self)
SAW1211G, 1FHeavy plate, automated, high depositionWire + flux powder
Plasma Arc / PAW15AllPrecision thin sheet, keyhole modeSame as TIG
Oxy-Fuel / OAW311AllThin sheet, brazing, fieldworkOA rods, bronze brazing
MIG Welding Settings (Mild Steel, CO₂/Ar Mix)
Material ThicknessWire Dia (mm)Voltage (V)Wire Speed (m/min)Gas Flow (L/min)
0.8mm0.614–163–48–10
1.5mm0.816–184–610–12
3mm0.8–1.018–226–912–14
6mm1.0–1.222–268–1214–16
10mm1.226–3012–1614–18
20mm+1.2–1.628–3414–2016–20
Preheat: Steel >25mm thick, high-carbon, or alloy steels require preheat. AWS D1.1 mandates preheat of 65°C (150°F) for A514 and similar. Hydrogen-induced cold cracking (HICC) is the primary failure mode in under-preheated thick sections.
Fab
Sheet Metal Fabrication
Bend Allowance (BA)
BA = (π/180) × A × (r + K×t)
A = bend angle · r = inside radius · K = K-factor · t = thickness
Bend Deduction (BD)
BD = 2×OSSB − BA
OSSB = outside setback = tan(A/2) × (r + t)
Flat Pattern Length
L = L₁ + L₂ + BA
Sum of flat legs plus bend allowance for each bend
Minimum Bend Radius
r_min ≈ 0.5–1.0 × t
Depends on material; aluminum typically ≥1t, mild steel ≥0.5t
Springback Angle
θ_SB = θ_bent − θ_final
Overbend by springback amount; typically 2–5° for mild steel
Press Brake Tonnage
T = (575 × t² × L) / W
t = thickness (in) · L = length (in) · W = V-die width (in)
K-Factor Values by Material
MaterialSoft / AnnealedSemi-HardHard
Mild Steel0.35–0.400.41–0.440.45–0.50
Stainless Steel0.38–0.420.43–0.470.48–0.50
Aluminum0.33–0.380.39–0.430.44–0.50
Copper0.35–0.400.41–0.47
Brass0.35–0.420.43–0.50
Links
Official Resources
ASME
American Society of Mechanical Engineers
Standards for mechanical design, GD&T (Y14.5), boiler & pressure vessel codes.
↗ asme.org
AWS
American Welding Society
D1.1 Structural Welding Code (Steel), filler metal specifications, CWI certification.
↗ aws.org
ISO
International Organization for Standardization
ISO 286 fits/tolerances, ISO 6983 G-code, ISO 2553 weld symbols.
↗ iso.org
NIST
Materials Measurement Laboratory
Material properties database, metrology standards, NIST handbooks for machining.
↗ nist.gov/mml
SMACNA
Sheet Metal & Air Conditioning Contractors
HVAC duct construction standards, sheet metal fabrication guidelines.
↗ smacna.org
Machinery's Handbook
Industrial Press
The machinist's bible — threads, fits, speeds, materials, gears, and more. 31st edition.
↗ industrialpress.com
Engineers Edge
Engineering Reference & Calculators
Online reference for tolerances, threads, material properties, beam deflection, and more.
↗ engineersedge.com
MatWeb
Material Property Data
Comprehensive database of material datasheets — metals, polymers, composites, ceramics.
↗ matweb.com
LinuxCNC
LinuxCNC Documentation
Comprehensive open-source CNC controller documentation. G-code reference and HAL config.
↗ linuxcnc.org/docs
Haas CNC
Haas Operator Manuals
Programming and operator manuals for Haas mills and lathes. Free download.
↗ haascnc.com
Miller Welds
Miller Welding Resources
Welding calculators, procedure guides, certification prep, and how-to videos.
↗ millerwelds.com/resources
Hypertherm
Plasma Cutting Resource Library
Consumable selection, cut charts, fine feature cutting guides for plasma systems.
↗ hypertherm.com
Key Standards Reference
StandardBodyCovers
ISO 286ISOLimits & fits for cylindrical features
ISO 1101ISOGD&T — geometrical tolerancing
ASME Y14.5ASMEGD&T (US standard, dimensioning and tolerancing)
ISO 6983ISOG-code / NC programming language
AWS D1.1AWSStructural welding code — steel
AWS D1.2AWSStructural welding code — aluminum
ISO 2553ISOWeld symbols on drawings
ASME B1.1ASMEUnified inch screw threads (UN/UNR)
ISO 68-1ISOMetric screw thread general plan
ASTM A36ASTMStructural carbon steel specification
EN 10025CENEuropean structural steel products
ISO 9013ISOThermal cutting — classification and quality