Omron NT21 Reference Manual page 162

Programmable terminals
Hide thumbs Also See for NT21:
Table of Contents

Advertisement

Numeral Display
Reference: Data is stored in the numeral memory table entry as signed data with a data
Display Functions
Input Functions
Output Functions
Processing Functions
146
An example is given below.
Contents
Storage
of word at
Words
Type
host
1234
F123
F0001234
1234
F123
BCD
F0001234
1234
F123
F0001234
1234
F123
F0001234
1234
F123
Binary
Binary
F0001234
1234
F123
F0001234
length of 4 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 entry. 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 entry without alteration. However, if a nega-
tive value 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 example 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
General settings.
For details on the method of display depending on the General settings, refer to
Common Attributes (page 141).
Numeral displays have no input function.
Numeral displays have no output function.
With numeral displays, the contents of numeral memory table entries are con-
verted to displayed numeric values in accordance with the General settings.
For details on the method of conversion depending on the General settings, re-
fer to Common Attributes (page 141).
Numeric val-
Display
ue stored in
Type
numeral
memory table
000004D2
H
1
1
FFFFFF85
H
2
FFFFFB2E
H
Decimal
Decimal
000004D2
H
1
1
FFFFFF85
H
2
FFFFFB2E
H
000004D2
H
1
1
Hexadeci
H
FFFFFF85
H
mal
mal
2
FFFFFB2E
H
00001234
H
1
1
FFFFF123
H
2
F0001234
H
Decimal
Decimal
00001234
H
1
1
FFFFF123
H
2
F0001234
H
00001234
H
1
1
Hexadeci
H
FFFFF123
H
mal
mal
2
F0001234
H
Section
2-8
Displayed
Sign
numeric val-
ue
1234
Unsigned
g
123
1234
1234
Signed
g
–123
–1234
4D2
d
i
FF85
FFFFFB2E
4600
Unsigned
g
3805
268430796
4660
Signed
g
–3805
–268430796
1234
d
i
F123
F0001234

Advertisement

Table of Contents
loading

This manual is also suitable for:

Nt631Nt31 seriesNt21 seriesNt631 series

Table of Contents