disable home button while running

More
15 Apr 2011 15:28 #8948 by piasdom
ok,
in the below example, how do you know which sig to connect to halui.program.is-idle(pin).
when i try to make another pin, that's my problem.i know i can do this;
net home-in-manual and2.0.in1 and2.1.in1 and2.2.in1 <= halui.mode.is-manual
that works. but if i'm only making one button, i don't need to have all those pins.

net rapid-home and2.3.in0 <== pyvcp.rapid-to-home
net all-rapid and2.3.in1 <== halui.program.is-idle
net remote-rapid-home halui.mdi-command-00 ==> and2.3.out

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

More
15 Apr 2011 15:50 #8949 by BigJohnT
Your not "making" those pins your only "connecting" them with the "net" command.

So is your task to protect the rapid home button like you did the others?

John

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

More
15 Apr 2011 15:59 #8950 by andypugh
piasdom wrote:

net home-in-manual and2.0.in1 and2.1.in1 and2.2.in1 <= halui.mode.is-manual
that works. but if i'm only making one button, i don't need to have all those pins.
net rapid-home and2.3.in0 <== pyvcp.rapid-to-home

net all-rapid and2.3.in1 <== halui.program.is-idle
net remote-rapid-home halui.mdi-command-00 ==> and2.3.out[/quote]

Yes, if you only have one button, (with one pyvcp pin) then you only need one and2 function.

John says "You are not making pins" and this is largely correct, except that the XML file that creates the pyvcp does create pins, (beginning with pyvcp. ) and each MDI_COMMAND in the INI file creates a pin (always an input pin)

(For clarity, information flows out of output pins, and in to input pins)

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

More
15 Apr 2011 16:08 #8951 by BigJohnT
Let me see if I can put this in a way that makes sense for you.

A signal is a name that has special power. In this example we will use a light circuit.

The signal is outside-lights
the out pin is the wall-switch
the in pins are 4 outside-lights

So when the wall switch is turned on the lights come on, but something else happens the signal is also "on" when the switch is "on". So if I "connect" the signal to more lights they will also come on and off by the switch

Our example would look like this

net outside-lights wall-switch outside-light-1 outside-light-2

to connect up more lights we can do like this

net outside-lights outside-light-3
net outside-lights outside-light-4

or put it all on one line like this
net outside-lights wall-switch outside-light-1 outside-light-2 outside-light-3 outside-light-4

Does this help?

John

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

More
15 Apr 2011 16:10 #8952 by BigJohnT
Just to be clear I said "Your not "making" those pins your only "connecting" them with the "net" command." And yes Andy is correct you can make pins in your xml file.

John

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

More
15 Apr 2011 16:18 #8953 by piasdom
Your not "making" those pins your only "connecting" them with the "net" command.

i know,the pins are there already. i can't change them as andypugh said. just
trying to connect them.


So is your task to protect the rapid home button like you did the others?

don't know what you mean by protect. the second line is the protection?
i know net "connects". then the "name-i-choose"(always here)
then (any order)pin or sig(depending on what i'm doing).
i know if pin is "out", i can't change that,as with "in".
what i can't get is why(how) you picked halui.program.is-idle
as the sig.? halui.program.is-idle is an "out" pin. they were other"out"
pin to choose from. i can't use that pin again and i want to understand,
in another and2 how do i know "which" to choose.any "in" or "out"(whichever
i need at the time) that is not being used ?

net rapid-home and2.3.in0 <== pyvcp.rapid-to-home
net all-rapid and2.3.in1 <== halui.program.is-idle <---if i change this to halui.mode.is-joint,it works but doesn't do what i want
net remote-rapid-home halui.mdi-command-00 ==> and2.3.out

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

More
15 Apr 2011 16:23 #8954 by BigJohnT
Did my example above make any sense?

John

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

More
15 Apr 2011 16:28 #8955 by piasdom
this is what i'm working on;

#net zero-all and2.4.in0 <== pyvcp.home-all
#net zero-home and2.4.in1 <== halui.mode.is-joint <
picking a sig that will not change what and2.4.out does.
#net zero-all-home halui.home-all ==> and2.4.out

and2.4.in1 is "in" and "mode.is-joint" is "out" and mode.is-manual and "out. manual works. joint not so much :)

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

More
15 Apr 2011 16:29 #8956 by piasdom
BigJohnT wrote:

Did my example above make any sense?

John


reading it now, just saw it :)

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

More
15 Apr 2011 16:42 - 15 Apr 2011 16:46 #8959 by piasdom
read what you wrote John and that helps a LOT.
i think i'm have trouble is when i have "more" then one "switch"

i have to choose a "switch" that can do more then just turn lights on.
there are multiple "switches" that can do the same thing.

The signal is outside-lights <
wouldn't this be the electric "in"
the out pin is the wall-switch
the in pins are 4 outside-lights <
and the wall-switch connecting these
Last edit: 15 Apr 2011 16:46 by piasdom.

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

Time to create page: 0.235 seconds
Powered by Kunena Forum