Curve analysis of the processing of roll forming machine
In machinery, mold manufacturing industry, often encountered in the processing curve. For a simple curve - arc, G code provides a G2, C3, I, J, K, R commands, it is easy to write a CNC program. But there are some complicated special curves - elliptic, parabolic, and other gear and, of course, more complex high curve on the powerlessness of conventional means. I work in accordance with the practice for many years, through the aid of tools, with special treatment, to write G code program to address these issues.
There are three common methods: the use of the power of G code, write a macro program. tools with Mastercam, procedures generated curve. using C language (or other languages) have a procedure the main data file, and then manually add features in the document head statement, become a running program. These three methods have their own advantages and disadvantages and scope of application, you can complement each other.
Macro code 1.G
It provides variable instruction arithmetic operations (add, subtract, multiply, divide), function (SIN, COS, TAN, ...), there are control commands (IF - GO-TO, WHILE - DO). Clever use of these commands, you can solve a lot of relatively simple, regular curves, such as the sine curve, parabolic, etc..



