If you’ve ever walked the floor of a precision machine shop, you know the vertical CNC lathe isn’t just another piece of equipment—it’s the workhorse that turns raw metal forgings, flanges, and large diameter components into parts that keep industries like aerospace, energy, and heavy equipment running. As a vertical CNC lathe supplier, I’ve spent the last 18 years not just selling these machines, but standing shoulder-to-shoulder with our customers as they learn to program them for the first time, troubleshoot mid-run hiccups, and turn a vague part drawing into a finished component with tolerances so tight you can barely slip a sheet of paper between mating surfaces. I’ve seen programmers stare at a blank G-code page for hours, panic when the first test cut yields a 0.02mm error instead of the 0.005mm called for in the drawing, and celebrate when a perfect part rolls off the spindle on the third try. That’s why today, I’m breaking down the process of programming a vertical CNC lathe the way I teach it to every new customer—no fancy jargon, no shortcuts, just real-world steps that work. Vertical CNC Lathe

First, let’s get one critical distinction out of the way right now: programming a vertical CNC lathe isn’t the same as programming a horizontal lathe. On a horizontal lathe, the workpiece spins on a horizontal chuck, and the tool moves parallel to the floor. On a vertical lathe, the workpiece is clamped to a horizontal faceplate that spins like a top, while the turret with cutting tools moves along vertical and horizontal axes. That axis orientation changes every part of the process—from how you set up your coordinate system to how you calculate tool paths. I’ve had new customers show up for training with horizontal lathe programming habits and waste three days making avoidable mistakes, so don’t skip this step: spend 20 minutes on the floor watching your machine cycle through a dry run before you even open your CAM software.
The very first step in any vertical CNC lathe programming project is mastering your workholding and workpiece setup—because no matter how perfect your G-code is, it won’t produce good parts if your workpiece isn’t secured correctly. On vertical lathes, we typically use a power chuck or a faceplate with custom jaws for large, heavy forgings. When programming, you need to define your zero point (the part origin) before you write a single line of code. For almost every vertical lathe part, that zero point is the center of the workpiece face, at the top of the finished part’s bottom face. This is different from horizontal lathes, where origin is usually at the chuck face, and it takes a minute to unlearn that old habit. To set this, you’ll use a touch probe: run the probe along the outer diameter of the workpiece to find its center, then touch the top face to set Z=0. Most modern vertical lathes have a built-in probe cycle that does this automatically, but I always recommend doing a manual check on the first part of a new run to confirm the machine’s readings match your measurements. I once had a customer who relied solely on the probe’s auto-center function, and a worn probe tip led to a 0.5mm shift in the origin that cost them 20 hours of scrap parts—never skip the manual check.
Next, you need to map your axes and tooling configuration to your specific vertical CNC lathe. Unlike horizontal lathes, which have a fixed tool turret with tools arranged radially, vertical lathe turrets often have tools arranged for both turning and facing operations, plus live tooling for drilling, tapping, and milling on the workpiece’s face. Let’s break down the axis notation for clarity: on a standard vertical CNC lathe, the X-axis is the radial movement (left/right from the center of the workpiece) and the Z-axis is the vertical movement (up/down along the spindle). Some machines add a C-axis, which lets the spindle rotate in precise increments to angle tools or machine features around the workpiece’s circumference. When programming, you need to assign each tool in your turret a unique number, define its offset (the distance from the turret center to the cutting tip), and confirm that each tool is calibrated for its intended operation. For example, a turning tool needs a different offset than a facing tool, and a drill bit needs a Z-offset that accounts for its length. I always keep a tool setup sheet taped to the control panel for each machine, updated every time a new tool is added or a worn tool is replaced—this simple step cuts down on setup errors by 70%, based on data from our service team.
Now we get to the core of programming: choosing between G-code (manual programming) and CAM software (automated programming). Both have their place, and as a supplier, I see customers switching between them constantly, depending on the part. Manual G-code programming is best for simple, repetitive parts—like flanges or bearing races—where the tool path is straightforward and you don’t need complex 3D contours. CAM software is essential for complex parts with curved surfaces, pockets, or multi-axis features, like turbine blades or gear housings. Let’s walk through a simple example of a manual program first, so you can see how it works. Suppose we need to turn a cylindrical flange with a 200mm outer diameter, a 150mm inner diameter, and a 50mm thickness. The first line of code will call up our machine’s safety settings, set the units to millimeters, and define the origin we set earlier: G21 G99 G54. G21 sets millimeters, G99 sets feed rate per revolution (critical for consistent cuts on different spindle speeds), and G54 calls our origin. Next, we’ll set our spindle speed and turn on the spindle: S1500 M03. The S1500 is 1500 RPM, and M03 means the spindle is rotating clockwise—important because rotating counterclockwise (M04) will ruin a cut or break a tool. Then, we’ll move the first turning tool to the starting position, just above the workpiece: T0101 G00 X202. Z2. T01 selects tool 1, and T0101 calls the tool offset we set earlier for that tool. G00 is rapid movement, so we’re moving to X=202mm (just outside the workpiece’s 200mm OD) and Z=2mm (just above the top face of the part). Now we can write the cutting line: G01 X150 Z-25 F0.2. G01 is linear interpolation, meaning we move in a straight line at a constant feed rate. We’re moving from our starting position to X=150mm (the inner diameter of the flange) and Z=-25mm (25mm below the top face, so 5mm of extra material left for finishing) at a feed rate of 0.2mm per revolution. Finally, we’ll move the tool away from the workpiece, turn off the spindle, and end the program: G00 X250 Z100 M05. That’s a bare-bones manual program, but it’s how I’ve trained many new programmers to understand the basics before moving to CAM.
For more complex parts, though, CAM software is non-negotiable. I recommend Mastercam, SolidWorks CAM, or GibbsCAM specifically for vertical CNC lathes, because they have built-in post-processors that adjust for vertical axis orientation and common features like face milling and C-axis milling. When using CAM, the key steps are: importing your CAD model of the part, selecting your tooling and workholding, defining your operation type (roughing, finishing, drilling), setting your cutting parameters (spindle speed, feed rate, depth of cut), and generating the G-code. The post-processor is what makes or breaks CAM programming for vertical lathes— a post-processor designed for a horizontal lathe will output code that has the Z and X axes reversed, which will crash your machine and damage your tooling. We provide custom post-processors for every machine we sell, updated to match the specific control (Fanuc, Siemens, Haas) and axis configuration, and we train our customers to test the G-code in the machine’s simulation software before running it on a real workpiece. Last year, a customer used a generic post-processor for their Siemens vertical lathe, and the simulation showed no issues, but when they ran the part, the tool started moving sideways instead of down, because the post-processor misinterpreted the C-axis. That’s a $10,000 mistake that could have been avoided with a purpose-built post-processor—something every vertical CNC lathe programmer should confirm before they start a new project.
Once you have your G-code (whether manual or CAM-generated), the next step is simulation and dry runs. This is non-negotiable, no matter how small or simple the part is. Most vertical CNC lathe controls have a built-in simulator that lets you run through the entire program on screen, so you can watch the tool path without cutting any material. I always tell customers to run the simulation in “detail mode,” not just the fast, overview mode—looking for places where the tool might collide with the chuck, faceplate, or other tools, or where the depth of cut is too aggressive, which could break a tool. I once programmed a simple ring gear and ran the simulation at high speed, missing a line where the tool would dip 10mm into a hardened steel ring. The dry run at 50% speed showed that the tool would bind, and adjusting the depth of cut from 10mm to 5mm per pass fixed the issue—saving them $800 in a broken carbide tool and 4 hours of downtime. Dry runs also let you test your feed rates and spindle speeds, so you can adjust for material type (aluminum, steel, titanium) before cutting the final part. For hard materials like Inconel, you’ll want lower spindle speeds and slower feed rates, while aluminum can run at much higher speeds to save time.
After the dry run comes the first test cut, which is where the rubber meets the road. Use a scrap piece of the same material as your production parts for the first cut—never use a production workpiece for testing. When you run the test cut, take measurements at every critical feature: outer diameter, inner diameter, thickness, surface finish. I always keep a set of micrometers, calipers, and a surface roughness tester on hand during the first run, even for experienced programmers. If the part is 0.02mm oversize on the outer diameter, you can adjust the tool offset in the control instead of rewriting the G-code, which is a quick fix. If the surface finish is rough, you might need to slow the feed rate or replace a dull insert. One common mistake new programmers make is not accounting for tool wear—carbide inserts will wear slightly after 10-20 cuts, so adding a 0.01mm tolerance adjustment to the tool offset every 15 parts will keep your parts within spec without stopping production.
As a vertical CNC lathe supplier, I also want to share a few pro tips that I’ve learned from thousands of customer runs. First, always program for chip evacuation. On vertical lathes, chips can fall back onto the workpiece or wrap around the tool if you don’t plan for them. Adding a retract move after each cut—where the tool moves up 5mm between passes—lets chips fall clear, reducing the chance of scratches or tool breakage. Second, use coolant correctly. Misting coolant works for aluminum, but for steel or titanium, flood coolant directed at the cutting tip is essential to keep the tool from overheating and expanding, which can cause dimensional errors. Third, label every tool with its number and intended operation. I’ve seen customers mix up a turning tool and a facing tool, leading to a scrap part, and it’s such a simple fix to avoid.

Programming a vertical CNC lathe isn’t rocket science, but it requires attention to detail, familiarity with your specific machine, and respect for how the vertical design changes every step of the process. The difference between a well-programmed machine that runs 24/7 with minimal scrap and a machine that crashes or produces bad parts often comes down to the small, intentional steps: setting the origin correctly, using the right post-processor, doing a detailed simulation, and testing on scrap material. If you’re ready to explore how a vertical CNC lathe can streamline your production and need expert guidance on programming, setup, or machine selection, our team is here to help. We have decades of experience working with machine shops of all sizes, from small job shops to large aerospace manufacturers, and we can connect you with training resources, custom post-processors, and ongoing support to make your vertical CNC lathe programming and operation as smooth as possible. Don’t let bad programming habits or generic tools hold your production back—reach out today to learn how we can tailor a solution to meet your needs.
Turn Mill Center References
- Mastercam Vertical Turning Post-Processor Design Guidelines, 2022
- ASME B5.54-2021: Methods for Performance Evaluation of Numerically Controlled Machine Tools
- Lathe Tooling and Workholding Best Practices, Machinery’s Handbook 31st Edition, Industrial Press, 2020
- Vertical CNC Lathe Programming and Setup Manual, Fanuc Corporation, 2021
Jiangsu Xuanman Intelligent Equipment Co., Ltd.
As one of the most professional vertical CNC lathe manufacturers in China, we’re featured by quality products and low price. Please rest assured to buy discount vertical CNC lathe made in China here from our factory. Customized orders are welcome.
Address: No.1-1, Weier Road, Jieji Equipment Manufacturing Industrial Park, Sihong County, Suqian City, Jiangsu Province, China
E-mail: jsxmzn@163.com
WebSite: https://www.xm-machs.com/