NT21_Reference Manual (V069-E1-1) (986756), страница 43
Текст из файла (страница 43)
In cases where there are multiple numeral setting input fields,it is also possible to select and move between input fields using touch switches(page 329).• Numeral setting input fields overlap with other elements in accordance with theorder in which they were registered for the screen with the Support Tool. However, the way in which they overlap can be changed with the Support Tool.2-12-2 Thumbwheel Type (Thumbwheel)Function OutlineThumbwheel type numeric input fields are input fields for inputting numeric values on the screen.Touch switches are provided to increment or decrement each digit of a numericvalue, making it easy to change numeric values and to write them to numeralmemory table entries.The values can be input either in decimal or hexadecimal format.The thumbwheel switch functions as a numeral display when it is not receivinginputs.200Section 2-12Inputting Numeric ValuesOutline of OperationThe basic operation of a thumbwheel type numeral setting input field is shownbelow.1, 2, 3...1.
The value in the numeral setting input field is changed using the incrementing and decrementing (+, –) touch switches.PT– – – –1 23 4++ + +Press the [–] key to decrement the digit.Press the [+] key to increment the digit.2. Each time a change is made to the numeric value it is confirmed and the occurrence of the change is notified to the host via the PT status notify area.PT– – – –1 23 4++ + +Data writing1234NotificationHostNumeral memory table entryEach time a [+] or [–] key is pressed, the input value iswritten to the numeral memory table entry and thechange is notified to the host at the same time.Restrictions• A maximum combined total of 256 of the following elements can be registeredfor one screen.
(Same for window screens.) Even in the case of an overlappingscreen with eight child screens, it is only possible to register numeral settinginput fields on one of the child screens.Numeral setting input field (numeric key type),Character setting input field• A maximum combined total of 26 of the following elements can be registeredfor one screen for the NT21, 64 for the NT31/NT31C, and 256 for theNT631/NT631C. (Same for window screens.) Even in the case of an overlapping screen with eight child screens, it is only possible to register numeral setting input fields on one of the child screens.Numeral setting input field (thumbwheel type)• It is not possible to set input from more than one numeral setting input field (numeric key type or thumbwheel type) on the same screen to one numeralmemory table entry.In cases where values at the host must be input both in decimal and hexadecimal, set numeral input into separate numeral memory table entries, both allocated in the same area.• The range of numeric values that can be input depends on the Storage Type(BCD or Binary) of the numeral memory table entry, and the Display Type(Decimal or Hexadecimal), and Display Sign settings made for the numeralsetting input field.
For details, refer to 2-3-1 Numeral Memory Table (page 72).• It is not possible to register multiple input fields (regardless of the type of numeric key or thumbwheel) that refer to the same numeral table entry on thesame screen.201Section 2-12Inputting Numeric ValuesCommon AttributesThe relationship between the properties of a thumbwheel type numeral settinginput field and the numeric values input and displayed is indicated below.PropertiesGeneralPositionCoordinates of the top left corner of the numeral settinginput fieldSizeSize of the input fieldSmall/Medium/LargeEnd PlatePresence/absence of end plates at either end of thenumeral setting input fieldCheck mark (end plates used)/No check mark (end plates not used)AttributeDisplay mode for the numerals (Display attributes anddrawing result, page 204)Standard/Flash/Inverse FlashThumbwheel ColorFrameColor of the frame of the numeral setting input field (Colorsother than black and white are available with the NT31Cand NT631C only.)Black/Blue/Red/Magenta/Green/Cyan/Yellow/WhiteForegroundForeground color of the numeral setting input field (Colorsother than black and white are available with the NT31Cand NT631C only.)Black/Blue/Red/Magenta/Green/Cyan/Yellow/WhiteBackgroundBackground color of the numeral setting input field (Colorsother than black and white are available with the NT31Cand NT631C only.)Black/Blue/Red/Magenta/Green/Cyan/Yellow/WhiteCharacter Color202ForegroundDisplay color of the numerals (Colors other than black andwhite are available with the NT31C and NT631C only.)Black/Blue/Red/Magenta/Green/Cyan/Yellow/WhiteBackgroundBackground color of the numerals (Colors other than blackand white are available with the NT31C and NT631C only.)Black/Blue/Red/Magenta/Green/Cyan/Yellow/WhiteSection 2-12Inputting Numeric ValuesSettingsTable EntryNumber of the numeral memory table entry into which theinput numeric value is writtenRange: 0 to 1999Display TypeDisplay format for the numeric value (Input numeric valueand stored data, page 204)Decimal/HexadecimalFormat (Number of digits displayed, page 204)IntegerNumber of digits in the integer part ofthe numeric valueRange: 1 to 10DecimalMaximumcombined total of10 digitsNumber of digits in the decimalfraction of the numeric valueRange: 0 to 9Limit (Upper/lower (max./min.) limit check, page 207)MaximumUpper limit for numeric values that can be inputMinimumLower limit for numeric values that can be inputDisplay SignWhether or not negative numbers are indicated (settingineffective if Hexadecimal has been set for Display Format)(Input numeric value and stored data, page 204)Check mark (negative numbers indicated)/No check mark (negative numbers not indicated)Interlock FunctionPresence/absence of interlock control of thumbwheel inputCheck mark (interlock)/No check mark (don’t interlock)InterlockPC address settingsPC bit addressAllocated interlock bit used to enable/disable operation ofthe thumbwheel input (See Interlock Bit Allocation on page208.)I/O commentsComment that explains the allocated bit.Up to 16 characters.Color of the input field (foreground/background color of tiling pattern)PositionFrame color Character colorBackground color of numeralsEnd plate0 0 0 0 0 0 .
0 0 0Sign displayDecimal pointNumber of digits in decimal fractionNumber of digits in integer partEnlarged DisplayThumbwheel type numeral setting input fields can be displayed in the followingthree sizes. The sizes of the touch switches in each case are 1 1, 2 2, and3 3, taking the minimum unit (20 20 dots) as the reference.SmallMediumLarge1 2 3 41 2 3 41 2 3 4203Section 2-12Inputting Numeric ValuesDisplay Attributes and Drawing ResultDisplay AttributeStandardDrawing ResultThe numeral setting input field is displayed with the specifiedforeground color and background color.1FlashRepeated alternation of the standard display and no display.1Inverse Flash⇔Repeated exchange of the foreground color and backgroundcolor.1⇔1Number of Digits DisplayedAll contents of numeral memory table entries are stored as integers.
To display anumeric value that has a decimal fraction in a numeral setting input field, set theDecimal setting to 1 or higher to specify the number of places after the decimalpoint. A decimal point is then automatically inserted.The maximum combined total of digits in the integer part and decimal fractionpart is 10 digits. The integer part must always comprise at least one digit.Note that if the number of digits of the numeric value is greater than the total ofthe settings for Integer and Decimal, an error occurs and ∗ is displayed for all thedigits.Example: Displaying 123456• Setting for Integer = 8; setting for Decimal = 0:Resulting display: 00123456• Setting for Integer = 4; setting for Decimal = 4:Resulting display: 0012.3456• Setting for Integer = 2, setting for Decimal = 4:Resulting display: 12.3456• Setting for Integer = 1, setting for Decimal = 4:Resulting display: ∗∗∗∗∗∗Input Numeric Value and Stored DataThe range of numeric values that can be input and the conversion method forstorage depend on the following settings.Display Type (Decimal/Hexadecimal)Display Sign (whether or not negative values are displayed)Conversion Depending on Display TypeThe data is converted for storage in a numeral memory table entry as followsdepending on the setting for Display Type (decimal/hexadecimal) and DisplaySign (whether or not negative values are indicated):• Decimal:The numeric value input in decimal is converted to signed binary data andstored in the numeral memory table entry.• Hexadecimal:The numeric value input in hexadecimal is stored in the numeral memory tableentry without alteration.204Section 2-12Inputting Numeric ValuesWhen the word allocated in the host is input to a 1-word memory table entry, theinput value is treated as 4-digit (16-bit) signed binary data so it is converted to8-digit signed binary data before being stored.For example, if a value of 8001 hexadecimal is input to a 1-word numeralmemory table entry, it is recognized as a negative value because the most significant bit is ON.
The value actually stored in the numeral memory table entryis FFFF 8001 hexadecimal.Reference: Numeral memory table entries store numeric values as signed binary data.Permissible Input RangeWhen inputting values into numeral memory table entries, the permissible inputrange is affected not just by the Display Type and Display Sign but also the Storage Type and Words settings. (When words are not allocated for the numeralmemory table entry in the host, the Words setting is treated as 2 words.)The permissible input range is determined as shown below depending on theseproperties.