Page 1 of 3 123 LastLast
Results 1 to 12 of 26

Thread: VSDEPI, Mach3 and limit switches

  1. #1
    Registered
    Join Date
    Jan 2006
    Location
    USA
    Posts
    610
    Downloads
    0
    Uploads
    0

    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


  2. #2
    Registered Jason3's Avatar
    Join Date
    Aug 2007
    Location
    New Zealand
    Posts
    558
    Downloads
    0
    Uploads
    0
    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 03:59 PM. Reason: Misread question - the home switches are fine!


  3. #3
    Registered Jason3's Avatar
    Join Date
    Aug 2007
    Location
    New Zealand
    Posts
    558
    Downloads
    0
    Uploads
    0
    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.


  4. #4
    Registered
    Join Date
    Jan 2006
    Location
    USA
    Posts
    610
    Downloads
    0
    Uploads
    0
    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


  • #5
    Registered
    Join Date
    Jan 2006
    Location
    USA
    Posts
    610
    Downloads
    0
    Uploads
    0
    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


  • #6
    Registered Jason3's Avatar
    Join Date
    Aug 2007
    Location
    New Zealand
    Posts
    558
    Downloads
    0
    Uploads
    0
    Excellent, nice work. I'll store that away as a handy thing to know

    Best regards,

    Jason


  • #7
    Registered Xerxes's Avatar
    Join Date
    Sep 2004
    Location
    Finland
    Posts
    1,201
    Downloads
    0
    Uploads
    0
    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.


  • #8
    Registered
    Join Date
    Jan 2006
    Location
    USA
    Posts
    610
    Downloads
    0
    Uploads
    0
    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 Attached Thumbnails VSDEPI, Mach3 and limit switches-200px-rc_divider.svg.jpg  
    Last edited by stevespo; 03-18-2010 at 11:08 AM. Reason: improved picture


  • #9
    Registered Xerxes's Avatar
    Join Date
    Sep 2004
    Location
    Finland
    Posts
    1,201
    Downloads
    0
    Uploads
    0
    Quote 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.


  • #10
    Registered
    Join Date
    Jan 2006
    Location
    USA
    Posts
    610
    Downloads
    0
    Uploads
    0
    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


  • #11
    Registered
    Join Date
    Jan 2006
    Location
    USA
    Posts
    610
    Downloads
    0
    Uploads
    0
    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 03:56 PM. Reason: add detail


  • #12
    Registered Xerxes's Avatar
    Join Date
    Sep 2004
    Location
    Finland
    Posts
    1,201
    Downloads
    0
    Uploads
    0
    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).


  • Page 1 of 3 123 LastLast

    Similar Threads

    1. Mach3 and limit switches
      By ZigMan in forum Mach Software (ArtSoft software)
      Replies: 2
      Last Post: 07-21-2008, 05:52 PM
    2. Need Help!- G100, Mach3 and Limit Switches wiring
      By shah in forum G-REX
      Replies: 2
      Last Post: 05-06-2008, 02:15 PM
    3. The relationship of limit switches to home switches.
      By MikeAber in forum General Electronics Discussion
      Replies: 4
      Last Post: 11-04-2004, 02:28 PM
    4. Limit switches and home switches
      By viktorcnc in forum TurboCNC
      Replies: 2
      Last Post: 08-03-2004, 07:11 AM
    5. Home switches and limit switches.
      By ynneb in forum General Electronics Discussion
      Replies: 5
      Last Post: 04-08-2004, 06:32 PM

    Posting Permissions


     


    About CNCzone.com

      We are the largest and most active discussion forum from DIY CNC Machines to the Cad/Cam software to run them. The site is 100% free to join and use, so join today!

    Follow us on

    Facebook Dribbble RSS Feed


    Search Engine Friendly URLs by vBSEO ©2011, Crawlability, Inc.