In my research on gear milling, particularly for spiral bevel gears, I have focused on the modernization of traditional milling machines through numerical control (NC) transformation. The gear milling process is critical in manufacturing, and achieving precise tooth dividing movements is essential for high-quality gear production. In this article, I will discuss my approach to implementing PLC (Programmable Logic Controller) control for the tooth dividing movement in a spiral bevel gear milling machine, based on the analysis of hydraulic systems and NC system integration. The goal is to enhance the accuracy and efficiency of gear milling operations, leveraging domestic NC systems to replace complex mechanical transmission chains. Throughout this work, the term ‘gear milling’ will be emphasized to highlight its importance in industrial applications.
The gear milling process for spiral bevel gears involves intricate motions, including feeding, retreating, and tooth dividing. In my study, I started by analyzing the hydraulic system of a representative gear milling machine, which was originally imported but has since been retrofitted for NC control. This retrofitting is crucial because many older gear milling machines, despite their robust mechanical structures, lack modern control capabilities. By integrating a PLC into the NC system, I aimed to automate the tooth dividing movements, which are typically managed hydraulically. The core of my work revolves around developing M instructions using the embedded PLC in a domestic NC system, specifically the GSK 980MDa, to control the hydraulic actuators for precise positioning during gear milling.
To begin, I explored the development of M instructions for the PLC. In gear milling, after completing the milling of one tooth, the machine must retreat the saddle to create space for tooth dividing between the cradle and workpiece, followed by feeding to mill the next tooth. I utilized the DECB (Decode Binary) function in the PLC to translate M instructions into control signals. The PLC processes code signals (F10-F13) and a strobe signal (F7.0) to execute corresponding operations. For instance, when an M instruction is issued in the NC program, the PLC reads the binary code and triggers specific outputs. I designed a series of M instructions to handle manual and automatic controls for feeding and retreating. Below is a table summarizing the key M instructions I developed for the gear milling process:
| PLC Output Signal | M Instruction | Function in Gear Milling |
|---|---|---|
| R4.4 | M12 | Automatic feeding for tool setting |
| R4.5 | M13 | Automatic retreating after milling |
| R5.5 | M34 | Automatic retreating for tooth dividing |
| R5.7 | M36 | Automatic feeding after tooth dividing |
These M instructions are essential for coordinating the hydraulic system during gear milling. The timing of these instructions is controlled using timers in the PLC. For example, M12 and M13 are set to execute for 10 seconds, while M34 and M36 for 5 seconds, ensuring synchronized movements. The PLC logic can be represented using LaTeX formulas for clarity. The decode operation is defined as:
$$ \text{DECB}(D, S, R) $$
where \( D \) is the destination address for decoded outputs, \( S \) is the source data for binary code, and \( R \) is the result register. In my implementation, when the strobe signal \( F7.0 = 1 \), the PLC reads the code signals and sets the corresponding output bits. The end signal \( G4.3 \) is asserted after the operation completes, allowing the CNC to proceed. This mechanism ensures reliable control in gear milling operations.
Next, I designed the hydraulic system to execute these movements. The hydraulic system controls the rapid motion of the worktable in the gear milling machine. My design includes components such as hydraulic pumps, directional control valves, and speed regulators. The main circuit consists of a three-position four-way valve (Valve 5) for automatic control and a two-position four-way valve (Valve 6) for safety protection. During gear milling, the hydraulic oil flow is directed to advance or retract the worktable cylinder based on PLC signals. I formulated the hydraulic pressure and flow relationships to optimize performance. For instance, the flow rate \( Q \) through a valve can be expressed as:
$$ Q = C_d A \sqrt{\frac{2 \Delta P}{\rho}} $$
where \( C_d \) is the discharge coefficient, \( A \) is the orifice area, \( \Delta P \) is the pressure drop, and \( \rho \) is the fluid density. By adjusting these parameters, I ensured smooth and accurate movements for gear milling. The hydraulic circuit planning involved sequencing the actions: starting from fast feeding to a limit switch, followed by retreating to a deceleration valve, and repeating for each tooth. This cycle is critical in gear milling to maintain precision.

