Rotating a profile - 'flower arranging' !

More
11 Jun 2013 18:51 - 11 Jun 2013 18:55 #35526 by grey1beard
Matrix sorted.

G17 G21 G40 G49 G54 G80 G90 G94
#3= 600
#4 = 0
#5 = 0
#20 = 0
g00 x[0] y[0] z[20]
o100 while [#5 lt 120] (column of six daisies along y axis)
o150 while [#4 lt 180] (line of 9 daisies along x axis)
o200 do
g10 l2 p1 x[#4] y[#5] r#20 (set zero position)
g00 x[10] y[0] (1st petal tip)
z[0] (work surface)
g91 (incremental mode)
g01 x[-2.4] z[-2] F#3 (cut 1st petal)
g01 x[-4.6] z[2] F#3
g90 (absolute mode)
g00 z[5] (clearance)
#20 = [#20 + 30]
o200 while [#20 lt 360] (finish daisy)
#20 = 0
#4 = [#4+20]
o150 endwhile (finish row)
#4 = 0
#5 =[#5+20]
o100 endwhile (finish matrix)
g00 z[20]
g00 x[0] y[0]
m30


So you can nest while/endwhile at least three times !
All that is left is to change tool and add the centres. :)

John
Attachments:
Last edit: 11 Jun 2013 18:55 by grey1beard.

Please Log in or Create an account to join the conversation.

More
13 Jun 2013 16:17 #35581 by grey1beard
Added the centre design code, and it runs on the laptop sim OK.
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 ?
John

Please Log in or Create an account to join the conversation.

More
13 Jun 2013 16:27 #35582 by cncbasher
they change to linuxcnc.var etc ..
but i dont actualy think it makes any difference , so just leave as they are

Please Log in or Create an account to join the conversation.

More
13 Jun 2013 16:52 #35583 by grey1beard
Many thanks.
John

Please Log in or Create an account to join the conversation.

More
14 Jun 2013 03:35 #35603 by grey1beard
All I needed to do after running through the steps on the wiki for getting the upgrade from 2.3 - 2.4 - 2.5, was to run through the stepconf wizard but keeping my original settings, and all was well.
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. :woohoo:

John

Please Log in or Create an account to join the conversation.

More
16 Jun 2013 23:18 #35717 by grey1beard
Slight problem getting used to using a G10 L2 P1 code.
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[0] y[0] z[0] , 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 :unsure:

John

Please Log in or Create an account to join the conversation.

More
17 Jun 2013 04:40 #35723 by grey1beard
This is now driving me up the wall.
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 !
(see attached)
If someone can please tell me how to neutralise this, perhaps I can solve my other problem !

John
Attachments:

Please Log in or Create an account to join the conversation.

More
17 Jun 2013 05:10 #35724 by skunkworks
I would think a g10l2p1x0y0z0r0 at the end of your program (or in MDI when you want to start fresh)
The following user(s) said Thank You: grey1beard

Please Log in or Create an account to join the conversation.

More
17 Jun 2013 14:10 - 17 Jun 2013 14:21 #35734 by grey1beard

I would think a g10l2p1x0y0z0r0 at the end of your program (or in MDI when you want to start fresh)


Thanks skunkworks. I hadn't been including the r[0] ,and that is probably the key !

Regards
John

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.
Last edit: 17 Jun 2013 14:21 by grey1beard. Reason: Adding update

Please Log in or Create an account to join the conversation.

Time to create page: 0.092 seconds
Powered by Kunena Forum