I'm build this hobby cnc ,
and search g-code on internet and all g-code contain G02/G03 code.
I create an program can read G01 code only, for hobbysts projects!
Thanks in advance!
I'm build this hobby cnc ,
and search g-code on internet and all g-code contain G02/G03 code.
I create an program can read G01 code only, for hobbysts projects!
Thanks in advance!
I'm confused as to what you are asking.
G01 is a straight line move at feedrate
G00 is a straight line move at rapid speed
G02 and G03 are arc moves clockwise and anticlockwise
Are you saying you want to convert an arc into straight lines?
And if so, that's a complicated question.
Because depending on how many segments you want and the length of the arc the G-code will be different every time you change those values.
My program convert an image contour in coordonate pixel...
My program create a file with four characters :A,B,C,D is ecquivalent with:
A - movement 1 step forward axa X
B - movement 1 step backward axa X
C - movement 1 step forward axa Y
D - movement 1 step backward axa Y
My file is small in this mode can be loaded in microcontroller (arduino have 32 kb memory and program from decoding "A","B","C","D" is small ,have 6kb ... and remains free 26 kb for my file)
I need (if exist this function in any program) convert step by step movement in coordonate x,y.
For example :
For any movement motor axa x 1 step is needed this command... set direction and set steps for motor
I need, if exist, any movement (direction and step by x, for example) can be transformed in coordonate G01 x1 y0 (in my case "A")
I needed this result wich is sent to motor can be transformed coordinate!
I can set in any editor all is needed, but result wich is sent to motors can be transformed in coordinate!
Thanks in advance!
And is possible with segments???
I'm still confused as to what you need.
Your not explaining your self very well and It seems like English isn't your first language.
If you are saying you have a program that converts an image to your A,B,C,D then you have everything you need to covert it to G-code.
G01 X = "A Value"
G01 -X = "B Value"
G01 Y = "C Value"
G01 -Y = "D Value"
This would be using incremental programming "G91"
Not absolute "G90"
yes! english is not my first language, i'm from Romania an live in Italy!
My program of microcontroller can read only "A","B","C","D"... I created an program for computer and another from microcontroller, these work fine!)
this is my program...
I do not know how to explain... is easy to transform my A,B,C,D in g-code
Problems appears when i want transform external g-code with g02/g03 ( arc lines ) in to A,B,C,D.
if i can transform a file with g02/g03 in a file only with g00/g01 ... for me is easy to transform this file in A,B,C,D... because is too complicated to calculate g02/g03 with my program... only with g00/g01 is more easily for me!
.
.
you said something about straight lines... how can made arc lines in segment lines?
But not in autocad ... because is huge and payable !
Thanks!