Screwcutting

More
12 Jun 2009 11:51 #422 by BigJohnT
Replied by BigJohnT on topic Re:Screwcutting
Rod,

G33.1 is for rigid tapping.

www.linuxcnc.org/docview/html//gcode_mai...Spindle-Synchronized

G76 is for threading on a lathe.

www.linuxcnc.org/docview/html//gcode_mai...76:-Threading-Canned

Here is an example of a GS2 drive RPM indicator, it might give you enough to get started on your spindle rpm indicator.

www.linuxcnc.org/docview/html//hal_pyvcp...ml#sec:GS2-RPM-Meter

When a reverse is commanded the forward pin is not on so your drive most likely thinks it needs to stop during the reverse part.

Can you post the short program you used?

Regards
John

Please Log in or Create an account to join the conversation.

More
13 Jun 2009 02:08 #424 by acondit
Replied by acondit on topic Re:Screwcutting
John,

I was looking in the Jan 09, 2.3 EMC2_Integrator_Manual.pdf and I didn't find it. I downloaded the newest version of the manual (June 10, 2009) and I did find it. I think that earlier I was looking in the parameter section rather than in pins section.

Alan

Please Log in or Create an account to join the conversation.

More
13 Jun 2009 02:23 #425 by acondit
Replied by acondit on topic Re:Screwcutting
Rod,

I have a working spindle speed digital readout and some HALUI buttons and a Joystick setup (Logitech Attack 3), if you would like I would be happy to give you a copy of all of my ini files. Actually I don't remember if I have the joystick working under 8.04, but if you are interested, I will zip them up and post them.

Alan

Please Log in or Create an account to join the conversation.

More
13 Jun 2009 08:11 #426 by welderfabrod
Replied by welderfabrod on topic Re:Screwcutting
Guys I tried the G76 and it works to a point, but there are a few odd movements so I'll give the short prog that I used to make sure I've got the G76 correct. This is for an 8mm thread 12mm long.

G21 G90 G40
G00 X5 Z1
M03
G76 P1.25 Z-12 I-1 J0.05 R1.0 K0.7668 Q30 H3
G00 X5 Z1
M05
M02
I put the M03 and M05 in but have'nt tried it without them yet.

The odd movement I had with the G33 i.e the apparent stop start along the Z axis I have discovered is actually speed related, that is the slower I set the spindle speed the more stop starts I get. If I increase the spindle speed I get to a point where the stop starts disappear altogether. With the above thread I started at about 150revs where I had I think about 5 or 6 stop starts, the thread was cut to the right length though, it disappeared at about 250revs. (According to the Emco rev counter!!!)

Other odd movements.
1)Cutter makes a X+ movement before moving to the start of the first cut. ( maybe I've misunderstood the G76 here)
2) As the cutter travels back along the drive line it moves a small amount in the X- direction also. I may not have noticed this if it was'nt for the fact that on the X axis I have a graduated handle on the rear of the stepper motor.
3) The cutter is entering and leaving the cut in a circular moition.

I would be very grateful for that Alan as I have a Denford Orac waiting to be upgraded when I purchased it the inverter was'nt working and one stepper driver was defunct. I replaced the inverter and this is working fine with a pot connected to its own 0-10v supply. I've also purchased two stepper drivers from Motion Control but have'nt installed them yet as I still need to aquire a breakout board and a relay board. I have actually managed to get a digital readout onto the Axis screen but have'nt yet got it to actually display the revs from the encoder.

Rod.

Please Log in or Create an account to join the conversation.

More
13 Jun 2009 12:42 #427 by BigJohnT
Replied by BigJohnT on topic Re:Screwcutting
Sounds like your making progress. I don't have a lathe with EMC so I can not test it until I figure out how to get the spindle sim to work. Maybe another user that has a lathe can help.

Do you manually change the spindle speed and just have the encoder feedback connected to EMC?

John

Please Log in or Create an account to join the conversation.

More
13 Jun 2009 17:14 - 13 Jun 2009 17:15 #428 by acondit
Replied by acondit on topic Re:Screwcutting
welderfabrod wrote:

