I have some modbus tags I am reading in and they are coming in as integers. This integer value I believe has to be divided by 10 to give me the actual value, for example an integer value of 212 coming in is really 21.2. I'd then like to change this integer value into a float and display this on a vision screen. So essentially I want to do the following: Int/10 = float.
I am creating a UDT for each modbus tag. The only think I can think of doing is to include a derived tag in the UDT. I would read in the value as an Int. Then the derived tag would be of type float and it would divide the Int value by 10.
Is there an easier way?