1)# There is room for some programming style, even in this short program. The grouping of codes in line N05 could have been put on multiple lines. Doing so may have made it easier to follow program execution.
2)# Many codes are "Modal" meaning that they stay in effect until they are cancelled or replaced by a contradictory code. For example, once variable speed cutting had been selected (G97), it stayed in effect until the end of the program. In operation, the spindle speed would increase as the tool neared the center of the work in order to maintain a constant cutting speed. Similarly, once rapid feed was selected (G00) all tool movements would be rapid until a feed rate code (G01, G02, G03) was selected.▼
3)# It is common practice to use a load monitor with CNC machinery. The load monitor will stop the machine if the spindle or feed loads exceed a preset value that is set during the set-up operation. The job of the load monitor is to prevent damage in the event of tool breakage. Furthermore, to some extent it can warn of a tool that that is becoming dull and needs to be replaced or sharpened.▼
▲2) Many codes are "Modal" meaning that they stay in effect until they are cancelled or replaced by a contradictory code. For example, once variable speed cutting had been selected (G97), it stayed in effect until the end of the program. In operation, the spindle speed would increase as the tool neared the center of the work in order to maintain a constant cutting speed. Similarly, once rapid feed was selected (G00) all tool movements would be rapid until a feed rate code (G01, G02, G03) was selected.
4)# It is common practice to bring the tool in rapidly to a "safe" point that is close to the part - in this case 0.01" away - and then start feeding the tool. How close that "safe" distance is, depends on the skill and comfort level of the programmer.▼
5)# If the program is wrong, there is a high probability that the machine will crash! That can be very costly. It is wise to intersperse the program with optional stops (M01 code) which allow the program to be run piecemeal. This gives the programmer a better view of the overall progress of the cutting cycle. The optional stops remain in the program but they are skipped during the normal running of the machine.▼
▲3) It is common practice to use a load monitor with CNC machinery. The load monitor will stop the machine if the spindle or feed loads exceed a preset value that is set during the set-up operation. The job of the load monitor is to prevent damage in the event of tool breakage. Furthermore, to some extent it can warn of a tool that that is becoming dull and needs to be replaced or sharpened.
▲4) It is common practice to bring the tool in rapidly to a "safe" point that is close to the part - in this case 0.01" away - and then start feeding the tool. How close that "safe" distance is, depends on the skill and comfort level of the programmer.
▲5) If the program is wrong, there is a high probability that the machine will crash! That can be very costly. It is wise to intersperse the program with optional stops (M01 code) which allow the program to be run piecemeal. This gives the programmer a better view of the overall progress of the cutting cycle. The optional stops remain in the program but they are skipped during the normal running of the machine.