External buttons function

More
19 Aug 2012 12:40 #23392 by andypugh
raychar wrote:
[quoteNone of mistake found. I just re-type the original code again. And now, it Works! (Will it be the copy and paste problem, better to re-type code
every time???).[/quote]If you copy-and-paste from Windows you might include spurious CR/LF combinations. This can cause problems (but _really_ shoudn't by now).
en.wikipedia.org/wiki/CR/LF#Common_problems

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

More
10 Nov 2012 17:16 - 10 Nov 2012 17:17 #26429 by Miselph
Hi,

I used your code above to get some features of my pendant working.
However, I have traced it out on paper and it appears that the two and2 blocks and the or2 block are completely superfluous. What is their purpose? I have tried the code without them and it seems to work. Is there some reason I should leave them in?

my code is:
net PauseRunCommand toggle.0.in             <= apendant.digital-in-13
net ToggleSignal    toggle2nist.0.in        <= toggle.0.out
net ProgramPaused   toggle2nist.0.is-on     <= halui.program.is-paused
net ProgramPause    halui.program.pause     <=  toggle2nist.0.on
net ProgramResume   halui.program.resume    <= toggle2nist.0.off


Thanks
Last edit: 10 Nov 2012 17:17 by Miselph. Reason: code clarity

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

More
10 Nov 2012 20:00 #26432 by BigJohnT
Those are part of a check to prevent an error message if you press the button at an inappropriate time.

John

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

Time to create page: 0.124 seconds
Powered by Kunena Forum