The execution plan for the hydraulic system was detailed to ensure repeatability in gear milling. I mapped out the sequence of movements using a step-by-step approach. Initially, the hydraulic system activates to feed the worktable rapidly until it hits a limit switch (Switch 17). Then, the cradle and workpiece rotate to initial positions for tool setting. After tool setting, the PLC executes M34 to retreat the worktable to a deceleration valve (Valve 12), where the oil flow is cut off. Subsequently, the cradle and workpiece rotate to the cutting start position, and M36 is executed to feed the worktable to Switch 16 for milling. This cycle repeats for each tooth until gear milling is complete. A safety feature triggers if the worktable overtravels, stopping the system via Switch 15. Below is a table summarizing the hydraulic execution steps:
| Step | Action | PLC M Instruction | Purpose in Gear Milling |
|---|---|---|---|
| 1 | Fast feed to Switch 17 | M12 (auto feed) | Position for tool setting |
| 2 | Retreat to Valve 12 | M34 (auto retreat) | Create space for tooth dividing |
| 3 | Feed to Switch 16 | M36 (auto feed) | Position for milling |
| 4 | Mill tooth | N/A | Execute gear milling cut |
| 5 | Repeat Steps 2-4 | M34 and M36 | Continue gear milling for all teeth |
| 6 | Final retreat to Switch 14 | M13 (auto retreat) | Complete gear milling cycle |
For PLC control, I configured the input and output ports to interface with the hydraulic system. The PLC outputs are connected to intermediate relays that drive solenoid valves. For instance, when M12 is executed, output Y3.4 energizes relay KA4, activating Valve 5 to feed the worktable. Similarly, M34 triggers Y3.5 to energize KA5 for retreating. The input ports receive signals from limit switches, such as X1.6 for manual feeding and X1.5 for overtravel protection. The timing logic for M instructions is implemented using timers in the PLC. The execution time \( T \) for each M instruction is set based on hydraulic response times, as shown in the formula:
$$ T = k \cdot \tau $$
where \( k \) is a scaling factor and \( \tau \) is the time constant of the hydraulic actuator. In my setup, I used \( k = 10 \) for M12 and M13, and \( k = 5 \) for M34 and M36, with \( \tau = 1 \) second. This ensures that the gear milling movements are synchronized with the NC program. The PLC ladder logic includes conditions to wait for the end signal \( F1.3 \) before proceeding, preventing conflicts in gear milling operations.
To validate the system, I conducted gear milling trials on spiral bevel gears with parameters: gear ratio 35/35, module 5, pressure angle 20°, and spiral angle 35°. After milling, I measured the gears using a CNC gear measuring center to analyze tooth dividing errors. The initial results showed significant pitch deviations, with single pitch errors up to 69 μm for the concave side and 49 μm for the convex side, corresponding to accuracy grades of 11 and 10, respectively. These errors exceeded the theoretical limits, indicating issues in the gear milling process. I derived the error analysis using formulas for pitch deviation \( \Delta P_t \) and cumulative pitch error \( F_p \):
$$ \Delta P_t = P_{\text{measured}} – P_{\text{theoretical}} $$
$$ F_p = \sum_{i=1}^{n} |\Delta P_{t,i}| $$
where \( P_{\text{theoretical}} = 20 \) μm for single pitch and \( 90 \) μm for cumulative error. The high deviations were attributed to inconsistent cutting depths during gear milling, caused by hydraulic positioning inaccuracies. The hydraulic system’s positioning precision was only 0.1 mm, leading to random errors in tooth thickness.
To address this, I refined the hydraulic system by adjusting the limit switches to align with dead stops, improving positioning accuracy to 0.01 mm. I also optimized the feed speed to balance impact and efficiency in gear milling. After debugging, the gear milling accuracy improved significantly. The final measurements showed single pitch errors of 19.2 μm (grade 7) for the concave side and 12.8 μm (grade 6) for the convex side, with cumulative errors within acceptable ranges. Below is a table comparing the error data before and after debugging:
| Gear Side | Error Type | Before Debugging (μm) | After Debugging (μm) | Accuracy Grade |
|---|---|---|---|---|
| Concave | Single Pitch Error | 69.0 | 19.2 | 7 |
| Cumulative Error | 171.0 | 88.4 | 7 | |
| Convex | Single Pitch Error | 49.0 | 12.8 | 6 |
| Cumulative Error | 77.0 | 30.7 | 5 |
This improvement demonstrates the effectiveness of PLC control in gear milling. The use of dead stops for precise positioning, combined with optimized hydraulic speeds, ensured consistent cutting depths. The gear milling process now achieves accuracy grades of 6 to 7, meeting industrial standards. The success of this approach highlights the potential of domestic NC systems in complex gear milling applications.
In conclusion, my work on PLC control for tooth dividing movement in spiral bevel gear milling has shown promising results. By developing M instructions via an embedded PLC, I automated the hydraulic system for feeding and retreating, crucial for gear milling cycles. The integration of hydraulic planning and PLC logic enabled precise control, reducing errors from 0.1 mm to 0.01 mm. The gear milling trials confirmed that the system can achieve high accuracy, paving the way for broader adoption of domestic NC systems in gear manufacturing. Future work could focus on enhancing the PLC algorithms for adaptive control in gear milling, further improving efficiency and precision. Overall, this research contributes to the advancement of gear milling technology, emphasizing the role of automation in modern manufacturing.
Throughout this article, I have emphasized the term ‘gear milling’ to underscore its centrality in the discussion. The techniques described here can be applied to other types of gear milling machines, promoting innovation in the field. The formulas and tables provided summarize key aspects, from hydraulic dynamics to error analysis, offering a comprehensive guide for practitioners. As gear milling evolves, PLC-based control systems will continue to play a vital role in achieving higher standards of quality and productivity.
