![]() | |
| Home Page | Mark Forums Read | Today's Posts | My Replies | Classifieds | Reviews | Photo Gallery | Web Links | Share Files | Advertise With Us | Ad List |
| |||||||
| Milltronics Discuss Milltronics Machines |
![]() |
| | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
| |||
| |||
1001 G92 X0 Y0 Z0 (Set floating zeroes) 1002 S1200 M3 (Start Spindle) 1003 GO X-16 (Move to clear part) 1004 GO Z-20 (Z down to start of thread) 1005 G1 F4 x1.920 (Move in to start cut) 1006 801 L8 (Call sub to cut threads, loop 8 times) 9001 701 9002 G3 R15 I15 J0 X-15 Y0 Z1 9003 701 When run. I get one thread, and on the second thread, the Z does'nt move . I can't get a continuios thread. |
|
#3
| |||
| |||
Yes it is, but I've tried absolute also. I also tried calling each thread on it's own line. It moved on the first line, but not on the second. I tried calling each Z position in absolute, instead of going to that position, it added them, like it was in incremental. 1001 G92 X0 Y0 Z0 (Set floating zeroes) 1002 S1200 M3 (Start Spindle) 1003 GO X-16 (Move to clear part) 1004 GO Z-20 (Z down to start of thread) 1005 G1 F4 x1.920 (Move in to start cut) 1006 G3 R15 I15 J0 X-15 Y0 Z1 (Cut first thread) 1007 G3 R15 I15 J0 X-15 Y0 Z1 (Cut a circle, no Z move) 1008 G3 R15 I15 J0 X-15 Y0 Z1 (Cut a circle, no Z move) 1009 G3 R15 I15 J0 X-15 Y0 Z1 (Cut a circle, no Z move) Same program in absolute 1001 G92 X0 Y0 Z0 (Set floating zeroes) 1002 S1200 M3 (Start Spindle) 1003 GO X-16 (Move to clear part) 1004 GO Z-20 (Z down to start of thread) 1005 G1 F4 x1.920 (Move in to start cut) 1006 G3 R15 I15 J0 X-15 Y0 Z-19 (Cut first thread) 1007 G3 R15 I15 J0 X-15 Y0 Z-18 (Tried to go to -39) |
|
#8
| |||
| |||
| I've never written this code in metric before but I think you are missing some code. I believe you need a G71 in your main before your sub and/or in the sub. This enacts the Metric Mode on the controller. The Z in the Helical statement is the pitch of the thread.1mm (.03937 your pitch) multiplied by the number of sub routine loops (lets say 10 loops) would give you .394 or 10mm worth of thread in Z. Cutter compensation cannot be used with Helical moves with the Centurion IV. As far as the thread being left handed, I would guess threading from bottom to top or running the spindle in reverse? Good luck and keep us in the group posted of your results; Ben |
|
#11
| |||
| |||
| External, 16 threads. 1001 G92 X0 Y0 Z0 (Set floating zeroes) 1002 S1200 M3 (Start Spindle) 1003 GO X-16 (Move to clear part) 1004 GO Z-20 (Z down to start of thread) 1005 G1 F4 x1.920 (Move in to start cut) 1006 G801 L16 (Call subrutine 16 loops) 9001 701 9002 G3 R15 I15 J0 X-15 Y0 Z1 (Makes one thread, then no Z movment) 9003 701 |
|
#12
| |||
| |||
| I've never written a program without Tool Length Offsets (TLO) so I'm not sure how the control would respond without them, particularly when jumping in and out of a sub. Your code also does not define absolute G90 or incremental G91 program mode. I always start in G90 and switch to G91 if I'm going to use incremental commands. I also set my G92 in Mdi and don't include it in the program unless I I'm changing to a different workpiece, but that's not causing you a problem. I set my G92 in mdi because if you were to jog the machine between parts and not send it back to program zero, it would create one where you jogged it. Back to the threading problem. I would try the program using a TLO. Set the tool on the top of your workpiece and enter the data into the tool register Z setting ( item #6 in your menu.) Then enter it into your progam 1003 G90 (absolute mode) 1004 G101 G300 P.1 (Call TLO#1, set Rapid plane too .100 above top of workpiece) 1005 G99 (rapid TLO#1 to R plane) At this point I would try G91 before jumping into the sub or as the first line in the sub. Remember to switch to G92 in the main after the sub finishes. You will also need to remove the TLO in the main after the tool is finished. G92 G100 (remove TLO) G0 Z0 or G98 to retract spindle to G92 setting. M5 M2 I hope this helps, because I honestly don't see anything wrong with your subs helical code. I'm also not sure about the G91 mode but it makes more sense too me than G92 for your helix. I'll try it on my machine if I get chance. Please post results, Ben |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| 1/4 NPT External thread program | JerryH | G-Code Programing | 5 | 08-28-2008 07:37 AM |
| 3 holes to drill, I'm looking for a simple and free cad program | NickLatech | G-Code Programing | 11 | 09-25-2007 06:05 PM |
| Thread Mill Program | october | G-Code Programing | 2 | 04-07-2007 07:41 AM |
| 2-1/2 - 8 NPT Thread Mill Program | wesleybridgepor | General Metalwork Discussion | 2 | 11-30-2006 04:56 AM |
| Simple G-Code program? | N4NV | G-Code Programing | 10 | 03-24-2006 06:35 PM |