![background image](http://html.mh-extra.com/html/omron/nt20s/nt20s_operation-manual_744540188.webp)
169
Memory Tables and Bar Graphs
Section 5-2
5-2-2
Changing Displayed Numerals or Character Strings
(Changing the Contents of Allocated Words ... Direct Specifica-
tion)
The following explains the actual procedure for changing the contents of allocated
words referenced by direct specification in order to change numerical values and
character strings displayed by the NT20S.
For the situation when using indirect specification, see “Changing Displayed Nu-
merals Values or Character Strings (Changing the Contents of Allocated Words ...
Indirect Specification)” (page 171).
Numerals and character strings can be changed also by making a copy of the
memory tables. Refer to “Copying the memory table” explained later.
To change the numerals or character strings displayed on the NT20S, make
changes with the numeral or character-string memory table. To make changes
with the numeral or character-string memory table of the NT20S, change the con-
tents of words by the PC.
Allocated word (character-string memory table)
NT20S
PC
Numeral table 1
Character-string
memory table 4
Start
Start+1
Start
Start+1
Start+2
Allocated word
(numeral table)
12345678
abcdef
abcdef
12345678
61 62 63 64
65 66
(“a b c d e f”)
Reference: This method is convenient when changing data has to be displayed: for example
when monitoring the contents of PC words.
Procedure
1. Use the support tool to allocate the numeral and character-string memory
tables to the PC memory.
2. Register the memory tables for the numerals and character strings to be dis-
played when creating the screen data by using the support tool. Specify “di-
rect” as the reference method.
To display a character string, use “character display” and specify the charac-
ter-string memory table by using the support tool.
To display numerals, use “numeral display” and specify the numeral memory
table by using the support tool.
3. Create a PC program to write the contents of numerals and character strings
to be displayed on the NT20S to the PC words.
S
Important points when writing a character string
If a character string to be written is smaller than “allocated word x 2”, fill up the
vacant space with normal-size spaces (20H). If unnecessary characters are left
in the area, the character string will not be displayed correctly.
Содержание NT20S
Страница 1: ...Cat No V020 E1 04 NT20S Programmable Terminal OPERATION MANUAL ...
Страница 2: ...i ...
Страница 3: ...ii ...
Страница 4: ...iii NT series Programmable Terminal Operation Manual Revised August 1997 ...
Страница 5: ...iv ...
Страница 7: ...vi ...
Страница 11: ...x ...
Страница 19: ...xviii ...
Страница 129: ...110 ...
Страница 169: ...150 ...
Страница 253: ...234 ...