. .
Page 10 of 22 FirstFirst ... 8910111220 ... LastLast
  1. #91
    AndyUK's Avatar
    Lives in Southampton, United Kingdom. Last Activity: 2 Weeks Ago Has been a member for 6-7 years. Has a total post count of 469. Received thanks 100 times, giving thanks to others 43 times. Referred 1 members to the community.
    Hi All,

    So, I thought I had the machine all ready to make its first self-powered movements this evening, however I've stumbled!

    I'm pretty sure the problem is that the drives are not enabling, because they worked before I reprogrammed the enable to be active high rather than active low, so one of the things I'll do to test is reprogram a drive enable to be active low again and retest.

    I thought I'd throw this out to people to see if you can see where I've gone wrong. The drives are wired as per the EM806 manual (below) and my circuit diagram two posts ago.

    Click image for larger version. 

Name:	Screen Shot 2020-01-31 at 21.39.24.png 
Views:	156 
Size:	77.9 KB 
ID:	27264

    So, each drive has a line from +24V on the UB1 to ENABLE + on the drive via a 2k ohm resistor. The ENABLE - lines are then commoned, and fed into the OSSD output on the UB1. This is the output of the safety circuit, which I can override with a button (so I know the cause isn't limits etc).

    The UB1 manual says this about the outputs:

    Click image for larger version. 

Name:	Screen Shot 2020-01-31 at 21.44.13.png 
Views:	165 
Size:	110.9 KB 
ID:	27265

    And lists the OSSD as just another output that is controlled by the safety circuit:

    Click image for larger version. 

Name:	Screen Shot 2020-01-31 at 21.53.26.png 
Views:	162 
Size:	145.8 KB 
ID:	27266

    My thoughts were, that when the output is off (i.e. safety circuit broken), no current can flow through the enable optocoupler, so its a logic low. When the output is on current can flow, logic high, drive enabled.

    The drives target 10mA on those optocouplers, so 40mA approximately should be within the 70mA sink of the output.

    I know the OSSD output is doing its thing because I can see the LED come on when I press the override.

    Have I missed something?

  2. #92
    Neale's Avatar
    Lives in Plymouth, United Kingdom. Last Activity: 10 Hours Ago Has been a member for 9-10 years. Has a total post count of 1,729. Received thanks 295 times, giving thanks to others 11 times.
    Quote Originally Posted by AndyUK View Post

    My thoughts were, that when the output is off (i.e. safety circuit broken), no current can flow through the enable optocoupler, so its a logic low. When the output is on current can flow, logic high, drive enabled.
    I haven't ploughed my way through the UB1 manual, but in general terms it looks like the internal "switch" in the UB1 shorts the pin to earth (in which case current can flow) or not, in which case no current flows. What might be causing confusion is that when the switch is on, current flows, and the output voltage on the pin is more-or-less at earth potential. When the switch is off, the output pin is high voltage (as the resistor and enable output path on the driver form a pull-up circuit). So is your logic the wrong way round? :Low and high usually refer to the voltage on the pin, not current flow.

  3. #93
    AndyUK's Avatar
    Lives in Southampton, United Kingdom. Last Activity: 2 Weeks Ago Has been a member for 6-7 years. Has a total post count of 469. Received thanks 100 times, giving thanks to others 43 times. Referred 1 members to the community.
    Yeah that thought did trouble me too...

    I didn't notice the drive working when I wasn't overriding the safety circuit, but it's also possible that in that condition the UB1 won't send the step signals.

    I need to dig up some example circuit diagrams where people are switching the enable lines of the AM882 or EM806.

  4. #94
    Neale's Avatar
    Lives in Plymouth, United Kingdom. Last Activity: 10 Hours Ago Has been a member for 9-10 years. Has a total post count of 1,729. Received thanks 295 times, giving thanks to others 11 times.
    I use EM806 and I switch the enable line. Offhand, though, I can't remember exactly how, but I think it's a direct connection from a relay contact on my safety relay. Too late tonight but I'll try to sort out some info tomorrow. I know that my EM806 are in the default "disconnect to enable" mode as I've never tried to reprogramme them.

  5. #95
    Optocouplers work a little like elctromechanical relays: When you apply a voltage across the input terminals the output terminals are connected together. In practice most couplers contain a LED which lights up to turn on an open collector transistor. The most common circuit implementation connects the LED cathode and the emitter of the transistor to ground. Your external circuit will normally include a pull-up resistor between the open collector and the positive supply so the output voltage (the collector of the transistor) is high until pulled low by a positive voltage applied to the anode of the LED. The device therefore acts as an inverter in this configuration.

    There is no reason why the collector of the transistor cannot be connected to the positive supply and a pull-DOWN resistor connected between the emmiter and ground. The output is now the emitter and the circuit is non-inverting. As long as the collector is allways positive with respect to the emitter the device will work.

    Simillarly the anode of the LED can be connected to the positive rail and the cathode pulled low to turn it on if that suits your circuit voltages.

    All clear as mud?

    Click image for larger version. 

Name:	OptoCoupler.gif 
Views:	136 
Size:	7.8 KB 
ID:	27268

    The stepper controllers I have used have all deaulted to 'enabled' if the enable input is left unconnected. You could test the rest of the beast's function this way.

    Kit
    Attached Thumbnails Attached Thumbnails Click image for larger version. 

Name:	OptoCoupler.gif 
Views:	92 
Size:	4.3 KB 
ID:	27267  
    An optimist says the glass is half full, a pessimist says the glass is half empty, an engineer says you're using the wrong sized glass.

  6. #96
    AndyUK's Avatar
    Lives in Southampton, United Kingdom. Last Activity: 2 Weeks Ago Has been a member for 6-7 years. Has a total post count of 469. Received thanks 100 times, giving thanks to others 43 times. Referred 1 members to the community.
    Quote Originally Posted by Kitwn View Post
    All clear as mud?

    The stepper controllers I have used have all deaulted to 'enabled' if the enable input is left unconnected. You could test the rest of the beast's function this way.

    Kit
    Thanks Kit, I've read through a few times and I think that talley's with my understanding. The problem is, I can't get to the collector or emitter in the drive, and only the collector on the UB1, so I don't have a lot of wiggle room to add pull up or down resistors?

    It definitely all worked before reprogramming the drivers, it's just a hassle now everything is in place, but that's the first step.

  7. #97
    Are the drives powered up when your trying to enable them.? If so it should work if you have switched the Active state to High in the drive it's self and pulled the Opto high. To test the drives then just reset Active state and disconnect the enable.

  8. #98
    AndyUK's Avatar
    Lives in Southampton, United Kingdom. Last Activity: 2 Weeks Ago Has been a member for 6-7 years. Has a total post count of 469. Received thanks 100 times, giving thanks to others 43 times. Referred 1 members to the community.
    Yeah drives have power, and I can see the LEDs on the UB1 flashing to indicate the Step and Dir pulses are sent. Unfortunately I'm away from home for the weekend so testing is delayed!

    Have just found this from vrasak himself (post #3) - so perhaps I'm just confusing my logic states as per Neale's suggestion, and really the drives just need to be configured active low. Vrasak refers to the need to switch the fault state, but not the enable, which is suggestive :)

    https://www.cnczone.com/forums/uccnc...cnc-forum.html

  9. #99
    Andy,

    I think you understand a fair bit on the old electronic side. I was casually browsing this thread and one thing is niggling me. Opto isolators typically have a low CTR - usually significantly less than 1, often less than 0.5. That does mean that cascading optos is going to end (eventually, depending on CTR and number of optos in chain) with the latter optos not switching effectively. Really, the opto should be switching a high-z logic device rather than the relatively high current LED input on the successive circuit.

    You link a rating of the output at 100mA - that /could/ just be the Ice(max) for the PT in the opto, rather than an actual expected switching current (reading the 4n25 data sheet this is the case).

    I'm not suggesting this is your problem, but bear it in mind and measure the switching voltages along the opto-cascade,

  10. #100
    You learn something new every day!

    A scan of the RS catalogue shows you can get inexpensive devices using Darlington output stages with CTR values as high as 50 and more if you have the luxury of designing the circuit yourself, though they have a higher sturated output voltage. Problem is we're often dealing with couplers already installed in larger devices and cannot choose.

    Pull-up/down resistors are often already included in many devices, it being a very bad idea to leave logic inputs to float as the mood takes them. This is how the common "enabled if left unconnected" principle is implemented.
    An optimist says the glass is half full, a pessimist says the glass is half empty, an engineer says you're using the wrong sized glass.

Page 10 of 22 FirstFirst ... 8910111220 ... LastLast

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. BUILD LOG: 8x4 router build. Steel base & Aluminium gantry gantry
    By D-man in forum DIY Router Build Logs
    Replies: 57
    Last Post: 13-12-2019, 10:43 AM
  2. BUILD LOG: Build Log: 4'x4' Moving Gantry CNC Router
    By GeorgeW21 in forum DIY Router Build Logs
    Replies: 14
    Last Post: 20-01-2019, 09:33 AM
  3. BUILD LOG: Ar last!!! Started my Gantry 3-Axis CNC Build
    By MikeyC38 in forum DIY Router Build Logs
    Replies: 74
    Last Post: 16-06-2018, 11:29 PM
  4. Any sugestions how to build my gantry
    By masinecc in forum Gantry/Router Machines & Building
    Replies: 8
    Last Post: 20-09-2015, 05:17 PM
  5. BUILD LOG: Flying Gantry Build Diary
    By geoff.sim in forum DIY Router Build Logs
    Replies: 8
    Last Post: 29-05-2008, 02:53 AM

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
  •