Hello Guest it is November 12, 2019, 01:45:50 AM

Author Topic: Any new WIZARD ideas to work on ???  (Read 25354 times)

0 Members and 1 Guest are viewing this topic.

Offline budman68

*
  • *
  •  2,360 2,360
    • View Profile
Re: Any new WIZARD ideas to work on ???
« Reply #10 on: October 14, 2012, 06:21:31 PM »
Terry,

I have a wizard idea for you. I'd to make a button to toggle 4 axes and..........oh wait, that didn't work,  :D

Never-mind!  ;D

Just joshin woith ya-
Dave
----------------------------------------------------------------------
Just because I'm a Global Moderator, don't assume that I know anything !

Dave->    ;)

Offline BR549

*
  •  6,916 6,916
    • View Profile
Re: Any new WIZARD ideas to work on ???
« Reply #11 on: October 14, 2012, 06:52:26 PM »
YA Never know, what did NOT work yesterday COULD work tommorrow.

(;-) TP

Offline BR549

*
  •  6,916 6,916
    • View Profile
Re: Any new WIZARD ideas to work on ???
« Reply #12 on: October 14, 2012, 10:55:58 PM »
Dan I can make the process work BUT I don't get your math(;-(

(;-) TP

Offline Dan13

*
  •  1,244 1,244
    • View Profile
    • DY Engineering
Re: Any new WIZARD ideas to work on ???
« Reply #13 on: October 15, 2012, 04:18:30 AM »
Terry,

The code cuts all sides per revolution - spindles rotates continuously in one direction only. I will have a look later and try to refresh my memory of the math I did.

I wouldn't trust the toolpath display either. I was experimenting with a delrin bar and it was cutting the shape, but the corners were getting rounded and it was getting twisted along Z.

Dan

Offline Dan13

*
  •  1,244 1,244
    • View Profile
    • DY Engineering
Re: Any new WIZARD ideas to work on ???
« Reply #14 on: October 15, 2012, 09:51:59 AM »
Hi Terry,

Took a look at the code. Since the X axis has to change speed as the A rotates (since tangential speed changes as you change distance from centre) I broke the X axis moves into fractions and used a sub to repeat it. Please see attached screenshot, I hope it will clarify what I meant. In the picture, a, is my X variable and it changes with the angle. I call in the code the ABsegment as single segment and this is then broken into smaller segments depending on the resolution.

I have also made a couple of changes to the code so it will match the sketch and be more readable. Here is the revised one:

%
G0 G49 G40  G17 G80 G50 G90

(A axis is in revolution mode)
(Program in Diameter mode)

#1 = 6   (number of sides)
#2 = 10  (distance across flats)
#3 = 120 (feed: mm/min)
#4 = 0.1 (Z feed per revolution)
#9 = 10 (length along Z)
#17 = 10 (resolution - number of segments in half flat size)

#5 =  [360/#1] (root angle)
#6 =  [2*[0.5*#2]/cos[0.5*#5]] (distance across corners)
; Not used #7 =  [[0.5*#2]*tan[0.5*#5]]  (half side length)
#10 = [0.5*#5] (single segment revolution angle of A axis)
#11 = [#10/#17] (single rotation fraction angle of A)
#16 = #11
#12 = [[-1*[#4/[#1*2]]]/#17] (Z advance per segment)
#13 = #12

G0 X[#2+1] A0
G0 Z1
G1 X#2 Z.1 F#3

#14 = [-1*[#4/#1]] (Z advance per main subroutine execution)

#15 = FIX[#9/#14] (Number of subroutine executions required - 'L')

M98 P100 L#15

M30

O100
M98 P101 L#17
#16 = #11
M98 P102 L#17
M99

O101
G1 X[2*[0.5*#2]/cos[#16]] A#16/360 Z#13 (A converted fromdegrees to revolutions)
#16 = [#16 + #11]
#13 = [#13 + #12]
M99

O102
G1 X[2*[0.5*#2]/cos[0.5*#5-#16]] A#16/360 Z#13  (A converted fromdegrees to revolutions)
#16 = [#16 + #11]
#13 = [#13 + #12]
M99
%   

Offline BR549

*
  •  6,916 6,916
    • View Profile
Re: Any new WIZARD ideas to work on ???
« Reply #15 on: October 15, 2012, 11:14:59 AM »
OK you are thinking from the inside out I was thinking from the outside in.

I picture you turning the OD to fit the shape then cutting the flats like a thread moving the Xin and out as an arc to cut the flats. Starting from the outside then working your way in to the final position.

Example:
http://www.youtube.com/watch?v=uLoavsbtD2k

(;-) TP

Offline Dan13

*
  •  1,244 1,244
    • View Profile
    • DY Engineering
Re: Any new WIZARD ideas to work on ???
« Reply #16 on: October 15, 2012, 02:16:51 PM »
No. I think we are on the same page. My code works exactly like in this video. In the picture above, the square rotates counterclockwise so at first I start from point A and go outwards towards point B and as I go past point B, I start to move inwards. This is why I have to subs in the code - O101 for the first and O102 for the second.

What's interesting is that in the end of the video they show the white plastic parts and their square looks pretty similar to mine - with corners rounded and flats not being flat but rather a bit concave in the middle (see attached photo. Not the best quality, but you can see what I mean). Only difference is that mine was twisted in the Z in addition to this (again see the picture). Then what's interesting is that on the next photo they show perfect polygons in metal which don't look like have been made on this machine.

Dan

Offline BR549

*
  •  6,916 6,916
    • View Profile
Re: Any new WIZARD ideas to work on ???
« Reply #17 on: October 15, 2012, 02:28:48 PM »
When I run your code it does NOT rotate the part .

I agree that the picture they show of the steel part did NOT come from that machine(;-) Doing it the way it showed in the example. MAYBE if they use a fine tip and MANY small moves.

NOW IF mach3 could do arcs in the A axis this would be simple.

(;-) TP

Offline Dan13

*
  •  1,244 1,244
    • View Profile
    • DY Engineering
Re: Any new WIZARD ideas to work on ???
« Reply #18 on: October 15, 2012, 02:53:32 PM »
Hmm... strange, you are right it doesn't rotate the part and actually does some odd moves here too. Could be that I had a different version of the code on the machine itself, may be I modified it there though I can't see something wrong with this one. Will check later if I have a different version there as it did work and produce the above.

Yes, seems like arcs would make it a lot easier. A bit hard to visualise, but it makes sense.

Dan
Re: Any new WIZARD ideas to work on ???
« Reply #19 on: October 15, 2012, 03:58:34 PM »
Hi Dan,
when I look at your workpiece it looks to me as your code does more or less what it should do, but your tool has not the right shape.
See pict.
just a thought

Alex