Text WC32

Efried

Active Member
Hello,
 
in my impression all Strings are outputted normally but "Text" in capital letters as "TEXT".
Also text strings only work in line 1?
thanks
 
CAI_Support said:
Could you please provide us a detailed configuration?
I wish I could do that easily- packing all the info distributed to several WC webpages in one XML file ;-)
What you are looking for in detail?
I'm trying to use the following syntax:
 
print string string string wheras string might be a VAR, stored string or "string".
 
Do you have UM216 LCD keytest PLC sample code?
In that it showed you can do
PRINT2   "UP ="   "Pressed"
 
PRINT1 and PRINT2 allows up to 3 parameters.  Those parameters can be stored string or variable name,
You will need to have double quote surround the text string, so that program knows that is text string instead of variable name.
 
I entered this test PLC code, it seems to me working fine:
 
START
print1 "This aip1 ="  aip1
print2 "this is string ="  str1
delay 1000
end
 
First, PLC program all lines converted to upper case, including the string literals. Then space at end of string literals are stripped off.
I stored TRING1 in the str1 entry for the string table, which can be upper or lower case, that caused line2 longer than 16 characters, so that line 2 automatically started scrolling its contents from right to left, that is feature of UM216 LCD module. 
 
Is there anybody that have the ASCII table you can use in the display?
Also, I tried to show two values in line 2. Code used is

PRINT2 T1 "▄" OP1

If you use space as a separator the display will show like: 25.5 C%false (or true).
The ▄ is ASCII 220. it shows as space in the display. Since the program supports 16 letters + the variables it will scroll if you use a lot of text.
 
LarsK said:
Is there anybody that have the ASCII table you can use in the display?
Also, I tried to show two values in line 2. Code used is

PRINT2 T1 "▄" OP1

If you use space as a separator the display will show like: 25.5 C%false (or true).
The ▄ is ASCII 220. it shows as space in the display. Since the program supports 16 letters + the variables it will scroll if you use a lot of text.
Hmm 25.5 - at least my board shows 255...
 
25 or 25.5 is from temp sensor T1, not from the space.  What LarsK talked about is to insert a space in between.
Our PLC compiler during processing, packed each PLC line and removed space in between.  We need to figure out how to allow space without complicate the logic too much in our PLC compiler.  At the mean time, LarsK's method will insert a space on the LCD display.
 
Lars, could you please elaborate how did your insert that ASCII220 in to PLC code?
 
Quick and dirty, I just used alt+220 in the PLC program window. It will work doing the same in notepad, and copy/paste.
Just remember to use the num pad. If not the ascii code will not show.
 
Back
Top