Displayvalue() Stx Command; Configuring The Screen Size - Jetter JC-3 Series Manual

Application-oriented
Table of Contents

Advertisement

Jetter AG
Declaration
Parameter
How to use this
command
Operating principle
Example
Application-oriented manual – Control of alphanumeric HMIs (LCD) and printers

3.6.1 DisplayValue() STX command

Function
DisplayValue(Dev:Int,
                Pos:Int,
                Value:Double);
Parameter
Value
Dev
0 ... 4
Pos
1 ... maximum num-
ber of characters
shown on the screen
Value
Value to be displayed
Tab. 17: DisplayValue() parameter
Command-line syntax for displaying a value:
DisplayValue(8, 0, -12,345);
DisplayValue(8, 0, Axis2.Position);
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 digits + sign [+ decimal point]
Parameter
Number of digits
Show sign (MR 2816)
Decimal point
Field length (MR 2812)
Display
Tab. 18: Setting the display field length – example
Description
Number of the device where to output
the value
Cursor position starting from where the
value is to be displayed
Constant value, name of a register or a
variable
Description
6
0 (Yes)
No
7
7 characters
Control of alphanumeric HMIs | 3
26

Advertisement

Table of Contents
loading

This manual is also suitable for:

Jc-4 series

Table of Contents