5i25 - How to detect machine power state
- LS
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 36
- Thank you received: 0
03 Mar 2016 13:27 - 03 Mar 2016 13:28 #70962
by LS
5i25 - How to detect machine power state was created 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
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.
- PCW
- Away
- Moderator
Less
More
- Posts: 17903
- Thank you received: 4774
03 Mar 2016 13:50 #70967
by PCW
Replied by PCW on topic 5i25 - How to detect machine power state
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)
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.
- LS
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 36
- Thank you received: 0
03 Mar 2016 13:52 #70968
by LS
Replied by LS on topic 5i25 - How to detect machine power state
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.
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.
- LS
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 36
- Thank you received: 0
03 Mar 2016 14:04 #70971
by LS
Replied by LS on topic 5i25 - How to detect machine power state
Hi PCW,
Sorry I'm confused. Are you referring to ESTOP-OUT or IN?
Sorry I'm confused. Are you referring to ESTOP-OUT or IN?
Please Log in or Create an account to join the conversation.
- PCW
- Away
- Moderator
Less
More
- Posts: 17903
- Thank you received: 4774
03 Mar 2016 14:30 - 03 Mar 2016 14:30 #70974
by PCW
Replied by PCW on topic 5i25 - How to detect machine power state
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
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.
- cncbasher
- Offline
- Moderator
Less
More
- Posts: 1776
- Thank you received: 292
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.
- LS
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 36
- Thank you received: 0
05 Mar 2016 02:01 - 05 Mar 2016 02:15 #71070
by LS
Replied by LS on topic 5i25 - How to detect machine power state
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: PCW, jmelson
Time to create page: 0.117 seconds