380
Jetter AG
10 Programming
STX instructions for outputting texts
Function
DisplayText(Dev:Int,
Pos:Int,
Const Ref
Text:String);
Parameter
Value
Description
Dev
8 ... 11
Number of the device on which the
text is to be output
Pos
Not relevant
Will not be evaluated
Text
Text to be output
Constant text, or name of a string
variable
To output a text on a printer module, the instruction must be invoked as
follows:
DisplayText(
8
,
0
,
'Hello World !'
);
DisplayText(
8
,
0
, StringVar);
The first instruction causes the printer module to output the text 'Hello World!'.
Then, the second STX instruction causes the content of the string variable
StringVar
to be output.
The task in the application program stops at the instruction
DisplayText()
until the whole text has been output.
Function
DisplayText2(Dev:Int,
Pos:Int,
Const Ref
Text1:String,
Const Ref
Text2:String);
Parameter
Value
Description
Dev
8 ... 11
Number of the device on which the
text is to be output
Pos
Not relevant
Will not be evaluated
Text1
Text to be output
Constant text, or name of a string
variable
Text2
Text to be output
Constant text, or name of a string
variable
To output one text out of two texts on a serial interface module, the instruction
must be invoked as follows:
DisplayText2(
11
,
0
,
'Fehler:', 'Error:'
);
The STX instruction causes either the text 'Fehler:', or 'Error:' to be output on a
serial interface module. MR 2806 lets you control which text will be output.
The task in the application program stops at the instruction
DisplayText2()
until the whole text has been output.
Function declaration
Function parameters
How to use this
instruction
Operating principle
Function declaration
Function parameters
How to use this
instruction
Operating principle
Содержание JC-120MC
Страница 1: ...User Manual JC 120MC Controller 60880901 We automate your success...
Страница 18: ......
Страница 40: ...40 Jetter AG 3 Identifying Hardware revisions see page 38 Related topics...
Страница 160: ......
Страница 186: ......
Страница 196: ......
Страница 395: ...Jetter AG 395 JC 120MC Programming Result When initializing the JX2 system bus the adjusted baud rate values were used...
Страница 485: ...Jetter AG 485 JC 120MC Programming Topic Page Programming 486 Registers 498 Contents...
Страница 521: ...Jetter AG 521 JC 120MC Programming Use 29 bit identifier Default 11 bit identifier...
Страница 586: ......
Страница 604: ......
Страница 633: ......