CNCzone.com-The Largest Machinist Community on the net!



Home Page Mark Forums Read Today's Posts My Replies Classifieds Reviews Photo Gallery Web Links Share Files Advertise With Us Ad List
Go Back   CNCzone.com-The Largest Machinist Community on the net! > Machine Controllers Software and Solutions > G-Code Programing


G-Code Programing Discuss G-code programing and problems here!


This forum is sponsored by:

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Ban this user!
Old 07-14-2009, 10:01 AM
 
Join Date: Jul 2008
Location: UK
Posts: 135
HankMcSpank is on a distinguished road
G-Code for coil/pickup winding?

Hi there,

there's a plugin for mach3 of their site that has a nice gui, but ultimately outputs G-code.

here's an example...

wire diameter = 0.1mm
spool width = 10mm
No of turns = 10000
RPM = 50


produces this G-code

(The Y axis is the main motor, which in this case doesn't have a leadscrew - just a bobbin attached to a faceplate mounted on the stepper's shaft. The X axis is the traversal motor ...it moves left/right/left right etc)

g00 X0.0
G01 X 10 Y 100 F50
G01 X 0 Y 200 F50
G01 X 10 Y 300 F50
G01 X 0 Y 400 F50
G01 X 10 Y 500 F50
G01 X 0 Y 600 F50
G01 X 10 Y 700 F50
G01 X 0 Y 800 F50
G01 X 10 Y 900 F50
G01 X0Y1000
M30


allsimple enough, the the GUI has no facility to facyor in acceleration/deceleration...which is prefereable as the wire nears the edges of the spool.

what would be a good way to approach this (with g-Code)

Let's assume a 100mm wide spool (could be 10" if you prefer!).

As the coil winding starts, it'd be ideal for say the first 10mm to have the winding start from scratch accelerate linearly to maximum RPM speed...maintain this RPM until it is 10mm from the other end, where it then starts decelerating linearly until zero speed is reached at the very edge of the spool. Pause for a second or two & then take back off in the reverse direction with a similar profile.

i guess what I'm hoping for is the following winding 'profile'...

For the first 10% of spool width accelerate to full RPM
For the middle 80% maintain full RPM
For the last 10%of spool width decelerate down to zero.

How could this acceleration/deceleartion be done in G-Code?

Last edited by HankMcSpank; 07-14-2009 at 10:19 AM.
Reply With Quote

  #2  
Old 07-14-2009, 10:13 AM
ger21's Avatar
Community Moderator
 
Join Date: Mar 2003
Location: Shelby Twp, MI....USA
Posts: 20,455
ger21 is on a distinguished road
Buy me a Beer?

Mach3's acceleration is set in the motor tuning. You can't override it. To get it to accelerate and decelerate at a certain point, you'll either need to adjust the feedrate or the accel to get it where you want it.
__________________
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)
Reply With Quote

  #3   Ban this user!
Old 07-14-2009, 10:26 AM
 
Join Date: Jul 2008
Location: UK
Posts: 135
HankMcSpank is on a distinguished road

Fine..understood.

therefore it should be just a matter of tweaking the motors to accelerate to suit each spool width & save as a profile?

How does the acceleration come into play when the motors are moving for a cut (in this case a 'wind') ...is the same acceleration setting used as when jogging?

I ask, because when i've tuned my motors used the jog option, I can quite clearly see the motors accelerate/decelerate, but when carrying out CNC cuts, I don't see/hear this acceleration (possibly becuase my feed ratesare low).

I guess, I'm just trying to wrap my head roun the motor tuning accelerate paramater & when it comes into play.
Reply With Quote

  #4  
Old 07-14-2009, 10:33 AM
ger21's Avatar
Community Moderator
 
Join Date: Mar 2003
Location: Shelby Twp, MI....USA
Posts: 20,455
ger21 is on a distinguished road
Buy me a Beer?

Acceleration always comes into play. Physics dictates that you always have to accelerate and decelerate.
__________________
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)
Reply With Quote

  #5   Ban this user!
Old 07-14-2009, 11:16 AM
 
Join Date: Jul 2008
Location: UK
Posts: 135
HankMcSpank is on a distinguished road

Originally Posted by ger21 View Post
Acceleration always comes into play. Physics dictates that you always have to accelerate and decelerate.
No I undertsand you can't go from zero to full feed in an instant, but does the 'motor tuning' acceleration paramater apply to both 'feed rates' *and* when the spindle repositions (rapids? I'm new to the genre!)), becuase if it's just the latter, then the acceleration paramater will have no effect on controlling at acceleration/deceration on the coil winding plugin (which just uses a feed rate number)
Reply With Quote

Sponsored Links
  #6  
Old 07-14-2009, 11:53 AM
Al_The_Man's Avatar
Community Moderator
 
Join Date: Dec 2003
Location: Canada
Posts: 16,540
Al_The_Man is on a distinguished road
Buy me a Beer?

If I see it right the Y axis is the 'spindle' and the X is the shuttle?
would you not also want the X to correspondingly increase and decrease with Accel/Decel?
I imagine a macro could be written where the appropriate numbers are plugged in.
Such as Initial accel A and final decel B over distance C, (Y value X values), If these were written as small increments, it would be a series of multi moves but essentially would appear as smooth transition.
It could be a long macro, but would only have to be written once.
This is where electronic gearing for Mach would be nice.
You would have to go to the Galil plug in to get though.
AL.
__________________
CNC, Mechatronics Integration and Machine Design.
“Logic will get you from A to B. Imagination will take you everywhere.”
Albert E.
Reply With Quote

  #7   Ban this user!
