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
I can’t write decimals in Analognumrerik.
-
- Posts: 824
- Joined: Tue Mar 13, 2012 9:53 am
Re: I can’t write decimals in Analognumrerik.
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
Mark Monroe
Beijer Electronics, Inc. | Applications Engineer
Re: I can’t write decimals in Analognumrerik.
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
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
-
- Posts: 824
- Joined: Tue Mar 13, 2012 9:53 am
Re: I can’t write decimals in Analognumrerik.
I would add a suffix to the value. A suffix is some text that gets added to the end of a work or number.
Best Regards,
Mark Monroe
Beijer Electronics, Inc. | Applications Engineer
Mark Monroe
Beijer Electronics, Inc. | Applications Engineer
-
- Posts: 40
- Joined: Tue Nov 22, 2011 3:54 am
- Location: Gjerlev, Denmark
- Contact:
Re: I can’t write decimals in Analognumrerik.
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.
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.
--
Emil Gundersen
JCJelektro.dk
Emil Gundersen
JCJelektro.dk
Re: I can’t write decimals in Analognumrerik.
Thanks Emil
This was what I wanted.
/Ove
This was what I wanted.
/Ove