5-2 Memory Tables and Bar Graphs. Omron NT 600M-LB122-V1, NT 20M-DT121-V2, NT 20-IF001, NT 20-ST128, NT 20, NT 20M, NT 20-ST122-V1, NT 20-ST121-EV3, NT 20-ST121-E, NT 20S
Below you will find brief information for Programmable Terminal NT NT20, Programmable Terminal NT NT20S, Programmable Terminal NT NT20M. The NT20 is a programmable terminal used to display and transmit information in an FA site. It can be easily installed and used. NT20, NT20S and NT20M support features and functionality to display, receive data from a host and send data to a host. It also gives the operation examples and characteristics of the NT20.
Advertisement
Advertisement
Memory Tables and Bar Graphs
Section 5-2
5-2 Memory Tables and Bar Graphs
Displaying and Referencing Character String Memory Table Contents
Since the character-string memory table entries can be allocated to the words in the PLC, the PLC can write data to the character-string memory table entries or the initial values can be set when creating the screen data.
Automatic updating is performed to ensure that the currently displayed NT20 character string memory table contents and PLC word contents always match each other.
There are two methods for referencing character string memory table entries used for character string display, as follows:
• Direct specification
• Indirect specification
• Direct Specification
Direct specification is a method of specification in which the contents of displayed memory table entries are directly correlated with the contents of the allocated words.
NT20
a b c d
PLC
Direct specification
Allocated words
Character string memory table entry 51
(character string memory table entry 51)
DM0100 a b c d 6 1 6 2
6 3 6 4
• Indirect Specification (Direct Connection Only)
In indirect specification, even if the displayed data is a character string, the display is correlated with a numeral memory table entry. The contents (numerical value) of this numeral memory table entry are regarded as a character string memory table entry number and the contents of the table entry with this number is displayed.
Up to 50 numeral displays and 50 character string displays can be specified on one screen by using indirect specification.
NT20 PLC
a b c d
Indirect specification
Numeral memory
Allocated word (numeral memory table entry 20) table entry 20
DM0000
0 0 5 1 0 0 5 1
Character string memory table entry 51
Allocated words (character string table entry 51)
DM0100 a b c d 6 1 6 2
6 3 6 4
This specification method is a little complex, but it allows the display to be changed more easily according to the circumstances. In the example above, if
1 were added to the contents of memory table entry 20 to give 52, the contents of memory table entry 52 would be displayed instead.
The memory table entries used for display can also be allocated to areas in the PLC, so that the display can also be changed in response to changes in the data to be displayed (i.e., the contents of character string memory table entry 51 in the example above).
However, in comparison with direct specification, indirect specification requires more time for processing.
177
Memory Tables and Bar Graphs
Section 5-2
A
L
Setting the Words of the Character-String Memory Table
When creating the screen data by using the Support Tool, make the following settings for each numbered character string:
• Initialization Setting
Set whether or not the PLC words are initialized with the character-string memory table initial value registered to the screen data memory when the main power supply is turned ON or reset.
• Number of Registration Words
Set the number of words within 16 words required for registering the character-string data. One word can store two normal-size characters.
• Setting the Words for the Character-string Memory Table Entries
The character-string memory table entries can be allocated to the following
PLC words. Set the word type and the first word.
Symbol C-series
None
H
T
TU
C
CU
W
IR Area
HR Area
AR Area
LR Area
TC Area
Timer PVs
---
TC Area
Counter PVs
---
---
TK ---
D
E
DM Area
EM Area
(See note 2.)
E0_to EC_ ---
Allocation
❍
❍
CVM1/CV -series
CIO Area
---
❍
❍
×
---
×
---
---
---
❍
❍
---
AR Area
---
TC Area
Timer PVs
---
TC Area
Counter PVs
---
---
---
DM Area
EM Area
Current bank
---
Allocation
❍
---
×
---
×
---
×
---
---
---
❍
Not for
Host Link
---
CS/CJ-series
CIO Area
HR Area
AR Area
LR Area (See note 1.)
TC Area
Timer PVs
TC area,
Timer Completion Flags
TC Area
Counter PVs
TC area,
Counter Completion Flags
WR
Task Flags
DM Area
EM Area
Current bank
EM Area
EM bank 0 to C
Allocation
❍
Not for
Host Link
❍
Not for
Host Link
×
×
×
×
Not for
Host Link
×
❍
Not for
Host Link
Not for
Host Link
❍: OK ×: NG
Since the AR area bits of the CVM1/CV-series PLCs are allocated to the system, they cannot be used for purposes other than the system use.
If the “number of registration words x 2” (“word setting window”) set with the
Support Tool is larger than the “number of character digits” (“character-string display setting” window), the character string may be broken halfway.
Note
(1) LR 00000 to LR 00199 are converted to CIO 01000 to CIO 01199.
(2) The EM Area is supported only by the C200HX/HG/HE-(Z)E PLCs.
Displaying and Referencing Numeral Memory Table Contents
Since the numeral memory table entries can be allocated to the words in the
PLC, the PLC can write data to the numeral memory table entries or the initial values can be set when creating the screen data.
178
Memory Tables and Bar Graphs
Note
Section 5-2
Also, by relating the numeral memory table entries with the bar graphs, the bar graphs corresponding to the data of the numeral memory table entries can be displayed.
During the operation, the display contents are automatically updated so that the contents of the numeral memory table entry being displayed are the same as that of the PLC word.
There are two methods for referencing numeral memory table entries used for numeral displays, as follows:
• Direct specification
• Indirect specification
The only method available for numeral memory table entries used for graphs and numeral settings is direct specification.
• Direct Specification
Direct specification is a method of specification in which the contents of displayed memory table entries are directly correlated with the contents of the allocated words.
0 0 6 2
NT20
Direct specification
Character string memory table entry 18
0 0 6 2
PLC
Allocated word
(character string memory table entry 18)
DM0100
0 0 6 2
• Indirect Specification
NT20
7 7 7 7
Indirect specification
PLC
Numeral memory table entry 18
0 0 6 2
Allocated word
(numeral memory table entry 18)
0
DM0100
0 6 2
Character string memory table entry 62
7 7 7 7
Allocated word (character string table entry 62)
DM0200
7 7 7 7
With indirect specification, the contents (numerical value) of the specified numeral memory table entry are regarded as a memory table entry number and the contents of the table entry with this number is displayed.
Up to 50 numeral displays and 50 character string displays can be specified on one screen by using indirect specification.
This specification method is a little complex, but it allows the display to be changed more easily according to the circumstances. In the example above, if one were added to the contents of memory table entry 18 to give
63, the contents of memory table entry 63 would be displayed instead.
The memory table entries used for display can also be allocated to areas in the PLC, so that the display can also be changed in response to changes in the data to be displayed (i.e., the contents of character string memory table entry 62 in the example above). However, in comparison with direct specification, indirect specification requires more time for processing.
Setting the Words of the Numeral Memory Table
When creating the screen data by using the Support Tool, make the following settings for each numbered numeral:
179
Memory Tables and Bar Graphs
Section 5-2
A
L
None
H
T
TU
C
CU
W
Symbol C-series
IR Area
HR Area
AR Area
LR Area
TC Area
Timer PVs
---
TC Area
Counter PVs
---
---
TK
D
---
DM Area
E EM Area
(See note 2.)
E0_to EC_ ---
Note
• Initialization Setting
Set whether or not the PLC words are initialized with the numeral memory table initial value registered to the screen data memory when the main power supply is turned ON or reset.
• Number of Registration Words
Set the number of words within 2 words required for registering the numeral data. One word can store up to 4 digits. Two words can store up to 8 digits.
• Setting the Words for the Numeral Memory Table
The numeral memory table entries can be allocated to the following PLC words. Set the word type and the first word.
Allocation
❍
❍
CVM1/CV -series
CIO Area
---
❍
❍
---
---
---
---
❍
❍
---
AR Area
---
TC Area
Timer PVs
---
TC Area
Counter PVs
---
---
---
DM Area
EM Area
Current bank
---
Allocation
❍
---
×
---
CS/CJ-series
CIO Area
HR Area
AR Area
LR Area (See note 1.)
Allocation
❍
Not for
Host Link
❍
Not for
Host Link
---
Not for
Host Link
---
---
TC Area
Timer PVs
TC area,
Timer Completion Flags
TC Area
Counter PVs
TC area,
Counter Completion Flags
WR
---
❍
Not for
Host Link
---
Task Flags
DM Area
EM Area
Current bank
EM Area
EM bank 0 to C
×
×
Not for
Host Link
×
❍
Not for
Host Link
Not for
Host Link
❍: OK
: 1 word only
×: NG
Since the AR area bits of the CVM1/CV series PLCs are allocated to the system, they cannot be used for purposes other than the system use.
(1) LR 00000 to LR 00199 are converted to CIO 01000 to CIO 01199.
(2) The EM Area is supported only by C200HX/HG/HE-(Z)E PLCs.
5-2-1 Displaying the Contents of Allocated Words of Memory Table
Entries
The relationship between the contents of the allocated words of numeral and character string memory table entries and the display is described below.
• Contents of the Numeral Memory Table
Numerals are stored in the allocated words as shown below.
180
Memory Tables and Bar Graphs
Stored as a Single Word
15 to 12
Digit 4
11 to 8
Digit 3
7 to 4
Digit 2
Section 5-2
3 to 0
Digit 1
Bit
Example: 1234
15 to 12
1
11 to 8
2
7 to 4
3
3 to 0
4
Bit
Stored as a Double Word
Word
Start
Start+ 1
15 to 12
Digit 4
Digit 8
11 to 8
Digit 3
Digit 7
7 to 4
Digit 2
Digit 6
3 to 0
Digit 1
Digit 5
Bit
Example: 12345678
Word
Start
Start+ 1
15 to 12
5
1
11 to 8
6
2
7 to 4
7
3
3 to 0
8
4
Bit
• Displaying a Numeral Memory Table Entry
Numerals can be displayed in three different ways according to the contents of the numeral memory table, as described below.
The most significant digit (digit 4 of a single word or digit 8 of a double word) is processed in different ways.
Hexadecimal display:
Decimal display without signs: If the most significant digit is “F”, it is handled as “0”, and the most significant digit other than “F” and other digits are handled as stored in the allocated words.
Decimal display with signs:
All digits are handled as stored in the allocated words.
If the most significant digit is “F”, it is handled as “–” (minus sign), and the most significant digit other than “F” and other digits are handled as stored in the allocated words.
181
Memory Tables and Bar Graphs
Section 5-2
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
Decimal without sign 123456
Decimal with sign
−123456
Hexadecimal F0123456
• When the Data Contains Characters (A to F)
Start
3 B 5 6
Start + 1
F 0 1 2
Decimal without sign 123B56
Decimal with sign
−123B56
Hexadecimal F0123B56
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 “
*
” symbols 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 decimal 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 entry can store up to 16 words (32 characters).
Start Start + 1
Code 1 Code 2 Code 3 Code 4
Start + 15
Code31 Code32
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
4 1 4 2
4 3 4 4
4 5 4 6
4 7 4 8
"ABCDEFGH"
5-2-2 Changing Displayed Numerals or Character Strings
(Changing the Contents of Allocated Words ... Direct
Specification)
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 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.
182
Memory Tables and Bar Graphs
Section 5-2
To change the numerals or character strings displayed on the NT20, make changes with the numeral or character-string memory table. To make changes with the numeral or character-string memory table of the NT20, change the contents of words by the PLC.
12345678 abcdef
NT20
PLC
Numeral table entry 1
12345678 abcdef
Character-string memory table entry 4
Allocated words
(numeral table entry)
Start
Start+1
Start
Start+1
Start+2
12345678
Allocated words (character-string memory table entry)
61 62 63 64 65 66
("a b c d e f")
Note
This method is convenient when changing data has to be displayed: for example when monitoring the contents of PLC words.
1,2,3...
1.
Use the Support Tool to allocate the numeral and character-string memory table entries to the PLC memory.
2.
Register the memory table entries for the numerals and character strings to be displayed when creating the screen data by using the Support Tool.
Specify “direct” as the reference method.
To display a character string, use “character display” and specify the character-string memory table entry by using the Support Tool.
To display numerals, use “numeral display” and specify the numeral memory table entry by using the Support Tool.
3.
Create a PLC program to write the contents of numerals and character strings to be displayed on the NT20 to the PLC words.
• 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.
Application Example of the Numeral Memory Table Entries Allocated to the PLC Words
This example gives the procedure to directly display the contents of the words allocated as the numeral memory table entries in the PLC memory. The NT20 screen display will change as the contents of the PLC word change.
• Support Tool Settings
Allocate the memory as shown below by using the Support Tool.
Numeral memory table entry #1: DM0000 (allocated words: 2 words)
Numeral memory table entry #2: DM0002 (allocated words: 1 word)
Screen numbers to be created:#1 and #2
Line 1
Numeral memory table entry #1
(8-digit input)
Qty. 15289 units
Defects 23 units
Numeral memory table entry #2
(4-digit input)
• PLC Ladder Program
183
Memory Tables and Bar Graphs
Section 5-2
1,2,3...
Create a PLC ladder program as follows:
25502 (1 second clock)
DIFU(13)
00100
00100
INC(38)
DM0000
(1)
Word for least significant 4 digits of #1
25506 (=)
INC(38)
DM0001
(2)
Word for most significant 4 digits of #1
00001
@INC(38)
DM0002
Word for #2
(3)
• Program Operation
1.
The contents of word DM0000 are incremented by 1 each second. The value 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 increases 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-
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
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.)
184
Memory Tables and Bar Graphs
Section 5-2
Here, the method for changing the display using method 1) is explained. For details on method 2), refer to the explanations on direct specification on
page 182 and 5-2-4 Copying Memory Table Entries on page 186.
NT20 PLC
AaBb
Indirect numeral memory table entry 41
0039
Allocated word (numeral memory table entry 41)
0 0 3 9
0039
Character string memory table entry 39
AaBb
Character string memory table entry 40
Moji
Note
This method is convenient when switching the display at the same location, for example when monitoring a series of words, or when using unique codes to specify individual character strings, etc.
1,2,3...
1.
Set the PLC area for allocation of the numeral memory table entry to be referenced in indirect specification using the Support Tool.
2.
When using the Support Tool to create screen data, register on the screen the numeral memory table entry referenced in indirect specification. Specify the “indirect” option for the reference method.
In the case of a character string, use the “character display” function of the
Support Tool to specify the numeral memory table entry.
In the case of a numerical value, use the “numeral display” function of the
Support Tool to specify the numeral memory table entry.
3.
Use the “table edit” function of the Support Tool to write the actually displayed data to the memory table entry for display. If displaying a numerical value, use a numeral memory table entry and if displaying a character string use a character string memory table entry.
4.
Create a PLC program to change the contents of the word allocated to the numeral memory table referenced in the indirect specification.
• Precautions on Writing Memory Table Entry Numbers
When writing the number of the memory table for display to the numeral memory table entry referenced in indirect specification, always specify it in
BCD. Also, be sure to specify a number within the range of memory table entry numbers that actually exist (0 to 127).
If the contents of the numeral memory table entry for indirect specification are specified in hexadecimal format, or the number specified is outside the valid range for memory table entry numbers, the display is not updated.
• Precautions on Writing Character Strings
The points to note when displaying character strings are the same as those described for direct specification. Refer to Important points when writing a
character string to page 149.
Example Use of Indirect Specification
This example shows a case where the displayed character string is changed by incrementing the contents of the allocated word of the numeral memory table entry referenced in indirect specification.
• Settings with the Support Tool
Make the following settings with the Support Tool.
185
Memory Tables and Bar Graphs
Section 5-2
Numeral memory table entry number 51: DM 0000 (number of registered words: 1)
Character string memory table entry number 100: “NT610G” (6 digits)
Character string memory table entry number 101: “NT610C” (6 digits)
Character string memory table entry number 102: “NT20 ” (6 digits)
Character string memory table entry number 103: “NT600S” (6 digits)
Data registered for the screen: numeral memory table entry number 51.
Line 1
Product
NT20
1,2,3...
Numeral memory table number 51 specified in indirect specification of character string display
• PLC Program
Create the PLC ladder program as follows:
00100
@INC(38)
DM0000
(1)
Numeral memory table number used in indirect specification
00101
@DEC(39)
DM0000
(2)
Numeral memory table number used in indirect specification
• Program Operation
1.
Each time bit 00100 comes ON, the display on the NT20 screen changes according to one of the steps in the following sequence: “NT610G”
→
“NT610C”
→ “NT20” → “NT600S”.
2.
Each time bit 00101 comes ON, the display on the NT20 screen makes changes according to one of the steps in the following sequence:
“NT600S”
→ “NT20” → “NT610C” → “NT610G”.
In this example, the contents of numeral memory table entry number 51 referenced in indirect specification are not checked. Make sure that the contents of numeral memory table entry number 51 stay within the range of 0100 to 0103 when the program is actually used.
5-2-4 Copying Memory Table Entries
The following describes the procedure to change displayed numerals or character strings by copying the contents of a memory table entry.
Numerals and character strings can be changed also by changing the con-
tents of the allocated words. Refer to 5-2-2 Changing Displayed Numerals or
Character Strings (Changing the Contents of Allocated Words ... Direct Spec-
ification) on page 182 explained before.
To change the numerals or character strings displayed on the NT20, copy the data between the numeral or character-string memory table entries by using the “copy memory table setting” of the PT status control area.
186
Memory Tables and Bar Graphs
Section 5-2
Symbol
None
H
C-series
IR Area
HR Area
A
L
T
TU
C
AR Area
LR Area
CU
W
TC Area
Timer PVs
---
TC Area
Counter PVs
---
---
TK
D
---
DM Area
E EM Area
(See note 2.)
E0_to EC_ ---
Note
A
NT20
Memory table copy source
A
A
Copy destination
(for display)
PLC
PT status control area
Screen switch setting
Copy memory table setting
PT status control setting
Copy source number
Copy destination number
Write a memory table entry number to the copy memory table setting area in the PT status control area in the PLC memory. Data will be copied between the memory table entries in the NT20 and the displayed value will change accordingly.
This procedure is convenient to switch predetermined values or character strings according to the situation. By preparing several units of contents, various contents can be displayed by switching them to suit the situation.
Copy Memory Table Settings of the PT Status Control Area
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 Bit
Word n+1
0
Copy type
Copy source memory table entry # (3-digit BCD)
Copy memory table settings n+2
Copy destination memory table entry # (3-digit BCD)
Copy type:
0: Copy between the character-string memory table entries
1: Copy between the numeral memory table entries
Copy source and destination memory table entry numbers: 000 to 127
• Available Allocation Words
The PT status control area can be allocated to the following PLC areas:
Allocation
❍
❍
CVM1/CV -series
CIO Area
---
❍
❍
×
---
×
---
---
---
❍
❍
---
AR Area
---
TC Area
Timer PVs
---
TC Area
Counter PVs
---
---
---
DM Area
EM Area
Current bank
---
Allocation
❍
---
×
---
×
---
×
---
---
CS/CJ-series
CIO Area
HR Area
AR Area
LR Area (See note 1.)
---
❍
Not for
Host Link
---
Task Flags
DM Area
EM Area
Current bank
EM Area
EM bank 0 to C
Allocation
❍
Not for
Host Link
❍
Not for
Host Link
×
TC Area
Timer PVs
TC area,
Timer Completion Flags
TC Area
Counter PVs
TC area,
Counter Completion Flags
WR
×
×
×
Not for
Host Link
×
❍
Not for
Host Link
Not for
Host Link
❍: OK ×: NG
187
Memory Tables and Bar Graphs
Section 5-2
Note
Since the AR area bits of the CVM1/CV series PLCs are allocated to the system, they cannot be used for purposes other than the system use.
(1) LR 00000 to LR 00199 are converted to CIO 01000 to CIO 01199.
(2) The EM Area is supported only by the C200HX/HG/HE-(Z)E PLCs.
1,2,3...
1.
Use the Support Tool to allocate the PT status control area (PLC to PT) to the PLC memory.
2.
Register the memory table entries for the numerals and character strings to be displayed when creating the screen data by using the Support Tool.
To display a character string, use “character display” and specify the character-string memory table entry by using the Support Tool.
To display numerals, use “numeral display” and specify the numeral memory table entry by using the Support Tool.
3.
Set the copy source data to the memory table entry when creating the screen data by using the Support Tool.
Use “table edit”.
4.
Create a PLC program to write the copy type, copy destination memory table entry number, and copy source memory table entry number to the
“copy memory table entry” setting word in the PT status control area.
• Order for Writing to the PT Status Control Area (PLC to PT)
First write the “copy destination memory table entry number”, and then, write the “copy source memory table entry number” to the PT status control area (PLC to PT).
The NT20 reads the area sometimes when the PLC is writing the settings.
If the “copy source memory table entry number” has been written first and is changed, unexpected memory table entries may possibly be changed.
• Allocated Words That the NT20 Reads
The NT20 reads the allocated words in the PLC for the memory table entries which need to be displayed. Even when a copy source memory table entry is allocated to a PLC word, if its contents are never displayed it will be used only at initialization.
• Use of the Copy Type
Copy will not be executed when the “copy type” is other than “0” or “1”. The memory table entry copy is executed only when the contents of the area are changed. To repeat copying of the same copy source and same copy destination, write a value other than “0” or “1” for the copy type, and then, write a correct value again.
• Copying a Numeral Memory Table Entry
If the display method or the number of registered words include discrepancies, a numeral memory table entry may not be copied and displayed correctly.
Application Example of Copying of a Character-String Memory Table Entry
This example gives a PLC program to switch the character string display on the screen by using the memory table entry copy operation as the allocated bit is turned ON and OFF.
• Support Tool Settings
Allocate the memory as shown below by using the Support Tool.
PT status control area allocation: Word 0100
188
Memory Tables and Bar Graphs
Section 5-2
Contents registered to the screen: Character-string memory table entry #4
Line 1
Normal
Character-string memory table entry #4
Character-string memory table settings
#
4
10
11
Contents
Normal
Error
Normal
Number of
Character Digits
6 digits
6 digits
6 digits
• PLC Ladder Program
Create a PLC ladder program as follows:
09000
@MOV(21)
#0004
102
(1)
Copy type, copy destination memory table entry #
Copy destination word
Error flag
09000
@MOV(21)
#0010
101
@MOV(21)
#0004
102
Copy source memory table entry #
Copy source word
(2)
Copy type, copy destination memory table entry #
Copy destination word
Error flag @MOV(21)
#0011
101
• Program Operation
1,2,3...
Copy source memory table entry #
Copy source word
1.
When an error occurs (bit 09000 turns ON), the NT20 displays the message “Error”.
2.
When the error is cleared (bit 09000 turns OFF), the NT20 display message reverts to “Normal”.
5-2-5 Upgrading Bar Graphs
(Changing the Contents of Allocated Words)
The following describes the procedure to upgrade the bar graph display on the
NT20 by changing the contents of the allocated words.
To change the bar graph display on the NT20, change the contents of the PLC words to which the numeral memory table entries have been allocated.
The bar graph display cannot use hexadecimal numbers. If hexadecimal numbers are set, the bar graph will not be displayed.
189
Memory Tables and Bar Graphs
A
L
Symbol
None
H
C-series
IR Area
HR Area
AR Area
LR Area
T
TU
TC Area
Timer PVs
---
C TC Area
Counter PVs
--CU
W ---
TK
D
---
DM Area
E EM Area
(See note 2.)
E0_to EC_ ---
Note
Section 5-2
By writing a negative number (whose most significant digit is “F”) to the allocated word of a graph set as “Sign display “No””, the graph display will become 0 % and the % display will show “
***
%”.
For the procedure to write numeral values to the allocated words of the
numeral memory table entries, refer to 5-2-1 Displaying the Contents of Allo-
cated Words of Memory Table Entries (page 180).
For the procedure to change the contents of the numeral memory table entry
(PLC words), refer to 5-2-2 Changing Displayed Numerals or Character
Strings (Changing the Contents of Allocated Words ... Direct Specification) on page 182.
• Available Allocation Words
The numeral memory table entries can be allocated to the following PLC areas:
Allocation
❍
❍
CVM1/CV -series
CIO Area
---
❍
❍
---
---
---
---
❍
❍
---
AR Area
---
TC Area
Timer PVs
---
TC Area
Counter PVs
---
---
---
DM Area
EM Area
Current bank
---
Allocation
❍
---
×
---
CS/CJ-series
CIO Area
HR Area
AR Area
LR Area (See note 1.)
Allocation
❍
Not for
Host Link
❍
Not for
Host Link
---
Not for
Host Link
---
---
TC Area
Timer PVs
TC area,
Timer Completion Flags
TC Area
Counter PVs
TC area,
Counter Completion Flags
WR
---
❍
Not for
Host Link
---
Task Flags
DM Area
EM Area
Current bank
EM Area
EM bank 0 to C
×
×
Not for
Host Link
×
❍
Not for
Host Link
Not for
Host Link
❍: OK : 1 word only ×: NG
Since the AR area bits of the CVM1/CV series PLCs are allocated to the system, they cannot be used for purposes other than the system use.
The range of respective area varies with the type of PLC.
(1) LR 0000 to LR 00199 are converted to CIO 01000 to CIO 01199.
(2) The EM Area is supported only by the C200HX/HG/HE-(Z)E PLCs.
190
Download
Advertisement
Key features
Downsized body
Construction best suited to the FA environment
A Host Link I/F Unit, Screen Data Memory, and a System ROM Are All Incorporated
Touch Switch Operation
Compatibility with NT20M/NT20S
Character display
Figure display
Memory data display
Bar graph display
Lamp display
Frequently asked questions
The NT20 is a programmable terminal used to display and transmit information in an FA site. It can be easily installed and used.
The NT20 has a downsized body, is built with construction best suited to the FA environment, incorporates a Host Link I/F Unit, Screen Data Memory, and a System ROM, supports Touch Switch Operation, and is compatible with NT20M/NT20S.
The NT20 supports Host Link (direct) and NT Link communications methods. The NT20-ST128 also supports RS-232C communications.