I can’t write decimals in Analognumrerik.

Discussion of application development using iX Developer, including but not limited to getting started, using the functions tab, properties, objects and installation.
Post Reply
Ove
Posts: 3
Joined: Fri Sep 27, 2013 6:52 am

I can’t write decimals in Analognumrerik.

Post 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

mark.monroe
Posts: 824
Joined: Tue Mar 13, 2012 9:53 am

Re: I can’t write decimals in Analognumrerik.

Post 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.
Best Regards,
Mark Monroe

Beijer Electronics, Inc. | Applications Engineer

Ove
Posts: 3
Joined: Fri Sep 27, 2013 6:52 am

Re: I can’t write decimals in Analognumrerik.

Post 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

mark.monroe
Posts: 824
Joined: Tue Mar 13, 2012 9:53 am

Re: I can’t write decimals in Analognumrerik.

Post 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 13158 times
Best Regards,
Mark Monroe

Beijer Electronics, Inc. | Applications Engineer

jcjelektro
Posts: 40
Joined: Tue Nov 22, 2011 3:54 am
Location: Gjerlev, Denmark
Contact:

Re: I can’t write decimals in Analognumrerik.

Post 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 13117 times
--
Emil Gundersen
JCJelektro.dk

Ove
Posts: 3
Joined: Fri Sep 27, 2013 6:52 am

Re: I can’t write decimals in Analognumrerik.

Post by Ove »

Thanks Emil
This was what I wanted.
/Ove

Post Reply