![]() | |
| Home Page | Mark Forums Read | Today's Posts | My Replies | Classifieds | Reviews | Photo Gallery | Web Links | Share Files | Advertise With Us | Ad List |
| |||||||
| G-Code Programing Discuss G-code programing and problems here! |
| This forum is sponsored by: |
![]() |
| | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
| |||
| |||
I'm trying to modify a half finished coil winding plugin which runs under Mach3 to suit my needs. Basically the X Axis is a motor that turns while copper wire is wound onto it,while the Y Axis traverses left & right & so forth. What I'd like to do is build in a pause at each end of the traversal (so I can apply varnish to each layer of winding). I inserted a 'tool change' command as follows... Code "M06(Apply Varnish!)" ...when the program is running, Mach3 duly pauses at that line, but when I click on 'cycle start', it takes about 30 seconds before Mach3 continue! I reckon this is becuase a tool change command takes the 3 axis back to machine coordinates & then back again (I can't see this - it's just an inkling). therefore I was wondering what command I could use in place of a tool change to pause Mach3, but which starts off the axis moving again as soon as I click on cycle start? |
|
#3
| |||
| |||
| The answer (as ever), was via Google (just need to get the correct search terms... http://www.cnczone.com/forums/archiv...p/t-12505.html Courtyesy of Al the Man... "M01 is Optional stop, when this is seen, the program halts and waits for a cycle start. You would have to check to see if Mach2 has this." I've since added... Code "M01(Apply Varnish!)" into my script & works a charm Edit: SCRAPWOTSCRAP ...just seen your response - bang on! (thanks) |
|
#5
| |||
| |||
| I'd still love to know how I can 'kludge' accelerate & decelerate per traversal... Start Move left to right Gain full Speed. Start decelerating as the right side target coordinate nears Pause at right hand side Apply Varnish User clicks 'Cycle start' Wire feed motor traverses right to left Attains full Speed Start decelerating as left side target coordinate nears & so on. here's what I appear to have at present... Move left to right Gain full Speed. Abrupt stop at right hand side target coordinate. Apply Varnish User clicks 'Cycle start' Wire feed motor traverses right to left at full speed Abrupt stop at left hand side target coordinate. & still open to ideas! Last edited by HankMcSpank; 07-23-2009 at 02:09 PM. |
| Sponsored Links |
|
#6
| |||
| |||
| Well, if you know the left and right target coordinates, you might be able to achieve your accel and deccel simply by manipulating feedrates along the way to your target coordinates. Say right target is X10. Say your max feedrate is 300 ipm. G01 X6. F300 G01 X8. F150 G01 X9. F80. G01 X10. F20. M01 (apply Varnish) Rudimentary example but I think you'll get the idea. Last edited by SCRAPWOTSCRAP; 07-23-2009 at 02:14 PM. Reason: Spelling |
|
#9
| ||||
| ||||
| Just lower the acceleration in motor tuning. That should do what you want.
__________________ Gerry Mach3 2010 Screenset http://home.comcast.net/~cncwoodworker/2010.html (Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management) |
|
#10
| |||
| |||
| http://www.acumotion.com/gcode.htm Search for pause... This says: Example G4 P2000 Description Pause the tool for 2 seconds (2000 milliseconds) before continuing. This should take care of the pause. As far as the decel...G61 will cancel constant velocity mode and goto exact stop mode, thus decel. automatically. To cancel exact stop use g64 and you will be back in constant velocity mode. Last edited by benjamint76; 07-24-2009 at 11:48 PM. Reason: spelling |
| Sponsored Links |
![]() |
| 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 |
| hardeware pause pause detected????? | Conquest1224 | Commercial CNC Wood Routers | 1 | 05-07-2007 10:06 PM |
| G Code Variances from machine to machine? | Miguel Gonzalez | G-Code Programing | 16 | 03-28-2007 03:31 AM |
| how to programmatically pause | Antonio_Emilio | LinuxCNC (formerly EMC2) | 2 | 01-27-2007 11:32 AM |
| Pause under G-Code control | gregger2k | Carken Products (Deskam, DeskCNC etc) | 6 | 10-07-2006 10:38 AM |
| How to pause Turbocnc | jimglass | TurboCNC | 13 | 03-27-2006 05:06 PM |