342
Jetter AG
10 Programming
STX instruction for the input of numerical values
Function
UserInput(Dev:Int,
Pos:Int):Double;
Parameter
Value
Description
Dev
0 ... 4
Number of the device where the
value is to be input
Pos
1 ... Possible number of
characters on the screen
Cursor position starting from which
the input field is to be displayed
Result of the function
Type
Double
Value
Value that has been input
You can invoke the instruction and assign its return value to a variable in the
following way:
AutoSet[Index].Destination := UserInput(
0
,
10
);
The controller processes this instruction in the following steps:
Step
Description
1
The controller displays the suggested value on device
0
starting from
cursor position
10
, prepares an input field and activates the cursor.
2
The task stops at the STX instruction
UserInput()
, until it is aborted or
until it is completed by the user by pressing the key
ENTER
([
↵]
).
3
If ...
... then ...
... you press the key
ENTER
([
↵]
), ... the controller assigns the value
that has been input to the variable
and continues the task with the next
instruction.
... the STX instruction
UserInput()
instruction is
aborted,
... an exception is thrown and step 4
is carried out.
4
If ...
... then ...
... an exception handling has been
programmed,
... the task proceeds with the
exception handling.
... no exception handling has been
programmed,
... the task is aborted and the error is
displayed in the error register.
Function declaration
Function parameters
Result of the function
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: ......