5i25 - How to detect machine power state

More
03 Mar 2016 13:27 - 03 Mar 2016 13:28 #70962 by LS
Hi all,

I'm trying to detect when the CNC Machine is powered-off. The machine's E-STOP pin is 0v when the power is off, it's not floating, but probably not really pulled hard down either.

As a test I tried disabling the 5i25 pull-up resistors (W4=Down), but the gpio input pin sit around 1.5v (even with the machine disconnected). 1.5v register as HIGH, so I installed an external 1k pull-down resistor, which results in 0.8v. This does work, but wondered if anyone had a better solution.

LS
Last edit: 03 Mar 2016 13:28 by LS.

Please Log in or Create an account to join the conversation.

More
03 Mar 2016 13:50 #70967 by PCW
Best way is to use active low output for machine on, for example using a solid state relay (SSR)

PC-5V --> SSR + --> SSR- --> 5I25 OUTPUT

(and set the output to open drain mode)

Please Log in or Create an account to join the conversation.

More
03 Mar 2016 13:52 #70968 by LS
Thinking about this .. It's probably not ideal to have 5i25 pull-up disabled (floating). The CNC Controller does have 330R pull-ups, but these would only be effective when powered-on.

Maybe I enable the 5i25 pull-up (3.3k), and also put an external 620R pull-down.

Just looking at the voltage divider on the resistors. This should give me:
0.72V with the machine-off
3.36v with the machine-on

** assuming an ideal world, that is that the 5i25 input circuit doesn't have an affect.

Please Log in or Create an account to join the conversation.

More
03 Mar 2016 14:04 #70971 by LS
Hi PCW,

Sorry I'm confused. Are you referring to ESTOP-OUT or IN?

Please Log in or Create an account to join the conversation.

More
03 Mar 2016 14:30 - 03 Mar 2016 14:30 #70974 by PCW
Sorry, Estop makes me think output

Depending on how hard the machine drives the Estop pin high
you could put a stiffer pulldown, but if its possible an OPTO or transistor
that pulls the 5I25 input low when the machine is on is probably cleaner
Last edit: 03 Mar 2016 14:30 by PCW.

Please Log in or Create an account to join the conversation.

More
04 Mar 2016 17:25 #71049 by cncbasher
Replied by cncbasher on topic 5i25 - How to detect machine power state
i'd be looking at machine-is-on and passing that to a output , rather than estop , estop is final , after that you should not be able to start the machine , untill you have done a full shutdown and restart , where as machine-is-on is switchable i..e f1 f2 etc

Please Log in or Create an account to join the conversation.

More
05 Mar 2016 02:01 - 05 Mar 2016 02:15 #71070 by LS
I'll put an opto to pull the gpio input low when machine is-on.
Last edit: 05 Mar 2016 02:15 by LS.

Please Log in or Create an account to join the conversation.

Moderators: PCWjmelson
Time to create page: 0.117 seconds
Powered by Kunena Forum