Guys I tried the G76 and it works to a point, but there are a few odd movements so I'll give the short prog that I used to make sure I've got the G76 correct. This is for an 8mm thread 12mm long.

G21 G90 G40
G00 X5 Z1
M03
G76 P1.25 Z-12 I-1 J0.05 R1.0 K0.7668 Q30 H3
G00 X5 Z1
M05
M02
I put the M03 and M05 in but have'nt tried it without them yet.
<snip>
Other odd movements.
1)Cutter makes a X+ movement before moving to the start of the first cut. ( maybe I've misunderstood the G76 here)
2) As the cutter travels back along the drive line it moves a small amount in the X- direction also. I may not have noticed this if it was'nt for the fact that on the X axis I have a graduated handle on the rear of the stepper motor.
3) The cutter is entering and leaving the cut in a circular moition.


Are you talking about motion besides the G00 X5 Z1.
When I thread I run at 500 rpm, so I have never seen the problems at slower speeds.
Your code looks correct for an external thread, but the movement of the X axis sounds like it is trying to cut an internal thread. Is it possible that your X axis is moving the opposite direction from what you command? You probably already know this but, Zero for the X-axis should be at the center of the material being cut. When you are at X=0, X+ should move the cutter (and cutter tip) away from center. When you are at an X=positive value, X- should move the cutter tip towards the center of the material.

I would be very grateful for that Alan as I have a Denford Orac waiting to be upgraded when I purchased it the inverter was'nt working and one stepper driver was defunct. I replaced the inverter and this is working fine with a pot connected to its own 0-10v supply. I've also purchased two stepper drivers from Motion Control but have'nt installed them yet as I still need to aquire a breakout board and a relay board. I have actually managed to get a digital readout onto the Axis screen but have'nt yet got it to actually display the revs from the encoder.

Rod.


Rod,

My configs are in 'inch" mode but you should be able to make the appropriate changes. They were zipped on my Mac with its native archive function. If you can't open them let me know, I could re-zip them with another program.

Try adding L0 to the threading line (no taper) and changing R1.0 to R2.0 (constant volume). The use of constant volume can help keep the spindle from slowing down if that is a problem ( the trade off is more threading passes).
G76 P1.25 Z-12 I-1 J0.05 R2.0 K0.7668 Q30 H3 L0
Or if you would like a short taper on the starting end, E2 L1 (taper over the starting 2mm).
G76 P1.25 Z-12 I-1 J0.05 R2.0 K0.7668 Q30 H3 E2 L1

Let us know if the problem persists. (Take two aspirin and call me in the morning.)

Alan

File Attachment:

File Name: EMC2_Ini.zip
File Size:22 KB
Attachments:
Last edit: 13 Jun 2009 17:15 by acondit. Reason: File failed to attach

Please Log in or Create an account to join the conversation.

More
15 Jun 2009 09:41 - 15 Jun 2009 09:43 #430 by welderfabrod
Replied by welderfabrod on topic Re:Screwcutting
John I do both, I change pulley ratios to the speed range I need then adjust the revs with speed control pot. This is part of the original Emco control.

Alan the material is already 8mm dia. so for the X axis I start the spindle touch off on the material and set this to 4mm. For the Z axis I basicaly use two methods, if as in this case its just a thread on a piece of bar I bring the point of the cutter in line with the end of the bar by eye and zero Z there, and thats near enough. If however I am threading up to a shoulder I bring the left side of the tool up to the end of the bar with a bit of paper in between which gives 3 or 4 thou. clearance at the shoulder. I think thats all pretty normal.
In this case I'm positioning the cutter at X5 Z2 before starting the programme so although G00 X5 Z2 is in the programme at the start I should see no movement, but what actually happens is on reaching the G76 the cutter first makes a move in X+ beyond the drive line (I think by the thread depth but am not sure as it happens to quick.) then moves to the first pass position and starts the first cut. I changed Z1 to Z2 because it appeared that 1mm from the end of the material was not enough for a 1.25 pitch. I also added L0 and R2 as suggested and changed J0.05 to J0.1.

