Omron NT631 Series Reference Manual page 195

Programmable terminals
Hide thumbs Also See for NT631 Series:
Table of Contents

Advertisement

Inputting Numeric Values
186
Downloaded from
Elcodis.com
electronic components distributor
Note that if the number of digits of the numeric value is greater than the total of
the settings for Integer and Decimal, an error occurs and ∗ is displayed for all the
digits.
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: ∗∗∗∗∗∗
For hexadecimal display, only the number of digits of the integral part is speci-
fied.
Input Numeric Value and Stored Data
The range of numeric values that can be input and the conversion method for
storage depend on the following settings.
• Display Type (Decimal/Hexadecimal)
• Display Sign (whether or not negative values are displayed)
Conversion Depending on Display Type
The data is converted for storage in a numeral memory table as follows depend-
ing on the setting for Display Type.
• Decimal:
The numeric value input in decimal is converted to signed binary data and
stored in the numeral memory table.
• Hexadecimal:
The numeric value input in hexadecimal is stored in the numeral memory
table without alteration.
When the word allocated in the host is input to a 1-word memory table, the
input 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 sig-
nificant 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.)
Section
2-12

Advertisement

Table of Contents
loading

This manual is also suitable for:

Nt31 seriesNt21 seriesNt31c seriesNt631c series

Table of Contents