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

4.5.1 DisplayValue() STX command

Function
DisplayValue(Dev:Int,
                Pos:Int,
                Value:Double);
Parameter
Value
Dev
8 ... 11
Pos
Not relevant
Value
Value to be output
Tab. 58: DisplayValue() parameter
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');
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 digits + sign [+ decimal point]
Parameter
Number of digits
Show sign (MR 2816)
Decimal point
Field length (MR 2812)
Display
Tab. 59: Setting the display field length – example
Controlling printer and serial interfaces | 4
Description
Number of the device where to output
the value
Is not evaluated
Constant value, name of a register or a
variable
Description
6
0 (Yes)
No
7
7 characters
50

Advertisement

Table of Contents
loading

This manual is also suitable for:

Jc-4 series

Table of Contents