Displaytext2() Stx Command; Clearing The Screen - Jetter JC-3 Series Manual

Application-oriented
Table of Contents

Advertisement

Jetter AG
Declaration
Parameter
How to use this
command
Operating principle

Clearing the screen

Application-oriented manual – Control of alphanumeric HMIs (LCD) and printers

3.5.2 DisplayText2() STX command

Function
DisplayText2(Dev:Int,
                Pos:Int,
                Const Ref
                Const Ref
Parameter
Value
Dev
0 ... 4
Pos
1 ... number of char-
acters on the screen
Text1
Text string to be
displayed
Text2
Text string to be
displayed
Tab. 13: DisplayText2() parameter
Command-line syntax for displaying one of two text strings:
DisplayText2(0, 25, 'Fehler:', 'Error:');
Calling up the STX command makes the text strings 'Fehler:' or 'Error:' appear on
the default device (Dev = 0) from cursor position 25 onwards. MR 2806 controls
which text string will be displayed.
3.5.3 Clearing the screen
If text strings are displayed, there are two control characters allowing to clear the
screen content:
Clearing the entire screen content
Clearing the text string to the end of the line
INFO
Limitations
If display commands are addressed to devices 8 ... 11, these
characters are not considered as control characters but dis-
played as text.
The default character for clearing the screen is the underline character '_'.
Using this character first deletes the displayed text strings, and then outputs any
text following the underline character from cursor position 1 onwards.
Example
DisplayText(0, 10, 'H_ello');
Result: The screen is cleared and the word fragment "ello" appears from cursor
position 1 onwards.
Control of alphanumeric HMIs | 3
Text1:String)
Text2: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
Hard-coded text, or name of a string
variable
23

Advertisement

Table of Contents
loading

This manual is also suitable for:

Jc-4 series

Table of Contents