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! > Electronics > Gecko Drives


Gecko Drives Discuss all Gecko drives here and get direct support!


This forum is sponsored by:

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Ban this user!
Old 02-09-2010, 09:21 PM
 
Join Date: Nov 2007
Location: USA
Posts: 606
blades is on a distinguished road
G540 dedicated machine application - have questions!

These questions are similar, but more specific than my last G540 question thread.

I will be building a custom machine, and need to control 3 motors: 2 will control table motion and 1 will be used as a spindle motor.

This is a dedicated machine, so will run the same program. Once this simple program is developed, I would like to have control over the motor speeds (feed rate and spindle rpm).

In a nutshell and in rough terms, here's what the program will look like:

Beginning of program:
Spindle starts CW
Table moves 30", then rotates
Spindle reverses direction
Table moves back 30"
Spindle stops
End of program

Can the spindle motor be programmed solely with direction and rpm, regardless of number of steps (or inches of travel)? Remember, this is NOT a spindle motor per se, it's basically a 3rd axis stepper motor. I just need to know if (and how) it can be programmed.

ALSO: Is a PC the only manner of controlling the G540, or is there another means of storing and running a program on it? I know a PC is the normal method (and obviously the preferred method on a CNC machine), but this is a special application, and introducing a PC to the machine would unnecessarily complicate the operation. I would like to have a simple START/E-STOP button on it for the operator. I should mention that I'm not opposed to initially setting up and tweaking the program (feeds & speeds) on a PC. I just don't want the PC to be the primary operator interface.

Thank you for any help!

EDIT: I just read Mariss's thread on the G540/SD card setup. This would be PERFECT for the non-PC control I'm looking for. Assuming this eventually comes to fruition, this answers one of my concerns.

Last edited by blades; 02-10-2010 at 02:13 PM.
Reply With Quote

  #2   Ban this user!
Old 02-10-2010, 03:12 PM
 
Join Date: Jul 2007
Location: Canada
Posts: 1,087
rowbare is on a distinguished road

The reprap project has developed a minimal g-code interpreter available for the Arduino micro controller.

http://reprap.org/bin/view/Main/Ardu...de_Interpreter

http://reprap.org/bin/view/Main/DocumentationMain see the Software / Firmware section for more links.

Here is a link to the Arduino project.
http://www.arduino.cc/

In your case though I suspect the G-Code interpreter would be overkill. You just need a fairly simple program to control your 3 axes.

bob
Reply With Quote

  #3   Ban this user!
Old 02-10-2010, 06:36 PM
 
Join Date: Nov 2007
Location: USA
Posts: 606
blades is on a distinguished road

Thank you for the links Bob, I will look into this. Looks interesting!

My issue with this project is that only 2 motors are programmed as an axis, while the 3rd motor needs to be programmed as a spindle motor, not subject to "inches per minute" or total steps. All the spindle needs to know is to run one direction at the start of the program, then reverse directions after the table travels "x" distance and rotates.

Mach and a G540 may be the most economical solution (actually, more of a work-around), but the more I look at this, the less I think the G540 will be of any value for this application. I believe it's capable, but I don't know if there's a program that would lend itself to this, since the number of steps for the spindle is unimportant and unknown. It could be calculated (and thus programmed as a Z axis), but it would be a moving target every time the table IPM or spindle RPM needed to be tweaked. Hell, I don't even know if something like this is programmable by G-code.
Reply With Quote

  #4   Ban this user!
Old 02-10-2010, 08:12 PM
 
Join Date: Jul 2007
Location: Canada
Posts: 1,087
rowbare is on a distinguished road

Are you sure that what you need to do requires something this complex? It seems to me that what you are trying to do could be handled with a few reversible motors, a few switches and some fairly simple hard-coded logic.

Basic idea, hit cycle start switch, spindle spins up, traverse motor starts and table moves till it hits the limit switch. This shuts off the traverse motor and spindle and starts the table rotation. The table rotates till it hits the limit switch. This starts the spindle motor in the reverse direction, starts the traverse motor in reverse and the table moves till it hits the other limit switch. This shuts off the motors and triggers the reset logic... Maybe I am oversimplifying...

bob
Reply With Quote

  #5   Ban this user!
Old 02-10-2010, 11:13 PM
 
Join Date: Nov 2007
Location: USA
Posts: 606
blades is on a distinguished road

Oversimplified a bit... both steppers run independent chains that pull a table via a large sprocket (one chain pulls on each side of a large sprocket). This controls both linear and rotary motion of the table. So at the start of the program, both motors are pulling the table in linear motion. When the table reaches the necessary linear travel, one motor reverses direction, thereby transforming the linear motion to rotary motion. When the table has rotated 90 degrees, the other motor reverses direction, once again starting the linear motion. At this point, it's necessary for the spindle motor to reverse direction. The spindle motor will run a gang of disk cutters, much like pizza cutters, running one direction for the first set of cuts, and the other direction for the second set (this is a candy cutting machine, cutting a slab of candy).

Suffice it to say that there won't be technical-savvy people running this machine, which is why I really don't want a PC interface, just a simple start/stop button.

I do like your idea of reversable motors and limit switches, but I'd have to redesign the entire machine, and I like the flexability of programming I can have by using steppers.
Reply With Quote

Sponsored Links
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
Converting X2 To Dedicated Tapping Machine HimyKabibble Benchtop Machines 19 10-19-2011 06:42 AM
G540 Questions Puppetworks Gecko Drives 3 10-22-2009 07:50 PM
Just IN- Waterjet Application Questions Answered at SOUTH-TEC Jetedge Product Announcements & Manufacturer News 0 09-30-2009 10:17 AM
About Engraving and Milling Machine Application Problem kkk123 Mach Software (ArtSoft software) 0 07-28-2008 08:22 PM
application for separating individual nc programs from cnc machine download shawncnelson General CNC (Mill and Lathe) Control Software (NC) 0 07-09-2006 07:28 PM




All times are GMT -5. The time now is 10:19 PM.





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