2080-LCD only displays scientific notation?

khelza

Member
Join Date
Sep 2015
Location
Ontario
Posts
67
I'm using a 2080-LCD with a Micro 810 to display analog values and display it on the LCD. However, some values display in scientific notation ex. 11.5 displays as 1.1500E+01.

I capture the analog values in an ANY_TO_REAL function, so that I can manipulate the REAL values with * function (to scale analog value) and get the AVERAGE. I convert the average value in an ANY_TO_STRING so that I can send it to the LCD display function. The issue arises if the number is less than 1 or greater than 10, the value in the string is automatically converted and displayed in scientific notation. I was told by the tech that this is internal to the function and that there is no way to change it.

It may be possible to manipulate the string so that it is not seen as a number greater than 10, possibly by breaking apart the number, however, the LCD function appears to only allow one string per line in the display.

As well, I feel that if I try to concatenate the characters, as soon as they're all contained in a single string, they will be automatically converted to scientific notation.

I won't ever be looking for a value of less than 1, so I have programmed a separate display to say it's less than 1, so really, the work around only needs to apply to numbers greater than 10.

Has anyone else had to deal with this? Hopefully someone a lot more familiar with CCW..

Also, why is AB making scientific notation the default?!? isn't decimal more common..? I'm assuming it was simpler for them to program the function block this way.
 
Last edited:
Turns out it was not the LCD function that converts the string into scientific notation, it was the ANY_TO_STRING function.

To work around that, I ended up manipulating the string after it was converted to scientific notation.

if value of REAL is 10 or greater:
- DELETE function to delete the 2nd character of the string which is the decimal
- INSERT function to insert decimal character into 3rd of character position of string
- LEFT function to keep the whole number and first 2 decimals, and delete the remaining decimals and E+01 in the string
 
Last edited:

Similar Topics

Is anyone aware of detailed working examples for implemeting a simple menu system for the 2080-LCD mOdule used on the Micro810 controllers?
Replies
6
Views
2,651
Good day, I have a micro 850 with a 2080-MOT-HSC that is being fed by two flowmeters, Schneider Electric using IMT31's as converters. They are...
Replies
6
Views
466
I'm trying to set up a ring counter - one that transitions from 3599 to 0 (and 0 to 3599 in the reverse direction). My counter insists on...
Replies
2
Views
364
hello, I have a Maple Systems HMI5103L currently programed and running in conjunction with a AB 2080-LC50-24QWB. everything works fine data is...
Replies
2
Views
726
I have run into a problem with my first time installing a 2080-OF2 module on a Micro820 and have a hunch that the module itself - brand new out of...
Replies
9
Views
940
Back
Top Bottom