What's new
What's new

right angle head programming trouble

snocat_trf

Hot Rolled
Joined
Oct 22, 2002
Location
Canton, South Dakota
I am writing a program to use a right angle head in a Fadal.

I am using a g19 to change to the yz plane but when in graphics the program gives me errors, I tried changing the i's and j's to R's but then they make a big loop.:angry:

here is my program if anyone can help me out.:willy_nilly:

Thanks in advance!

Snocat

%
O7103(MF-3703_AB1_R2
G0G19G40G49G80G90
T7M6
G0Z1.7653Y0.0755S4500M3M8E8
X-0.15H7
Y0.0199
X-0.05
G1Y0.0755X0.063F10.0
Z1.7643F20.0
Y-0.1181
G2Z1.6398Y-0.2426I-0.1245J0.0
G1Z0.4567
G2Z0.3322Y-0.1181I0.0J0.1245
G1Y0.0755
Z0.3312
Y-2.418
Z0.3322
Y-2.2244
G2Z0.4567Y-2.0999I0.1245J0.0
G1Z1.5185
Y-2.017
Z0.6035
G2Z0.479Y-1.8925I0.0J0.1245
G1Y-0.45
G2Z0.6035Y-0.3255I0.1245J0.0
G1Z1.5185
G2Z1.643Y-0.45I0.0J-0.1245
G1Y-1.8925
G2Z1.5185Y-2.017I-0.1245J0.0
G1Y-2.0999
Z1.6398
G2Z1.7643Y-2.2244I0.0J-0.1245
G1Y-2.418
Z1.7653
Y0.0755
G0Z0.15
Z1.7643Y-3.021
Y-3.0766
X-0.05
G1Y-3.021X0.063F10.0
Y-3.2146F20.0
G2Z1.6398Y-3.3391I-0.1245J0.0
G1Z0.4567
G2Z0.3322Y-3.2146I0.0J0.1245
G1Y-3.021
Z0.3312
Y-5.5145
Z0.3322
Y-5.3209
G2Z0.4567Y-5.1964I0.1245J0.0
G1Z1.5185
Y-5.1135
Z0.6035
G2Z0.479Y-4.989I0.0J0.1245
G1Y-3.5465
G2Z0.6035Y-3.422I0.1245J0.0
G1Z1.5185
G2Z1.643Y-3.5465I0.0J-0.1245
G1Y-4.989
G2Z1.5185Y-5.1135I-0.1245J0.0
G1Y-5.1964
Z1.6398
G2Z1.7643Y-5.3209I0.0J-0.1245
G1Y-5.5145
Z1.7653
Y-3.021
Z1.7643
M5M9
G0Z0H0
X0Y10.0E0
M2
%
 

Ox

Diamond
Joined
Aug 27, 2002
Location
West Unity, Ohio
I am using a g19 to change to the yz plane but when in graphics the program gives me errors, I tried changing the i's and j's to R's but then they make a big loop.:angry:

Haven't looked at the code, but I saw a red flag right here.

Try J's and K's.



edit:

As far as the "big Loop"?

Maybe try changing G2/G3 around? I wouldn't have a clue which direction you would look at that to git a Y/Z terp to go the right direction w/o trial/error.


-------------

Think Snow Eh!
Ox
 
Last edited:

snocat_trf

Hot Rolled
Joined
Oct 22, 2002
Location
Canton, South Dakota
Ox,

I changed the I's to K's and it graphed the program with no errors, but it made loops at the corners so I am gonna try the g2-g3 change and see what happens.

I tried changing all the neg's to pos's and it gave me even more errors.


Snocat
 

snocat_trf

Hot Rolled
Joined
Oct 22, 2002
Location
Canton, South Dakota
Ox, you are the BOMB!

I got it to graph out on the screen by changing the G02 to G03

send me your email and I will invite you out for a snowmobile ride next winter or as we call it where I am from going for a "snocat" ride!

Snocat
 

Ox

Diamond
Joined
Aug 27, 2002
Location
West Unity, Ohio
If I'm goin' as far as your place - You can jump in and we'll head to Licoln together if you have a longtrack. :D

riding in SD? :skep:


-------------

Think Snow Eh!
Ox
 

snocat_trf

Hot Rolled
Joined
Oct 22, 2002
Location
Canton, South Dakota
well I live in SD but I grew up in Thief River Falls where the good machines are made!

I also have a hunting shack east of there so we use that for base camp.
 

BobWarfield

Hot Rolled
Joined
Mar 4, 2006
Location
Northern California
Guys, I am curious about this G02/G03 thing.

I had a request to add an axis swapper to my G-Wizard G-Code Editor and did so. You can check it out here:

Swapping Axes for Right Angle Heads, Horizontal Mills, and Such « CNCCookbook

One option I put on it was the ability to "swap related axes". So, if you turn that on, and you ask it to swap X to Y, it will also do I to J and U to V. Hoping to save people a little time.

Anyway, I'm just wondering how often the need to swap G02 to G03 comes about? I thought of adding an option to do that too, but couldn't find another mention of it in other threads on right angle heads.

Best,

Bob W.
 

Ox

Diamond
Joined
Aug 27, 2002
Location
West Unity, Ohio
I think that his G2/G3 deal was related to not knowing fer sure how the control is looking at the arc to decide whether it should have been prog'd in CW or CCW to begin with.

???


The only time that I know of that you may have an app for switching 2/3 is on lower - or front mounted turrets/toolposts on lathes. But that is only if you look at it physically and are punching code at the machine, so even then not really...

Unless some of the ROMI and Haas TL series machines already have that flipped?

I have two front mounted turret lathes that program as if the turret is on the back. This way it is on board with CAM. However it will mess you up as an opperator if your trying to code it at the machine.

Also - 4 axis lathes with a front (lower) turret also code as if they are on the back (top) too. At least on all of my Fanuc equipped machines. If others are not so equipped, then maybe there would be an app?


------------------

Think Snow Eh!
Ox
 

gregormarwick

Diamond
Joined
Feb 7, 2007
Location
Aberdeen, UK
On our hurcos G2/3 are reversed when in the XZ plane. YZ plane is normal though. You'd think all machines would behave the same with something so fundamental?
 

metalmickey

Plastic
Joined
Jul 8, 2011
Location
Auckland, New Zealand
Hi,

The convention is that the programme is written looking from the positive end of the normal axis. So by default we write in the xy plane and look down at the job from the positive z direction and g2 is a cw arc and g3 is a ccw arc.

Therefore when you've changed plane to g19 looking at the plane form the x+ end of the job g2 is cw and g3 is ccw. The programme doesn't know which way the head is oriented and so if you're interpolating an arc from the x- end, a cw arc will need to be programmed g3. and a ccw arc, g2 etc. It is similar for g18 as well.

For a similar reason you may need to change g41's for g42's if working from the x- end. This may be why you're getting loops as the cutter gets to the other side of the line.

I always use X___Y___R__ when programming (manually). It is much easier but the only thing to watch is that if doing an arc larger than 180 degrees you need to make R negative so it goes the long way between the two points.

Cheers and I hope this helps (may be a bit late but never mind!)

Mike
 








 
Top