Jetter AG
Controlling printer and serial interfaces | 4
Application-oriented manual – Control of alphanumeric HMIs (LCD) and printers
49
How to use this
command
Command-line syntax for outputting one out of two text strings to a serial inter-
face module:
DisplayText2(
11
,
0
,
'Fehler:'
,
'Error:'
);
Operating principle
The STX command outputs the text string 'Fehler:', or 'Error:' to a serial interface
module. MR 2806 controls which text string will be displayed.
The application program task stops at the
DisplayText2()
command waiting
for the entire text to be output.
4.4.3 Register description
MR 2806
Text selection for DisplayText2
The value in this module register specifies which one of the two text strings is to
be output.
Property
Description
Values
0
Text1
1
Text2
Tab. 57: Text selection for DisplayText2
4.5 Outputting numerical values
STX command
To display numerical values, use the following STX command:
■
DisplayValue()
Format of the output
value
The format of numerical values to be output can be adjusted to suit application
needs. To do so, use the following parameters:
■
Display field length
■
Number of decimal places
■
With or without sign place
■
Decimal or hexadecimal notation
Outputting numerical
values
When outputting numerical values, the following formatting rules apply:
■
The numerical value is displayed right-aligned.
■
The first character to appear in the display field is the sign unless writing the
sign character was disabled beforehand.
■
The first character of a numerical value to be written is the leading space or
the leftmost digit.
■
Positive numericals are prefixed by a space character as sign. Negative nu-
mericals are prefixed by minus ‘-’.
■
If the display field is too small, the leftmost digits are truncated.
■
The value is rounded to the set decimal places.