News:

  • August 30, 2026, 04:51:44 AM

Login with username, password and session length

Author Topic: Text string into a math block?  (Read 7744 times)

Garyhlucas

  • Hero Member
  • *****
  • Posts: 421
Text string into a math block?
« on: June 03, 2024, 01:20:03 PM »
I was wondering if you could input an equation as text in an HMI and then send that into a BRX math block to do the calculation. We have an application where this would be useful.

BobO

  • Host Moderator
  • Hero Member
  • *****
  • Posts: 6174
  • Yes Pinky, Do-more will control the world!
Re: Text string into a math block?
« Reply #1 on: June 03, 2024, 01:23:05 PM »
I was wondering if you could input an equation as text in an HMI and then send that into a BRX math block to do the calculation. We have an application where this would be useful.

No, sorry. All math is precompiled by DmD. To do what you are describing would require the PLC to be the compiler.
"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

Garyhlucas

  • Hero Member
  • *****
  • Posts: 421
Re: Text string into a math block?
« Reply #2 on: June 03, 2024, 06:55:48 PM »
Thanks,
I think we can probably build an HMI screen with fields to do the job, but this seemed like it could be pretty slick.