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! > WoodWorking Machines > DIY-CNC Router Table Machines


DIY-CNC Router Table Machines Discuss the building of home-made CNC Router tables here!


This forum is sponsored by:

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Ban this user!
Old 08-11-2011, 01:40 PM
 
Join Date: Jun 2011
Location: USA
Posts: 137
adt2 is on a distinguished road
Need a little guidance re: electronics

I'm getting ready to order the electronics for my 2' x 8' build and I need a little direction. I'm planning to order Ahren's 4-axis kit, which includes the Gecko G540 controller and 4 motors, plus the cabling. My intent is to use a single motor for the Z-axis, a single motor for the Y-axis, and two motors for the X-axis. My understanding is that the second X-axis motor will be slaved to the first. I'm planning to use Mach3 with the machine.

My questions mostly deal with limit switches and the E-stop. How many limit switches will I need? Do I need two on each X-axis (one at the left end and one at the right end of gantry travel), or just on one side? What about for homing/zeroing the machine? I think I remember from the Mach3 manual that the limit switches near 0,0 could be wired to do double-duty for both limits and zeroing the machine.

Do I need limit switch on the Z-axis? I wouldn't think so, but I'm not sure.

What is the easiest and/or best way to have Mach3 control the router power? I'm not so concerned about speed control, since I rarely change the machine speed, but I would like to be able to automate the on/off function. On a similar note, is there a way to make Mach3 control a dust collector/shop vac?

On the Gecko documentation, the sample wiring diagram shows a Relay Power Supply and a couple of Relay Coils; what are these for? What is a VFD drive?

Thanks in advance for your advice. I'm getting close to being able to fire it up for the first time, and I would really hate for the machine to explode and burn down my workshop...
Reply With Quote

  #2   Ban this user!
Old 08-11-2011, 02:34 PM
solodex2151's Avatar  
Join Date: Nov 2006
Location: USA
Posts: 226
solodex2151 is on a distinguished road

Originally Posted by adt2 View Post
I'm getting ready to order the electronics for my 2' x 8' build and I need a little direction. I'm planning to order Ahren's 4-axis kit, which includes the Gecko G540 controller and 4 motors, plus the cabling. My intent is to use a single motor for the Z-axis, a single motor for the Y-axis, and two motors for the X-axis. My understanding is that the second X-axis motor will be slaved to the first. I'm planning to use Mach3 with the machine.
Correct. The setting for slaving motors in Mach 3 is just a checkbox. Slave axis in Mach3 is a really nice tutorial on how to do this.

Originally Posted by adt2 View Post
My questions mostly deal with limit switches and the E-stop. How many limit switches will I need? Do I need two on each X-axis (one at the left end and one at the right end of gantry travel), or just on one side? What about for homing/zeroing the machine? I think I remember from the Mach3 manual that the limit switches near 0,0 could be wired to do double-duty for both limits and zeroing the machine.

Do I need limit switch on the Z-axis? I wouldn't think so, but I'm not sure.
You will want 2 Limit switches on each axis, one on each end. The Z-Axis limit switches are useful for preventing the router from running into your table top. You will need 2 homing switches on the X axis. The switches can be wired for double duty but you will have an easier go if you separate them. The limit switches for the X-Axis can be all on one side, but a homing switch needs to be on each side.

Originally Posted by adt2 View Post
What is the easiest and/or best way to have Mach3 control the router power? I'm not so concerned about speed control, since I rarely change the machine speed, but I would like to be able to automate the on/off function. On a similar note, is there a way to make Mach3 control a dust collector/shop vac?

On the Gecko documentation, the sample wiring diagram shows a Relay Power Supply and a couple of Relay Coils; what are these for? What is a VFD drive?

Thanks in advance for your advice. I'm getting close to being able to fire it up for the first time, and I would really hate for the machine to explode and burn down my workshop...
For both router and dust collector, you want to use relays controlled by the output pins on the G540. http://www.homanndesigns.com/pdfs/EN010_V8.pdf should get you started with how to hook up a relay. If you need a source for the relays and the outlets, I can provide them.

To turn on the relays in Mach 3, you need to look in the 'Spindle Setup' tab in Ports&Pins under 'Relay Control'. Set the Output number to the logical output you want triggered when the spindle is told to turn on in the forward and reverse direction. For example set M3 to Output #1, and M4 to Output #2. Now go to the 'Outputs' tab and set 'Output #1' and 'Output #2' to the proper port and pin numbers.

The VFD is for higher end spindles like the 80mm ones you see floating around Ebay. If you are using a router you don't need to worry about this. The VFD controls not only turn the spindle on and off but also controls speed. You can convert your router from the relay control to a VFD control using the SuperPID module (www.SuperPID.com - Super-PID Closed-loop Router Speed Controller), but it's not necessary.

Hope this helps.

