Internet PLC Forum

General => Technical support => Topic started by: skj1402 on September 26, 2006, 01:58:35 AM

Title: Splitting or decimalising a Counter output?
Post by: skj1402 on September 26, 2006, 01:58:35 AM
Is it possible to display a counter output (including an HSC output), so that for example 1234 can be displayed as 12.34?  Or 654321 is displayed as 6543.21

If not, can you please advise how I can?  Thanks. ???
Title: Re:Splitting or decimalising a Counter output?
Post by: support on September 26, 2006, 07:22:17 AM
You can click on the "Search" button above and enter "decimal point" and a range of 2000 days and you can find quite a number of threads discussing how to do that.

I reproduce part of one of the posts below:

You can display decimal point on LCD for a variable C as follow:

  SETLCD 1,1,  STR$(C/100) + "." + STR$(C MOD 100)+ "V"