Guy's the G76 does'nt seem to operate as I was expecting either. I thought that all the rapids would travel down the same drive line i.e. always at 1mm from the material. However what is happening is that after the first cutting pass the cutter retracts with a semi-circular path beyond the drive line, by I think the thread depth then rapids back towards Z2 on a slightly tappered path in X- this can clearly be seen on the graduated handle on the end of my stepper motor, this is probably by J0.1. If I zoom in on graphics its visible there also. It then makes a 90deg circular path to Z2 then a straight move in X- to start the next cut. this motion occurs on all subsequent passes. So what you have on the screen is not only a set of cut passes in X- but also a set of rapids in X+ beyond the drive line. This seems most strange to me and does'nt follow what the manual appears to be saying i.e. 3) A spindle-syncronized Z feed along the thread. 4) A traverse to the original X. (I take this to mean in my case the intial start point X5 after each pass).

The next thing is the software does'nt seem to be syncronizing the Z axis with the spindle speed correctly, while it appears to be seeing the index pulse ok if I run at 500revs as Alan does the thread pitch is too small, if I reduce the spindle speed the thread pitch increases until I get to a point where the pitch is to large, reduce it much further and I reach a point where I get the stop starts in the Z axis again. Surely it should syncronize at whatever spindle speed I set. I feel that as all this odd behavior occurs in graphics whether or not the steppers are enabled this has to be a software issue. Feel free to shoot me down if I'm wrong.

Also what I did is to boot another PC from the live CD and run G76.ngc in sim/lathe.ini and the above motion is there also. But it does'nt seem right to me. This version is Ubuntu 8.04 Emc2 2.2.7 this is the version I am running.

Alan I'm fresh out of Asprin!!!!

Rod
Last edit: 15 Jun 2009 09:43 by welderfabrod.

Please Log in or Create an account to join the conversation.

More
16 Jun 2009 11:03 #431 by welderfabrod
Replied by welderfabrod on topic Re:Screwcutting
acondit wrote:

welderfabrod wrote:

Guys I tried the G76 and it works to a point, but there are a few odd movements so I'll give the short prog that I used to make sure I've got the G76 correct. This is for an 8mm thread 12mm long.

G21 G90 G40
G00 X5 Z1
M03
G76 P1.25 Z-12 I-1 J0.05 R1.0 K0.7668 Q30 H3
G00 X5 Z1
M05
M02
I put the M03 and M05 in but have'nt tried it without them yet.
<snip>
Other odd movements.
1)Cutter makes a X+ movement before moving to the start of the first cut. ( maybe I've misunderstood the G76 here)
2) As the cutter travels back along the drive line it moves a small amount in the X- direction also. I may not have noticed this if it was'nt for the fact that on the X axis I have a graduated handle on the rear of the stepper motor.
3) The cutter is entering and leaving the cut in a circular moition.


Are you talking about motion besides the G00 X5 Z1.
When I thread I run at 500 rpm, so I have never seen the problems at slower speeds.
Your code looks correct for an external thread, but the movement of the X axis sounds like it is trying to cut an internal thread. Is it possible that your X axis is moving the opposite direction from what you command? You probably already know this but, Zero for the X-axis should be at the center of the material being cut. When you are at X=0, X+ should move the cutter (and cutter tip) away from center. When you are at an X=positive value, X- should move the cutter tip towards the center of the material.

I would be very grateful for that Alan as I have a Denford Orac waiting to be upgraded when I purchased it the inverter was'nt working and one stepper driver was defunct. I replaced the inverter and this is working fine with a pot connected to its own 0-10v supply. I've also purchased two stepper drivers from Motion Control but have'nt installed them yet as I still need to aquire a breakout board and a relay board. I have actually managed to get a digital readout onto the Axis screen but have'nt yet got it to actually display the revs from the encoder.

Rod.


Rod,

My configs are in 'inch" mode but you should be able to make the appropriate changes. They were zipped on my Mac with its native archive function. If you can't open them let me know, I could re-zip them with another program.

