4-8 Numeral Setting. Omron NT 600M-LB122-V1, NT 20M-DT121-V2, NT 20-IF001, NT 20-ST128, NT 20, NT 20M, NT 20-ST122-V1, NT 20-ST121-EV3, NT 20-ST121-E, NT 20S
Below you will find brief information for Programmable Terminal NT NT20, Programmable Terminal NT NT20S, Programmable Terminal NT NT20M. The NT20 is a programmable terminal used to display and transmit information in an FA site. It can be easily installed and used. NT20, NT20S and NT20M support features and functionality to display, receive data from a host and send data to a host. It also gives the operation examples and characteristics of the NT20.
Advertisement
Advertisement
Numeral Setting
Section 4-8
4-8 Numeral Setting
The NT20 has a “numeral setting” function to enable numerical values to be input from the screen. This function inputs numerical values to numeral memory table entries in response to touch switch operations, displays these numerical values on the screen, and sends them to the host.
This section outlines the numeral setting function and the method for creating the ten keys required to set numerical values on the screen, and explains how to use ten keys during operation.
Numeral setting screens cannot be registered as child screens of continuous screens. In the case of overlapping screens, only one of the screens can be set as a numeral setting screen.
For details on the actual methods used to ascertain input numerical values at
the PLC, refer to 5-3-6 Notification of Numbers to the PLC on page 199, and
Four-digit Number Input Notify and Eight-digit Number Input Notify on page 225.
Numeral settings are set during screen creation with the Support Tool.
!Caution Confirm system safety carefully before changing monitor data.
4-8-1 The Numeral Setting Function
The numeral setting function is described below.
Basic Procedure
The procedure for numeral setting is as follows.
1,2,3...
1.
Input the numerical value at the touch panel.
2.
The input numerical value is displayed in the numeral setting area on the screen.
3.
Confirm the input numerical value; it will be written to the numeral memory table, and the PLC will be simultaneously notified.
Numeral setting area
NT20
Input
1 2 3 4
Write
1 2 3 4
Numeral memory table
Notification
PLC
Touch switch
Restrictions on Numerical Value Input and Attribute Setting
Numerical values of up to 8 digits (7 if there is a minus sign) can be input in either decimal or hexadecimal format.
• Decimal Input
When the display attribute is set for decimal display, values are input in the decimal format.
• Numerical Value Range
The range for numerical values that can be input differs according to whether or not there is a sign display.
When there is no sign display: 0 to 99999999 (8 digits)
When there is a sign display: –9999999 to +99999999
(7 digits for negative numbers,
8 digits for positive numbers)
156
Numeral Setting
Section 4-8
If a sign is displayed when using the thumbwheel type of numeral setting, the maximum number of digits for both positive and negative numbers is 7.
• Decimal Point
A maximum of 7 digits can be input after the decimal point (or 6 for negative numbers).
• Hexadecimal Input
When the display attribute is set for hexadecimal display, values are input in the hexadecimal format.
• Numerical Value Range
Numerical values can be input in the range 0 to FFFFFFFF (8 digits).
• Attributes That Can Be Set
The attributes of the numerical values displayed in the input field are the
same as for numeral displays. Refer to Numerals Which Can Be Displayed on page 145.
Upper/Lower Limit Check
Note
When direct connection is used with an NT20, upper and lower limits can be set for input numerical values to prevent erroneous values that are outside the valid range being stored in the numeral memory table or sent to the PLC.
The upper/lower limit check is executed when the input numerical value has been confirmed: if the value is outside the valid range, the screen returns to its status before input.
In order to use the numerical value input setting safely, always use the upper/ lower limit check function. (This function is not supported by the NT20-ST128.
Take appropriate measures using the user application software.)
4-8-2 Types of Numeral Setting
There are two types of numeral setting: the numeric key type, and the thumbwheel type. The basic function of these two types is the same, but the screen displays and input methods are different.
A maximum of 50 input fields, including both numeric key and thumbwheel types, can be registered on one screen.
Numeric Key Type
When a numerical value is input using touch switches to which numeric key functions have been allocated, the input numerical value is displayed on the screen. On pressing the return key after completing input, the input numerical value is written to the numeral memory table and sent to the host.
If there is more than one numeral setting input field, the field in which the input is to be made can also be selected with the numeric keys.
In order to perform numeric key input, it is necessary not only to create a numeral setting input field on the
Displayed in the numeral setting input field
NT20
1 2 3 4
Input
Write
Notification
1 2 3 4
Numeral memory table
Host
On pressing the key, the input value is written to the numeral memory table and the PLC will be notified simultaneously.
Input the numerical value using the numeric keys on the screen.
157
Numeral Setting
Section 4-8
Thumbwheel Type (Direct Connection Only)
When using an NT20 with a direct connection, numerical values are input directly at the numeral setting input field using touch switches that increment or decrement each of the digits in the display when pressed. Each time the displayed numerical value is changed, the new displayed value is written to the numeral memory table and the host is simultaneously notified.
This means that, when using the Thumbwheel type of numeral setting, all that is required to input numerical values is to create the numeral setting input field on the screen.
Pressing the [
−] key decrements the digit by one.
NT20
1 2 3 4
Pressing the [+] key increments the digit by one.
Notification
Write
1 2 3 4
Numeral memory table
Host
Each time a [+] or [
−] key is pressed, the input value is written to the numeral memory table and the host is simultaneously notified.
4-8-3 Creating Numeric Keys
In order to input numerical values using the numeral setting function, apart from the display area for the numeral setting, the numeric keys must also be created.
Setting Screen Attributes
The type of numeric keys can be selected using the numeral setting attributes of the screen attributes. There are two numeral setting attributes: “system” and “user”.
• Screen When “System” Is Specified
When a numeral setting area is created, numeric keys are automatically displayed. The display position and arrangement of the numeric keys are fixed. On this screen, only the types of numeric key shown in the figure below (system keys) are used.
Tank A Tank B Tank C
1
7
2
8
3
9
4
0
5 6
CLR
±
When using the NT20 with the numeral setting attribute set to “system”, apart from the numeric keys provided by the system, the touch switches allocated to system keys ( , , ) also have to be created (system key function). To enable input of hexadecimal values, it is also necessary to create numeric keys A through F.
With the NT20, if the numeral setting attribute is set to “system”, apart from the numeric keys prepared by the system, the touch switches allocated to system keys ( , ,
) have to be created. (Refer to 4-7-3 System Key
• When the Numeral Setting Attribute Is “User”
158
Numeral Setting
Section 4-8
The display position and arrangement of the numeric keys can be set as
required by allocating them to touch switches (see page 142).
Tank A Tank B Tank C
When the numeral setting attribute is set to “user”, numeric keys are created by using the control keys of the “input key” function. In addition, by using the character keys of the “input key” function, the one-byte characters
0 to 9 and A to F can be used as numeric keys.
Note
Even when the numeral setting attribute is set to “user”, the same numeric keys as displayed with the “system” attribute can be displayed.
If “User” is selected for “Keypad” during data creation on the numeral setting screen, the numeric keys shown below are displayed.
Tank A Tank B Tank C
Numeric Key Allocations
229
230
231
232
233
234
235
236
1
7
2
8
3
9
4
0
5
CLR
6
±
The numeric keys are allocated to touch switches.
The numeric keys allocated to touch switches are specified when the touch switches are created. The following numeric keys (system keys) can be used for numeral setting.
For details on how to create touch switches, refer to 4-7 Touch Switches on page 152.
Touch
Switch
Number
227 (
*
)
Numeric
Key
Menu display
Touch
Switch
Number
237 6
Numeric
Key
Touch
Switch
Number
247
Numeric
Key
CLR
228 238 7 248 ±
0
3
4
1
2
5
239
240
241
242
243
244
245
246
8
9
A
B
C
D
E
F
249
250
251
252
253
254
255
.
HOME
↑
↓
←
→
(*) Numeric key number 227 is the system menu display key.
159
Numeral Setting
Section 4-8
When the touch switches allocated as numeric keys and system keys on a numeral setting screen are pressed, no notification is made to the PLC. This means that when using the NT20-ST128 (RS-232C), the touch switches numbered 227 to 255 cannot be used as normal touch switches on a numeral setting screen.
4-8-4 Using Numeric Keys
To input numerical data by using numeric keys, first select the numeral setting area into which the value is to be input, then input the numerical value by pressing the appropriate numeric keys.
Selecting the Numeral Setting Area for Data Input
Select the numeral setting area into which the numerical value is to be input by using either the numeric keys or the system keys.
• Selection with the Numeric Keys
Use the [HOME], [
→], [←], [↑] and [↓] keys. By using these keys, the cursor can be shifted between numeral setting areas in the way shown in the figure below.
→
6563 3200
4568
HOME
0000
↑
↑
←
5107 4624
Pressing the [HOME] key will shift the cursor to the area whose top left corner has the smallest XY coordinate sum (the top left numeral setting input field in the example above).
• Selection with the System Keys
When the and system keys on the touch panel are pressed, the cursor moves between the numeral setting areas by following the order in which they were created using the Support Tool.
For example, if three numeral setting areas have been created, the cursor can be moved between them following the order of creation as follows.
key: 1st area
→ 2nd area → 3rd area → 1st area
key: 1st area
→ 3rd area → 2nd area → 1st area
If the “numeral setting” screen attribute is set to “system”, the order of cursor motion when the and system keys are used can be changed. For details, refer to the NT Support Tool for Windows operation manual (Cat.
No. V061-E1@).
Inputting Numerical Values
Input numerical values using the following numeric keys (touch switches): numerals (0 to 9, A to F), decimal point (.), sign (+,–), clear (CLR), and return
( ).
When inputting a numerical value that includes a decimal point, input the integer and decimal fraction separately. First input the integer, then press the decimal point key (.) and input the decimal fraction.
160
Numeral Setting
Section 4-8
If the integer or decimal fraction exceed their respective allowable numbers of display digits, they are shifted to the left. In the system keys, however, the decimal point key (.) is not included. Therefore, it is necessary to create the decimal point key (.) apart from the ten keys of the system keys to input a numerical value including decimal fraction.
• Changing the Sign
When there is a sign display, pressing the sign (
±) key changes minus to plus or plus to minus.
• Confirming Input Numerical Values
Always press the return key as the final step when inputting a numerical value. When the return key is pressed, the displayed numerical value is written to the numeral memory table and at the same time the host is notified.
• Initial Operation of Input Keys
The sign key (
±), decimal point key (.), and alphabet key (A to F), operate as follows on initial use (first use after displaying the screen).
• Sign Key (
±)
The display is cleared to zero (assuming decimal input with sign display).
• Decimal Point Key (.)
The display is cleared to zero, after which input starts from the decimal fraction digits (assuming decimal input with sign display).
• Alphabet Keys (A to F)
The display is cleared to zero (assuming decimal input).
• Upper/Lower Limit Check
When the return key is pressed after inputting a numerical value, an upper/ lower limit check is executed. If the input numerical value is outside the valid range, the data in the numeral memory table before input is redisplayed and the host is not notified.
4-8-5 Using The Thumbwheel Type of Numeral Setting
When using the thumbwheel type of numeral setting, numerical values are input by directly touching the incrementing/decrementing (+/–) keys.
Numerical Value Input
Input numerical values by using the incrementing/decrementing (+, –) keys provided for each digit.
• Numerical Value Specification
161
Numeral Setting
Section 4-8
When an incrementing/decrementing (+, –) key is touched, the numeral at the corresponding digit is incremented or decremented by one. Whenever a plus or minus key is touched, the host is notified of the changed value.
There is no need to press the return key as is the case when using the numeric key type of numeral setting.
Thumbwheel numeral setting
1 2 3 4
Numeral memory table
1 2 3 4
Press
2 2 3 4
2 2 3 4 Host
Numerical value incremented by one
Numerical values cannot be set in thumbwheel type numeral setting fields by using numeric keys.
• Changing the Sign
In settings with a sign display, touching the incrementing/decrementing (+,
–) keys at the digit where the sign is displayed will change plus to minus and minus to plus.
• Upper/Lower Limit Check
When using Ver.2 and later versions of the direct connection function, an upper/lower limit check is executed when the incrementing/decrementing
(+, –) keys are pressed. If the input numerical value is outside the valid range, the data in the numeral memory table before the key was pressed is redisplayed and the host is not notified.
However, with thumbwheel type numeral setting, if the situation is such that with an upper limit of 1n..n, and a lower limit of 0m..m (where n and m are the values of each digit), n..n < m..m, it is not possible to carry digits upward or downward.
Example:
When the upper limit value is 1200 and the lower limit value is 201, if the initial value has three digits the value can be changed within the range 201 to 999, and if the initial value has four digits it can only be changed within the range 1000 to 1200.
This is because if an attempt is made to change the leftmost digit from 0 to
1, or from 1 to 0, an upper/lower limit value check is always performed.
In order to avoid this, either set the values so that n..n
≤ m..m, or create another touch switch and write values to the host when digits are carried up or down.
4-8-6 Settings for Numeral Settings
The following settings are made for numeral settings during their creation with the Support Tool. Note that restrictions apply to several of the settings made for thumbwheel type numeral settings.
Settings
• Referenced Numeral Memory Table Entry
Set the number of the numeral memory table entry used to record the numerical value input using the numeral setting function.
• Number of Digits in the Input Numerical Value
162
Numeral Setting
Section 4-8
Set the number of digits in the numerical values that can be input. A maximum of 8 digits (total of integer and decimal fraction parts) can be set.
However, if there is a sign display, the maximum number of digits for negative values will be seven.
• Upper/Lower Limits
Set the upper limit and lower limit separately. The maximum number of digits in the set values is eight (or seven if there is a sign display).
When the upper limit value and lower limit value are set as negative values, set “F” as the eighth digit.
Example: Upper limit value or lower limit value is “–123”
→ F0000123.
• Display Attributes
Set attributes in the same way as for numeral display. For details, see Nu-
merals Which Can Be Displayed on page 145.
Restrictions and Additional Settings for Thumbwheel Type Numeral Settings
There are the following restrictions and additional items to set when creating thumbwheel type numeral settings.
• Number of Input Digits for Positive Values When There Is a Sign Display
When a sign display is set for a thumbwheel type numeral setting, a maximum of 7 digits can be input for positive values.
• Display Size
One of two sizes can be selected: “small” in which each digit comprises two touch switch units, and “medium”, in which each digit comprises three touch switch units. Note that if “small” is selected the area in which the numerical value is displayed is also the touch switch input area.
• Shape (End Plates)
Set which of the two shapes shown below will be used. One has “end plates” at right and left sides and the other does not.
With Without
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
• Restrictions on Display Attributes
The following restrictions apply to display attributes.
Character type: Wide size only
Character enlargement: Standard only,
Zero suppress: regardless of the display size specification
No zero suppression only
Refer to Numerals Which Can Be Displayed on page 145.
163
Numeral Setting
Section 4-8
164
SECTION 5
How to Use the Host Link/NT Link
This Section describes in concrete terms how to use the Host link/NT link communications with the NT20.
5-1 Overview of Direct Connection Operations . . . . . . . . . . . . . . . . . . . . . . . . . .
5-1-1 Equipment and Settings Used in This Section . . . . . . . . . . . . . . . . .
5-1-2 Allocatable Bits and Words . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5-1-3 NT20 Status Control and Notification to PLC . . . . . . . . . . . . . . . . .
5-1-4 Switching the Screen Display. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Notifying the PLC of the Display Screen
(to Display the Number of Currently Displayed Screen) . . . . . . . . .
Memory Tables and Bar Graphs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5-2-1 Displaying the Contents of Allocated Words of Memory Table Entries 180
Changing Displayed Numerals or Character Strings
(Changing the Contents of Allocated Words ... Direct Specification)
Changing Displayed Numerical Values or Character Strings
(Changing the Contents of Allocated Words ... Indirect Specification)
5-2-4 Copying Memory Table Entries . . . . . . . . . . . . . . . . . . . . . . . . . . . . 186
5-2-5 Upgrading Bar Graphs (Changing the Contents of Allocated Words)
5-3 Lamps, Touch Switches, Numeral Setting . . . . . . . . . . . . . . . . . . . . . . . . . . .
191 5-3-1 Allocation Bits and Display of Lamps . . . . . . . . . . . . . . . . . . . . . . .
Turning ON (Lit) and OFF (Unlit) the Lamps
(Changing the Contents of Allocated Bits). . . . . . . . . . . . . . . . . . . .
193 5-3-3 Allocated Bits and Display of Touch Switches . . . . . . . . . . . . . . . .
Lit (Flashing) and Unlit Touch Switch Status
(Changing the Status of Allocated Bits) . . . . . . . . . . . . . . . . . . . . . .
Notifying the Host That a Switch Has Been Pressed
(Determining Touch Switch Status) . . . . . . . . . . . . . . . . . . . . . . . . .
5-3-6 Notification of Numbers to the PLC. . . . . . . . . . . . . . . . . . . . . . . . .
5-4-1 Controllable NT20 Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
205 5-4-2 How to Control NT20 Functions . . . . . . . . . . . . . . . . . . . . . . . . . . .
Notification of the Operating Status to the PLC
(Determining the NT20 Operating Status) . . . . . . . . . . . . . . . . . . . . . . . . . . .
5-5-1 Ascertainable NT20 Status (Notified Operating Status) . . . . . . . . .
5-5-2 Reading the NT20 Operating Status . . . . . . . . . . . . . . . . . . . . . . . . .
165
Download
Advertisement
Key features
Downsized body
Construction best suited to the FA environment
A Host Link I/F Unit, Screen Data Memory, and a System ROM Are All Incorporated
Touch Switch Operation
Compatibility with NT20M/NT20S
Character display
Figure display
Memory data display
Bar graph display
Lamp display
Frequently asked questions
The NT20 is a programmable terminal used to display and transmit information in an FA site. It can be easily installed and used.
The NT20 has a downsized body, is built with construction best suited to the FA environment, incorporates a Host Link I/F Unit, Screen Data Memory, and a System ROM, supports Touch Switch Operation, and is compatible with NT20M/NT20S.
The NT20 supports Host Link (direct) and NT Link communications methods. The NT20-ST128 also supports RS-232C communications.