Internet PLC Forum

General => Technical support => Topic started by: Ted Schafer on October 14, 2005, 12:05:10 PM

Title: Strings
Post by: Ted Schafer 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
Title: Re:Strings
Post by: support 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])