NT21_Reference Manual (V069-E1-1) (986756), страница 68
Текст из файла (страница 68)
For the examples of actual applications using the data logging function oftrend graph, refer to Continuously Reading Out the Contents of a PC Word andDisplaying a Trend Graph by Backtracking (page NO TAG).327SectionInput of Numeric Values and Character Strings3-73-7Input of Numeric Values and Character StringsThe procedure for inputting numeric values and character strings by operation atthe PT is described below.3-7-1 Inputting a Numeric ValueNumeric values can be input with a numeral input field or thumbwheel switch, asshown in the following diagram.Numeral Input FieldThis method uses just an input field.
Usethe touch switch control keys as a decimal keypad and input values just as youwould on a calculator.InputThumbwheel SwitchEach digit is decremented by 1each time its – Key is pressed.Each digit is incremented by 1each time its + Key is pressed.This method uses the increment anddecrement keys (+ and –) on the thumbwheel switch to change those values.Two or more input fields and thumbwheel switches can be positioned in a singlescreen. When more than one input field is used, it is necessary to use a controlkey or arrow key to specify which input field is operated by the keypad.It is also possible to place the control key used to specify the input field in a window or keyboard screen.
Various inputs can be handled by registering controlkeys in windows according to their type and switching to the desired windowwhen necessary.It is also possible to register a temporary input field in a window for numericalinput. When a temporary input field like this is being used, the values can be confirmed as they are input to prevent the corresponding input field from beingchanged before the numerical value is entered completely. (If the value is confirmed in the temporary input window, the confirmed value is written to the inputfield in the main screen.This section describes the following operations.
Refer to the explanations whenneeded.• Basic key operations for numerical inputsSee Inputting Numeric Values Using the Input Key – Control on the SameScreen on page 329.• Specifying an input field when several input fields are usedSee Cases Where Multiple Numeral Setting Input Fields Exist on a Screen(Without Cursor Moving Keys) on page 332.See Cases When Multiple Numeral Setting Input Fields Exist on a Screen(With Cursor Moving Keys) on page 334.• Using control keys in windowsSee Inputting Numeric Values Using the Input Key – Control in a Window onpage 335.• Using temporary input fieldsSee Inputting Numeric Values Using the Temporary Input Field on page 337.• Using thumbwheel switchesSee Inputting Numeric Values Using a Thumbwheel Type Input Field onpage 341.328SectionInput of Numeric Values and Character StringsReference:3-7S Inputs to input fields and thumbwheel switches can be disabled by setting theinterlock function and turning OFF the host’s interlock bit that controls the input.
(Refer to page 369.)S Likewise, the interlock function can be set for touch switches and the touchswitch’s operation can be disabled by turning OFF the host’s interlock bit thatcontrols the touch switch. (See Controlling PT Operations with Interlock Bits onpage 369 for details.) Check the status of the interlock bits allocated to controltouch switches before inputting numerical values.Inputting Numeric Values Using the Input Key – Control on the Same ScreenThe following describes the basic numeric value input procedure using the inputkey – control on the same screen. The explanation of the procedure for inputtinga numeric value into the numeral setting input field assumes that there is onlyone input field on the screen.12345678Input7894561230.Reference: It is possible to copy a constant or contents in a numeral memory table entry to anumeral setting input field using the touch switch Copy Setting function (page326).When creating a screen using the Support Tool, set the elements indicated below on the screen.• Numeral setting input field (numeric key type)• Touch switch input key – control• 0 to 9• A to F (only for the numeral setting input field of the hexadecimal displayformat)Setting(necessary for confirming the input)• ENT orThe following keys can be registered if necessary.• CLR(for clearing the numeric value being input)•±(necessary for inputting a negative value)•.(necessary for inputting a decimal fraction)(for canceling the input)• CA(for deleting a character located immediately before the input cur• BSsor)• DEL(for deleting a character located immediately after the input cursor)• A and "(for moving the input cursor)Operation1, 2, 3...1.
Display the screen where a numeral setting input field is registered.2. 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).Reference: When the screen has only one numeral setting input field, that input field is specified automatically.
It is not necessary to specify it as the active numeral settinginput field.329SectionInput of Numeric Values and Character Strings3. Press the ENT key of the input key – control or the3-7key 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).Reference:S When a numeric value is confirmed the PT checks whether the value falls within the specified upper and lower limit values. If the numeric value is outside thespecified range, the buzzer sounds three times, the input numeric value iscanceled, and the screen returns to the display before starting the input.
In thiscase, neither writing to a numeral memory table entry nor notification to thehost is executed.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. (Refer to page NO TAG.)Inputting Operation Using Touch SwitchesA numeric value can be input in the same manner as when using an electroniccalculator by using the touch switch input key – control.Initial DisplayWhen a numeral setting input field is displayed, the contents of a numeralmemory table entry where the input numeric value is written are displayed.Cursor FrameIf a Cursor frame is set for the numeral setting input field, the frame that enclosesthe input field is displayed while the field is accepting input.Cursor frameInput field1234Inputting an Integer Part and a Decimal Fraction PartIn the integer part, numerals are input from the lowest digit position and the inputvalue is shifted to the left as new numerals are input.
If the input value exceedsthe number of display digits of the integer part, the numeral at the highest digitposition is cleared.After the input of a decimal point, the succeeding numeric input is regarded as adecimal fraction. In the decimal fraction part, the numeral input first is displayedin the first place. After that the input numerals are displayed to the right of thepreceding input. If the input value exceeds the display range, the numeral occupying the first position to the right of the decimal point is cleared.Key inputDisplayed numeric value(Initial state)1234.567890009.000000090.0000.0090.000040090.400050090.4500Display of a SignIf the numeral setting input field is assigned the signed value setting, the sign (+and –) toggles each time the ± key is pressed.330SectionInput of Numeric Values and Character Strings3-7Confirming the Input Numeric ValueAfter inputting a numeric value, always press the ENT key or key to confirmthe input.
When the input is confirmed, the input numeric value is written to thenumeral memory table entry and the occurrence of a change in the contents ofthe numeral memory table entry is notified to the PT status notify area (pageNO TAG).The ENT key and thekey differ from each other in the following respects.• ENT keyWhen more than one numeric key type numeral setting input field exits on thescreen, the input objective shifts to the next input field when the input is confirmed. The input objective shifts in the order specified by the Support Tool.•keyEven when more than one numeric key type numeral setting input field exits onthe screen, the input objective does not shift after the confirmation of the input.Upper and Lower Limit ChecksThe PT checks whether inputs are within the specified range to prevent the system from being adversely affected by the input of incorrect values.
When a numeric value has been input in a numeral input field, the PC checks it against theupper and lower limit values when the value is confirmed.Initial Operation of Input KeysHow the sign () key, the decimal point (.) key, and alphabetic letter (A to F) keysoperate in the initial input (the first input after the screen is displayed or after theconfirmation of the previous input) is described below.• Sign () key:The display is cleared to 0.• Decimal point (.) key:The display is cleared to 0 and the input starts in the decimal fraction part.
If thenumber of digits of the decimal fraction part is 0, numeric input is not the inputfor the decimal fraction part.• Alphabetic letter (A to F) key:In decimal input:The input is disregarded, and the buzzer soundsthree times.In hexadecimal input:The input alphabetic letter is displayed.Input ExampleIn actual numeric input, the input numeric value changes as shown below.Input example 1)Decimal display, signed, 4 digits in integer part, 3 digits in decimal fraction partOrderKeyInitial valueDisplayednumericvalueOrderKeyDisplayednumericvalueOrderKeyDisplayednumericvalue0000.0007A–1524.00014.0000.000110001.0008.–1524.0001570000.700250015.00091–1524.1001620000.720320152.000105–1524.150174B0152.000112–1524.15218±0000.0005±–0152.000127–1524.5271910001.00064–1524.00013–1524.52720±–0001.0000000.720Input example 2)Decimal display, unsigned, 4 digits in integer part, 3 digits in decimal fraction part331SectionInput of Numeric Values and Character StringsOrderKeyInitial valueDisplayednumericvalueOrderKeyDisplayednumericvalueOrder0000.0005±0152.00010Key3-7Displayednumericvalue1524.130110001.000641524.00011.0000.000250015.0007.1524.0001290000.900320152.000811524.1001350000.9504B0152.000931524.130140000.950Cases Where Multiple Numeral Setting Input Fields Exist on a Screen (WithoutCursor Moving Keys)The following describes the procedure for inputting a numeric value at a screenthat has multiple numeric key type numeral setting fields.