NT21_Reference Manual (V069-E1-1) (986756), страница 71
Текст из файла (страница 71)
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 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).Restrictions on Using a Temporary Input Field• For a thumbwheel type numeral input field, it is not permissible to use a temporary input field.• If the number of digits in a temporary input field is smaller than the number ofdigits (integer part digits + fraction part digits + decimal point digit + sign digit)necessary for the objective input field on the base screen, the input is madewithin the range of the number of digits in the temporary input field.• If an input field does not exist on the base screen, a temporary input field is notdisplayed.339SectionInput of Numeric Values and Character StringsExample of Use<Base screen>5 input settings<Window>Temporary input field8 integer digits, no sign display(8 digits can be displayed)00000001200.
03–00. 04–00000005NumerickeyInteger digits: 8; Decimal fraction digits: 0; Signdisplay: No; Zero suppress: NoInteger digits: 8; Decimal fraction digits: 0; Signdisplay: No; Zero suppress: YesInteger digits: 2; Decimal fraction digits: 2; Signdisplay: No; Zero suppress: NoInteger digits: 2; Decimal fraction digits: 2;Sign display: Yes; Zero suppress: NoInteger digits: 8; Decimal fraction digits: 0; Signdisplay: Yes; Zero suppress: No7410Window open key8 9 ↑5 6 ↓2 3 CLR.
± ENTInput key – controlNumerickeyENT700000001200. 03–00. 04–00000005Numerickey00000001741088 9 ↑5 6 ↓2 3 CLR. ± ENT00000001200. 03–00. 04–00000005Numerickey00000078741000000078200. 03–00. 04–000000058 9 ↑5 6 ↓2 3 CLR. ± ENTNumerickeyOpen windowDisplay set data274108 9 ↑5 6 ↓2 3 CLR. ± ENTConfirm, notify PCMove frameDisplay set data↓00000078200. 03–00. 04–00000005Numerickey00.03741018 9 ↑5 6 ↓2 3 CLR. ± ENT00000078200. 03–00. 04–00000005Numerickey01.03.574108 9 ↑5 6 ↓2 3 CLR. ± ENT00000078200. 03–00. 04–00000005Numerickey01.5074108 9↑5 6↓2 3 CLR. ± ENTMove frameDisplay set data↓300000078200. 03–00.
04–00000005NumerickeyMove frameDisplay set data340–00.0474108 9 ↑5 6 ↓2 3 CLR. ± ENT.8±00000078200. 03–00. 04–00000005Numerickey03.8074108 9 ↑5 6 ↓2 3 CLR. ± ENT↓00000078200. 03–00. 04–00000005Numerickey∗∗∗∗∗∗∗∗74108 9 ↑5 6 ↓2 3 CLR. ± ENTMove frameNumber of input digits exceededDelete temporary input field3-7SectionInput of Numeric Values and Character Strings3-7Inputting Numeric Values Using a Thumbwheel Type Input FieldThe following describes the procedure for inputting or changing a numeric valuein a thumbwheel type input field.––––1234++++Decrease by 1 whenIncrease by 1 when+–key is touchedkey is touchedWhen creating a screen using the Support Tool, register the following elementfor the screen.Thumbwheel switchSettingReference: Since a thumbwheel type numeral setting field itself has a touch switch for inputting a numeric value, it is not necessary to register other elements for inputting anumeric value.Operation1, 2, 3...Reference:1.
Display the screen that has the thumbwheel switch.2. Change the numeric value using the increment/decrement (+, –) keys provided at the top and bottom of each digit position of the thumbwheel switch.For the procedure for changing a numeric value, refer to Using A Thumbwheel Type Input Field (page 341).S In a thumbwheel switch, a numeric value is confirmed immediately after it ischanged and written to a numeral setting field. At the same time, the occurrence of a change in the contents of the numeral setting memory table entry isnotified to the host.When the 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 When a thumbwheel switch is displayed, the numeric value that has beenstored in the numeral memory table entry prior to the input is displayed.S Even if more than one thumbwheel switch exists on a screen, it is not necessary to specify an active thumbwheel switch since the inputs are made with theincrement and decrement keys contained in each switch.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).Using a Thumbwheel Type Input FieldAt a thumbwheel switch, input a numeric value using the increment/decrement(+, –) keys provided at each digit position of the thumbwheel type numeral setting field.Specifying a Numeric ValueWhen an increment/decrement (+, –) key is pressed, the numeric value at thecorresponding digit increases or decreases by 1.
Each time the + key or the –key is pressed, the changed numeric value is stored to the numeral memorytable entry and the occurrence of a change in the contents of the numeral341SectionInput of Numeric Values and Character Strings3-7memory table entry is notified to the host. It is not necessary to confirm the inputnumeric value by pressing the ENT key or the key, which is required when anumeric key type input field is used.With a thumbwheel switch, inputting of a numeric value using the input key –control is not possible.Setting a numeric value in the thumbwheel type input field.Numeral memory table entry– – – –12+ +341234+ +Press–––2234+ +++–2234HostThe relevant numeral increases by 1.Changing a SignIf a check mark is set for Display sign of a thumbwheel switch, the + and – keysare used to change the sign if the keys in the sign display digit are pressed.Pressing the + key changes the sign to + and pressing the – key changes thesign to –.Checking the Upper/Lower LimitThe PT has a function to check the correctness of an input numeric value to prevent a numeric value outside the allowable range from being input so that theinput of an illegal value will not adversely affect the system.The upper/lower (max./min.) limit check is executed in the timing indicated below according to the type of a numeral setting input field.For a thumbwheel switch, the check is executed each time the increment/decrement key of each digit position is pressed.With a thumbwheel switch, if n...n < m...m upper limit: 1n...n, lower limit: 0m...m(n and m are arbitrary values at each digit), carry over and underflow are not possible at the highest digit position.Example:If the upper limit value and the lower limit value are 1200 and 201, respectively,the numeric value can be changed only in the following range: from 201 to 999 ifan initial value is a 3-digit value and from 1000 to 1200 if an initial value is a 4-digitvalue.The reason for this is that the upper/lower (max./min.) limit check function doesnot allow the numeric value at the highest digit position to change from 0 to 1 orfrom 1 to 0.To avoid this, set the upper and lower limit values so that n...n y m...m, or provide a touch switch separately to write a numeric value for carry over or underflow.It won’t be possible to change the numeric value with the increment and decrement keys if the value is already outside of the range specified by the upper andlower limits.3-7-2 Inputting Character StringsTo input a character string, the touch switches input key – string and input key –control are used.
Basically, the input key – string and input key – control arranged on the same screen are used to directly input a character string into acharacter string input field. It is also possible to use input key – string and inputkey – control or a temporary input field registered for a window.Registration of more than one character string input field in a screen is permitted.To specify the objective input field among multiple input fields, either the inputkey – control provided for shifting between input fields or a cursor moving keyshould be used.342Input of Numeric Values and Character StringsSection3-7When inputting a character string, the specification of an input field, windowopening procedure, and the major purposes of a temporary input field are identical to those for inputting a numeric value.
The explanation below concentrateson how a character string is input; other information is not discussed. For theprocedure for specifying an input field and opening a window, and for the majorpurposes of a temporary input field, refer to the corresponding items in the description of the operation for numeric value input.In character string input operation, bar code data can be input as a characterstring using a bar code reader that is connected to the PT.Only the following topics are described here.• Using the input key – string and input key – control on the same screen• Using a bar code readerReference:S A character string input field will be disabled when the interlock function is being used for the input field and the interlock bit in the host that controls the inputfield’s operation is OFF.
(See Controlling PT Operations with Interlock Bits onpage 369 for details.)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.Restrictions Specific to Character String Input When Using Temporary Input FieldsWhen inputting a character string, a temporary input field can be used as for inputting a numeric value.
But when using a temporary input field for inputting acharacter string, the following specific restrictions should be noted.• When inputting a character string, the temporary input field must also be thecharacter string input field.• Even if the number of digits of a temporary input field is smaller than the number of digits of the objective input field on the base screen, the temporary inputfield can be used to input a character string. In this case, however, blank digitsremain in the character string input field on the base screen and these blankdigits are filled with spaces.