Your cart is currently empty!
Applicable Model(s)
HMI500 Series
Title
Creating a keypad with displayed limits for data entry
Date
04/29/2004
Rev
01
P/N
0907-1069
Summary
This technical note will explain how to create a keypad with an entry buffer display, plus displays
for both the minimum and maximum limits of each individual Numeric Input object. The limits are
only capable of displaying integer values, since that is the storage format of the local memory used
to store the limits.
Solution
There are several solutions for this issue; however, the easiest is to use one of the pre-existing
keypads in the group libraries included with EZware. There are several to choose from in the userlibrary-
keypad1 library. After placing the keypad object on your window, it can be ungrouped and
each key’s properties edited. By doing this, you may choose whatever shapes and colors you like for
the buttons and displays.
To Create a New Keypad from Scratch:
1.
Create a matrix of Function Key objects, with ASCII characters corresponding to the desired
numbers or functions.
2.
Add an ASCII Data object to display the contents of the entry buffer.
3.
Set its device type to LW, and it’s address to 9076 minus the number of words you wish to display (half the number of characters), then set the desired number of words.
4.
Add 2 numeric data objects for the minimum and maximum limits, setting the device addresses to 9002 (maximum) and 9004 (minimum).
In both cases, set the number of words to 2
More Information
Further information about creating a keypad can be found in the EZware online help.