Page 1 of 1

Tag Unit conversion

Posted: Mon Sep 07, 2020 12:22 am
by inundash
Want to convert tag unit form metric for example from meter/minute to US feet/minute by button toggle press

Re: Tag Unit conversion

Posted: Thu Oct 08, 2020 4:37 pm
by Jae V
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.