Register Description; Outputting Numerical Values - Jetter JC-3 Series Manual

Application-oriented
Table of Contents

Advertisement

Jetter AG
How to use this
command
Operating principle
MR 2806
STX command
Format of the output
value
Outputting numerical
values
Application-oriented manual – Control of alphanumeric HMIs (LCD) and printers
Command-line syntax for outputting one out of two text strings to a serial inter-
face module:
DisplayText2(11, 0, 'Fehler:', 'Error:');
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

Text selection for DisplayText2
The value in this module register specifies which one of the two text strings is to
be output.
Property
Values
Tab. 57: Text selection for DisplayText2

4.5 Outputting numerical values

To display numerical values, use the following STX command:
DisplayValue()
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
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.
Description
0
Text1
1
Text2
Controlling printer and serial interfaces | 4
49

Advertisement

Table of Contents
loading

This manual is also suitable for:

Jc-4 series

Table of Contents