MACHINING CENTERMachining Center
An NC machine tool that spins the cutter and cuts a workpiece fixed to the table. It changes tools automatically from a tool magazine, so one machine can handle facing, profiling, pocketing, drilling, and tapping. We checked machine types, how to read specs, coordinate systems and offsets, and setup against public materials from machine tool and control makers and university teaching materials.Write G-code in the simulator below and watch it cut in 3D.
Write G-code,
then hit
▶ Run!

▦Types of Machining Centers
Vertical Machining CenterVertical machining center (VMC)
How it worksThe spindle is vertical and cuts from the top face of the workpiece[2][3]
StrengthsEasy to watch the cutting from above and easy to set up. Suited to small, precision parts and low-volume, high-mix work[2][3]
Weaknesses / cautionsChips tend to pile up on the top face. Cutting multiple faces requires re-clamping (or a rotary table)[3]
Example modelsBrother SPEEDIO S300Xd2/S500Xd2/S700Xd2 (vertical, No. 30 taper), FANUC ROBODRILL α-DiB Plus (compact machine with No. 30 spindle)[6][7]
Horizontal Machining CenterHorizontal machining center (HMC)
How it worksThe spindle is horizontal. The table (pallet) is rotated on the B axis to cut the sides in turn[3][8]
StrengthsMulti-face machining (cutting the sides without re-clamping) and consolidated operations. Chips fall away, so tools are less likely to be damaged. Easy to automate with pallet changing and pallet transfer[3][8][9]
Weaknesses / cautionsTends to need more floor space than a vertical machine. Programming and maintenance are harder than on a vertical machine. Heavy workpieces may sag under their own weight[3][2]
Example modelsMakino a51nx (400×400 mm pallet, BT40), Brother H550Xd1 (horizontal No. 30 compact machining center)[8][6]
Double-Column (Gantry) Machining Centers (Including Five-Face Machines)Double-column (bridge / gantry) machining center
How it worksA gate-like frame supports the spindle head. Large workpieces are fixed to the table and cut[2][10]
Five-face machiningA five-face machine swaps spindle heads (attachments) to cut the top and the four sides. The Okuma MCR-A5CII changes between an extension head and a 90° angular head automatically with its automatic spindle head change (AAC), running multi-face machining fully automatically (measured AAC time: 36 s in one example)[10]
StrengthsLarge, heavy parts (aircraft components, large dies; some models handle products over 10 m), plus railway, ship, and bridge parts[2][3]
Example modelsOkuma MCR-A5CII: effective gantry width 2,150–3,650 mm, table 1,500×3,000 to 3,000×12,000 mm, spindle 4,000 min⁻¹, 50 tools[10]
Multitasking Machine (Mill-Turn)Multi-tasking machine (mill-turn)
How it worksHas a rotating-tool spindle and a tool magazine, so it can turn, mill, and more without changing the setup. Comes in lathe-based (turning center type) and machining-center-based versions[5][11]
StrengthsConsolidated operations (lathe and machining center in one machine), fewer setups and less waiting between operations. Small lots, high mix[5][11]
Weaknesses / cautionsHigh purchase price. Not suited to mass production of thousands or tens of thousands of parts[5]
Compact Machining Centers (No. 30 Taper, Drill-Tap Centers)Compact machining center / drill-tap center
How it worksCompact machines with a No. 30 spindle taper. Brother calls them “compact machining centers”; FANUC calls them “small cutting machines”[6][7]
StrengthsLight parts and fast motion keep non-cutting time (tool changes, positioning) short. Space- and energy-saving. Suited to high-volume drilling, tapping, and light cutting of small to medium parts (automotive, electronic)[12][3][7]
Weaknesses / cautionsThe slim spindle is considered a disadvantage in rigidity, so these machines are often seen as weak on large parts and hard materials (though high-torque versions and models with a larger work envelope exist)[12]
ToolsBrother S300Xd2 series: MAS-BT30, 14/21/28 tools, Tool To Tool 0.6–0.7 s, Chip To Chip 1.2–1.4 s[6]
5-Axis Machining Centers5-axis machining center
How it worksAdds two rotary axes to the three linear axes X, Y, and Z. Strong on curved surfaces and complex shapes, and cuts down on re-setups[2]
Spindle taper size and machine sizeSpindle taper size
No. 30: small to medium parts. No. 40: general-purpose, with higher cutting capacity. No. 50: high rigidity, suited to large, heavy parts[3]
Example modelsNo. 30: Brother SPEEDIO (MAS-BT30), FANUC ROBODRILL. No. 40: Makino a51nx (BT40; HSK-A63 as a special option)[6][7][8]
▶NC Simulator: Write G-code and Try Cutting
Reads FANUC-style G-code (G00–G03, cutter radius compensation G41/G42, tool length offset G43, canned cycles G73–G89, subprograms M98/M99) and Custom Macro B (variables, IF, WHILE, G65). The stock is 80×60×20 mm, with work zero at the front-left corner of the top face. Open “Tools and stock for this exercise” to see which tools you can use.
The simulator is for seeing how things work. On a real machine, check the builder's manual and parameters (such as the G73/G83 retract amount and the G04 unit).
✓Exercises (Pass When the Part Is Cut on Size)
Your part is graded automatically against the drawing shape on stock left, gouges, and hole depth. If you get stuck, see the “sample answer”.
1. Cut the outline (G01, cutter comp)
Leave a rectangle X10–70, Y10–50 and cut around it 5 mm deep. Use T1 (Ø10) with G41 cutter compensation.
O0001 G21 G90 G17 G40 G49 G80 G54 T1 M06 S3000 M03 G00 X0. Y-5. G43 H1 Z30. M08 Z2. G01 Z-5. F300 G41 D1 X10. Y0. F600 Y50. X70. Y10. X5. G40 X0. Y-5. G00 Z30. M09 M30
2. Rounded outline (G02, G03)
Leave X10–70, Y10–50 with R8 corners and cut the outline 4 mm deep.
O0002 G21 G90 G17 G40 G49 G80 G54 T1 M06 S3000 M03 G00 X0. Y-5. G43 H1 Z30. M08 Z2. G01 Z-4. F300 G41 D1 X10. Y0. F600 Y42. G02 X18. Y50. R8. G01 X62. G02 X70. Y42. R8. G01 Y18. G02 X62. Y10. R8. G01 X18. G02 X10. Y18. R8. G01 Y20. G40 X0. Y25. G00 Z30. M09 M30
3. Pocket (helical entry)
Cut a pocket centred at X40 Y30, 40 wide and 24 long, 6 mm deep with T5 (Ø6). Do not plunge straight — enter with a helix (G03 with Z).
O0003 G21 G90 G17 G40 G49 G80 G54 T5 M06 S5000 M03 G00 X42. Y30. G43 H5 Z30. M08 Z1. #1=0 WHILE [#1 GT -6] DO1 #1=#1-1.5 G03 X42. Y30. Z#1 I-2. J0. F300 END1 G03 X42. Y30. I-2. J0. G01 X23. Y21. F500 X57. Y25. X23. Y29. X57. Y33. X23. Y37. X57. Y39. X23. Y21. X57. Y39. X23. Y21. G00 Z30. M09 M30
4. Drilling and tapping (G81, G83, G84)
At X15 Y15, X65 Y15, X65 Y45 and X15 Y45: spot drill (T2, 2 deep) → Ø6.8 pilot (T3, 18 deep, G83) → M8 tap (T4, 14 deep, G84).
O0004 G21 G90 G17 G40 G49 G80 G54 T2 M06 S2000 M03 G00 X15. Y15. G43 H2 Z30. M08 G99 G81 X15. Y15. Z-2. R2. F150 X65. Y45. G98 X15. G80 T3 M06 S1800 M03 G00 X15. Y15. G43 H3 Z30. G99 G83 X15. Y15. Z-18. R2. Q3. F180 X65. Y45. G98 X15. G80 T4 M06 S400 M03 G00 X15. Y15. G43 H4 Z30. G99 G84 X15. Y15. Z-14. R5. F500 X65. Y45. G98 X15. G80 M09 M30
5. Hole pattern with a macro (WHILE)
Drill seven Ø6.8 holes (10 deep) on Y30 from X10 to X70 every 10 mm, looping X with variable #1 and WHILE.
O0005 G21 G90 G17 G40 G49 G80 G54 T3 M06 S1800 M03 G00 X10. Y30. G43 H3 Z30. M08 #1=10 WHILE [#1 LE 70] DO1 G99 G81 X#1 Y30. Z-10. R2. F180 #1=#1+10 END1 G80 G00 Z30. M09 M30
≡How to Read Specs
| Item | Meaning | Example |
|---|---|---|
| Table work surface size, maximum load | The size of the surface that holds the workpiece and fixture, and the mass it can carry (uniform load). For horizontal machines, models are classified by pallet work surface size[6][8]Brother notes that acceleration and positioning speed change under heavy loads | Brother S500Xd2: 600×450 mm, 250 kg (400 kg with parameter adjustment). Makino a51nx: 400×400 mm pallet, 400 kg[6][8] |
| X, Y, Z travel (stroke) | The range each axis can move. On vertical machines, also check the distance from the table top to the spindle nose (will workpiece height plus tool length fit?)[6] | S500Xd2: X500, Y450, Z300 (or 380) mm; table top to spindle nose 180–480 mm. a51nx: X560, Y640, Z640 mm[6][8] |
| Spindle taper (nominal size at the spindle nose) | The standard for the spindle bore that takes the tool holder. BT (7/24 taper), HSK, CAT, and dual-contact systems (such as BIG-PLUS). The pull stud type must match as well[6][8] | Brother: 7/24 taper No. 30, tool shank MAS-BT30, pull stud MAS-P30T-2, BT dual-contact (BIG-PLUS) optional. Makino a51nx: BT40, HSK-A63 as a special option[6][8] |
| Spindle speed, spindle motor power, torque | Maximum speed limits the usable tool diameter and material. Power is given as two ratings, short-time and continuous, and varies with speed[6][10] | S500Xd2: 12,000 min⁻¹ (options: 10,000 high-torque, 20,000, 27,000), 10.1/7.0 kW (10 min/continuous), 6,000 min⁻¹ upper limit when tapping. MCR-A5CII: 26/22 kW (30 min/continuous)[6][10] |
| Rapid traverse rate, cutting feed rate | Rapid traverse is the positioning speed (it affects non-cutting time); cutting feed is the feed range while cutting[6][8] | S500Xd2: rapid 50×50×56 m/min, cutting feed 1–30,000 mm/min. a51nx: rapid 60,000 mm/min (B axis 45,000°/min), cutting feed 1–50,000 mm/min[6][8] |
| Tool storage capacity, max tool diameter/length/mass, tool change time | Tool To Tool is the time of the tool change motion; Chip To Chip is the non-cutting time from when one tool finishes cutting until the next tool starts cutting. Brother states that the measurement method follows JIS B 6336-9 and MAS011-1987[6][13]Maximum tool length, diameter, and mass are limited by speed, shape, and center of gravity, and are reference values (Brother) | S500Xd2: 14/21/28 tools, max tool diameter 110 mm, max mass 3.0 kg (total mass limit applies), T-T 0.6/0.7 s, C-C 1.2–1.4 s. a51nx: 60 tools (special options 133, 218, 313), max length 430 mm, max diameter φ70/170 mm, max mass 12 kg[6][8] |
| Pallet changer (APC), pallet transfer | While one pallet is cutting, workpieces are set up on another and swapped in to keep cutting. Common on horizontal machines. Multi-level pallet magazines and transfer systems extend this to long unattended runs[8][9] | |
| Positioning accuracy, repeatability | Check which standard the value was measured to (the meaning differs between editions of ISO 230-2)[6] | S500Xd2: bidirectional positioning accuracy 0.006–0.020 mm (ISO 230-2:1988), bidirectional positioning repeatability under 0.004 mm (ISO 230-2:2014)[6] |
| NC unit, number of controlled axes, least input increment | Number of controlled axes (including additional axes such as a rotary table), number of simultaneously controlled axes, least input increment (for example, 0.001 mm standard with 0.0001 mm optional), number of look-ahead blocks, and available functions (macros, cutter radius compensation, etc.)[6][7] |
⌖Coordinate Systems and Tool Offsets
- Z is the axis parallel to the spindle. Positive is toward the spindle (the direction in which the tool moves away from the workpiece)One source / reference[16]
⚙Setup
- Workholding: vises, chucks, toe clamps (hold-downs), and so on. Incorrect clamping affects both safety and accuracyOne source / reference[21]
- Finding work zero: pick up edges or corners with an edge finder, an electronic probe (touch probe), a pointer, etc., and enter that position in the work coordinate system offset (G54, etc.)One source / reference[21]
- Manual on-machine measurement: put the tool in the spindle, place a sheet of paper between it and the top of the workpiece, lower it to the point where the paper can still just move, and register that position as the tool length (H) (Haas procedure)One source / reference[21]
- On-machine tool measurement (tool setter): contact type (the tool touches the measuring device; plunger and probe types) and non-contact type (finds tool length and diameter from the moment the tool interrupts a laser beam). Both can be used to detect tool breakageOne source / reference[24]
→Machining Flow and Program Structure
- Example sequence: face the top (face mill) → rough steps and profiles → finish → slots. For each tool, start with T_ M06, G43 H_, S_ M03, M08, and end with M09, M05One source / reference[27]
- Drill feed methods: straight to the hole bottom in one pass (like G81), peck feed that retracts out of the hole (like G83), peck feed that retracts only a little (like G73). Peck feed breaks chips short and prevents wrapping, but adds impact, wear, heat, and time, so avoid unnecessary pecks[28][15][20]
- Choosing canned cycles: G81 for shallow holes and center drilling, G82 for counterboring, G73 (chip breaking) and G83 (chip clearing) for deep holes, G84 for right-hand tapping, G85 for reaming and boring, G86 to stop the spindle and pull out, G76 for fine boring (oriented spindle stop and shift away), and finally G80[15][30][20]
Canned cycle list:Drilling Canned Cycles · Macros: Intro to Custom Macros
!Common Mistakes and Safety
- Spindle state in canned cycles: Haas G81, G86, and G76 use the previous spindle command; if it is still M05, the machine moves without spinning (a cause of crashes)One source / reference[30]
↗Learning Path
- Learn the machine layout and axis directionsTable, spindle, ATC, tool magazine; directions of X, Y, Z; machine coordinates and work coordinates
- Read the shape of a programBlocks, words, addresses; modal vs. one-shot; the three-part structure of preparation, cutting, and end
- Write paths with G00, G01, G02/G03Positioning, linear, and arc moves (R vs. I/J). Draw the toolpath in the simulator to check it
- Set up coordinates and offsetsWork zero with G54, tool length offset with G43 H, return to reference point with G28
- Try a setupClamping in a vise, finding work zero with an edge finder or probe, ways to measure tool length (on-machine, off-machine)
- Drilling with canned cyclesG81, G83, G84, G98/G99, G80. Use the calculators for cutting conditions
- Cut profiles with cutter radius compensationLeft/right with G41/G42, rules for lead-in and cancel, adjusting dimensions with the offset value
- Subprograms, macros, and on to CAMRepeat the same shape with M98/M99 and G65, variables and WHILE. Use CAD/CAM for complex shapes
ƒHandy Formulas
Tap feed rate
F = S × P
- F: feed rate (mm/min)
- S: spindle speed (min⁻¹)
- P: pitch (mm)
Work coordinates vs. machine coordinates (diagram available)
Machine coordinate = commanded work coordinate + work coordinate system offset (+ G92 shift)
- Work coordinate system offset: position of work zero as seen in machine coordinates (mm)
⇄Related Pages
📚Sources
Checked on 2026-10-14 against public materials from machine tool, control, tooling, and measuring-instrument makers, teaching materials from universities and public institutions, and bibliographic records of standards. The fine rules of G/M codes (retract amounts, units, when compensation takes effect) differ between machines and controls, so check your machine's manual.
- Mitsubishi Electric, “The Basics of CNC Machining Programming (for Machining center)” e-learning material (BNP-C8027-689, 2020)
- Brother Industries (Mashinavi), “What is a machining center? Basics of structure, types, and benefits (a0037)”
- Brother Industries (Mashinavi), “How horizontal machining centers work: advantages and disadvantages (a0045)”
- Haas Automation, Inc., “Mill Operator's Manual – 12 Mill Programming (Basic Programming: the three-part structure of preparation, cutting, and end)”
- Brother Industries (Mashinavi), “What is a multitasking machine? Advantages and differences from machining centers (a0031)”
- Brother Industries, “S300Xd2 / S500Xd2 / S700Xd2 detailed specs (vertical No. 30 compact machining center)”
- FANUC Corporation, “FANUC ROBODRILL α-DiB Plus series (standard / high-performance specs)”
- Makino, “a51nx (horizontal machining center) product page”
- Makino, “Horizontal machining centers (product category)”
- Okuma Corporation, “MCR-A5CII (five-face double-column machining center) product page”
- Brother Industries, “M300Xd2 (vertical No. 30 multitasking machine) product page”
- Brother Industries (Mashinavi), “How capable are today's No. 30 machining centers? Comparison with No. 40 (a0036)”
- Brother Industries, “News release 2018-10-04: New compact machining centers SPEEDIO S300X2/S500X2/S700X2 launched”
- National Institute of Standards and Technology (NIST), “The NIST RS274NGC Interpreter – Version 3 (NISTIR 6556, 2000)”
- Siemens AG, "SINUMERIK 802D sl/840D/840D sl/840Di/840Di sl/810D ISO Milling Programming Manual, 04.2007 Edition"
- Universiti Teknologi Malaysia (lecture material by the instructor in charge), “CAM/CNC Fundamentals (lecture slides PDF)”
- Japanese Standards Association (JSA Webdesk), “JIS B 6310:2003 Industrial automation systems and integration – Numerical control of machines – Coordinate system and motion nomenclature (bibliographic record)”
- ISO, “ISO 841:2001 Numerical control of machines — Coordinate system and motion nomenclature (bibliographic page)”
- Brother Industries (Mashinavi), “What is G-code? List of main codes and how to read a program (a0084)”
- LinuxCNC, “G-Codes (explanation of G0–G99; stable version, last updated 2026-10-11)”
- Haas Automation, Inc., “Mill Operator's Manual – 8 Mill Part Setup (Tool Offsets / Set a Tool Offset / Work Offsets / Set a Work Offset)”
- Haas Automation, Inc., “Mill Operator's Manual – 17 Mill G-Codes (Cutting G-Codes / Cutter Compensation / Canned Cycles / R Planes)”
- Renishaw, “Machine tool probes and software (probes for machine tools: workpiece measurement and tool measurement)”
- Renishaw, “Tool measurement technology (contact, non-contact, tool breakage detection)”
- ZOLLER, “Why preset and measure tools?”
- Nikken Kosakusho, “Tool presetter E236PLUS product page”
- Saitama University, Faculty of Engineering, Department of Mechanical Engineering practical training, “Machining center program 2019 (training program O19-0101, with a comment on each line)”
- OSG Corporation, “Technical Data Series No. 24: Drilling (revised January 2024)”
- OSG Corporation, “FAQ: How deep does a tap drill hole need to be?”
- Haas Automation, Inc., “Individual G-code pages (mill: G02 G28 G41 G43 G73 G76 G81 G83 G84 G85 G86 G92 G98)”
- Haas Automation, Inc., “Mill Operator's Manual – 13 Mill Macros (argument table, local/global variables, rounding error, look-ahead, examples)”
- Haas Automation, Inc., “Mill M-Codes (list in chapter 18, individual pages for M06 and M30)”
- Tornos, “Tips & Tricks: B Macro – ISO machines (Edition No.4, 2017)”
- c6