Rotating a profile - 'flower arranging' !
- grey1beard
- Offline
- Elite Member
- Posts: 167
- Thank you received: 0
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
Please Log in or Create an account to join the conversation.
- grey1beard
- Offline
- Elite Member
- Posts: 167
- Thank you received: 0
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.
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.
- grey1beard
- Offline
- Elite Member
- Posts: 167
- Thank you received: 0
John
Please Log in or Create an account to join the conversation.
- grey1beard
- Offline
- Elite Member
- Posts: 167
- Thank you received: 0
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.
John
Please Log in or Create an account to join the conversation.
- grey1beard
- Offline
- Elite Member
- Posts: 167
- Thank you received: 0
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
John
Please Log in or Create an account to join the conversation.
- grey1beard
- Offline
- Elite Member
- Posts: 167
- Thank you received: 0
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
Please Log in or Create an account to join the conversation.
- skunkworks
- Offline
- Moderator
- Posts: 361
- Thank you received: 150
Please Log in or Create an account to join the conversation.
- grey1beard
- Offline
- Elite Member
- Posts: 167
- Thank you received: 0
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.
Please Log in or Create an account to join the conversation.