Timer
26 Jul 2011 15:33 - 26 Jul 2011 15:40 #11873
by piasdom
is there a way to reset the timer without pausing
or stopping the program ? a reset button/pin ?
i used
www.linuxcnc.org/docview/devel/html/man/man9/time.9.html
thanks john
kenneth
or stopping the program ? a reset button/pin ?
i used
www.linuxcnc.org/docview/devel/html/man/man9/time.9.html
thanks john
kenneth
Last edit: 26 Jul 2011 15:40 by piasdom.
Please Log in or Create an account to join the conversation.
26 Jul 2011 15:56 - 26 Jul 2011 15:59 #11875
by piasdom
Last edit: 26 Jul 2011 15:59 by piasdom.
Please Log in or Create an account to join the conversation.
28 Jul 2011 13:47 - 28 Jul 2011 13:52 #11957
by piasdom
the script counter doesn't work if i connect like this;
net reset-m123 and2.12.in0 == pyvcp.reset-m123
net m123-reset halui.mdi-command-05 == and2.12.out
works with this.
net reset-m123 halui.mdi-command-05 == pyvcp.reset-m123
it has to be directly connected ?
the script(Andys')
#!/bin/bash
COUNT=$(halcmd getp pyvcp.count)
let "COUNT += 1"
halcmd setp pyvcp.count $COUNT
exit 0
net reset-m123 and2.12.in0 == pyvcp.reset-m123
net m123-reset halui.mdi-command-05 == and2.12.out
works with this.
net reset-m123 halui.mdi-command-05 == pyvcp.reset-m123
it has to be directly connected ?
the script(Andys')
#!/bin/bash
COUNT=$(halcmd getp pyvcp.count)
let "COUNT += 1"
halcmd setp pyvcp.count $COUNT
exit 0
Last edit: 28 Jul 2011 13:52 by piasdom.
Please Log in or Create an account to join the conversation.
28 Jul 2011 21:44 #11972
by piasdom
BigJohnT wrote:
if either one is off, out is off ?
this i get lost, as i understand this. if either is ON,
then out is ON. but at least ONE will be on at all times.
so it would stay ON ? and ya'll talk about input/output,
i don't see(mentally) what's going "which" way when i press
the button. i understand when i click the button it will turn on
or off. but this wiring(logic) gets me. but i'll keep fighten
Thanks !!!!!!
The components and2 and or2 are logic gates. Each one takes two inputs and has one output...
and2 works like this:
if input0 AND input1 is on then the output is on.
if either one is off, out is off ?
or2 works like this:
if input0 OR input1 is on then the output is on.
John
this i get lost, as i understand this. if either is ON,
then out is ON. but at least ONE will be on at all times.
so it would stay ON ? and ya'll talk about input/output,
i don't see(mentally) what's going "which" way when i press
the button. i understand when i click the button it will turn on
or off. but this wiring(logic) gets me. but i'll keep fighten
Thanks !!!!!!
Please Log in or Create an account to join the conversation.
Time to create page: 0.115 seconds