Showing posts with label machine code. Show all posts

NC technology - safety NC code macro

Have you ever been on a machining disaster? when the program "seems" at fault. The tool travel elsewhere and make dents, machining crash, tool breakage? 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.
Often times it is difficult to determine reasoning behind a crash. One reason is when a crash happens the machine is powered down until someone inspects and troubleshoots what has happened. If powered down however; all the modal M-codes are reset back to default settings on power up and is not easily traceable to the operator. I can not tell you how many times I have heard it just take off running a normal proven program. This safety code is likely the answer as long as your operator was not lying to you.
Read more

NC technology - G codes

M codes and G codes are defined as a code telling machine what type of action to perform. The G codes specifically points toward controlling movement of one or multiple machine axes

Basically machine codes are programmed using PLC, so it is very possible that one machine have a different code than the other. Especially when it comes to milling compared to lathe. A same code can means differently according to the machine.
Here is some list of widely used G codes.
Read more

NC technology - M codes

M codes and G codes are defined as a code telling machine what type of action to perform. The M codes specifically points toward controlling which function need to be ON / OFF


Basically machine codes are programmed using PLC, so it is very possible that one machine have a different code than the other. Some of the codes are standardized for ease of use and programming
Here is some list of widely used M codes.
Read more