Page 1 of 1

I can’t write decimals in Analognumrerik.

Posted: Fri Sep 27, 2013 7:22 am
by Ove
Can only write integer.
Get error message "Input string was improperly formatted"
I have UINT16 as “DataType” and Decimal as “Display Format”

I’m using IX Developer 2.0 SP1
/Ove

Re: I can’t write decimals in Analognumrerik.

Posted: Fri Sep 27, 2013 2:46 pm
by mark.monroe
Decimal means you want to show a float. Integer in the analog numeric box means you want to show an int or uint. You either need to change the datatype of your tag to float, or you need to change the display type of your analog numeric box to Integer.

Re: I can’t write decimals in Analognumrerik.

Posted: Mon Sep 30, 2013 4:33 am
by Ove
OK Thanks for that.
How will I get a good solution to this.

I want to show the value with 2 decimal, therefore I must have DisplayFormat = Decimal.

I use the same tag, in Citect communicating with comli therefore UINT.

Do I need to create a new tag to make the change UINT-REAL in CoDeSys or is it better / possible to make the change in IX Developer in some way?
/Ove

Re: I can’t write decimals in Analognumrerik.

Posted: Mon Sep 30, 2013 9:41 am
by mark.monroe
I would add a suffix to the value. A suffix is some text that gets added to the end of a work or number.
Snap 2013-09-30 at 09.39.41.jpg
Snap 2013-09-30 at 09.39.41.jpg (26.87 KiB) Viewed 13165 times

Re: I can’t write decimals in Analognumrerik.

Posted: Wed Oct 09, 2013 1:18 am
by jcjelektro
Maybee this will work for you.
Controler tag is INT16, but the Display handle it, as Float.
Remember to set the Gain to 0,1 or 0,01 if you want 2 decimals.
decimal 2.png
decimal 2.png (179.89 KiB) Viewed 13124 times

Re: I can’t write decimals in Analognumrerik.

Posted: Wed Oct 09, 2013 1:28 am
by Ove
Thanks Emil
This was what I wanted.
/Ove