Tag Unit conversion

Discussion of configuring and troubleshooting communication to PLC's or other devices using iX Developer.
Post Reply
Posts: 2
Joined: Tue Feb 04, 2014 10:50 pm

Tag Unit conversion

Post by inundash »

Want to convert tag unit form metric for example from meter/minute to US feet/minute by button toggle press

User avatar
Jae V
Posts: 118
Joined: Wed Jan 15, 2020 11:00 am

Re: Tag Unit conversion

Post 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.

-Jae V.
Best regards,
(801) 708-6690
Technical Support
Contact Us

Beijer Electronics AB

Post Reply