![Jetter JC-3 Series Скачать руководство пользователя страница 50](http://html1.mh-extra.com/html/jetter/jc-3-series/jc-3-series_manual_3873945050.webp)
Jetter AG
Controlling printer and serial interfaces | 4
Application-oriented manual – Control of alphanumeric HMIs (LCD) and printers
50
4.5.1 DisplayValue() STX command
Declaration
Function
DisplayValue(Dev:Int,
Pos:Int,
Value:Double);
Parameter
Parameter
Value
Description
Dev
8 ... 11
Number of the device where to output
the value
Pos
Not relevant
Is not evaluated
Value
Value to be output
Constant value, name of a register or a
variable
Tab. 58:
DisplayValue()
parameter
How to use this
command
Command-line syntax for outputting a numerical value to a printer module:
DisplayValue(
8
,
0
, -
12,345
);
DisplayText(
8
,
0
,
'$t'
);
DisplayValue(
8
,
0
, Axis2.Position);
DisplayText(
8
,
0
,
'$n'
);
Operating principle
The first STX command outputs the value -12,345. The second STX command
inserts a tab ($t). The third STX command outputs the content of variable
Axis2.Position. The fourth STX command triggers a carriage return and line feed
($n).
The application program task stops at the
DisplayText()
or
DisplayValue()
command waiting for all characters to be output.
4.5.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. 59: Setting the display field length – example