Welcome, Guest. Please login or register.
Did you miss your activation email?
September 28, 2016, 12:03:16 PM

Login with username, password and session length
Search:     Advanced search
* Home Help Search Calendar Links Login Register
  Show Posts
Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 »
311  Mach Discussion / VB and the development of wizards / Re: Any new WIZARD ideas to work on ??? on: October 15, 2012, 08: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
%   
312  Mach Discussion / VB and the development of wizards / Re: Any new WIZARD ideas to work on ??? on: October 15, 2012, 03: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
313  Mach Discussion / VB and the development of wizards / Re: Any new WIZARD ideas to work on ??? on: October 14, 2012, 10:41:40 AM
Hi Terry,

I didn't really care it being slow. Sometimes it's better leaving it for 15 minutes to do its job than switching for a second operation on the mill.

Here is what I had:

%
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)
#7 =  [[0.5*#2]*tan[0.5*#5]]  (half side length)
#10 = [[0.5*#5]/360] (single segment revolution amount of A axis)
#11 = [#10/#17] (single rotation fraction 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*360]] A#16 Z#13
#16 = [#16 + #11]
#13 = [#13 + #12]
M99

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

See if you can read it. It has been sometime since I wrote it and it will take me sometime to understand what I meant myself Wink

Dan
314  General CNC Chat / Show"N"Tell ( What you have made with your CNC machine.) / Re: I'm in Hog Heaven on: October 14, 2012, 10:33:33 AM
Yeah, very nice!

Dan
315  Mach Discussion / VB and the development of wizards / Re: Any new WIZARD ideas to work on ??? on: October 14, 2012, 06:33:27 AM
Some time ago I was playing with the idea of cutting squares and hex shapes on a lathe using a servo spindle and a synch move of all it with X and Z. I wrote a parametric Gcode but never got it perfect - a square was coming out with rounded corners and was twisted along the Z. Was not able to figure what was wrong with the code. Would you be interested contemplating this?

Dan
316  Mach Discussion / General Mach Discussion / Re: Beginner Questions on: October 13, 2012, 10:26:47 AM
Did you download the PDF manual? It will answer all (or most) your setup questions.

Regarding the Reset, Mach3 checks if the Estop input signal is active and if it is it wouldn't reset. So unless you have an actual Estop input just set in Ports and Pins the Estop to Active low.

Da
317  Mach Discussion / Works in progress / Re: New IPS (Interactive Programming System) Professional Screen for Turn on: October 10, 2012, 05:29:03 AM
Glad for you brother Smiley

As to beta testing, I think you will have to contact Brian directly. He mentioned on the Yahoo group some time ago that beta phase is close, but I don't think they got there yet.

Dan
318  Mach Discussion / Works in progress / Re: New IPS (Interactive Programming System) Professional Screen for Turn on: October 10, 2012, 03:35:34 AM
Too bad you got the feeling there was not much interest, Wes Sad I was still waiting for the finished version.

Dan
319  General CNC Chat / Show"N"Tell ( Your Machines) / Re: The Laser Project. on: October 09, 2012, 06:40:59 AM
Ah... They are so evenly spaced and bright (I would have expected the grain be darker than rest) that it didn't occur to me it was the grain Wink

Dan
320  General CNC Chat / Show"N"Tell ( Your Machines) / Re: The Laser Project. on: October 09, 2012, 06:17:45 AM
Hi Tweakie,

Why are there vertical lines on the last one?

Dan
Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 »
Powered by MySQL Powered by PHP Powered by SMF 1.1.20 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!