Regards,

Nate
__________________
www.finelineautomation.com
Reply With Quote

  #3   Ban this user!
Old 08-11-2011, 03:50 PM
 
Join Date: Feb 2008
Location: usa
Posts: 155
ssutton is on a distinguished road

I remember not so long ago that I too was concerned about burning down my shop with a bad CNC router start-up experience.

Nate is spot on, I have almost the identical setup as you will as far as controls go. I am using a total of 6 limit switches all wired into 1 input on my G540. I am using 3 separate hall effect sensors for my homing sensors and they are very repeatable from run to run. The homing sensors are also wired so that they all go to 1 more input on my G540. I have 2 motors on my X and they are slaved together. On that note: when you are setting up Mach with the slave have your motors disengaged from the drives so that they turn but do not actually move the machine. The reason for this is is that you are going to have to set up your motors to turn in the appropriate directions to work together as a team. I crashed several times during the configuration until I had this worked out. Mach will control your router with an output that will turn on another output on the G540, that output is routed to an external relay that can handle the current for the router. On my machine, I have 3 relays that turn on, one for the router, one for dust collection, and the other to open an air valve for bit cooling with compressed air. Only the first relay is powered by the G540, the other relays are slaved off of the first. Your estop is a direct input to the G540.

Good Luck!

ask lots of questions

Scott
Reply With Quote

  #4   Ban this user!
Old 08-11-2011, 04:02 PM
 
Join Date: Jun 2011
Location: USA
Posts: 137
adt2 is on a distinguished road

Whoa, Scott....that all sounds....complex. I don't even know what a "hall effect sensor" is. Good warning on the slaved X-motor, though - I never would've thought of having to reverse one of them, and I don't think I've seen that written anywhere else.

My guess is that I'll go the simple route first, make sure everything is working, and then upgrade little things later as I learn what I'm doing (and, no doubt, get fed up with stuff). The two of you have given me some things to research, some things to think about, and a case of twitchy fingers waiting for my parts to arrive....
Reply With Quote

  #5   Ban this user!
Old 08-11-2011, 04:24 PM
 
Join Date: Feb 2008
Location: usa
Posts: 155
ssutton is on a distinguished road

"Sounds complex" but no really. If you decide to use hall effects for your home sensors then I or many others can give you part numbers, where to get and how to hook them up. All of this is just a series of small steps that add up to a very complex operation, but taken one step at a time you will get it done.

A Hall effect sensor is an electronic sensor that reacts to the presents of a magnetic field, it can sense the field and then give an output that is fed into a control circuit (input on your G540). The advantage of a hall effect verses a contact switch is that there are no moving parts and the repeatability of a hall effect will always be more accurate that a mechanical switch.

In practice, you fasten magnets at key locations on you machine and when a hall effect comes into proximity with it it gives an output that signals Mach it has reached a "home" position of an axis. If you go this way, I can draw a schematic for you to follow.
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 08-11-2011, 11:09 PM
 
Join Date: Nov 2006
Location: USA
Posts: 663
DonFrambach is on a distinguished road
Limit switches are very important

I learned the hard way that limit switches are very important when I only put them on two of my three axes. After 200 or so hours of flawless performance, I had a totally unnecessary crash that damaged the one axis that wasn't protected. Yes I recovered but the limit switches were immediately installed.

Relays to control my spindle and vacuum are extremely convenient. I used 48v relays so that I didn't have to fool around with different voltages or power supplies. You probably know this anyway but the G-code commands I use are:
M03 (Spindle ON)
M05 (Spindle OFF)
M08 (Vacuum ON)
M09 (Vacuum OFF)
also:
G04 P3000 (Pause 3 seconds for the spindle to come up to speed)

I have not worked out a "home" system because I have been zeroing to my workpiece.
Reply With Quote

  #7   Ban this user!
Old 08-11-2011, 11:35 PM
 
Join Date: Jun 2011
Location: USA
Posts: 137
adt2 is on a distinguished road

Originally Posted by DonFrambach View Post
...You probably know this anyway but the G-code commands I use are...
Don, you are a funny man. Seriously.

In all honesty, I haven't spent any time fooling with Mach3 yet because a) I don't have the computer to run it on (picking that up Sunday - a coupla-year-old desktop my mother no longer uses) and b) I don't have a machine to test it on yet. I can honestly say I knew there were commands to be entered, but you are speaking Klingon as far as I can tell...

I'm sure I'll look back on this post and laugh in a few months. I hope.
Reply With Quote

  #8   Ban this user!
Old 08-11-2011, 11:53 PM
 
Join Date: Nov 2006
Location: USA
Posts: 663
DonFrambach is on a distinguished road

Originally Posted by adt2 View Post
I'm sure I'll look back on this post and laugh in a few months. I hope.
Hopefully in a few months you'll be too busy making stuff with your router to look back and read this post!

