¿ªÔÆÌåÓý

Locked LogixNG assign state of one sensor to another sensor with one action? #logixng


 

¿ªÔÆÌåÓý

Hi.? I have two sensors with user names ¡°FIRST¡± and ¡°SECOND¡± and am currently setting the state of SECOND to the state of FIRST using a LogixNG using an If-Then-Else.? I wondered if LogixNG can do this with a single Action?? Thanks.

?

Robin

?

Robin Becker

San Diego CA

?

?


 

Robin,

Here is a single action:

LogixNG: IQ:AUTO:0001
??? ConditionalNG: IQC:AUTO:0001
??????? ! A
??????????? Digital Formula: setSensorState("Second", getSensorState("First"))
??????????????? ?* E1
????????????????????
See?

Dave Sand


----- Original message -----
From: Robin Becker <rbgroups@...>
Subject: [jmriusers] LogixNG assign state of one sensor to another sensor with one action?
Date: Sunday, December 10, 2023 4:19 PM

Hi.? I have two sensors with user names ¡°FIRST¡± and ¡°SECOND¡± and am currently setting the state of SECOND to the state of FIRST using a LogixNG using an If-Then-Else.? I wondered if LogixNG can do this with a single Action?? Thanks.

?

Robin

?

Robin Becker

San Diego CA

?

?



 

¿ªÔÆÌåÓý

Dave,

?

It was the getSensorState() and setSensorState() I was missing.? Looked at Chapter 9 again and now see they are under ¡°Layout¡± so should have figured this for myself. ?Appreciate the help!

?

Robin

?

From: [email protected] <[email protected]> On Behalf Of Dave Sand
Sent: Sunday, December 10, 2023 3:07 PM
To: [email protected]
Subject: Re: [jmriusers] LogixNG assign state of one sensor to another sensor with one action?

?

Robin,

?

Here is a single action:

?

LogixNG: IQ:AUTO:0001

??? ConditionalNG: IQC:AUTO:0001

??????? ! A

??????????? Digital Formula: setSensorState("Second", getSensorState("First"))

??????????????? ?* E1

????????????????????

See?

?

Dave Sand

?

?

----- Original message -----

From: Robin Becker <rbgroups@...>

Subject: [jmriusers] LogixNG assign state of one sensor to another sensor with one action?

Date: Sunday, December 10, 2023 4:19 PM

?

Hi.? I have two sensors with user names ¡°FIRST¡± and ¡°SECOND¡± and am currently setting the state of SECOND to the state of FIRST using a LogixNG using an If-Then-Else.? I wondered if LogixNG can do this with a single Action?? Thanks.

?

Robin

?

Robin Becker

San Diego CA

?

?

?