Welcome Guest ( Login | Register )



All times are UTC - 7 hours [ DST ]



Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Tag scaling by 0.1 results in rounding to integer [Solved]
PostPosted: Wed Sep 02, 2015 11:28 am 

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

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

 Profile  
 
 Post subject: Re: Tag scaling by 0.1 results in rounding to nearest intege
PostPosted: Wed Sep 02, 2015 3:45 pm 

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

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

Image


 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 7 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron