Hello Guest it is April 19, 2024, 01:31:56 PM

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Deon Gerber

Pages: « 1 2 3 4 5 6 7 »
11
And.....wait for it........still waiting.

Got a message to check my mail but still waiting.  ???



12
And still waiting! ???

13
Hi DaBase

Paid three days ago. Still waiting for my screen set.

Deon Gerber

14
MACH TOOL BOX / Re: TUBE COPING program
« on: April 28, 2018, 03:19:13 PM »
OK you Guys

Think I have figured it out now.
Head is hurting after this but thats how you learn.

THX
Deon

15
MACH TOOL BOX / Re: TUBE COPING program
« on: April 28, 2018, 10:45:40 AM »
Hi

Maybe you will understand better if I give you a snippet of the code in the wizard.
Think the problem is how I implement the sub routine.????
DRO values get filled in by the user.


Sub Main()
DoOEMButton (169)


CTubeDia = GetOEMDRO(1050)
UCTubeDia1 = GetOEMDRO(1051)
TThickness = GetOEMDRO(1052)
JAngle1 = GetOEMDRO(1053)
OD = GetOEMDRO(1050)
ID = 0
RO = (CTubeDia / 2)
RU = (UCTubeDia1 / 2)
RI = (RO - TThickness)
AF = JAngle1
AStepDeg = 2
Feed = (GetOEMDRO(1054))

OpenTeachFile "PipeCope.nc"
Code"G40 G54 G90 G49 G17 G50 G64 G91.1 G94"
Code"G0 A" & 0.000
Code"G0 X" & 0.000 
Code"F" & Feed
Code"M98 P1000 L180"
Code "G0  A" & 0.000
Code "G0 X" & 0.000
Code"M30"

Code "O1000" 
Code "G1 A" & AStepDeg
Code "G1 X" & (Sqr(RO^2 - ( (RI * Sin (ID))^2)) /  Sin(JAngle1) -  Tan (90-JAngle1) * RI * Cos(ID))
ID = (ID + 2)
AStepDeg = (AStepDeg + 2)
Code "M99"
Code "M30"
Code "%"
CloseTeachFile

Call LoadTeachFile
End Sub

Main                 

Any help will be appreciated.

Thanks
Deon

16
MACH TOOL BOX / Re: TUBE COPING program
« on: April 28, 2018, 10:39:34 AM »
Hi TPS

correct me if I am wrong...... What is the difference between a #variable and a normal declared variable with out the #.
The loop part I understand....The A axis loops 180 times but the X formula gets solved once and then added incrementally to the previous amount.

It must be the way I do the script?????? That's why it does not update the formula in real time.......

G40 G54 G90 G49 G17 G50 G64 G91.1 G94
G0 A0
G0 X0
F500
M98 P1000 L180
G0  A0
G0 X0
M30
O1000
G1 A2
X-6.2545201135712
M99
M30
%


text in red is sopposed to be updated with every run of the loop.

This is where I am stuck....

Thanks
Deon

17
MACH TOOL BOX / Re: TUBE COPING program
« on: April 27, 2018, 10:25:23 AM »
Hi

Made some progress.
The sub seems to be working except for the fact it incrementally ads to the X.
The A axis code does what it should do by incrementally adding 2 degrees at each loop.

On the X however it incrementally ads the result of the formula instead of just plotting the absolute value.

This is the code current output:

G40 G54 G90 G49 G17 G50 G64 G91.1 G94
G0 A0
G0 X0
F500
M98 P1000 L180
G0  A0
G0 X0
M30
O1000
G1 A2
X-6.2545201135712
M99
M30
%

Maybe I am just missing something.
I attached a pic of the tool path output.
Do you have a sample output code that I can look at.

Thanks in advance.
Deon

18
MACH TOOL BOX / Re: TUBE COPING program
« on: April 27, 2018, 08:15:20 AM »
Hi

I've been trying to redo this macro in the form of a Wizard but I keep getting a script error in the flowing line

Code "G1 A" & AStepDeg "X" & (Sqr(RO * 2 - ( (RI * Sin (ID)) *2)) /  Sin(JAngle1) -  Tan (90-JAngle1) * RI * Cos(ID))

It seems that it does not like the "x" part on the same line as the Y.
If I put it on a different line there are no errors but as expected the output is not the same.

A bump in the right direction would be appreciated  .

THX
Deon

19
G-Code, CAD, and CAM discussions / Re: Help with a peck drilling cycle
« on: November 28, 2015, 09:45:23 AM »
Found this explanation by Graham about peck drilling.........

Peck drilling cycle works like this :-

Short retract type, just breaks the chip, drill stays down the hole.

G73 Z-1. R.1 Q.1 F3.

Z = final depth of hole
R= safe starting distance above job
Q= depth of each peck
F= feed rate

or

Full retract type, every peck the drill moves back to start position (R) and then rapids back to cutting depth.

G83 Z-1. R.1 Q.1 F3.

Z = final depth of hole
R= safe starting distance above job
Q= depth of each peck
F= feed rate

If you add a G98 to the line it forces the tool to rapid back the the safe start point.

If you add a G99 to the line it forces the tool to rapid back to the R point. You should then put a G98 on the last move 

If you have 4 holes to drill on 1" centers you would do something like :-

N1 (DRILL 1/4" * 2" DEEP)
G54 G00 G90 G43 X0 Y0 Z25. H1 S1000 M3
G73 G99 Z-2. R.1 Q.25 F2.
X-1.
X-2.
X-3. G98
G80
G91 G28 Z0
M30


The only thing I see different between his and my code is the G98 on the last cycle and the G99 after the G73/G83 instead of in front like my post-processor's out put.
Will give it a go and see the result.

Thanks

20
G-Code, CAD, and CAM discussions / Re: Help with a peck drilling cycle
« on: November 28, 2015, 09:24:52 AM »
Hi

I cannot see how the G83 can affect the rapids between points????
the peck drilling is fine , its only the move between points that is at normal feed speed instead of rapids.

I will keep on digging thou, seems I am missing something small.

Thanks for the reply anyway.

Deon

Pages: « 1 2 3 4 5 6 7 »