Beginning your Fanuc NC program with safety code. How do you begin writing all your machine tool programs?The greatest majority of crashes are a result of improper programming or programming that could eliminate the chance of operators making mistakes. CNC programmers often forget about Modal M-codes. They are often left active and are not canceled within the program. What happens if an operator punches a wrong code into MDI like G18 and then starts up the program? If there was no G17 in their program then they are in trouble. I have seen this happen many times. Here is an example safety code that is used on Fanuc controls. Machine tool builder and various machine models will differ. So check with the OEM or distributer for proper format, if you need to figure them out yourself. The state at which you generally want to attain is when the machine is initially powered up. What you need to do is figure out which ones are modal and put them in your first few lines. Here is an example of a program. Lathes and machining centers may vary. Important note:Many machine tools have limitations as to how many G or M-codes you may have in one line. |
|
Example Program with safety code
Program safe postion
...... |
|
|
|
CNC programming safety code and causes for crashes. How to avoid improper G-code and NC programming mistakes. |