CNC Machine Simulation Tool Setting Device – CNCLATHING


In the CNC machining equipment used, the tool setting device is usually used to measure the tool length, the infrared trigger probe is used, and then the infrared receiver sends the switch signal to the CNC system to measure the tool length. For straight edge tools, the angle of the tool needs to be measured, which can not be realized by the infrared trigger probe. If equipped with a special angle measuring instrument, not only the cost is high, but also the communication problem with the CNC system is solved. Therefore, according to the simulated value of the measured tool angle, using the analog input interface of the CNC system to realize the automatic tool setting of the straight edge tool of the CNC machine is a simple, practical and low-cost effective tool setting method. Here’s what you need to know about simulated tool setting device for CNC machine.

Principle Design Of Tool Setting Device

The automatic tool setting function is realized by using laser sensor and macro program. The analog tool setting technology is used for the first time in the angle setting of sharp and straight knives. The angle setting of sharp and straight knife is to find the accurate angle of the blade. The analog value obtained from the laser sensor is transmitted to the NC system. Through comparison and calculation, the CNC system automatically records the position of the blade in the mechanical coordinates, automatically sets the tool angle coordinates, and completes the automatic tool setting function of the blade angle.

Design Implementation Scheme

Kearns ib10 laser sensor is used as the reference tool for straight and circular tools of ultrasonic spindle. Among them, Fu series sensor is used to set the reference tool length, and IB series sensor is used to set the reference linear tool angle. In order to complete the tool setting function of straight tool angle, we first try to identify the tool angle by using the analog signal output by the sensor in the CNC system. The analog signal output by the sensor is transmitted to the CNC system through the HIO analog input sub module. When setting the tool angle, the system first obtains the minimum simulation value of the tool at the blade position, that is, the tool position with the least shading in the sensor. The position coordinates of the tool edge are determined by the minimum simulation value. The whole tool setting process is completed by the tool setting macro program. In the machining program, just input the corresponding tool number, the system will automatically complete the reference tool setting of tool length and angle, and automatically set and compensate in the system without any other operation, which effectively improves the machining efficiency.


Use the amount of light blocked by the straight edge in the laser sensor to determine the position of the blade. The simulation value of the shading intensity of the laser sensor is transmitted to the CNC system, and the tool angle is set through the processing of PLC program and CNC system automatic tool setting macro program.

Analog Signal Processing By PLC Program

(1) Obtain the minimum analog quantity: use M35 and M36 to specify on and off respectively to obtain the minimum analog quantity signal. After opening, the tool rotates for more than half a cycle to obtain the minimum value of analog quantity.

(2) Tool angle measurement: Use M32 and M33 to turn tool angle measurement on and off respectively. After opening, the position of the blade is obtained by comparing the real-time analog of the tool rotation angle with the minimum analog of the blade position.


The tool setting mode of analog tool angle is adopted, which has the advantages of low cost and convenient operation. It is applied to the calibration of ultrasonic CNC milling straight edge tools in an aircraft manufacturer. In the machining program, just input the corresponding tool number, and the system will automatically complete the reference calibration of tool angle and set it in the system. Compensation, without any other operation, effectively improves the processing efficiency.