Timer
- piasdom
- Topic Author
- Offline
- Platinum Member
- Posts: 472
- Thank you received: 10
or stopping the program ? a reset button/pin ?
i used
www.linuxcnc.org/docview/devel/html/man/man9/time.9.html
thanks john
kenneth
Please Log in or Create an account to join the conversation.
- BigJohnT
- Offline
- Administrator
- Posts: 7330
- Thank you received: 1177
John
Please Log in or Create an account to join the conversation.
- piasdom
- Topic Author
- Offline
- Platinum Member
- Posts: 472
- Thank you received: 10
using stop or pause ?
thanks
kenneth
use time.0.start pin again to reset ?
Please Log in or Create an account to join the conversation.
- BigJohnT
- Offline
- Administrator
- Posts: 7330
- Thank you received: 1177
John
Please Log in or Create an account to join the conversation.
- piasdom
- Topic Author
- Offline
- Platinum Member
- Posts: 472
- Thank you received: 10
p.s. this won't be my last stupid question
Please Log in or Create an account to join the conversation.
- piasdom
- Topic Author
- Offline
- Platinum Member
- Posts: 472
- Thank you received: 10
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
Please Log in or Create an account to join the conversation.
- andypugh
- Offline
- Moderator
- Posts: 23559
- Thank you received: 4858
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
and2.12.in1 is never set to 1, so the and2 output is always zero.
Did you mean to use Or2?
Please Log in or Create an account to join the conversation.
- piasdom
- Topic Author
- Offline
- Platinum Member
- Posts: 472
- Thank you received: 10
i'll go look at or2. Thanks andy
kenneth
Please Log in or Create an account to join the conversation.
- BigJohnT
- Offline
- Administrator
- Posts: 7330
- Thank you received: 1177
and2 works like this:
if input0 AND input1 is on then the output is on.
or2 works like this:
if input0 OR input1 is on then the output is on.
John
Please Log in or Create an account to join the conversation.
- piasdom
- Topic Author
- Offline
- Platinum Member
- Posts: 472
- Thank you received: 10
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.