. .

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. Thanks guys - as always appreciate the help! As far as my specific estop set up I have explained this on my video log. Link below if you can be bothered to watch it!! But is essentially a pilz with two estop buttons wired in series and a contactor to switch the mains on / off to the drives' psu. Could you put all the drive alarms in series between the pins shown on my sketch above and then in series with my estop buttons?

    ESTOP Video link:

  2. The Following 2 Users Say Thank You to JoeHarris For This Useful Post:


  3. #2
    m_c's Avatar
    Lives in East Lothian, United Kingdom. Last Activity: 4 Hours Ago Forum Superstar, has done so much to help others, they deserve a medal. Has a total post count of 2,987. Received thanks 373 times, giving thanks to others 9 times.
    You can wire in them series with the e-stops, however you have to give some thought as to how you get the drives back out of alarm, if your e-stop system is also killing power to the drives.
    Avoiding the rubbish customer service from AluminiumWarehouse since July '13.

  4. #3
    It all gets just a bit more complicated than this. One issue is that you have your stepper drivers powered on by the safety relay. That means that the fault outputs on the drivers are the equivalent of open circuit, as they are unpowered until you have energised the safety relay. However, if you wire the fault outputs in series with the e-stop switches (p9 in the CSMIO manual shows this) then you can't activate the safety relay as it thinks that an e-stop condition exists (via the driver fault outputs) but you can't turn those on until you have put power on the drivers. Catch-22.

    I have virtually the same setup as yours - Pilz safety relay (different model, but that's not important), CSMIO, digital drivers (mine are EM806 not AM882 but again no practical difference for this purpose) and power to stepper driver PSU controlled by relay controlled by safety relay. What I have done is:

    safety relay uses three contacts - two of the N/O and one N/C. One N/O contact switches 24V to pin 1 on CSMIO, configured as "e-stop". This puts the CSMIO into e-stop mode when the safety relay is off. One N/O contact switches 24V to the stepper driver PSU relay (like you have done). So, no power to motors unless safety relay is on. The N/C contact switches 5V to the enable inputs on the drivers. With the relay off, this disables the drivers. Once the relay is energised, 5V is removed and the drives are enabled. So, when you hit e-stop, you remove power from the steppers, tell the CSMIO to go into e-stop, and disable the drivers.

    To get round the problems with the fault signal from the drivers, I take these in parallel directly to the CSMIO, pin 2, configured as "Drive Fault". The CSMIO monitors this input specifically for this kind of situation and processes the signal without needing to talk to Mach3. I do this by taking 24V to the + side of the fault connections (all in parallel) and the - sides to the CSMIO, so when a fault occurs the internal "switch" closes, puts 24V on the CSMIO pin. The corresponding CSMIO pin 15 is taken to ground.

    All I can say is, it all works! On a stall signal, the CSMIO stops the machine immediately via its own firmware. However, the safety relay is still energised. To get the driver(s) out of the fault condition, I hit e-stop which removes power, then hit reset to re-energise the relay and hence everything else. After a stall, you are going to need to rehome anyway, which is what Mach3 makes you do after an e-stop.

    I did consider reprogramming the EM806 (and you can do the same with the AM882, I believe) to change the sense of the fault output, so in effect the "switches" on the fault output were closed for normal operation instead of open. However, you still have the problem that you have to keep the drivers powered because otherwise the fault outputs look like open switches. I took the easy route of keeping them programmed as the default, so they "close" on a fault. I have them wired in parallel so any fault output takes the CSMIO pin to 24V. At the cost of more complication, I could run the fault signals into the safety relay and in principle this would be slightly more fault-tolerant, but I accept the compromise.

    My main power switch operates on all power coming in to the box. I turn that on at the start of a session and don't touch it again. I have reset and e-stop switches on the box, plus two e-stops around the machine. The safety relay does the job of resetting the drivers via the driver PSU, as explained above. I don't have a separate power switch for the driver PSU.

  5. The Following User Says Thank You to Neale For This Useful Post:


  6. Quote Originally Posted by Neale View Post
    It all gets just a bit more complicated than this. One issue is that you have your stepper drivers powered on by the safety relay. That means that the fault outputs on the drivers are the equivalent of open circuit, as they are unpowered until you have energised the safety relay. However, if you wire the fault outputs in series with the e-stop switches (p9 in the CSMIO manual shows this) then you can't activate the safety relay as it thinks that an e-stop condition exists (via the driver fault outputs) but you can't turn those on until you have put power on the drivers. Catch-22.

    I have virtually the same setup as yours - Pilz safety relay (different model, but that's not important), CSMIO, digital drivers (mine are EM806 not AM882 but again no practical difference for this purpose) and power to stepper driver PSU controlled by relay controlled by safety relay. What I have done is:

    safety relay uses three contacts - two of the N/O and one N/C. One N/O contact switches 24V to pin 1 on CSMIO, configured as "e-stop". This puts the CSMIO into e-stop mode when the safety relay is off. One N/O contact switches 24V to the stepper driver PSU relay (like you have done). So, no power to motors unless safety relay is on. The N/C contact switches 5V to the enable inputs on the drivers. With the relay off, this disables the drivers. Once the relay is energised, 5V is removed and the drives are enabled. So, when you hit e-stop, you remove power from the steppers, tell the CSMIO to go into e-stop, and disable the drivers.

    To get round the problems with the fault signal from the drivers, I take these in parallel directly to the CSMIO, pin 2, configured as "Drive Fault". The CSMIO monitors this input specifically for this kind of situation and processes the signal without needing to talk to Mach3. I do this by taking 24V to the + side of the fault connections (all in parallel) and the - sides to the CSMIO, so when a fault occurs the internal "switch" closes, puts 24V on the CSMIO pin. The corresponding CSMIO pin 15 is taken to ground.

    All I can say is, it all works! On a stall signal, the CSMIO stops the machine immediately via its own firmware. However, the safety relay is still energised. To get the driver(s) out of the fault condition, I hit e-stop which removes power, then hit reset to re-energise the relay and hence everything else. After a stall, you are going to need to rehome anyway, which is what Mach3 makes you do after an e-stop.

    I did consider reprogramming the EM806 (and you can do the same with the AM882, I believe) to change the sense of the fault output, so in effect the "switches" on the fault output were closed for normal operation instead of open. However, you still have the problem that you have to keep the drivers powered because otherwise the fault outputs look like open switches. I took the easy route of keeping them programmed as the default, so they "close" on a fault. I have them wired in parallel so any fault output takes the CSMIO pin to 24V. At the cost of more complication, I could run the fault signals into the safety relay and in principle this would be slightly more fault-tolerant, but I accept the compromise.

    My main power switch operates on all power coming in to the box. I turn that on at the start of a session and don't touch it again. I have reset and e-stop switches on the box, plus two e-stops around the machine. The safety relay does the job of resetting the drivers via the driver PSU, as explained above. I don't have a separate power switch for the driver PSU.
    Thanks for this explanation - I am going to try and draw it out so I can understand then I'll come back as it will take a bit of digestion (I don't have a background in electronics or computers so the learning curve is quite steep!!) ps. is it necessary to disable the drivers if you are also cutting power to them? Belt and braces?!
    Last edited by JoeHarris; 24-10-2017 at 08:53 PM.

  7. #5
    Happy to answer questions on it, but drawing it out and thinking through the logic will help. Sorry I don't have any wiring diagrams to post but I did it all on the fly, with just a few notes on which CSMIO pin does what. Not a recommended approach
    Last edited by Neale; 24-10-2017 at 08:56 PM.

  8. The Following User Says Thank You to Neale For This Useful Post:


  9. Quote Originally Posted by Neale View Post
    Happy to answer questions on it, but drawing it out and thinking through the logic will help. Sorry I don't have any wiring diagrams to post but I did it all on the fly, with just a few notes on which CSMIO pin does what. Not a recommended approach
    Ok so I'm a little bit confused because apart from integrating the estop pins on the CSMIO [+24v, to Pilz NO, to CSMIO pin 1, then from CSMIO pin 14, to 0v on 24v PSU] this looks to be pretty well the setup I had originally?? Albeit using three fault pins on the CSMIO rather than one [+24v, to AM882 drive ALM+, then from ALM-, to CSMIO digital input pins 8,9,10, then from CSMIO pins 21,22,23, to 0v on 24v PSU] Have I got this right?!
    Last edited by JoeHarris; 25-10-2017 at 12:05 AM.

  10. Quote Originally Posted by JoeHarris View Post
    Ok so I'm a little bit confused because apart from integrating the estop pins on the CSMIO [+24v, to Pilz NO, to CSMIO pin 1, then from CSMIO pin 14, to 0v on 24v PSU] this looks to be pretty well the setup I had originally?? Albeit using three fault pins on the CSMIO rather than one [+24v, to AM882 drive ALM+, then from ALM-, to CSMIO digital input pins 8,9,10, then from CSMIO pins 21,22,23, to 0v on 24v PSU] Have I got this right?!
    Just drawn it out as I understand it... have I got this right??

    Bugger, just noticed I forgot to show pin 14 connected to 0V
    Last edited by JoeHarris; 25-10-2017 at 01:15 AM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. BUILD LOG: 3 Axis Router
    By GTJim in forum DIY Router Build Logs
    Replies: 8
    Last Post: 22-06-2020, 08:49 AM
  2. 3-Axis CNC Router - For Helices.
    By Dalmango in forum Gantry/Router Machines & Building
    Replies: 4
    Last Post: 08-02-2014, 07:27 PM
  3. BUILD LOG: Wobbly: my first 3-axis router
    By Sodster68 in forum DIY Router Build Logs
    Replies: 8
    Last Post: 20-01-2013, 10:28 AM
  4. 3 axis cnc/router bed
    By dudz in forum Marketplace Discussion
    Replies: 23
    Last Post: 28-12-2012, 09:38 PM
  5. Need 6' x 4' bed, 4 axis router design.. Help..!
    By fasteddy in forum Gantry/Router Machines & Building
    Replies: 29
    Last Post: 17-09-2010, 12:56 PM

Tags for this Thread

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
  •