![background image](http://html1.mh-extra.com/html/omron/nt21-series/nt21-series_reference-manual_744543205.webp)
2-12
Section
Inputting Numeric Values
196
When the word allocated in the host is input to a 1-word memory table, the in-
put value is treated as 4-digit (16-bit) signed binary data so it is converted to
8-digit signed binary data before being stored.
For example, if a value of 8001 hexadecimal is input to a 1-word numeral
memory table, it is recognized as a negative value because the most signifi-
cant bit is ON. The value actually stored in the numeral memory table is
FFFF 8001 hexadecimal.
Reference:
Numeral memory tables store numeric values as signed binary data.
Permissible Input Range
When inputting values into numeral memory tables, the permissible input range
is affected not just by the Display Type and Display Sign but also the Storage
Type and Words settings. (When numeral memory tables are not allocated
words in the host, the Words setting is treated as 2 words.)
The permissible input range is determined as follows depending on these prop-
erties. If input of a value outside this range is attempted, the PT checks and pre-
vents the input.
Storage
Type
Words
Display
Type
Sign
Permissible Input Range
Decimal
Unsigned
0 to 9999
1
Decimal
Signed
–999 to 9999
1
Hexadecimal
–
FC19 to FFFF
H
(negative numbers)
0 to 270F
H
(positive numbers)
BCD
Decimal
Unsigned
0 to 99999999
2
Decimal
Signed
–9999999 to 99999999
2
Hexadecimal
–
FF676981 to FFFFFFFF
H
(negative numbers)
0 to 5F5E0FF
H
(positive numbers)
Decimal
Unsigned
0 to 32767
*
1
Decimal
Signed
–32768 to 32767
Binary
Hexadecimal
–
0 to FFFF
H
Binary
Decimal
Unsigned
0 to 2147483647
*
2
Decimal
Signed
–2147483648 to 2147483647
Hexadecimal
–
0 to FFFFFFFF
H
* Note that the values are different from those of the numeral display range. In
numeral display, since negative numbers are displayed as absolute values when
displaying unsigned decimal values, 32768 and 2147483648, which cannot be
input, may be displayed.
Relationship Between Input Numeric Values and Contents of Host Words
When inputting a numeric value to a numeral memory table allocated to a word
at the host, the value is first converted to signed binary in accordance with the
settings for Display Type and Display Sign settings and stored in the numeral
memory table, and then written to the host word in accordance with the Words
and Storage Type settings for the numeral memory table. Therefore the result
electronic components distributor
Summary of Contents for NT21 Series
Page 3: ...iv Downloaded from Elcodis com electronic components distributor...
Page 5: ...vi Downloaded from Elcodis com electronic components distributor...
Page 463: ...Downloaded from Elcodis com electronic components distributor...
Page 465: ...Downloaded from Elcodis com electronic components distributor...