Three common methods of tool life monitoring:
1. Specify tool cutting time, and program alarm prompts if the set time is exceeded.
2. Cutting force and cutting power detection, (cutting power) change amplitude value
3. Acoustic emission detection method (machine tools must have sensor hardware)
Specify tool cutting time, and program alarm prompts if the set time is exceeded
When the life of the tool is about to end, we hope that the machine tool can provide us with an "alarm message" to inform the operator to change the tool, so as not to produce "waste parts" before changing the tool.
How to realize this function through CNC program?
Involving two knowledge points:
1. System variable #3000
2. IF THEN macro statement
1. System variable #3000
Specifically, #3000 is an alarm variable. Write this statement in the program. Whenever the program runs to this variable, the machine tool will generate an alarm, and generate an alarm number and an alarm message that you can set.
For example, the following program:
Write a #3000=1(PLEASE CONTACT SOSCNC) at the end of the program
When the program reaches the #3000=1(PLEASE CONTACT SOSCNC) line, an alarm will be generated, including:
The alarm number is: 3001
The alarm message is: PLEASE CONTACT SOSCNC
illustrate:
The format of variable #3000 is: #3000=0~200 ( )
1. The numerical value on the left side of the equal sign ranges from 0 to 200 and is the alarm number. The alarm number displayed on the NC screen is: the value of variable #3000 plus 3000.
2. Alarm information can be written in brackets, but the number of characters in brackets cannot exceed 26 characters.
2. IF[ ]THEN macro statement
This sentence consists of two English letters, translated into Chinese it is: what if...
A condition can be set inside the square brackets. If the condition is true, a macro statement after THEN will be executed.
For example, the IF THEN statement in the following program:
picture
Conditions set in square brackets: #500 is greater than 200
A statement after THEN: #3000=22
When the value of variable #500 is greater than 200, the statement #3000=22 (PLEASE CHANGE THE TOOL) will be executed.
And #3000=22 is an alarm variable, that is, if the conditions you set are met, the system will generate an alarm.
Alarm number: 3022
Alarm message: PLEASE CHANGE THE TOOL
In this way, the program alarm is realized through the IF THEN macro statement and a system variable #3000!
The above is all pure information, thank you for watching! pictures pictures pictures
CNC macro program, which belongs to the category of advanced manual programming, can not only "intelligent" the program, program efficiently, simplify the program, and optimize the tool path...
If you are lucky enough to learn advanced programming macro programs, you will have some advantages in your job. I can do what others cannot do, I can do it quickly when others do it slowly, I can do it at a low cost when others do it at a high cost..., When you have some advantages in your job, you can live a better life in this society!





