Page 1 of 1

Tag scaling by 0.1 results in rounding to integer [Solved]

Posted: Wed Sep 02, 2015 11:28 am
by Transistor
PLC Mitsubishi FX5U.
HMI iX T12B with iX Developer

The HMI is writing decimals to the PLC data registers. I want to scale the PLC data register value by 0.1. I've configured as follows:
Image

Image

The HMI will only allow me to enter 1, 1.0, 2, 2.0. If I enter a decimal value - 1.1, etc., I receive Error FormatException.

If I edit the register values in the PLC I get the following results:

PLC HMI
00 0.0
01 0.0
05 0.0 <-- rounded down.
06 1.0
09 1.0
10 1.0
11 1.0
12 1.0
13 1.0
14 1.0
15 2.0 <-- rounded up!
16 2.0

Can anyone explain how to get decimal entry working?

Re: Tag scaling by 0.1 results in rounding to nearest intege

Posted: Wed Sep 02, 2015 3:45 pm
by Transistor
I found the answer on the forum thanks to Google. Change the data type to FLOAT.

Image