# E Stop for controller & VFD/Spindle Questions

**URL:** <https://forum.onefinitycnc.com/t/e-stop-for-controller-vfd-spindle-questions/14348>\
**Category:** Spindle/VFD (Aftermarket/Unsupported)\
**Created:** [July 28, 2022, 5:55am UTC](https://forum.onefinitycnc.com/t/e-stop-for-controller-vfd-spindle-questions/14348 "2022-07-28T05:55:19Z")\
**Posts on this page:** 19\
**Page:** 1

<div class="post-metadata">

**Author:** ![PaquetteWoodworks](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.onefinitycnc.com/paquettewoodworks/32/11028_2.png) [@PaquetteWoodworks](https://forum.onefinitycnc.com/u/PaquetteWoodworks)\
**Post date:** [July 28, 2022, 5:55am UTC](https://forum.onefinitycnc.com/t/e-stop-for-controller-vfd-spindle-questions/14348/1 "2022-07-28T05:55:19Z")

</div>

This has probably been answered, and I have looked through numerous other posts about this. My understanding is the simplest way to have an E-stop for stopping the machine and simultaneously the spindle via g code, is to use pin 23 on the breakout board (using the software e-stop)? Would anybody who has done this or enough knowledge on this be able to answer this? If something is to arise, I want one button to hit to stop all motion and spindle torque without killing all the power.

I have everything for my 2.2kW spindle here but want to get this squared away before laying out the wiring and such. My plan is to have a main power switch for turning on the VFD and controller at start up that will double as a SHTF power kill.

If somebody wants to simply explain how to wire an e stop to pin 23 and what switch is appropriate, I would greatly appreciate it! Thanks in advance.

---

<div class="post-metadata">

**Author:** ![349iq2345](https://avatars.discourse-cdn.com/v4/letter/3/bb73d2/32.png) [@349iq2345](https://forum.onefinitycnc.com/u/349iq2345)\
**Post date:** [July 28, 2022, 6:30am UTC](https://forum.onefinitycnc.com/t/e-stop-for-controller-vfd-spindle-questions/14348/2 "2022-07-28T06:30:28Z")

</div>

Hey Ryan,

this goes [this way](https://forum.onefinitycnc.com/t/estop-wiring-via-breakout-board/6983/3). For the switch, a [SPST](https://en.wikipedia.org/wiki/Switch#Contact_terminology) is sufficient. You can use either “normally open” (NO) or “normally closed” (NC) type since this can be set inside the Onefinity Controller. If unsure, you can buy one with both NO and NC, [like this one](https://www.se.com/ww/en/product/XB5AS8445/harmony-xb5-emergency-stop-switching-off-plastic-red-mushroom-%C3%B840-%C3%B822-trigger-latching-turn-to-release-1-no-+-1-nc/).

There is also much information in [this thread](https://forum.onefinitycnc.com/t/best-way-to-e-stop-spindle-and-vfd/10792).

If you have a setup with a safety relay on your VFD ([as shown here](https://forum.onefinitycnc.com/t/help-with-cable-extensions-for-drag-link-install/10379/4#emergency-stop-2)), you can also wire it the other way: The Emergency Stop switch is then connected to the safety relay and this stops the spindle at the VFD and this triggers “estop” pin 23 on Onefinity Controller. This would have the advantage that the VFD would also stop the running program on Onefinity Controller in all other error cases the VFD may report.

---

<div class="post-metadata">

**Author:** ![PaquetteWoodworks](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.onefinitycnc.com/paquettewoodworks/32/11028_2.png) [@PaquetteWoodworks](https://forum.onefinitycnc.com/u/PaquetteWoodworks)\
**Post date:** [July 28, 2022, 3:39pm UTC](https://forum.onefinitycnc.com/t/e-stop-for-controller-vfd-spindle-questions/14348/3 "2022-07-28T15:39:04Z")

</div>

Sorry meant to say button not switch for the e stop but I understand what your saying anyways. I don’t plan on having the safety relay setup. When wiring pin 23, does this need to have any contact to the vfd? Or will communication be sent through the RS485? I still don’t understand if pin 23 produces voltage or if it’s just an voltage input that is needed to trigger?

---

<div class="post-metadata">

**Author:** ![Matticustard](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.onefinitycnc.com/matticustard/32/9039_2.png) [@Matticustard](https://forum.onefinitycnc.com/u/Matticustard)\
**Post date:** [July 28, 2022, 3:43pm UTC](https://forum.onefinitycnc.com/t/e-stop-for-controller-vfd-spindle-questions/14348/4 "2022-07-28T15:43:18Z")

</div>

Under the default configuration, pin 23 to ground closes the NO circuit, triggering the E-stop.

The RS485 spindle will stop. No connection to the VFD is required.

---

<div class="post-metadata">

**Author:** ![PaquetteWoodworks](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.onefinitycnc.com/paquettewoodworks/32/11028_2.png) [@PaquetteWoodworks](https://forum.onefinitycnc.com/u/PaquetteWoodworks)\
**Post date:** [July 28, 2022, 3:46pm UTC](https://forum.onefinitycnc.com/t/e-stop-for-controller-vfd-spindle-questions/14348/5 "2022-07-28T15:46:57Z")

</div>

Thank you! Looks like I can use pin 25 to achieve the ground. Trying to make this setup as simple as possible but also safe.

---

<div class="post-metadata">

**Author:** ![PaquetteWoodworks](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.onefinitycnc.com/paquettewoodworks/32/11028_2.png) [@PaquetteWoodworks](https://forum.onefinitycnc.com/u/PaquetteWoodworks)\
**Post date:** [July 28, 2022, 3:49pm UTC](https://forum.onefinitycnc.com/t/e-stop-for-controller-vfd-spindle-questions/14348/6 "2022-07-28T15:49:44Z")

</div>

For restoring the system after an e stop is triggered, can I accomplish that through the software e stop button (on the controller screen)? I’m also wondering what happens when you release the external e stop?

---

<div class="post-metadata">

**Author:** ![Matticustard](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.onefinitycnc.com/matticustard/32/9039_2.png) [@Matticustard](https://forum.onefinitycnc.com/u/Matticustard)\
**Post date:** [July 28, 2022, 3:52pm UTC](https://forum.onefinitycnc.com/t/e-stop-for-controller-vfd-spindle-questions/14348/7 "2022-07-28T15:52:49Z")

</div>

Yes, pin 25 should suffice. I believe that is what I am using.

> [@PaquetteWoodworks](#):
>
> Trying to make this setup as simple as possible but also safe.

As a weekend warrior, I cannot speak to the proper or required cases for software E-stops vs. hardware E-stops in a commercial environment, but I’m sure someone else can chime in. I have an additional hardware E-stop separate from the software E-stop in case something _REALLY_ goes wrong.

> [@PaquetteWoodworks](#):
>
> I’m also wondering what happens when you release the external e stop?

Releasing the E-stop resets the controller. You will lose all home and zeroes. The spindle will remain off.

---

<div class="post-metadata">

**Author:** ![PaquetteWoodworks](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.onefinitycnc.com/paquettewoodworks/32/11028_2.png) [@PaquetteWoodworks](https://forum.onefinitycnc.com/u/PaquetteWoodworks)\
**Post date:** [July 28, 2022, 4:02pm UTC](https://forum.onefinitycnc.com/t/e-stop-for-controller-vfd-spindle-questions/14348/8 "2022-07-28T16:02:18Z")

</div>

Ok great, just wanted to make sure adding the external stop will behave the same as hitting the on screen stop.

---

<div class="post-metadata">

**Author:** ![Matticustard](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.onefinitycnc.com/matticustard/32/9039_2.png) [@Matticustard](https://forum.onefinitycnc.com/u/Matticustard)\
**Post date:** [July 28, 2022, 4:07pm UTC](https://forum.onefinitycnc.com/t/e-stop-for-controller-vfd-spindle-questions/14348/9 "2022-07-28T16:07:59Z")

</div>

Yes, the external “software” E-stop (pin 23) will behave exactly the same as the button on the screen.

Just not to be confused with an external hardware E-stop that cuts all power.

---

<div class="post-metadata">

**Author:** ![PaquetteWoodworks](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.onefinitycnc.com/paquettewoodworks/32/11028_2.png) [@PaquetteWoodworks](https://forum.onefinitycnc.com/u/PaquetteWoodworks)\
**Post date:** [July 28, 2022, 4:13pm UTC](https://forum.onefinitycnc.com/t/e-stop-for-controller-vfd-spindle-questions/14348/10 "2022-07-28T16:13:28Z")

</div>

Correct. Thanks again

---

<div class="post-metadata">

**Author:** ![349iq2345](https://avatars.discourse-cdn.com/v4/letter/3/bb73d2/32.png) [@349iq2345](https://forum.onefinitycnc.com/u/349iq2345)\
**Post date:** [July 28, 2022, 4:17pm UTC](https://forum.onefinitycnc.com/t/e-stop-for-controller-vfd-spindle-questions/14348/11 "2022-07-28T16:17:12Z")

</div>

Hey Matticustard, hey Ryan @PaquetteWoodworks,

> [@Matticustard](#):
>
> As a weekend warrior, I cannot speak to the proper or required cases for software E-stops vs. hardware E-stops in a commercial environment, but I’m sure someone else can chime in.

Just in case someone is interested in the subject, I tried to explain this in the [thread](https://forum.onefinitycnc.com/t/best-way-to-e-stop-spindle-and-vfd/10792) mentioned above

> [@Matticustard](#):
>
> I have an additional hardware E-stop separate from the software E-stop in case something _REALLY_ goes wrong.

In fact you need both. What Ryan refers to is if there is something to abort quickly and stop all running motors, e.g. to avoid harm to humans (or animals), but without cutting power to everything. In fact VFDs with spindles running on them don’t like sudden power cut at all and can even be damaged. However what you always should have too, is an emergency switch preferably at the entrance of the room, with which you can safely cut off power on all hot lines for the entire room, for the case of fire.

---

<div class="post-metadata">

**Author:** ![PaquetteWoodworks](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.onefinitycnc.com/paquettewoodworks/32/11028_2.png) [@PaquetteWoodworks](https://forum.onefinitycnc.com/u/PaquetteWoodworks)\
**Post date:** [July 28, 2022, 4:29pm UTC](https://forum.onefinitycnc.com/t/e-stop-for-controller-vfd-spindle-questions/14348/12 "2022-07-28T16:29:08Z")

</div>

My last concerns would be if a braking resistor is necessary? I’m sure every VFD is a little bit different on what it can handle but the resistor seems like a good idea if power goes out or is cut off for emergency. I have the Huanyang and still searching for an answer to this.

---

<div class="post-metadata">

**Author:** ![Matticustard](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.onefinitycnc.com/matticustard/32/9039_2.png) [@Matticustard](https://forum.onefinitycnc.com/u/Matticustard)\
**Post date:** [July 28, 2022, 4:40pm UTC](https://forum.onefinitycnc.com/t/e-stop-for-controller-vfd-spindle-questions/14348/13 "2022-07-28T16:40:45Z")

</div>

If you did not previously tell Huanyang you wanted the VFD with braking capability, your unit probably does not have the feature.

I have a brake on mine. My unit stops very quickly. It’s nice peace of mind. But I can’t say whether it’s really necessary in the grand scheme of things.

---

<div class="post-metadata">

**Author:** ![PaquetteWoodworks](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.onefinitycnc.com/paquettewoodworks/32/11028_2.png) [@PaquetteWoodworks](https://forum.onefinitycnc.com/u/PaquetteWoodworks)\
**Post date:** [July 28, 2022, 4:43pm UTC](https://forum.onefinitycnc.com/t/e-stop-for-controller-vfd-spindle-questions/14348/14 "2022-07-28T16:43:41Z")

</div>

Ok no I just ordered the kit of Amazon. My understanding was if the spindle is running and power is suddenly cut off, the free spinning spindle would act as a generator and return excess current to VFD possibly causing damage?

---

<div class="post-metadata">

**Author:** ![349iq2345](https://avatars.discourse-cdn.com/v4/letter/3/bb73d2/32.png) [@349iq2345](https://forum.onefinitycnc.com/u/349iq2345)\
**Post date:** [July 28, 2022, 4:56pm UTC](https://forum.onefinitycnc.com/t/e-stop-for-controller-vfd-spindle-questions/14348/15 "2022-07-28T16:56:23Z")

</div>

Hey Ryan,

every [VFD](https://en.wikipedia.org/wiki/Variable-frequency_drive) has a [braking chopper circuit](https://en.wikipedia.org/wiki/Braking_chopper). The external resistor is an extension to allow for more power to be absorbed. The less resistance and the more power rating the resistor has, the faster the spindle can be brought to standstill or the bigger and the faster the jump from a high to a lower speed setting that can be achieved during operation. If the jump you request is too big or too fast for the chopper circuit, the VFD may trip.

You can choose what the VFD does when you stop the spindle. You can adjust a setting to either let the spindle **coasting** when stoppped, then it can take a longer time until it stands still. In this case the spindle is disconnected from the VFD on all three phases. Or you tell it to **decelerate** which means braking with the chopper circuit. In this case the current that the spindle generates is absorbed by the chopper circuit and transformed into heat inside the braking resistor. If the jump from high to low speed is too big and too fast, the VFD may trip in order to prevent overcurrent and overheating inside the VFD. On my VFD, you can tell the amount of speed reduction per time unit, in order to match the resistors capability, I don’t know on the Huanyang.

In the [manual](https://assets.omron.eu/downloads/manual/en/v5/i570_mx2_users_manual_en.pdf) of [my VFD](https://industrial.omron.co.uk/en/products/mx2), two possible braking resistors matching the VFD model are refered to with a parts number.

What you can do is 1. see if your HY model supports an external braking resistor at all 2. If so try to find the information on the recommended ohms and watts values.

---

<div class="post-metadata">

**Author:** ![Matticustard](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.onefinitycnc.com/matticustard/32/9039_2.png) [@Matticustard](https://forum.onefinitycnc.com/u/Matticustard)\
**Post date:** [July 28, 2022, 5:03pm UTC](https://forum.onefinitycnc.com/t/e-stop-for-controller-vfd-spindle-questions/14348/16 "2022-07-28T17:03:08Z")

</div>

Just for clarification. If the unit trips, doesn’t it enter coast mode automatically to prevent damage?

---

<div class="post-metadata">

**Author:** ![349iq2345](https://avatars.discourse-cdn.com/v4/letter/3/bb73d2/32.png) [@349iq2345](https://forum.onefinitycnc.com/u/349iq2345)\
**Post date:** [July 28, 2022, 5:03pm UTC](https://forum.onefinitycnc.com/t/e-stop-for-controller-vfd-spindle-questions/14348/17 "2022-07-28T17:03:56Z")

</div>

Hey Matticustard,

> [@Matticustard](#):
>
> If the unit trips, doesn’t it enter coast mode automatically to prevent damage?

precisely.

---

<div class="post-metadata">

**Author:** ![PaquetteWoodworks](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.onefinitycnc.com/paquettewoodworks/32/11028_2.png) [@PaquetteWoodworks](https://forum.onefinitycnc.com/u/PaquetteWoodworks)\
**Post date:** [July 29, 2022, 2:51am UTC](https://forum.onefinitycnc.com/t/e-stop-for-controller-vfd-spindle-questions/14348/18 "2022-07-29T02:51:13Z")

</div>

Ok that clears that up for me. Ill have to look into the programming capabilities of my VFD and see what’s possible. I did not know about the internal resistor.

---

<div class="post-metadata">

**Author:** ![PaquetteWoodworks](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.onefinitycnc.com/paquettewoodworks/32/11028_2.png) [@PaquetteWoodworks](https://forum.onefinitycnc.com/u/PaquetteWoodworks)\
**Post date:** [August 15, 2022, 3:31pm UTC](https://forum.onefinitycnc.com/t/e-stop-for-controller-vfd-spindle-questions/14348/19 "2022-08-15T15:31:52Z")

</div>

Found this in case anybody is looking for a better on/off switch solution. Going to order this soon and see how it works.

> **[Woodstock 110V Magnetic ON / OFF Switch 2 HP D4137](https://www.toolplanet.com/product/Woodstock-Magnetic-Switch-D4137/Woodstock?gclid=Cj0KCQjw3eeXBhD7ARIsAHjssr9c-FDeRvWhGxC9_QVFirrVI2OfXuXfOFrYfNfa2AzvfNFghSU3Al0aApILEALw_wcB)**
>
> Professional-grade Protects against thermal overload Automatically shut down if power is interrupted Prevents machine start up when circuits are turned back on Easy installation Includes two strain relief clamps and instructions 110V only 2...