Try adding L0 to the threading line (no taper) and changing R1.0 to R2.0 (constant volume). The use of constant volume can help keep the spindle from slowing down if that is a problem ( the trade off is more threading passes).
G76 P1.25 Z-12 I-1 J0.05 R2.0 K0.7668 Q30 H3 L0
Or if you would like a short taper on the starting end, E2 L1 (taper over the starting 2mm).
G76 P1.25 Z-12 I-1 J0.05 R2.0 K0.7668 Q30 H3 E2 L1

Let us know if the problem persists. (Take two aspirin and call me in the morning.)

Alan

File Attachment:

File Name: EMC2_Ini.zip
File Size:22 KB


Alan thanks for those files I uzipped them ok and opened them with Open Office which I have on my Windows box indoors.

Rod.

Please Log in or Create an account to join the conversation.

More
16 Jun 2009 15:27 - 16 Jun 2009 17:45 #432 by acondit
Replied by acondit on topic Re:Screwcutting
welderfabrod wrote:

John I do both, I change pulley ratios to the speed range I need then adjust the revs with speed control pot. This is part of the original Emco control.

Alan the material is already 8mm dia. so for the X axis I start the spindle touch off on the material and set this to 4mm. For the Z axis I basicaly use two methods, if as in this case its just a thread on a piece of bar I bring the point of the cutter in line with the end of the bar by eye and zero Z there, and thats near enough. If however I am threading up to a shoulder I bring the left side of the tool up to the end of the bar with a bit of paper in between which gives 3 or 4 thou. clearance at the shoulder. I think thats all pretty normal.
In this case I'm positioning the cutter at X5 Z2 before starting the programme so although G00 X5 Z2 is in the programme at the start I should see no movement, but what actually happens is on reaching the G76 the cutter first makes a move in X+ beyond the drive line (I think by the thread depth but am not sure as it happens to quick.) then moves to the first pass position and starts the first cut. I changed Z1 to Z2 because it appeared that 1mm from the end of the material was not enough for a 1.25 pitch. I also added L0 and R2 as suggested and changed J0.05 to J0.1.

The next thing is the software does'nt seem to be syncronizing the Z axis with the spindle speed correctly, while it appears to be seeing the index pulse ok if I run at 500revs as Alan does the thread pitch is too small, if I reduce the spindle speed the thread pitch increases until I get to a point where the pitch is to large, reduce it much further and I reach a point where I get the stop starts in the Z axis again. Surely it should syncronize at whatever spindle speed I set. I feel that as all this odd behavior occurs in graphics whether or not the steppers are enabled this has to be a software issue. Feel free to shoot me down if I'm wrong.

Also what I did is to boot another PC from the live CD and run G76.ngc in sim/lathe.ini and the above motion is there also. But it doesn't seem right to me. This version is Ubuntu 8.04 Emc2 2.2.7 this is the version I am running.

Alan I'm fresh out of Asprin!!!!

Rod


Rod,

I would suggest updating EMC2 to the current version. I don't remember for sure but it seems like there were some bugs in lathe threading that were fixed in 2.3 or 2.3.1.

You also have to be careful in touching off with the threading tool. It should have a radius (small but there none the less) on the tip. So if you touch off the tip, the sides won't be where they are expected by the software and it will cut deeper than you want. You almost have to use the tool table to get it right. You have to cut an initial thread and see how much too deep it cuts ((Desired diameter - actual diameter) divided by 2). Save this offset and when you set up your tool table, remember to include this offset as part of your tool offset. For example my threading tool sticks out farther than my turning tool, so my offset is computed from the extra length and the distance from the radius tip to where the point would be if it had a full 60 degree point. I hope this makes sense.

Alan
Last edit: 16 Jun 2009 17:45 by acondit.

Please Log in or Create an account to join the conversation.

More
16 Jun 2009 15:38 - 16 Jun 2009 17:46 #433 by acondit
Replied by acondit on topic Re:Screwcutting
Deleted-- I used a special character for degrees in the last post and it then refused to display.
Last edit: 16 Jun 2009 17:46 by acondit.

Please Log in or Create an account to join the conversation.

Time to create page: 0.134 seconds
Powered by Kunena Forum