Jetter AG
Control of alphanumeric HMIs | 3
Application-oriented manual – Control of alphanumeric HMIs (LCD) and printers
30
How to use this
command
Command-line syntax for assigning the return value to a variable:
AutoSet[Index].Destination := UserInput(
0
,
10
);
Operating principle
The controller processes command as follows:
Step
Description
1
Addressing device 0, the controller displays the suggested value
from cursor position 10 onwards, prepares an input field and acti-
vates the cursor.
2
The task stops on the STX
UserInput()
command, until being
aborted or completed by the user pressing the ENTER ([↵]) key.
3
If...
... then...
... You press the ENTER ([↵])
key
... the controller assigns the en-
tered value to the variable and
resumes the task executing the
next command.
... the STX
UserInput()
com-
mand 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 ex-
ception handling.
... no exception handling has
been programmed,
... the task is aborted and the er-
ror is displayed in the error reg-
ister.
Tab. 27:
UserInput()
operating principle
Polling the state
MR 2817 polls the state of the STX
UserInput()
command.