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

Discussion of application development using iX Developer, including but not limited to getting started, using the functions tab, properties, objects and installation.
Post Reply
Transistor
Posts: 25
Joined: Sat Jul 04, 2015 6:13 am

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

Post 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?
Last edited by Transistor on Wed Sep 02, 2015 3:46 pm, edited 1 time in total.

Transistor
Posts: 25
Joined: Sat Jul 04, 2015 6:13 am

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

Post by Transistor »

I found the answer on the forum thanks to Google. Change the data type to FLOAT.

Image

Post Reply