![background image](http://html.mh-extra.com/html/omron/nt20/nt20_user-manual_744538205.webp)
184
Memory Tables and Bar Graphs
Section 5-2
Create a PLC ladder program as follows:
• Program Operation
1,2,3...
1.
The contents of word DM0000 are incremented by 1 each second. The val-
ue displayed on the NT20 in numeral memory table entry #1 increases by
1 each second.
2.
When the counter in (1) above causes an increase in the most significant
digits, the contents of word DM0001 are incremented by 1 each second.
The value displayed on the NT20 in numeral memory table entry #1 most
significant digits increases by 1.
3.
When bit 00001 turns ON, the contents of DM0002 are incremented by 1.
The value displayed on the NT20 in numeral memory table entry #2 in-
creases by 1.
5-2-3
Changing Displayed Numerical Values or Character Strings
(Changing the Contents of Allocated Words ... Indirect
Specification)
The following explains how to change numerical values or character strings
displayed by the NT20 by changing the contents of the referenced allocated
words using indirect specification.
If using direct specification, refer to
5-2-2 Changing Displayed Numerals or
Character Strings (Changing the Contents of Allocated Words ... Direct Spec-
ification)
on page 182.
Numerical values and character strings can also be changed by making a
copy of the memory table entries. Refer to
5-2-4 Copying Memory Table
Entries
on page 186.
In indirect specification, a numeral memory table entry is specified to display a
numerical value or character string. The numerical value stored in this
numeral memory table entry (“39” in the figure below) is taken as the number
of the memory table entry whose contents are to be displayed.
Either of the following two methods can be used to change the display when
indirect specification is used:
1,2,3...
1.
Changing the number for the memory table entry whose contents are to be
displayed. (In the example in the figure below, this would mean changing
the contents of numeral memory table entry 41.)
2.
Changing the contents of the memory table entry used for display
(In the example in the figure below, this would mean changing the contents
of character string memory table entry 39.)
INC(38)
DM0000
00100
INC(38)
DM0001
(1)
Word for least significant 4 digits of #1
@INC(38)
DM0002
(2)
Word for most significant 4 digits of #1
(3)
Word for #2
25506 (=)
00001
DIFU(13)
00100
25502 (1 second clock)
Summary of Contents for NT20
Page 1: ...Programmable Terminal Cat No V091 E1 01 NT20 USER S MANUAL ...
Page 2: ...NT series Programmable Terminal User s Manual Produced March 2007 ...
Page 3: ...iv ...
Page 5: ...vi ...
Page 9: ...x TABLE OF CONTENTS ...
Page 15: ...xvi ...
Page 21: ...xxii EC Directives 6 ...
Page 37: ...16 Before Operating Section 1 6 ...
Page 153: ...132 Transferring the Resource Data Section 3 11 ...
Page 185: ...164 Numeral Setting Section 4 8 ...
Page 267: ...246 Key to Programs Section 6 8 ...
Page 281: ...260 Specifications Appendix A ...
Page 285: ...264 Transporting and Storing PTs Appendix C ...
Page 303: ...282 Function Restrictions Depending on the Support Tool Appendix I ...
Page 307: ...286 Index ...
Page 309: ...288 Revision History ...