Don
Reply With Quote

  #9   Ban this user!
Old 08-13-2011, 03:51 PM
 
Join Date: Mar 2010
Location: US
Posts: 363
brtech is on a distinguished road

There are a lot of choices on how you wire the home/limit switches. The problem needed to be solved is the Gecko has 4 inputs. You really, really want to reserve one for auto set (height or 3 axis), so you have 3 inputs left.

For a 4 drive, 3 axis machines (dual drives on Y), you typically want to have separate home switches on the X drives (although with only a 2' X, this may not be an issue).

So, what to do?

First of all, there is little point in separating home from limit. You CAN have separate switches, but for these kinds of routers, there isn't any advantage in doing that. So, that means you have 6 switches for 3 inputs, and you know you want the X and A home on different inputs.

An observation you can make is that with the default configuration, Mach homes each axis independently. That means you don't get anything out of using different inputs for different axis. Another observation is that it doesn't matter which switch trips on a limit switch, the system halts.

So one way to do it is put all of the switches except A home on one input, and A home on another, and leave another input free.

Another is to put X and Z home on one input, Y and A home on another, and all the limits on the 3rd.

Any other arrangement works as long as X home and A home are on different inputs also works.
Reply With Quote

  #10   Ban this user!
Old 08-13-2011, 06:04 PM
 
Join Date: Feb 2008
Location: usa
Posts: 155
ssutton is on a distinguished road

Just to further muddy the water on this issue. I have recently rewired my machine's limit and homes to work as such;

I took all of my limits and wired them in series with the estop input, any over travel will result in an estop condition. 3 of my 4 home switches go into 1 input on the G540, my Z, my Y and my X. A is a slave off of X and it has its own input into the G540. That way, I square my gantry ( gantry is over 60 inches wide) when I home the machine. I have my homing routine in Mach set up so that they home independently but then A is a slave of X. I found that Mach ignores the limit switches when it is homing. This caused a series of ugly crashes when setting up my machine. Now, because it is a part of the estop the G540 will stop in the event of an over travel no matter what Mach is doing at the time. Much better. I have to respectfully disagree with brtech, I do find that having home switches are an advantage. My machine machine homes to a repeatability within a few thousands of an inch on every axis. This assures that my gantry is square every time I start up and home. I also have another input used for my zero tools that I use with the Big Tex blue screen. I have found these to be super useful! I use a plexiglass sight with cross hairs machined into and an aluminum tube on that. I also have a corner touch off and a Z gauge plate.
Reply With Quote

Sponsored Links
  #11  
Old 08-13-2011, 07:44 PM
ger21's Avatar
Community Moderator
 
Join Date: Mar 2003
Location: Shelby Twp, MI....USA
Posts: 20,446
ger21 is on a distinguished road
Buy me a Beer?

G04 P3000 (Pause 3 seconds for the spindle to come up to speed)
Why don't you use Mach3's built in spindle delays? Much easier than adding it into your g-code.
__________________
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

  #12   Ban this user!
Old 08-13-2011, 11:36 PM
 
Join Date: Jul 2010
Location: USA
Posts: 1,232
Mountaincraft is on a distinguished road
Buy me a Beer?

I use three switches.. one on each axis at the negative end.. this is for homing... and it is also the negative direction limit.. for the positive direction, I just use Mach 3's built in soft limit system..

You'll want a limit on the 'up' end of your Z axis for homing...

Once you get your homing system in and working, you'll want gerry's 2010 screenset.. best $20 I ever spent!

Only thing I would do different on mine, is to install a second home switch on the X axis for the slaved motor, then once adjusted the table will always perfectly re-square the gantry when it is homed.. Will remove one more maintenance item...

I will do that at some point...

Right now I'm using Ahren's cheapo mechanical limit switches and they work fine... But when I rebuild my table in steel, I want to switch to opitcal limits that I can set up with fine adjusters... and with opticals if I need to run past them, I can disable the limit system and do so.. with mechanical switches you can't do that... I imagine you can do the same with Hall sensors too, depending on how you mount them...
__________________
http://www.cnczone.com/forums/cnc_wood_router_project_log/124543-mountaincrafts_router_plasma_build_thread.html
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 On
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Need some guidance scrambled General Electronics Discussion 10 02-21-2009 01:32 PM
Cad Guidance JMT General CNC (Mill and Lathe) Control Software (NC) 0 09-21-2007 12:10 PM
Looking for a little guidance! jayty97 DIY-CNC Router Table Machines 3 02-14-2007 08:43 PM
I need a little guidance please.... Steve F Servo Motors and Drives 5 05-15-2006 01:16 AM
Need some CNC guidance seafire CNC Plasma and Waterjet Machines 2 11-15-2005 10:07 PM




All times are GMT -5. The time now is 10:36 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