Results 1 to 8 of 8

Thread: Can't get EMC to work with stepper drivers

  1. #1
    Registered
    Join Date
    Dec 2010
    Location
    US
    Posts
    8
    Downloads
    0
    Uploads
    0

    Can't get EMC to work with stepper drivers

    I'm trying to get emc2 to work with my CY-41 stepper drivers. They are opto-isolated, and I can't find a way to power the logic "correctly".

    What I mean is, I can't power the logic with the same power supply as the motors (Using an old AT computer PSU) for some reason, it just doesn't work. So, since such a low voltage is required, I decided to try to power it off the parallel port.

    Works fine, except the pinout is confusing me. I'm only trying to get an X-axis working for now, and the only way I can get it to work is if I power the logic with the Xdirection (pin 3). Obviously this will not do, as the motor will only turn clockwise.

    I don't know what else to do though. I've tried using different pins, and inverting them, but nothing seems to work. I read something about Xen, Zen and Yen and how if a pin is assigned to one of these, it acts as an "Enable" pin, so I'm thinking I could power the stepper driver logic off this, but I don't know. What should I try to get this working?
    Last edited by Cain; 04-11-2011 at 06:32 AM.


  2. #2
    Registered doorknob's Avatar
    Join Date
    Jan 2010
    Location
    USA
    Posts
    1766
    Downloads
    0
    Uploads
    0
    Some people power their stepper controller boards with 5 volts taken from a USB port on the PC.

    The USB connector pinouts are shown at USB pinout and wiring @ pinouts.ru


  3. #3
    Registered
    Join Date
    Dec 2010
    Location
    US
    Posts
    8
    Downloads
    0
    Uploads
    0
    Quote Originally Posted by doorknob View Post
    Some people power their stepper controller boards with 5 volts taken from a USB port on the PC.

    The USB connector pinouts are shown at USB pinout and wiring @ pinouts.ru
    So I should make a USB cable that provides +5v for the stepper controller. Should I connect the USB ground to the common ground for the controller (There's already a PC power supply ground for the motors, and the parallel port ground), or is this already taken care of by the parallel port ground?

    The pc power supply I'm using is in no way connected to the computer I am running EMC2 on.

    Could somebody explain why I can't power the controller with the same power supply as the motor? or is it a problem specific to my controller?

    Thanks for all the help, started on the frame for my mill today now that I know I can at least get a motor to move


  4. #4
    Registered doorknob's Avatar
    Join Date
    Jan 2010
    Location
    USA
    Posts
    1766
    Downloads
    0
    Uploads
    0
    While a quick google search for info about your controller brought up a photograph of that model of controller, I have not found an instruction manual, wiring diagram, or schematic for the controller.

    So, I am reluctant to make any suggestions specific to your controller and how to wire it up in your specific installation. That is why my post about using a USB cable to provide 5 volt power was somewhat general in nature.

    Can you post a link to information such as an instruction manual, wiring diagram, or schematic for your controller?


  • #5
    Registered
    Join Date
    Dec 2010
    Location
    US
    Posts
    8
    Downloads
    0
    Uploads
    0
    Of course, it took me a few hours to find it...most every reference of it is gone.

    http://cyberpakinc.com/pdf/CY4142.pdf

    It is the CY41 model.


  • #6
    Registered
    Join Date
    Nov 2005
    Location
    Canada
    Posts
    487
    Downloads
    0
    Uploads
    0
    found it here:
    Index of /pdf


  • #7
    Registered
    Join Date
    Nov 2005
    Location
    Canada
    Posts
    487
    Downloads
    0
    Uploads
    0
    the reason you don't power it from the stepper power supply is
    is that it defeats the purpose of opto isolation.

    after saying that it should work anyways. Are you sure the power supply is providing power? some need a resister installed to work.
    You need to connect the ground as well as the 5v for the opto side.

    Then you need from EMC: enable, step, and direction pins

    Did you connect a resister to the step drive? It doesn't mention what happens if there is no resister.


  • #8
    Registered
    Join Date
    Dec 2010
    Location
    US
    Posts
    8
    Downloads
    0
    Uploads
    0
    Quote Originally Posted by chester88 View Post
    the reason you don't power it from the stepper power supply is
    is that it defeats the purpose of opto isolation.

    after saying that it should work anyways. Are you sure the power supply is providing power? some need a resister installed to work.
    You need to connect the ground as well as the 5v for the opto side.

    Then you need from EMC: enable, step, and direction pins

    Did you connect a resister to the step drive? It doesn't mention what happens if there is no resister.
    *Facepalm* I should have realized that, thanks. And yes, I have the resistors set up to limit the motor to 1.1 amps

    Also, the enable pin can be left not connected (In this case it is enabled by default). The only output from EMC needed is step and dir, I just can't get the controller to be powered properly (I think).

    Using the motor power supply as the driver logic power supply doesn't work though. I had the PSU ground connected to the ground pin, along with the parallel port ground. PSU +12v was to the motor supply, and +5v was to the controller logic. Pin 2 and 3 are step in and ground.

    Works fine when the parallel port pin 3 is mapped to X_direction, but connected to the controller logic. Well....of course the motor can only turn one way, as the opposite way will pull the pin low and the controller will get no power.

    I'll try it with a USB cable supplying the logic +5 volts and USB ground connected to the PSU and parallel port ground then.


  • Similar Threads

    1. What stepper motors and drivers to use
      By matias_r in forum Linear and Rotary Motion
      Replies: 1
      Last Post: 08-10-2010, 08:44 PM
    2. will fanuc 20s motors work with current model drivers
      By js412000 in forum Servo Motors and Drives
      Replies: 3
      Last Post: 06-28-2009, 12:25 AM
    3. Need Help!- Emc2 and Gecko Drivers, will it work?
      By SpeedsCustom in forum LinuxCNC (formerly EMC2)
      Replies: 43
      Last Post: 09-29-2008, 02:08 PM
    4. stepper drivers
      By Nilesh in forum General Electronics Discussion
      Replies: 3
      Last Post: 06-22-2004, 09:05 PM
    5. stepper drivers
      By DDM in forum DIY CNC Router Table Machines
      Replies: 1
      Last Post: 01-19-2004, 01:58 AM

    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.