Changing Displayed Numerals Or Character Strings - Omron NT20S-ST121B-EV3 User Manual

Programmable terminal
Table of Contents

Advertisement

Memory Tables and Bar Graphs
5-2-2

Changing Displayed Numerals or Character Strings

(Changing the Contents of Allocated Words ... Direct
Specification)
182
Numeral Memory Table Display Examples
• When the Data Is Numeral Data (0 to 9)
Start
3
4
5
6
Start + 1
F
0
1
2
• When the Data Contains Characters (A to F)
Start
3
B
5
6
Start + 1
F
0
1
2
If the hexadecimal data (A to F) are stored when the decimal display has been
set, the alphabets are displayed.
If the number of display digits has been set to be smaller than the maximum
number of digits of the registration words (4 digits for 1 word; 8 digits for 2
words), the contents of the allocated words are not displayed and "
will be displayed at all digits.
If the most significant digit is "F" when "decimal with signs" has been set, the
numeral is handled as a negative number. The maximum number of digits of
the negative number becomes smaller than that of the positive number by 1
digit.
The actual display will vary according to the "zero suppress" setting and deci-
mal fraction setting as well as the contents described above. Refer to the "NT
Support Tool for Windows Operation Manual" (Cat. No. V061-E1-@).
• Contents of the Character-string Memory Table
A character string is stored in the allocated words beginning with the first
word in normal-size characters.
Two normal-size characters are stored in one word. One memory table en-
try can store up to 16 words (32 characters).
Start
Start + 1
Code 1
Code 2
Code 3
Character-string Memory Table Display Example
To display the characters in order, allocate the characters as follows:
"A"=41H, "B"=42H Start
"C"=43H, "D"=44H Start + 1
"E"=45H, "F"=46H Start + 2
"G"=47H, "G"=48H Start + 3
The following explains the actual procedure for changing the contents of allo-
cated words referenced by direct specification in order to change numerical
values and character strings displayed by the NT20.
For the situation when using indirect specification, refer to 5-2-3 Changing
Displayed Numerical Values or Character Strings (Changing the Contents of
Allocated Words ... Indirect Specification) on page 184.
Numerals and character strings can be changed also by making a copy of the
memory table entries. Refer to "Copying Memory Table Entries," below.
Decimal without sign 123456
Decimal with sign
Hexadecimal
Decimal without sign 123B56
Decimal with sign
Hexadecimal
Code 4
4
1
4
2
4
3
4
4
4
5
4
6
4
7
4
8
Section 5-2
−123456
F0123456
−123B56
F0123B56
*
" symbols
Start + 15
Code31 Code32
"ABCDEFGH"

Advertisement

Table of Contents
loading

This manual is also suitable for:

Nt20Nt series

Table of Contents