Tag Unit conversion
Tag Unit conversion
Want to convert tag unit form metric for example from meter/minute to US feet/minute by button toggle press
Re: Tag Unit conversion
Hello Inundash,
Sorry for the delay on this. In order to swap between units I would either recommend doing this in the scripting environment with an IF statement where depending on a bit (Metric/Imperial) you will scale the value accordingly.
The other option is to use expressions on the Analog Input value, and set up a Ternary IF statement that you check the Metric/Imperial bit and do the same offset you did in option 1. Below is a link to what ternary if statements are.
https://www.tutorialsteacher.com/csharp ... y-operator
If further assistance is needed, feel free to call us at (801)708-6690 or send us an email at support.americas@beijerelectronics.com.
Thanks!
-Jae V.
Sorry for the delay on this. In order to swap between units I would either recommend doing this in the scripting environment with an IF statement where depending on a bit (Metric/Imperial) you will scale the value accordingly.
The other option is to use expressions on the Analog Input value, and set up a Ternary IF statement that you check the Metric/Imperial bit and do the same offset you did in option 1. Below is a link to what ternary if statements are.
https://www.tutorialsteacher.com/csharp ... y-operator
If further assistance is needed, feel free to call us at (801)708-6690 or send us an email at support.americas@beijerelectronics.com.
Thanks!
-Jae V.
Best regards,
Jason
(801) 708-6690
Technical Support
Contact Us
Beijer Electronics AB
http://www.beijerelectronics.us
Jason
(801) 708-6690
Technical Support
Contact Us
Beijer Electronics AB
http://www.beijerelectronics.us