NT21_Reference Manual (V069-E1-1) (986756), страница 70
Текст из файла (страница 70)
This operationis not necessary if the window open function is set for the cursor moving key.)Create the window screen used for the input and register the following elementsfor it. (It isn’t necessary to register all of the elements listed below.
Register justthe required elements in the main screen and window.)• Touch switch input key – control• 0 to 9• A to F (only for the numeral setting input field of the hexadecimal displayformat)••.(necessary for inputting a negative value)(necessary for inputting a decimal fraction)335Input of Numeric Values and Character StringsSection3-7• ENT or(necessary for confirming the input)The following keys can be registered if necessary.(necessary for specifying an input field)• HOME or ↑, ↓, ←, →, ,• CLR(for clearing the numeric value being input)• CA(for canceling the input)(for deleting a character located immediately before the input cur• BSsor)• DEL(for deleting a character located immediately after the input cursor)• A, " (for moving the input cursor)Reference: For the registration of touch switch input key – control, it is useful to register thekeys that will be required for inputting the data on the base screen, and those thatwill be switched according to need during input — such as letters and numerals— in the window.Operation1, 2, 3...1.
Display a screen on which numeral setting input fields are registered.2. Specify the objective numeral setting input field using the input key – controland the cursor moving keys.For the procedure for specifying the objective numeral setting input field, refer to Specifying the Objective Numeral Setting Input Field Using the InputKey – Control (page 333).Reference: If the window open function is set to the cursor moving keys, the specified window automatically opens.3. Press the window open key to open the window that is used for inputting anumeric value.Reference: The way in which the window is opened differs according to the property set forthe window open key (page NO TAG).4.
Input a numeric value using the input key – control.For the procedure for inputting a numeric value, refer to Inputting OperationUsing Touch Switches (page 330).5. Press the ENT key in the input key – control or the key to confirm the input.When the input is confirmed, the input numeric value is stored to a numeralmemory table entry. Then, the occurrence of a change in the contents of thenumeral memory table entry is notified to the host via the PT status notifyarea (page NO TAG).336SectionInput of Numeric Values and Character StringsReference:3-7S If the objective input field is shifted before confirming the input, the input numeric value is canceled and the screen returns to the one displayed before thenumeric value was input.S When a numeric input is confirmed, the PT checks whether the input is withinthe upper and lower (max./min.) limits set for that numeral setting input field. Ifthe numeric value is outside the specified range, the buzzer sounds threetimes, the input numeric value is canceled, and the screen returns to the display before starting the input.
In this case, neither writing to a numeral memorytable entry nor notification to the host is executed.S If the key is pressed to confirm the input, the same field remains as the objective input field even after the previous input has been confirmed. If the ENT keyis used for the confirmation of the input, the objective input field shifts to thenext.S When NT20S or NT30/620 compatible mode is being used, the current screennumber occupies the first word of the PT status notify area and the words containing the updated memory table entry number and PT status notify bits areshifted down one word (page NO TAG).Inputting Numeric Values Using the Temporary Input FieldThe following describes the procedure for inputting a numeric using a temporaryinput field that is registered for a window. The term temporary input field means anumeric key type numeral setting input field registered for a window.
It is used asa temporary input field before the input is confirmed.When a temporary input field is used, it is possible to input a numeric value whileleaving a numeric value that was active before the input in the numeral settinginput field on the base screen.Here, the explanation concentrates on how to use a temporary input field in awindow.
For the numeric value input procedure (page 328) and the procedurefor specifying the numeral setting input field (page 332, 334) and for opening thewindow (page 335), refer to the explanation for the numeric value input methodgiven previously.Input1234567853227894561230. ±Temporary input fieldWindowSettingWhen creating a screen using the Support Tool, set the elements indicated below that are used to specify the active numeral input field as well as the regularcontrol keys that are used to input the numeric value.• Window open key touch switchSpecify the window screen number of the window used for inputting a numeric value.(Used when opening the window for inputting a numeric value. This operation is not necessary if the window open function is set for the cursor movingkey.)• Window close key touch switchCreate the window screen used for the input and register the following elementsfor it.
(It isn’t necessary to register all of the elements listed below. Register justthe required elements in the main screen and window.)337Input of Numeric Values and Character StringsSection3-7• Touch switch input key – control• 0 to 9• A to F (only for the numeral setting input field of the hexadecimal displayformat)• (necessary for inputting a negative value)•.(necessary for inputting a decimal fraction)• Numeral setting input field (Temporary input field registered in the window)Reference: Only one numeral setting input field can be registered in a window, and this numeral setting input field is used as a temporary input field.
Only one temporaryinput field, numeral input field, or character string input field can be registered. Athumbwheel type numeral setting input field cannot be registered for a window.Operation1, 2, 3...1. Display the screen where a numeral setting input field is registered.2. Specify the objective numeral setting input field using the input key – controland the cursor moving keys.For the procedure for specifying the objective numeral setting input field, refer to Specifying the Objective Numeral Setting Input Field Using the InputKey – Control (page 333).Reference: If the window open function is set for the cursor moving keys, the specified window automatically opens.3.
Press the window open key to open the window that is used for inputting anumeric value.Reference: The way in which the window is opened differs according to the property set forthe window open key (page NO TAG).4. Input a numeric value into the temporary input field using the input key – control.The same procedure as used for inputting a numeric value into a normal numeral setting input field can be used. For the procedure for inputting a numeric value, refer to Inputting Operation Using Touch Switches (page 330).For restrictions on using a temporary input field, refer to Restrictions on Using a Temporary Input Field (page 339).Reference:S If a temporary input field is set in a window, the input is automatically set in thetemporary input field.When multiple windows are opened and the each window has an input field(temporary input field), the data is set in the input field in a focus window.For details of focus window, refer to Focus Window (page NO TAG).S In the initial state, the initial state content of the objective input field is displayedin the temporary input field.S The objective input field on the base screen maintains the initial state displayuntil the input is confirmed.5.
Press the ENT key in the input key – control or the key to confirm the input.When the input is confirmed, the input numeric value is stored to a numeralmemory table entry. Then, the occurrence of a change in the contents of thenumeral memory table entry is notified to the host via the PT status notifyarea (page NO TAG).338Input of Numeric Values and Character StringsReference:Section3-7S If the objective input field is shifted before confirming the input, the input numeric is canceled and the screen returns to the one displayed before the numeric value was input.S When a numeric input is confirmed, the PT checks whether the input is withinthe upper and lower (max./min.) limits set for that numeral setting input field.