Jetter AG
Control of alphanumeric HMIs | 3
Application-oriented manual – Control of alphanumeric HMIs (LCD) and printers
22
3.4.1 Register description
MR 2814
Indirect cursor position
If 0 was programmed as command parameter this module register specifies the
cursor position.
Property
Description
Values
0 ... number of characters on the screen
Value after reset
0
Tab. 11: Indirect cursor position
3.5 Displaying text strings
STX commands
To display text strings, use the following STX commands (STX functions):
■
DisplayText()
■
DisplayText2()
3.5.1 DisplayText() STX command
Declaration
Function
DisplayText(Dev:Int,
Pos:Int,
Const Ref
Text:String);
Parameter
Parameter
Value
Description
Dev
0 ... 11
Number of the HMI where the text string
is to be output
Pos
1 ... maximum num-
ber of characters
shown on the screen
Cursor position defining the starting
point for a text string to be displayed
Text
Text string to be dis-
played
Hard-coded text, or name of a string
variable
Tab. 12:
DisplayText()
parameter
How to use this
command
Command-line syntax for displaying a text string:
DisplayText(
0
,
1
,
"Hello World!"
);
DisplayText(
0
,
25
, StringVar);
Operating principle
The first STX command clears the entire screen content ('_' in text string). Then,
it displays the text string 'Hello World!' from cursor position 1 onwards. The sec-
ond STX command outputs the content of the string variable StringVar from cur-
sor position 25 onwards. Both text strings are displayed on the default device
(Dev = 0).