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 > Granite Devices


Granite Devices Discuss about servo & stepper drives made by Granevices and get direct support!


This forum is sponsored by:

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Ban this user!
Old 01-06-2010, 02:04 PM
 
Join Date: Jan 2006
Location: USA
Age: 45
Posts: 605
stevespo is on a distinguished road
VSDEPI, Mach3 and limit switches

I'm getting ready to switch over my CNC router to some DC brushless servos and VSD-E drives. I've got things hooked up on the bench, and the motors are under Mach control. It's a really nice setup (Thanks Jason at ZealCNC).

I have the EStop and Home switches configured just fine. The Home switch for each axis (XYZ) are wired through the encoder inputs to pin 4.

What I'm wondering about are the limit switches. On my Gecko setup, I have my limits wired in series and then sent to pin 15 on my break out board. Since I'm not using the VSDEPI "A_CMD" input for anything, can I simply wire my limit switches to the 16 pin harness that would normally be used for the 4th drive? Will that simply pass thru?

So, what pins (on the VSDEPI, A_CMD) are tied to pin 15 and GND? Perhaps I can poke around and discover this myself. Hope this makes sense.

Thanks,

Steve
Reply With Quote

  #2   Ban this user!
Old 01-06-2010, 02:54 PM
Jason3's Avatar  
Join Date: Aug 2007
Location: New Zealand
Posts: 544
Jason3 is on a distinguished road

Hey Steve,

Hopefully Tero will drop by and confirm regarding using the A_CMD, but I think the answer is yes you can use the unused pins for home switches. Let me see if I have the pinout here and I'll get back to you.

Best regards,

Jason

Last edited by Jason3; 01-06-2010 at 02:59 PM. Reason: Misread question - the home switches are fine!
Reply With Quote

  #3   Ban this user!
Old 01-06-2010, 03:09 PM
Jason3's Avatar  
Join Date: Aug 2007
Location: New Zealand
Posts: 544
Jason3 is on a distinguished road

Hi Steve,

The A_CMD pin 3 goes to pin 9 on the VSDEPI DB25 output, pin 5 goes to pin 8 according to the manuals. Tero did also mention to me once that you can use pins 9 and 10 which are unused in single axis mode, but that some manual wiring would be required.

Best regards,

Jason.
Reply With Quote

  #4   Ban this user!
Old 01-06-2010, 03:43 PM
 
Join Date: Jan 2006
Location: USA
Age: 45
Posts: 605
stevespo is on a distinguished road

Hey Jason, as always - thanks for the help. I couldn't quite remember what strategy you suggested the last time we discussed this. I can see the pinouts in the VSD-E manual, and it does make sense.

Pin 1 (NC)
Pin 2 (IO_COM) Common voltage for optoisolated I/O
Pin 7 (IO_VCC) Voltage supply for optoisolated I/O
etc...

So, I would think that Pin 9 (IN4) or 10 (IN3) look right. They're both "medium speed optoisolated inputs). Pin 10 is labled SPI MOSI (Master Output/Slave Input) so that seems like the likely candidate. As long as it passes back through to pin 15 on the parallel port, that's all I need. I should be able to tell in just a few minutes.

Thanks,

Steve
Reply With Quote

  #5   Ban this user!
Old 01-06-2010, 04:41 PM
 
Join Date: Jan 2006
Location: USA
Age: 45
Posts: 605
stevespo is on a distinguished road

Actually, it looks like it's pin 12 on A_CMD. As expected, I get a 5V reading on pin 7 (IO_VCC) and 4.3V on pin 12 (OUT1, medium speed, general purpose output).

If I configure parallel port pin 15 as X++ limit switch and then short pin 12 to pin 2 (IO_COM), Mach registers that as the limit switch being triggered. Thanks again for the help - I think I'm all set.

Steve
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 01-06-2010, 06:05 PM
Jason3's Avatar  
Join Date: Aug 2007
Location: New Zealand
Posts: 544
Jason3 is on a distinguished road

Excellent, nice work. I'll store that away as a handy thing to know

Best regards,

Jason
Reply With Quote

  #7   Ban this user!
Old 01-10-2010, 02:49 PM
Xerxes's Avatar  
Join Date: Sep 2004
Location: Finland
Posts: 1,162
Xerxes is on a distinguished road

