1.Description
Creating a numeric keypad. A text (Input 1) can be edited as desired. A single number, comma, or item can be attached (Input 2) and the last character (Input 3) or the whole text (Input 4) can be deleted. The module only accepts characters that have a valid number as result.
Note
Input 2: Invalid ASCII codes are ignored by the module.
2.Inputs
No. | Name | Initialisation | Description |
---|---|---|---|
1 | E1 Text | "" | Text (text) - Number to be edited. |
2 | E2 ASCII | 0 | ASCII (numeric) - ASCII code of the character that should be attached to the number. The module ChrToASCII (17783) can be used for determining ASCII codes. |
3 | E3 BS | 0 | Backspace (numeric) - A random value deletes (if present) the last character in the current number. |
4 | E4 Clear | 0 | Clear (numeric) - A random number resets the number to 0. |
5 | E5 Cancel | 0 | Cancel (numeric) - A value > 0 undoes all the entries regarding the number that were made beforehand. The module does not react now to any entries until a new number (Input 1) is present. |
6 | E6 OK | 0 | OK (numeric) - For a value > 0, the edited number is output at Output 2 and 4. The module does not react now to any entries until a new number (Input 1) is present. |
7 | E7 Change of sign | 0 | Change sign (numeric) - The sign is changed when any desired value arrives (from + to – and from – to +). |
3.Outputs
No. | Name | Initialisation | SBC | Description |
---|---|---|---|---|
1 | A1 Display | "" | s | Display (text) - Always the currently edited number. |
2 | A2 Result | "" | s | Result (text) - When confirmed with OK (Input 6), the currently edited number. |
3 | A3 Done | 0 | s | Done (numeric) - Displays with the value 1 that an OK (Input 5) or a cancellation (Input 6) was triggered. The module does not react now to any entries until a new number (Input 1) is present. |
4 | A4 Result (float) | 0 | s | Result (float) (numeric) - The result as a numeric value |
s = send, sbc = send by change
4.Other
Recalculation during start: | No |
---|---|
Module is retentive: | No |
Internal designation: | 17782 |
Category: | Text functions |