Machsupport Forum

G-Code, CAD, and CAM => G-Code, CAD, and CAM discussions => Topic started by: TheNigerian on September 15, 2010, 09:46:47 AM

Title: G CODE TO CUT PARAMETRIC CURVES.
Post by: TheNigerian on September 15, 2010, 09:46:47 AM
Greetings.

I am looking for information about writing GCode to cut mathematical curves in wood.

For example, code to cut a sin curve.

If I can see an example, I am sure I can take it from there.

Help appreciated.
Title: Re: G CODE TO CUT PARAMETRIC CURVES.
Post by: Ya-Nvr-No on September 15, 2010, 08:32:30 PM
make a mcode and call it up in a program
m1212.m1s

For varX = 1 To 10
    varY = Sin (varX)
    Code "g0 X"& varX & "Y"& varY
Next varX
Title: Re: G CODE TO CUT PARAMETRIC CURVES.
Post by: TheNigerian on September 17, 2010, 09:45:26 AM
I thank you bud.

Obviously, it is not the stroll in the park I imagined it would be.

Do you have any references to custom mcode coding please. I want to do some reading.
Title: Re: G CODE TO CUT PARAMETRIC CURVES.
Post by: BR549 on September 17, 2010, 04:45:59 PM
There is also a parametric side of Gcode that you may want to look at. It has most of the math processes you may need such as sin cosin,etc

Just a thought, (;-) TP
Title: Re: G CODE TO CUT PARAMETRIC CURVES.
Post by: TheNigerian on September 20, 2010, 01:51:35 AM
Hi.

I am very intersted in that too.

Can you point me in the direction of texts/sample parametric gcode please?

I just want to control my shapes very directly in mach3.

Title: Re: G CODE TO CUT PARAMETRIC CURVES.
Post by: BR549 on September 20, 2010, 11:34:43 AM
Look in the Mach Manual under Gcode parameters/variables.

(;-) TP
Title: Re: G CODE TO CUT PARAMETRIC CURVES.
Post by: TheNigerian on September 20, 2010, 11:36:13 AM
Thanks bud.

Will do and revert.
Title: Re: G CODE TO CUT PARAMETRIC CURVES.
Post by: TheNigerian on September 21, 2010, 06:10:53 AM
Wow: All of chapter 10.

Guys, I thank you very much indeed.

Deep regards.