- Posts: 3410
- Thank you received: 0
Toggle Flood with One Button
15 years 4 months ago #10540
by BigJohnT
Replied by BigJohnT on topic Re:Toggle Flood with One Button
not should be just as fast as any other component, are you sure you have it coded correctly?
John
John
Please Log in to join the conversation.
- piasdom
- New Member
-
Less
More
- Thank you received: 0
15 years 4 months ago #10544
by piasdom
Replied by piasdom on topic Re:Toggle Flood with One Button
i've tried it a number of time and each time the same thing.
but i don't think i understand what it is doing.
but i don't think i understand what it is doing.
Please Log in to join the conversation.
15 years 4 months ago #10547
by BigJohnT
Replied by BigJohnT on topic Re:Toggle Flood with One Button
post your code
John
John
Please Log in to join the conversation.
- piasdom
- New Member
-
Less
More
- Thank you received: 0
15 years 4 months ago #10573
by piasdom
Replied by piasdom on topic Re:Toggle Flood with One Button
i don't have anything with "not" in it as i stayed
away from it for that reason. when i mean "slowed emc",
i mean it takes about 10 sec for emc to start whereas usually
emc starts before the "emc start image" goes off.
but thanks
away from it for that reason. when i mean "slowed emc",
i mean it takes about 10 sec for emc to start whereas usually
emc starts before the "emc start image" goes off.
but thanks
Please Log in to join the conversation.
15 years 4 months ago #10580
by BigJohnT
Replied by BigJohnT on topic Re:Toggle Flood with One Button
I have one slow computer and I can't see any difference in loading time with and without not being used, something else must have caused the slow loading time.
John
John
Please Log in to join the conversation.
- piasdom
- New Member
-
Less
More
- Thank you received: 0
15 years 4 months ago #10581
by piasdom
Replied by piasdom on topic Re:Toggle Flood with One Button
could it be just bad formatting of not ?
but if bad format, wouldn't i get an error msg ?
and i remember that the button worked, not as it
should be worked /w error msg.
position in file ?
but if bad format, wouldn't i get an error msg ?
and i remember that the button worked, not as it
should be worked /w error msg.
position in file ?
Please Log in to join the conversation.
15 years 4 months ago #10582
by BigJohnT
Replied by BigJohnT on topic Re:Toggle Flood with One Button
More likely one of the racetrack conditions you had going while learning hal.
John
John
Please Log in to join the conversation.
- piasdom
- New Member
-
Less
More
- Thank you received: 0
15 years 2 months ago #12304
by piasdom
Replied by piasdom on topic Re:Toggle Flood with One Button
BigJohnT wrote:
i ended up with
#power on/off
net power-btn and2.11.in0 <= pyvcp.on-off
net power-ok and2.11.in1 not.3.out
net power-not not.3.in <= halui.estop.is-activated
net power-request toggle.4.in <= and2.11.out
net power-toggle toggle2nist.1.in <= toggle.4.out
net power-is-on toggle2nist.1.is-on <= halui.machine.is-on
net power-on halui.machine.on <= toggle2nist.1.on
net power-off halui.machine.off <= toggle2nist.1.off
works but it turns it on slow.off is normal
Not sure that I would use halui.program.is-idle for your power on/off as it is true even if the e-stop is active which means you can't turn the power on in that state. I would use halui.estop.is-activated with a not to invert the state of the pin as part of my and2.
John
i ended up with
#power on/off
net power-btn and2.11.in0 <= pyvcp.on-off
net power-ok and2.11.in1 not.3.out
net power-not not.3.in <= halui.estop.is-activated
net power-request toggle.4.in <= and2.11.out
net power-toggle toggle2nist.1.in <= toggle.4.out
net power-is-on toggle2nist.1.is-on <= halui.machine.is-on
net power-on halui.machine.on <= toggle2nist.1.on
net power-off halui.machine.off <= toggle2nist.1.off
works but it turns it on slow.off is normal
Please Log in to join the conversation.
Time to create page: 0.048 seconds