Old 07-14-2009, 12:11 PM
 
Join Date: Jul 2008
Location: UK
Posts: 135
HankMcSpank is on a distinguished road

Originally Posted by Al_The_Man View Post
If I see it right the Y axis is the 'spindle' and the X is the shuttle?
would you not also want the X to correspondingly increase and decrease with Accel/Decel?
I imagine a macro could be written where the appropriate numbers are plugged in.
Such as Initial accel A and final decel B over distance C, (Y value X values), If these were written as small increments, it would be a series of multi moves but essentially would appear as smooth transition.
It could be a long macro, but would only have to be written once.
This is where electronic gearing for Mach would be nice.
You would have to go to the Galil plug in to get though.
AL.

hiya Al,

you've read it right - the Y Axis is the main motor & the X axis is the traversal motor.

Re the accel/decel ... I under stand your concept, but as an example, how would each line look in G-Code (just a couple of lines to illustrate the point ) to get the acceleration cranking up?
Reply With Quote

  #8  
Old 07-14-2009, 12:38 PM
ger21's Avatar
Community Moderator
 
Join Date: Mar 2003
Location: Shelby Twp, MI....USA
Posts: 20,455
ger21 is on a distinguished road
Buy me a Beer?

Accel is the same for any movement, whether a feedrate move or a rapid move. You could cheat kinda like Al said and break your single movement into smaller ones, each with a different feedrate to get a similar effect to a more gradual accel, which would alleviate having to reduce the accel.
__________________
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)
Reply With Quote

  #9   Ban this user!
Old 07-14-2009, 12:51 PM
 
Join Date: Jul 2008
Location: UK
Posts: 135
HankMcSpank is on a distinguished road

So using that top example, would the following do it.....

First, let's build up feed rate until we get to 10% of the overall overall traversal distance (spool width 10mm)

g00 X0.0
G01 X0.5 Y5 F5
G01 X1 Y10 F20


Next,go full whack feed rate until we get to 90% of overall traversal distance....

G01 X9 Y90 F200

Now slow down for the final 10% traversal distance...

G01 X9.5 Y95 F20
G01 X10 Y100 F5


Something like that?
Reply With Quote

  #10   Ban this user!
Old 07-14-2009, 12:55 PM
 
Join Date: Feb 2009
Location: USA
Posts: 1,475
mcphill is on a distinguished road
Buy me a Beer?

Originally Posted by HankMcSpank View Post
hiya Al,

you've read it right - the Y Axis is the main motor & the X axis is the traversal motor.

Re the accel/decel ... I under stand your concept, but as an example, how would each line look in G-Code (just a couple of lines to illustrate the point ) to get the acceleration cranking up?

I think Al is suggesting to change your thinking from accel to steps of velocity. Write a macro that will calculate the speed you want by the position you are at. Start at speed 0 at X 0, increase speed in steps until you get to speed 100 at X 10, keep speed at 100 through X 90, decrease to speed 0 as you get to X 100. Seems like that would be easy enough if you are familiar with macros... I am not, personally.
Reply With Quote

Sponsored Links
  #11  
Old 07-14-2009, 02:04 PM
Al_The_Man's Avatar
Community Moderator
 
Join Date: Dec 2003
Location: Canada
Posts: 16,540
Al_The_Man is on a distinguished road
Buy me a Beer?

I have not dabbled with macros for some time and not with Mach at all, But I thought afterwards, I am not sure if Mach will treat it as many independent moves, which is what they are and do a decel/accel for each?
Present Macro writers may have an idea?
Al.
__________________
CNC, Mechatronics Integration and Machine Design.
“Logic will get you from A to B. Imagination will take you everywhere.”
Albert E.
Reply With Quote

  #12   Ban this user!
Old 07-14-2009, 02:11 PM
 
Join Date: Jul 2008
Location: UK
Posts: 135
HankMcSpank is on a distinguished road

Originally Posted by Al_The_Man View Post
I have not dabbled with macros for some time and not with Mach at all, But I thought afterwards, I am not sure if Mach will treat it as many independent moves, which is what they are and do a decel/accel for each?
Present Macro writers may have an idea?
Al.

As it goes, that was my suspiscion too!

Therefore, I guess one other the way to do it, is to forget about lot of little feed rates...just one long one with a high feed rate. then i I guess set slow acceleration setting in the motor tuning ...tweak to suit until it's right for the particular spool width - save the settings in mach on a per spool basis?

I suppose when they came up with G-Code (& Mach3 come to that), they weren't thinking of coil winders!
Reply With Quote

Reply




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
building a cnc guitar pickup winder, need info yorttroy Musical Instrument Design & Construction 40 04-06-2012 07:58 PM
CNC Coil Winding Machine Swede I.C. Engines 33 01-28-2012 06:52 PM
CNC Pickup winder programing Woodenspoke Musical Instrument Design & Construction 24 05-10-2008 08:17 AM
Moving a series 1 interact with a pickup? cut more Bridgeport and Hardinge Mills 9 11-20-2007 08:56 PM
Create vortex for dust pickup davidmb DIY-CNC Router Table Machines 6 04-26-2006 07:00 AM




All times are GMT -5. The time now is 12:19 AM.





Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
Content Relevant URLs by vBSEO
Template-Modifications by TMS

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361