Configuring The Input - Jetter JC-3 Series Manual

Application-oriented
Table of Contents

Advertisement

Jetter AG
Operating principle
How to use this
command
Example
Application-oriented manual – Control of alphanumeric HMIs (LCD) and printers
Aborting the command
To abort an active STX UserInput() command, enter the value 0 in MR 2817.
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.
The controller throws the USER_INPUT_BREAK exception.
2
3
... an exception handling has
been programmed,
... no exception handling has
been programmed,
4
Result: The variable, where function result was addressed to, will
not be changed.
Tab. 28: Operating principle of aborting the UserInput()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 digits + sign [+ decimal point]
Parameter
Number of digits
Decimal point
Field length (MR 2813)
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.
If...
... the task proceeds with the ex-
ception handling.
... the task is aborted and the er-
ror is displayed in the error reg-
ister.
!!');
Description
6
No
7
Control of alphanumeric HMIs | 3
... then...
31

Advertisement

Table of Contents
loading

This manual is also suitable for:

Jc-4 series

Table of Contents