Register Description; Displaying Text Strings; Displaytext() Stx Command - Jetter JC-3 Series Manual

Application-oriented
Table of Contents

Advertisement

Jetter AG
MR 2814
STX commands
Declaration
Parameter
How to use this
command
Operating principle
Application-oriented manual – Control of alphanumeric HMIs (LCD) and printers

3.4.1 Register description

Indirect cursor position
If 0 was programmed as command parameter this module register specifies the
cursor position.
Property
Values
Value after reset
Tab. 11: Indirect cursor position

3.5 Displaying text strings

To display text strings, use the following STX commands (STX functions):
DisplayText()
DisplayText2()

3.5.1 DisplayText() STX command

Function
DisplayText(Dev:Int,
                Pos:Int,
                Const Ref
Parameter
Value
Dev
0 ... 11
Pos
1 ... maximum num-
ber of characters
shown on the screen
Text
Text string to be dis-
played
Tab. 12: DisplayText() parameter
Command-line syntax for displaying a text string:
DisplayText(0,1,
DisplayText(0, 25, StringVar);
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).
Description
0 ... number of characters on the screen
0
Text:String);
Description
Number of the HMI where the text string
is to be output
Cursor position defining the starting
point for a text string to be displayed
Hard-coded text, or name of a string
variable
"Hello
World!");
Control of alphanumeric HMIs | 3
22

Advertisement

Table of Contents
loading

This manual is also suitable for:

Jc-4 series

Table of Contents