Rotating a profile - 'flower arranging' !
G17 G21 G40 G49 G54 G80 G90 G94
#4 = 0
#5 = 0
#20 = 0
g00 x y z
o100 while [#5 lt 120] (column of six daisies along y axis)
o150 while [#4 lt 180] (line of 9 daisies along x axis)
g10 l2 p1 x[#4] y[#5] r#20 (set zero position)
g00 x y (1st petal tip)
z (work surface)
g91 (incremental mode)
g01 x[-2.4] z[-2] F#3 (cut 1st petal)
g01 x[-4.6] z F#3
g90 (absolute mode)
g00 z (clearance)
#20 = [#20 + 30]
o200 while [#20 lt 360] (finish daisy)
#20 = 0
#4 = [#4+20]
o150 endwhile (finish row)
#4 = 0
o100 endwhile (finish matrix)
g00 x y
So you can nest while/endwhile at least three times !
All that is left is to change tool and add the centres.
Problem transferring it to the m/c which has still got 2.3x on it !
So now trying to update to 2.5. x and ran into problems.
Might be easier to do a new install ?
Will start a new thread later if I can't sort it out.
Just one thing though. When instructed to change references in the ini file to emc2 into linuxcnc, what to do with references to just emc, as in emc.nml or emc.var ?
I didn't need to make any alterations to the keypad/joypad pin (just as well as I haven't found where it is !) so tomorrow we test run the daisy mold.
If G10 is used, I believe the setting is retained at the end of the program, and will affect any subsequent programs, even after a reboot.
It certainly seems to be on my set up.
What is the cleanest way to prevent that happening ?
Is it to include a line at the end of each progamme like G10 L2 P1 x y z , or put that at the beginning ?
Or is there a better way ?
I'm sure the relevant info is somewhere in the documentation, but these old grey cells are beginning to ache
Using the sim on my laptop, I've been using trial and error to get the test cut of my daisy(now changed to 16 petals) to run.
Having loaded the file, whenever I now re-open axis, the Linuxcnc example is rotated !
If someone can please tell me how to neutralise this, perhaps I can solve my other problem !
Thanks skunkworks. I hadn't been including the r ,and that is probably the key !
EDIT Just run a test on sim, and that did the trick. I had to run the program fully, then closed Axis down. Reopened Axis, and the Linuxcnc file now shows with the normal orientation.