I published the VSDEPI schematics, hope it helps:
http://www.students.tut.fi/~kontkant...schematics.pdf

A_CMD pins 3, 5 and 12 can be easily used as additional I/O as they go straight to parallel port.

The other end of switch should be connected to one of GND pins and a pull-up resistor (1-5kOhm) from input pin to VCC is needed to make switch work.
Reply With Quote

  #8   Ban this user!
Old 03-17-2010, 08:03 PM
 
Join Date: Jan 2006
Location: USA
Age: 45
Posts: 605
stevespo is on a distinguished road

Xerxes, thanks for your help. This is one of the last things I need to do. Without a VSD-E in place to perform filtering, do you think it's necessary to add a small capacitor and create an RC filter? Pin 12 should be opto-isolated via the VSDEPI, but any harm in filtering?

Steve
Attached Thumbnails
Click image for larger version

Name:	200px-RC_Divider.svg.jpg‎
Views:	72
Size:	13.0 KB
ID:	103182  

Last edited by stevespo; 03-18-2010 at 10:08 AM. Reason: improved picture
Reply With Quote

  #9   Ban this user!
Old 03-18-2010, 12:46 PM
Xerxes's Avatar  
Join Date: Sep 2004
Location: Finland
Posts: 1,162
Xerxes is on a distinguished road

Originally Posted by stevespo View Post
Xerxes, thanks for your help. This is one of the last things I need to do. Without a VSD-E in place to perform filtering, do you think it's necessary to add a small capacitor and create an RC filter? Pin 12 should be opto-isolated via the VSDEPI, but any harm in filtering?
I think there is filtering options in Mach3 settings. Passive filtering like in the picture surely won't hurt if you encounter problems.
Reply With Quote

  #10   Ban this user!
Old 03-18-2010, 01:02 PM
 
Join Date: Jan 2006
Location: USA
Age: 45
Posts: 605
stevespo is on a distinguished road

Mach has "debounce" settings that are useful. In the past, when I had problems with noise on my inputs I had better luck with a small cap as pictured. I'll try it without and see what happens.

Steve
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 03-29-2010, 02:37 PM
 
Join Date: Jan 2006
Location: USA
Age: 45
Posts: 605
stevespo is on a distinguished road

Xerxes, can you look at my little diagram above and see if anything is incorrect? I am still seeing noise issues on those limit switches and when I use the circuit above it keeps the input high regardless of the state of the switch.

My understanding of this setup is that when the switch is closed the current will flow to ground and the signal on pin 12 should be low. When the switch is open, the current will go to pin 5, and it will read high.

I'm actually not sure what role the capacitor is playing with the diagram drawn as above. Is a low pass filter the correct choice here? Can you enlighten me or at least suggest a filtering option that I could try?

Steve

BTW, I'm using a 4.7K ohm resistor, and I've tried both .01uF (103) and .1uF (104) capacitors.
The other thing I've noticed is that pin 13 on the VSDEPI port A doesn't appear to go to ground.
I suspect that is typically supplied by the (missing) VSD-E? So, I've gone right to my grounding block.

Last edited by stevespo; 03-29-2010 at 02:56 PM. Reason: add detail
Reply With Quote

  #12   Ban this user!
Old 03-29-2010, 02:46 PM
Xerxes's Avatar  
Join Date: Sep 2004
Location: Finland
Posts: 1,162
Xerxes is on a distinguished road

It really seems to have a flaw, sorry for not checking it earlier.

Switch can't pull Vout to GND thru a capacitor (because capacitor acts like an open circuit to DC currents). To fix this, connect the switch in parallel with the capacitor (instead of series connection like in the diagram).
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
Mach3 and limit switches ZigMan Mach Software (ArtSoft software) 2 07-21-2008 04:52 PM
Need Help!- G100, Mach3 and Limit Switches wiring shah G-REX 2 05-06-2008 01:15 PM
The relationship of limit switches to home switches. MikeAber General Electronics Discussion 4 11-04-2004 01:28 PM
Limit switches and home switches viktorcnc TurboCNC 2 08-03-2004 06:11 AM
Home switches and limit switches. ynneb General Electronics Discussion 5 04-08-2004 05:32 PM




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