News:

  • September 26, 2026, 05:32:17 PM

Login with username, password and session length

Author Topic: Feature request -- expression based left rail instruction  (Read 10420 times)

Controls Guy

  • Internal Dev
  • Hero Member
  • ****
  • Posts: 3626
  • Darth Ladder
Feature request -- expression based left rail instruction
« on: September 22, 2023, 05:16:39 PM »
I'd like to request adding an expression-based box for contact area use, similar to MATH but power-flow oriented rather than assignment-oriented.    The box would allow power flow on some condition of evaluation.   Allow only expressions that can evaluate true/false, or any non zero answer is true, etc.   For the second option, might have to allow a Window of Truth for float comparisons.
I retract my earlier statement that half of all politicians are crooks.  Half of all politicians are NOT crooks.  There.

BobO

  • Host Moderator
  • Hero Member
  • *****
  • Posts: 6176
  • Yes Pinky, Do-more will control the world!
Re: Feature request -- expression based left rail instruction
« Reply #1 on: September 22, 2023, 06:30:15 PM »
I'd like to request adding an expression-based box for contact area use, similar to MATH but power-flow oriented rather than assignment-oriented.    The box would allow power flow on some condition of evaluation.   Allow only expressions that can evaluate true/false, or any non zero answer is true, etc.   For the second option, might have to allow a Window of Truth for float comparisons.

Expression contact is already done and will be in the next release. Probably not everything you are asking for, but should help.
"It has recently come to our attention that users spend 95% of their time using 5% of the available features. That might be relevant." -BobO

Controls Guy

  • Internal Dev
  • Hero Member
  • ****
  • Posts: 3626
  • Darth Ladder
Re: Feature request -- expression based left rail instruction
« Reply #2 on: September 22, 2023, 10:16:22 PM »
Sweet!  Whatever it is, I want it!   :)
I retract my earlier statement that half of all politicians are crooks.  Half of all politicians are NOT crooks.  There.

PLCwannabe

  • Hero Member
  • *****
  • Posts: 208
Re: Feature request -- expression based left rail instruction
« Reply #3 on: September 22, 2023, 11:50:40 PM »
What is an expression contact?

franji1

  • Bit Weenie
  • Host Moderator
  • Hero Member
  • *****
  • Posts: 3847
    • Host Engineering
Re: Feature request -- expression based left rail instruction
« Reply #4 on: September 23, 2023, 08:45:16 AM »
What is an expression contact?
Think a relational contact on steroids.  Each side of the relational contact is a full math expression.  If you want an optional result to be stored for each side, you can do that too.

Oh, and like MATH, you can have full expressions for array indexes, so
R[D0 * D1 + V1] * PI() >= Profile[V0 * 5 / 2].Radius
is a valid relational contact

Garyhlucas

  • Hero Member
  • *****
  • Posts: 421
Re: Feature request -- expression based left rail instruction
« Reply #5 on: September 23, 2023, 03:35:10 PM »
A coworker has left our company to work for a company that uses AB.  It will be interesting to see how she views AB after using the BRX.  I worked with AB for 12 years.  I do NOT miss it!

Controls Guy

  • Internal Dev
  • Hero Member
  • ****
  • Posts: 3626
  • Darth Ladder
Re: Feature request -- expression based left rail instruction
« Reply #6 on: September 23, 2023, 06:58:45 PM »
Some stuff they get so right and some stuff equally far to the opposite extreme.  :o
I retract my earlier statement that half of all politicians are crooks.  Half of all politicians are NOT crooks.  There.