In this blog, we will describe, how we upgrade our CNC milling/router machine with a new 4th axis for the CNC machine and get more functionality, how to set up, wiring components and Configuration in Mach4. New upgrade in a machine shop with the intention to improve our support even additionally and also for making products for our development and needs.
If you have not installed and configured MACH4, follow the instructions in the step-by-step guide for Pokeys57CNC and MACH4. The configuration in the section below is additional steps for setting up in MACH4 with 4th axis CNC for your CNC machine.
Installation and wiring components for CNC 4th axis
In the photo below – the wiring diagram it is shown components which was added into the CNC controller box for the connection rotary axis stepper motor. So we add a stepper motor driver PoStep60-256 which is connected with flat cable with existing CNC controllers PoKeys57CNC and with a stepper motor.
Stepper motor parameters
For easier calculating and check all data, in photo below is data table. In the data table we insert data from the stepper motor:
- pulse per step
All data about the stepper motor you get in the datasheet of the used motor.
Here is a complete explanation about the stepper motor driver. Information about: micro-stepping, types of drivers, how to wire and more.
On rotary axis we have also reducer – different types. We have a planetary reducer and a gear reduction of reducer ratio we also add into a data table. For easier reading and using data table in right side of data table (undervalue) is showed how to use it.
Configuration in MACH4
When we have all data calculated, we start with insert – Configuration data into MACH4.
- Firstly, set motor: Counts per unit is calculated value,
- Secondly, set – enable rotary axis motor (A),
- After control configuration, set- enable data in plugin- pulse engine.
Workpiece and rotary axis setup
The rotary axis has the following characteristic:
- 550 mm working lenght (between jaw chuck and tailstock),
- 4 jaw chuck (80mm diameter),
- planetary reducer,
- stepper motor Nema 23(SY57STH56-4004A).
In photo below, is presented how the 4th axis is mounted on a CNC milling/router machine and how is oriented. When we mount rotary axis on the machine we must pay attention to:
- Rotary axis must be correctly clamped on the CNC machine table,
- Rotary axis must be perfectly aligment – coaxial to the axis Y or X,
- check the working area of CNC machine,
- When mounting was finishing is important to set a zero point, usually zero point of Workpiece is in the middle of part-diameter,
- When we programming rotary axis we must pay attention on correct positions and safe movements near equipment and workpiece because all of us want to machining without collision.
Operation – rotary axis
We successfully mounted the 4th axis for the CNC router, correctly wire electronic components and configure them in MACH4. So we want to test operation, write some G-code and check the rotation and correct angle of turning (before check protocol set A axis to zero, it is important to get real data-measurements).
So If all stepper motor parameter was correctly calculating and set into MACH4, rotary axis will work properly. When you enable MACH4, you will now be able to use the referencing all axis, zero A-axis buttons and jogging rotary axis.
4th axis – test part
Finally we arrived to test part. With upgrading the CNC machine with a rotary axis we want:
- Firstly, more functionality on machine,
- Secondly, make some useful parts from different type of materials.
In the photo below – 4th axis / rotary axis milling part. Machining was fine and machine work properly with rotary axis and this is important for successful try-out.
PoLabs web page,
More information about PoKeys I/O devices