Jetter AG
Control of alphanumeric HMIs | 3
Application-oriented manual – Control of alphanumeric HMIs (LCD) and printers
26
3.6.1 DisplayValue() STX command
Declaration
Function
DisplayValue(Dev:Int,
Pos:Int,
Value:Double);
Parameter
Parameter
Value
Description
Dev
0 ... 4
Number of the device where to output
the value
Pos
1 ... maximum num-
ber of characters
shown on the screen
Cursor position starting from where the
value is to be displayed
Value
Value to be displayed
Constant value, name of a register or a
variable
Tab. 17:
DisplayValue()
parameter
How to use this
command
Command-line syntax for displaying a value:
DisplayValue(
8
,
0
, -
12,345
);
DisplayValue(
8
,
0
, Axis2.Position);
Operating principle
The first STX command outputs the value -12,345 from cursor position 1 on-
wards. The second STX command outputs the content of variable Axis2.Position
from cursor position 25 onwards.
Both numericals are output to the default device (Dev = 0).
3.6.2 Configuring the screen size
Setting the length of the display field
MR 2812 defines the length of the display field for numerical values.
MR 2812 = Number of sign [+ decimal point]
Example
Parameter
Description
Number of digits
6
Show sign (MR 2816)
0 (Yes)
Decimal point
No
Field length (MR 2812)
7
Display
7 characters
Tab. 18: Setting the display field length – example