HVAC-Talk: Heating, Air & Refrigeration Discussion banner

Niagara AX Need Latch that toggles on true

8.1K views 6 replies 5 participants last post by  xarralu  
#1 ·
I am in need of a block that will change outputs from true to false every time a new true input comes in.
So... If the output is initially false, it will change states when the input is True, then it will hold the true output until the input cycles to false and then back to true.

I'm essentially trying to make a One Shot firing swap the state of a Boolean writable until the next time the One Shot Fires.



Kind of related but on a slightly different note... Is there a way to take the remainder of a division problem and send it to a Numeric Writable? I came up with an idea to increment a counter every time the One Shot fired. Then I would take that Counter and Divide by 2. If there were a way to get the remainder from that equation, I could just use that remainder as the value for my Boolean writable.
 
#2 ·
“ . If the output is initially false, it will change states when the input is True, then it will hold the true output until the input cycles to false and then back to true.”

So it starts off false, then once made true it is always true...
So always true?


Well... maybe change input type of block from default to ‘fan in’.
 
#5 ·
I think this is what I understand you are trying to do. This will just toggle your output from false to true then back to false every time the one shot comes in.
 
Save
You have insufficient privileges to reply here.