Author Topic: Splitting or decimalising a Counter output?  (Read 12158 times)

skj1402

  • Newbie
  • Posts: 28
  • The Innovator!
    • View Profile
Splitting or decimalising a Counter output?
« 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. ???

support

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3174
    • View Profile
    • Internet Programmable PLCs
Re:Splitting or decimalising a Counter output?
« Reply #1 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"


Email: support@triplc.com
Tel: 1-877-TRI-PLCS