. .
  1. #1
    I have some issues with wiring on my cnc and was wondering if some more experienced guys could step in. I have searched around and found a thread with similar issues but I still have a bit of a hard time wrapping my head around current source vs sink arrangement:linuxcnc.org/hardy/lucid/index.php/engli...tle-assistance/reply


    I have my cnc wired with similar hardware, ZP5A-int breakout board with 2m542 drivers. I have been running mach3 but missed steps occur often.


    Initially I set up my breakout to source current to the drivers as in the second image attachment and things seemed fine at first but missed steps are common so I now believe that my BOB can't source enough current to drive the driver optoisolator inputs on my 2m542 drivers correctly so want to move to current sink ( image 1) as per this thread (although i'm having difficulty wrapping my head around this arrangement)

    If anyone can shed some light I'd appreciate it.

    thanks and regards
    Attached Thumbnails Attached Thumbnails Click image for larger version. 

Name:	image.jpg 
Views:	511 
Size:	43.6 KB 
ID:	12749   Click image for larger version. 

Name:	image.jpg 
Views:	323 
Size:	39.7 KB 
ID:	12750  

  2. #2
    This won't be your problem it will most likely be else where why your getting missed steps.! . . .But for people to help more then you'll need to provide much more info about the machine and how you have it setup.

    Edit: First port of call is to try another parallel cable before doing anything else.!
    Last edited by JAZZCNC; 09-07-2014 at 11:25 PM.

  3. #3
    Hi jazz,

    The machine is a momus design belt driven, il post pics ASAP. Motors are 381oz in from keling inc. I will check the parallel cable thanks, that is one I've overlooked. Looking at the circuit of the bob the output current (74hc244d schmitts) can only source just over 7mA current and the optical isolators on the drivers expect up to 16mA so I think it's definitely out of spec there and needs to be addressed, I think I have a solution using logic level mosfets to sink the optical isolator GND on dir step and ena so I will try today and report back. There is probably a few things going on, always the way so far, I may have too much preload on the bearings too.

  4. Quote Originally Posted by Evengravy View Post
    Hi jazz,

    The machine is a momus design belt driven, il post pics ASAP. Motors are 381oz in from keling inc. I will check the parallel cable thanks, that is one I've overlooked. Looking at the circuit of the bob the output current (74hc244d schmitts) can only source just over 7mA current and the optical isolators on the drivers expect up to 16mA so I think it's definitely out of spec there and needs to be addressed, I think I have a solution using logic level mosfets to sink the optical isolator GND on dir step and ena so I will try today and report back. There is probably a few things going on, always the way so far, I may have too much preload on the bearings too.
    The drive current could be the reason for missed steps. M542 is 7mA min, 10mA typical, assuming 5v supply and 270ohm resistor as per leadshine datasheet. But the driver can only output around 3.8v so assuming a 2v LED you're actually getting something like 6mA. Having said that, you should never drive optos from a logic output, you should always sink to ground, i.e. the driver PUL+ to +v, usually an isolated 5v supply, driver PUL- to BOB output, configure as active low. The hc244d can sink 7ma nominal with 0.4v drop so a sink will drive the LED harder. you'll get nearer 8-9mA.

    Also likely your parallel port is 3.3v out and BOB is expecting 5v signals (the 'logic high' for a 244d on 5v supply is 3.15v). too much preload is stalling the motors is a distant possibility...
    Last edited by irving2008; 12-07-2014 at 04:19 PM.

  5. #5
    Quote Originally Posted by irving2008 View Post
    The drive current is unlikely to be the reason for missed steps. What optoisolators are they? More likely too much preload is stalling the motors or your parallel port is 3.3v out and BOB is expecting 5v signals.
    Hi,

    I check through the bearings yesterday and there were some bearings that were too tight indeed. Not sure what optical isolators are without opening the drive but the drive datasheet gives max 16mA per channel and the bob Schmitt gives a little over 7mA sourcing current.

    I have a transistor system built to sink current from the ena-, dir- and step- such that I can wire the ena+, dir+ and step+ on drivers directly to 5v using the bob step dir ena to trigger the gates. Between the two I think I should have solved things but need to test it, I also ditched my mach3 machine and built a new rapid linuxcnc box that should help, my other machine was borderline. I scoped the output yesterday from the parallel port and it is putting out 5v.

    The current sink arrangement was just confusing to me, I'm more used to working with n channel circuitry vs p channel I guess. the transistors gating the ground should solve things with minimal re-wiring and they are able to rise in 80-90ns and fall in 32ns so shouldn't impact timing.

    thanks for the help, appreciate it, il report back when I get things tested,

  6. I just edited my post having re-read the datasheets. The leadshine 16mA is a max value when using > 5v sources, used to calculate the additional external resistor, its not relevant here. On a true 5v drive with an open collector sink, the current will be 10mA. Using the existing BOB as a sink should work as would your additional output transistors (messy though). Timing isn't going to be an issue...

    Quote Originally Posted by Evengravy View Post
    Hi,

    I check through the bearings yesterday and there were some bearings that were too tight indeed. Not sure what optical isolators are without opening the drive but the drive datasheet gives max 16mA per channel and the bob Schmitt gives a little over 7mA sourcing current.

    I have a transistor system built to sink current from the ena-, dir- and step- such that I can wire the ena+, dir+ and step+ on drivers directly to 5v using the bob step dir ena to trigger the gates. Between the two I think I should have solved things but need to test it, I also ditched my mach3 machine and built a new rapid linuxcnc box that should help, my other machine was borderline. I scoped the output yesterday from the parallel port and it is putting out 5v.

    The current sink arrangement was just confusing to me, I'm more used to working with n channel circuitry vs p channel I guess. the transistors gating the ground should solve things with minimal re-wiring and they are able to rise in 80-90ns and fall in 32ns so shouldn't impact timing.

    thanks for the help, appreciate it, il report back when I get things tested,

  7. The Following User Says Thank You to irving2008 For This Useful Post:


  8. #7
    Thanks Irving, just for reference then the sinking arrangement I posted is correct?

  9. Your first picture, yes... I'd try that first before making an intermediate driver.. or change the BOB for one with better output drivers...
    .
    And don't connect motor supply and BOB supply grounds else you'll lose the isolation.


    Quote Originally Posted by Evengravy View Post
    Thanks Irving, just for reference then the sinking arrangement I posted is correct?
    Last edited by irving2008; 12-07-2014 at 04:52 PM.

  10. The Following User Says Thank You to irving2008 For This Useful Post:


  11. #9
    K, so can I just leave the BOB xn (GND) unconnected, that had me confused mainly

  12. yes., assuming BOB xn(GND) and 5v GND are connected (I'd be surprised if they're not)

    Quote Originally Posted by Evengravy View Post
    K, so can I just leave the BOB xn (GND) unconnected, that had me confused mainly

  13. The Following User Says Thank You to irving2008 For This Useful Post:


Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. bumping holding current - how it affects torque?
    By dsc in forum Stepper & Servo Motors
    Replies: 7
    Last Post: 03-02-2014, 04:11 PM
  2. TB6560 auto current reduction
    By Mjolinor in forum Motor Drivers & Controllers
    Replies: 1
    Last Post: 08-12-2011, 09:53 PM
  3. Current Set Resistors.
    By NzOldun in forum Motor Drivers & Controllers
    Replies: 1
    Last Post: 20-06-2011, 08:38 AM
  4. G540 Current set resistors
    By blueseidboy in forum Motor Drivers & Controllers
    Replies: 3
    Last Post: 23-08-2010, 02:21 PM
  5. Simple Current Limiter (LM317)
    By Mad Professor in forum General Electronics
    Replies: 14
    Last Post: 13-07-2009, 10:01 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •