Changing Displayed Numerical Values Or Character Strings (Changing The Contents Of Allocated Words - Omron NT20S-ST121B-EV3 User Manual

Programmable terminal
Table of Contents

Advertisement

Memory Tables and Bar Graphs
1,2,3...
5-2-3
Changing Displayed Numerical Values or Character Strings
(Changing the Contents of Allocated Words ... Indirect
Specification)
1,2,3...
184
Create a PLC ladder program as follows:
25502 (1 second clock)
00100
25506 (=)
00001
• Program Operation
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.
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. 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.)
DIFU(13)
00100
INC(38)
DM0000
Word for least significant 4 digits of #1
INC(38)
DM0001
Word for most significant 4 digits of #1
@INC(38)
DM0002
Word for #2
Section 5-2
(1)
(2)
(3)

Advertisement

Table of Contents
loading

This manual is also suitable for:

Nt20Nt series

Table of Contents