Omron NT31 Operation Manuals page 374

Programmable terminal
Hide thumbs Also See for NT31:
Table of Contents

Advertisement

Numeral Display
Reference: Data is stored in the numeral memory table as signed data with a data length of 4
[Display Functions]
<Relationship between contents of host words and displayed numeric value>
When displaying the contents of a numeral memory table allocated to a word at
the host, the contents of the word are first converted to the format for storage in
the numeral memory table (signed hexadecimal), and then converted again in
accordance with the settings for "Display Type" and "Display Sign" settings in
order to display them. Therefore the result also differs according to the settings
made for "Words" and "Storage Type".
An example is given below.
Contents of
"Storage
word at host
Type"
1234
F123
F0001234
1234
F123
BCD
F0001234
1234
F123
F0001234
1234
F123
F0001234
1234
F123
Binary
Binary
F0001234
1234
F123
F0001234
bytes.
If the setting for "Storage Type" is "BCD", the contents of the host word(s) (BCD
data) are converted to signed binary (hexadecimal) data and then stored in the
numeral memory table. If the most significant digit in the word contents is "F", it is
regarded as a negative value. If the BCD data is not correct, it is not read out and
the existing value is retained.
If the setting for "Storage Type" is "Binary", the contents of the host word(s) are
stored in the numeral memory table without alteration. However, if a negative val-
ue is written when the number of allocated host words is 1, the number of bits is
increased to accommodate 2-word signed data before storage (refer to the exam-
ple of "F123" above).
When the numeric value for display is designated as unsigned, it is displayed as
an absolute value.
In numeral display, the numeric values are displayed in accordance with the "Gen-
eral" settings.
Numeric value
stored in
"Words"
numeral
memory table
000004D2
H
1
FFFFFF85
H
2
FFFFFB2E
H
000004D2
H
1
FFFFFF85
H
2
FFFFFB2E
H
000004D2
H
1
FFFFFF85
H
2
FFFFFB2E
H
00001234
H
1
FFFFF123
H
2
F0001234
H
00001234
H
1
FFFFF123
H
2
F0001234
H
00001234
H
1
FFFFF123
H
2
F0001234
H
Section 7-8
"Display
Sign
Type"
Unsigned
Decimal
Signed
Hexadecimal
Unsigned
Decimal
Signed
Hexadecimal
Displayed
numeric value
1234
123
1234
1234
−123
−1234
4D2
FF85
FFFFFB2E
4600
3805
268430796
4660
−3805
−268430796
1234
F123
F0001234
363

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Nt31c

Table of Contents