Host Engineering Forum
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
July 20, 2018, 09:12:54 pm


Login with username, password and session length


Pages: [1]
  Print  
Author Topic: Invert Power Flow keyboard shortcut  (Read 120 times)
davidbgtx
Hero Member
*****
Posts: 177


Host be the Most


« on: July 12, 2018, 05:52:01 am »

I have come to love the invert power flow contact and use it a lot. How about a keyboard shortcut for it, shift I or something.
Logged
franji1
Bit Weenie
Host Moderator
*****
Posts: 2336



WWW
« Reply #1 on: July 12, 2018, 08:39:57 am »

The "NOT contact" is very powerful, agreed.  I like to use it as the ELSE branch of an IF/THEN/ELSE construct.

Attached is one rung from the PID1 sample project that ships with Designer ($tTopOfScan, rung 3).  It optionally applies a filter or not to a raw analog input.  Basically if the signal is noisy, turn on X2 and it applies the filter, otherwise, the program uses the raw analog input value.  The analog input is in WX0 and the resulting "adjusted" value ends up in R10.

So, basically, it's
Code:
.  IF X2 THEN
.    FILTER WX0 to R10
.  ELSE
.    MOVE WX0 to R10 // do NOT filter
« Last Edit: July 12, 2018, 08:41:29 am by franji1 » Logged

Controls Guy
Internal Dev
****
Posts: 2558


Darth Ladder


« Reply #2 on: July 12, 2018, 12:35:05 pm »

Yeah, I love that thing to death, and I use it like that too, Franj1.

I also really like the inline one-shot.  DL has always had an option the guys with the inlines (AB, Siemens, Idec, etc) lacked, but both forms work well in different scenarios, so now you have both.

Thanks!

Any progress on getting them below stack level 1?
Logged

I retract my earlier statement that half of all politicians are crooks.  Half of all politicians are NOT crooks.  There.
davidbgtx
Hero Member
*****
Posts: 177


Host be the Most


« Reply #3 on: July 12, 2018, 12:42:19 pm »

I use like that too Franji, in stages a lot for if jmp here, else jmp there. I also like the one-shot and the I use the delta contact a lot.
As a wish, would like a keyboard shortcut like shift key/I or something, so I don't have to use mouse to pick it.
« Last Edit: July 12, 2018, 12:47:18 pm by davidbgtx » Logged
franji1
Bit Weenie
Host Moderator
*****
Posts: 2336



WWW
« Reply #4 on: July 12, 2018, 12:47:17 pm »

Any progress on getting them below stack level 1?

Sorry, no.  The complexity of doing true power flow of that instruction beyond the first stack level is much harder than it looks.
Logged

Controls Guy
Internal Dev
****
Posts: 2558


Darth Ladder


« Reply #5 on: July 12, 2018, 06:11:37 pm »

OK, thanks for the update.
Logged

I retract my earlier statement that half of all politicians are crooks.  Half of all politicians are NOT crooks.  There.
Mike Nash
Hero Member
*****
Posts: 531


« Reply #6 on: July 12, 2018, 09:24:04 pm »

Slight change of subject, but still on hotkeys - the ">" is really inconvenient as it is in the rotation 5 "/" strokes after the default ">=". It's pretty unfortunate when I happen to need ">" more than ">=".

I realize it's due to the predecessors not having ">", but still...  It's only two "/" from "<", but that's hard to remember to do.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines

Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM