2-12
Section
Inputting Numeric Values
186
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.)
electronic components distributor
Содержание NT21 Series
Страница 3: ...iv Downloaded from Elcodis com electronic components distributor...
Страница 5: ...vi Downloaded from Elcodis com electronic components distributor...
Страница 367: ...3 12 Section Enabling Disabling PT Operations 358 Downloaded from Elcodis com electronic components distributor...
Страница 399: ...4 4 Section Memory Link Online Transfer Function 390 Downloaded from Elcodis com electronic components distributor...
Страница 431: ...6 2 Section Responding to Displayed Error Messages 422 Downloaded from Elcodis com electronic components distributor...
Страница 463: ...Downloaded from Elcodis com electronic components distributor...
Страница 465: ...Downloaded from Elcodis com electronic components distributor...