Author Topic: Strings  (Read 10078 times)

Ted Schafer

  • Newbie
  • *
  • Posts: 1
  • I'm a llama!
    • View Profile
Strings
« on: October 14, 2005, 12:05:10 PM »
I need a little help!
I am new to this software and am trying to display the current counter value "cnt1"
I don't know how to id the counter to a string.
I tried the following

A=cnt1
SetLCD 1, 1, str$(A)

It did not like what I called the counter.

Can any one help!

Thanks

Ted

support

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3174
    • View Profile
    • Internet Programmable PLCs
Re:Strings
« Reply #1 on: October 15, 2005, 12:02:07 AM »
If what you want is the present value of the counter, then it is accessible as a system variable CtrPV[1] to CtrPV[64]. So depending on which counter you are using choose the appropriate one:

SetLCD 1, 1, str$(CtrPV[1])
Email: support@triplc.com
Tel: 1-877-TRI-PLCS