Hello Guest it is July 15, 2019, 04:56:29 PM

Author Topic: Pocket Wizard by Brian / Kiran  (Read 7313 times)

0 Members and 1 Guest are viewing this topic.

Pocket Wizard by Brian / Kiran
« on: January 21, 2011, 08:08:12 PM »
Having a problem with this wizard.
The job has an area milled down to Z-.1
I want to put a pocket there using the above wizard.
I set the JOB Z to -.1 and the depth to .1
The 2 rough passes at .050 looks good. The first pass starts at z-.150 then goes to z-.2
But the finish pass seems to ignore the JOB Z setting and makes the finish pass at Z -.1 ,the surface of the material.
Am I approaching this correctly ?
If it IS broke, how difficult would it be to fix it ?
Thanks
Re: Pocket Wizard by Brian / Kiran
« Reply #1 on: January 21, 2011, 09:05:52 PM »
it looks pretty easy to fix. Use the edit button script menu to edit the POST CODE button.

near the bottom of the code are two subs, that start like this

Code: [Select]
Sub Finish_ClimbMill(Xpos, Ypos, length, Width, DEPTH, RadTool, finishamount, FeedPlunge, FeedRough, Feedfinish)


Code "X" & Xpos + length / 2 & " Y" & Ypos - finishamount * 2 - RadTool
Code "G0 Z" & (-1 * DEPTH) + Clearance
Code "G01 Z" & (-1 * DEPTH) & " F" & FeedPlunge

Add the variable Zjob to these lines, like
Code: [Select]
Code "G0 Z" & Zjob-(-1 * DEPTH) + Clearance
Code "G01 Z" & Zjob-(-1 * DEPTH) & " F" & FeedPlunge
Do the same for the Finish_ConvMill sub

I have not tested this, but it looks like it ought to work.



Re: Pocket Wizard by Brian / Kiran
« Reply #2 on: January 21, 2011, 09:41:32 PM »
Hi Ron,
Did as you suggested.......


Sub Finish_ConvMill(Xpos, Ypos, length, Width, DEPTH, RadTool, finishamount, FeedPlunge, FeedRough, Feedfinish)

Code "X" & Xpos + length / 2 & " Y" & Ypos - finishamount * 2 - RadTool
Code "G0 Z" & Zjob-(-1 * DEPTH) + Clearance
Code "G01 Z" & Zjob-(-1 * DEPTH) & " F" & FeedPlunge
Code "Y" & Ypos - RadTool & " F" & Feedfinish
Code "X" & Xpos + length - RadTool
Code "Y" & Ypos - Width + RadTool

Now the finish pass runs at Z +.1
We DID change something though, just in the wron direction ?
Thanks for looking,
Russ
Re: Pocket Wizard by Brian / Kiran
« Reply #3 on: January 22, 2011, 04:37:10 AM »
Shouldnt you depth be set to -.2 if you want a pocket -.1 below the surface?
Re: Pocket Wizard by Brian / Kiran
« Reply #4 on: January 22, 2011, 08:00:58 AM »
Shouldnt you depth be set to -.2 if you want a pocket -.1 below the surface?

It actually is. I specify the Job Zero at -.1 and a pocket .1 deep.
Look at the code it generates.
The first 2 rough passes are perfect, 1st at -.15, second at -.2.
Just the finish pass does not account for the -.1 Job Zero.

G00 X2.5002 Y-1.5
G0 Z-0.05               
G01 Z-0.15 F3     (First Rough)
X2.9997 F10
X3.231 Y-1.2688
Y-1.7312
X2.269
Y-1.2688
X3.231
G00 Z0.5
G00 X2.5002 Y-1.5
G0 Z-0.1                     
G01 Z-0.2 F3          (2nd Rough)
X2.9997 F10
X3.231 Y-1.2688
Y-1.7312
X2.269
Y-1.2688
X3.231
G00 Z0.5
X2.75 Y-1.31875
G0 Z-0.1                         
G01 Z-0.1 F3         (Finish, should go to -.2)
Y-1.21875 F5
X2.219
Y-1.78125
X3.281
Y-1.21875
X2.75
Y-1.26875
G00 Z0.5
M5 M9
M30
« Last Edit: January 22, 2011, 08:05:13 AM by Overloaded »

Offline alenz

*
  •  137 137
    • View Profile
Re: Pocket Wizard by Brian / Kiran
« Reply #5 on: January 22, 2011, 11:07:57 AM »
Try this change:

Code "G0 Z" & Zjob+(-1 * DEPTH) + Clearance
Code "G01 Z" & Zjob+(-1 * DEPTH) & " F" & FeedPlunge

In adition you will need to pass the value of the variables to the sub: (two places each;  note that  "Clearance" was missed too)

Call Finish_ClimbMill(Xpos, Ypos, length, Width, DEPTH, RadTool, finishamount, FeedPlunge, FeedRough, Feedfinish, ZJob, Clearance)

Sub Finish_ClimbMill(Xpos, Ypos, length, Width, DEPTH, RadTool, finishamount, FeedPlunge, FeedRough, Feedfinish, ZJob, Clearance)

That should do it.
al
Re: Pocket Wizard by Brian / Kiran
« Reply #6 on: January 22, 2011, 02:34:57 PM »
Well there ya go !
Like a charm, thanks al,
Russ
Re: Pocket Wizard by Brian / Kiran
« Reply #7 on: January 22, 2011, 02:46:35 PM »
Now that you have a fixed copy why not save it and post it here. Just save the .set file under Addons
Re: Pocket Wizard by Brian / Kiran
« Reply #8 on: January 22, 2011, 02:56:11 PM »
Good idea Ron.
Thanks for your help,
Russ
 :)

EDIT: This will replace the Rectpocket.set file in the "Pocket Cutting" folder under Addons, not the "Rectangular Pocket" folder.
« Last Edit: January 22, 2011, 03:22:30 PM by Overloaded »

Offline BR549

*
  •  6,874 6,874
    • View Profile
Re: Pocket Wizard by Brian / Kiran
« Reply #9 on: January 22, 2011, 04:22:21 PM »
IT would be better to store it in the MachTool Box section(;-)

(;-) TP