2-12
Section
Inputting Numeric Values
188
Input nu-
meric val-
ue
Display
Type
Sign
Numeric value
stored in nu-
meral memory
table
Words
Storage
Type
Contents
of word at
host
1234
000004D2
H
1 word
1234
123
Un-
i
d
0000007B
H
1 word
0123
1234
signed
000004D2
H
2
words
00001234
1234
Decimal
000004D2
H
1 word
1234
–123
Signed
FFFFFF85
H
(FF85
H
)
1 word
BCD
F123
–1234
g
FFFFFB2E
H
2
words
BCD
F0001234
000004D2
000004D2
H
1 word
1234
FFFFFF85
Hexadeci-
mal
–
FFFFFF85
H
(FF85
H
)
1 word
F123
FFFFFB2E
mal
FFFFFB2E
H
2
words
F0001234
4660
Un
00001234
H
1 word
1234
268430796
Un-
signed
0FFFEDCC
H
2
words
0FFFEDCC
4660
Decimal
00001234
H
1 word
1234
–32768
Decimal
Signed
FFFF8000
H
(8000
H
)*
1 word
8000
–26843079
6
g
F0001234
H
2
words
Binary
F0001234
1234
00001234
H
1 word
1234
F123
Hexadeci-
mal
–
FFFFF123
H
(F123
H
)*
1 word
F123
F0001234
mal
F0001234
H
2
words
F0001234
* The figures in parentheses are the values immediately after input. When data is
read from the host after input, it is converted to a 32-bit negative number and the
value in the numeral memory table changes.
Reference:
When the Storage Type is BCD, the numeral memory table’s signed binary data
is converted to data for storage in the host word (BCD data) and written to the
host. If the value is negative the most significant digit in the word is set as F. This
means that the maximum number of digits for a negative number (integer part +
decimal fraction part) is seven.
When the Storage Type is Binary, the contents of the numeral memory table are
written without alteration to the host word.
However, when a negative number is written to a numeral memory table whose
number of allocated words at the host is one, it is stored immediately after input
as a 16-bit negative number.
The data is stored in the numeral memory table as a 32-bit negative number in
this case as well.
Upper/Lower (Max./Min.) Limit Check
The PT has a function to check the correctness of an input numeric value to pre-
vent a numeric value outside the allowable range from being input so that the
input of an illegal value will not adversely affect the system.
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...