384
Jetter AG
10 Programming
STX instruction for outputting numerical values
Function
DisplayValue(Dev:Int,
Pos:Int,
Value:Double);
Parameter
Value
Description
Dev
8 ... 11
Number of the device where the
value is to be output
Pos
Not relevant
Will not be evaluated
Value
Value to be output
Constant value, name of a register
or a variable
To output a numerical value on a printer module, the instruction must be
invoked as follows:
DisplayValue(
8
,
0
, -
12.345
);
DisplayText(
8
,
0
,
'$t'
);
DisplayValue(
8
,
0
, Axis2.Position);
DisplayText(
8
,
0
,
'$n'
);
The first STX instruction lets you output value
-12,345
. The second STX
instruction inserts a tab ($t). The third STX instruction lets you output the
content of the variable
Axis2.Position
. Finally, the fourth STX instruction
triggers a carriage return and a line feed ($n).
The task in the application program stops at the instruction
DisplayText()
or
DisplayValue()
until the whole text/value string has been output.
Function declaration
Function parameters
How to use this
instruction
Operating principle
Summary of Contents for JC-120MC
Page 1: ...User Manual JC 120MC Controller 60880901 We automate your success...
Page 18: ......
Page 40: ...40 Jetter AG 3 Identifying Hardware revisions see page 38 Related topics...
Page 160: ......
Page 186: ......
Page 196: ......
Page 485: ...Jetter AG 485 JC 120MC Programming Topic Page Programming 486 Registers 498 Contents...
Page 521: ...Jetter AG 521 JC 120MC Programming Use 29 bit identifier Default 11 bit identifier...
Page 586: ......
Page 604: ......
Page 633: ......