Jetter AG
Control of alphanumeric HMIs | 3
Application-oriented manual – Control of alphanumeric HMIs (LCD) and printers
31
Aborting the command
To abort an active STX
UserInput()
command, enter the value 0 in MR 2817.
Operating principle
The controller performs the following steps to abort an active STX
UserInput()
command:
Step
Description
1
The controller disables the blinking cursor on the HMI.
2
The controller throws the
USER_INPUT_BREAK
exception.
3
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.
4
Result: The variable, where function result was addressed to, will
not be changed.
Tab. 28: Operating principle of aborting the
UserInput()
command
How to use this
command
Try
Value := UserInput (
0
,
25
);
Catch
USER_INPUT_BREAK:
Trace (
'UserInput aborted !!'
);
End_Try
;
3.7.2 Configuring the input
Setting the length of the input field
MR 2813 defines the input field length for numerical values.
MR 2813 = Number of sign [+ decimal point]
Example
Parameter
Description
Number of digits
6
Decimal point
No
Field length (MR 2813)
7
Tab. 29: Setting the display field length – example
Setting and polling the number of decimal places
MR 2811 defines the number of decimal places.
Entering decimal places might require adjustment of the display field length in
MR 2813.
The reason: The decimal point uses one place in the display field.
MR 2808 contains the number of decimal places entered.