SECTION 5 How to Use the Host Link/NT Link. 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
SECTION 5
How to Use the Host Link/NT Link
This Section describes in concrete terms how to use the Host link/NT link communications with the NT20.
5-1 Overview of Direct Connection Operations . . . . . . . . . . . . . . . . . . . . . . . . . .
5-1-1 Equipment and Settings Used in This Section . . . . . . . . . . . . . . . . .
5-1-2 Allocatable Bits and Words . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5-1-3 NT20 Status Control and Notification to PLC . . . . . . . . . . . . . . . . .
5-1-4 Switching the Screen Display. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Notifying the PLC of the Display Screen
(to Display the Number of Currently Displayed Screen) . . . . . . . . .
Memory Tables and Bar Graphs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5-2-1 Displaying the Contents of Allocated Words of Memory Table Entries 180
Changing Displayed Numerals or Character Strings
(Changing the Contents of Allocated Words ... Direct Specification)
Changing Displayed Numerical Values or Character Strings
(Changing the Contents of Allocated Words ... Indirect Specification)
5-2-4 Copying Memory Table Entries . . . . . . . . . . . . . . . . . . . . . . . . . . . . 186
5-2-5 Upgrading Bar Graphs (Changing the Contents of Allocated Words)
5-3 Lamps, Touch Switches, Numeral Setting . . . . . . . . . . . . . . . . . . . . . . . . . . .
191 5-3-1 Allocation Bits and Display of Lamps . . . . . . . . . . . . . . . . . . . . . . .
Turning ON (Lit) and OFF (Unlit) the Lamps
(Changing the Contents of Allocated Bits). . . . . . . . . . . . . . . . . . . .
193 5-3-3 Allocated Bits and Display of Touch Switches . . . . . . . . . . . . . . . .
Lit (Flashing) and Unlit Touch Switch Status
(Changing the Status of Allocated Bits) . . . . . . . . . . . . . . . . . . . . . .
Notifying the Host That a Switch Has Been Pressed
(Determining Touch Switch Status) . . . . . . . . . . . . . . . . . . . . . . . . .
5-3-6 Notification of Numbers to the PLC. . . . . . . . . . . . . . . . . . . . . . . . .
5-4-1 Controllable NT20 Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
205 5-4-2 How to Control NT20 Functions . . . . . . . . . . . . . . . . . . . . . . . . . . .
Notification of the Operating Status to the PLC
(Determining the NT20 Operating Status) . . . . . . . . . . . . . . . . . . . . . . . . . . .
5-5-1 Ascertainable NT20 Status (Notified Operating Status) . . . . . . . . .
5-5-2 Reading the NT20 Operating Status . . . . . . . . . . . . . . . . . . . . . . . . .
165
Overview of Direct Connection Operations
Section 5-1
5-1 Overview of Direct Connection Operations
This section explains allocated bits and words, control of the NT20 and PLC notification methods, and the actual procedures used for switching screens, thereby providing the basic information required to use the NT20-ST121-E host link, or NT link.
5-1-1 Equipment and Settings Used in This Section
The following equipment and settings are used in the examples in this section:
Equipment PT: NT20-ST121-E
PLC:
Support Tool:
CQM1H
NT Support Tool for Windows Ver. 4.8
Support Tool Settings
PT Model:
PLC Vendor:
NT20
OMRON
5-1-2 Allocatable Bits and Words
When the host link/NT link is used, the following bits and words are allocated to the PLC and used for the NT20 operation. The range of respective area varies with the type of PLC.
The allocations must be made without exceeding respective area range.
W
TK
D
E
OMRON PLCs
Symbol
None
H
A
LR
T
TU
C
CU
E0_ to EC_
CIO Area
HR Area
AR Area
LR Area (See note 1.)
TC Area
Area Name
Timer PVs
CS/CJ Series PLCs
Allocated
Bit
❍
❍
❍
❍
×
Allocated Word
Numeral Character
String
❍
❍
❍
❍
❍
❍
❍
❍
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 banks 0 to C
❍ ❍ ❍
❍: OK : 1 word only ×: NG
166
Overview of Direct Connection Operations
Section 5-1
CU
W
TK
D
E
Symbol
None
H
A
LR
T
TU
C
Area Name
IR Area
HR Area
AR Area
LR Area
TC Area
Timer PVs
---
TC Area
Counter PVs
---
WR
---
DM Area
EM Area (See note 2.)
Current bank
---
×
---
❍
❍
C Series PLCs
❍
❍
❍
❍
×
Allocated
Bit
Allocated Word
Numeral Character
String
❍
❍
❍
❍
❍
❍
❍
❍
Area Name
CIO Area
---
AR Area
---
TC Area
Timer PVs
CVM1/CV Series PLCs
Allocated
Bit
Allocated Word
❍
---
❍
---
---
❍
---
Numeral Character
String
❍ ❍
---
❍
---
-------
---------
×
×
TC Area
Counter PVs
-------
---------
×
×
---
❍
❍
×
---
❍
❍
---
---
DM Area
EM Area
Current bank
---
---
❍
❍
---
---
❍
❍
---
---
❍
❍
E0_ to
EC_
---------------
Note
❍: OK : 1 word only ×: NG
When allocating words to a memory table entry, the allocation must not exceed the word area.
Since the AR area bits of the CV series PLCs are allocated to the system, they cannot be used for purposes other than the system use. However, reading from them is possible.
(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.
(3) A continuous areas of up to 2 words for a numeral memory table entry or
16 words for a character string memory table entry can be allocated.
5-1-3 NT20 Status Control and Notification to PLC
The following describes the fundamentals of the display elements, NT20 status control, and notification, which are the basics of the NT20 functions when using the host link/NT link.
For the detail method of use of the PT status control area and the PT status
notify area, refer to 5-4 NT20 Status Control on page 203 and 5-5 Notification
of the Operating Status to the PLC (Determining the NT20 Operating Status)
Controlling the Display Elements by Using Allocated Bits and Words
The NT20 will operate as follows in the display element control operation.
NT20 Operation
1.
The NT20 checks the allocation bits and words of the display elements and makes an inquiry to the PLC.
2.
The PLC answers the NT20 about the bit and word data.
167
Overview of Direct Connection Operations
Section 5-1
3.
The NT20 changes the display status according to the bits and words obtained from the PLC.
NT20 Operation Example
Lamp #0
Bit 010012
NT20 PLC
Bit 010012?
TIM003?
DM0100 to DM0102?
Character-string memory table entry 2
First word: DM0100
First word: TIM003
Number of saved words: 3
Number of saved words: 1
("a", "b")
("c", "d")
("e", "f")
Controlling the NT20 Status by Using Allocated Bits and Words ..... PT Status Control Area (PLC to PT)
The PT status control area (PLC to PT) is provided to control the NT20 status from the PLC. When data is written to this area in the PLC, the NT20 will read the data and operates according to the data. The PT status control area is configured as four consecutive words as shown below.
Word 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 Bit n
Screen # (4-digit BCD)
Screen switch setting n+1 n+2
0
Copy type
Copy source memory table entry # (3-digit BCD)
Copy destination memory table entry # (3-digit BCD)
Copy memory table setting n+3
PT status control bit 0
0
PT status control
The first word (word n) of the PT status control area must be set with the Support Tool.
• Screen Switch Settings (Refer to page 172.)
Specify the screen number to switch the screen displayed on the NT20.
• Copy Memory Table Settings (Refer to page 187.)
Specify the memory table entry number to copy the contents of a memory table internally in the NT20.
Set the copy type to match the type of memory table entry to be copied:
0: Character-string memory table
1: Numeral memory table
• PT Status Control Bits (Refer to page 203.)
These bits are switched ON and OFF to control the NT20 buzzer and backlight.
168
Overview of Direct Connection Operations
n+3
15 14 13 12 11 10 9 8 Bit
0 0 0
Section 5-1
A
L
T
TU
Symbol
None
H
C-series
IR Area
HR Area
AR Area
LR Area
TC Area
Timer PVs
---
C
CU
TC Area
Counter PVs
---
--W
TK ---
D
E
DM Area
EM Area
(See note 2.)
E0_to EC_ ---
Note
Note
Note
Item Controlled
Screen display (Note 1)
Processing priority registration (Note 2)
1 (ON) 0 (OFF)
ON
ON
OFF
OFF
Continuous buzzer ON OFF
Intermittent buzzer
Backlight mode
ON
ON
OFF
Flash
Note 1: When "ON" is set for screen display, the backlight is on; when "OFF" is set for screen display, the backlight is off.
Note 2: Priority registration is only valid when NT link (1:N) is set.
The PT status control area (PLC to PT) can be allocated to the following PLC areas.
CS/CJ-series Allocation
❍
❍
CVM1/CV -series
CIO Area
---
❍
❍
×
---
×
---
---
AR Area
---
TC Area
Timer PVs
---
TC Area
Counter PVs
---
---
Allocation
❍
---
×
---
×
---
×
---
---
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
Allocation
❍
Not for
Host Link
❍
Not for
Host Link
×
×
×
×
---
❍
❍
---
---
DM Area
EM Area
Current bank
---
---
❍
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 ×: NG
Since the AR area bits of the 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.
Make sure there is no duplication in the PT status control area allocations and
PT status notify area allocations.
When NT link (1:N) is set, the PT status control area must be set for each connected PT.
169
Overview of Direct Connection Operations
Section 5-1
Notification of the Display Elements by Using Allocated Bits and Words
The NT20 will operate as follows in the display element notification operation.
NT20 Operation
The NT20 will write any changes in the contents of the numeral or characterstring memory table entry being displayed or pressing of a touch switch to the bits and words area in the PLC.
NT20 Operation Example
Touch switch #12
Bit 009012
NT20 PLC
Bit 009012: ON
DM0110: 0432
Numeral memory table entry 100
0 4 3 2
Copy
Numeral memory table entry 0
Number of saved words: 1
First word: DM0110
Notification of the NT20 Status by Using Allocated Bits and Words ..... PT Status Notify Area (PT to
PLC)
The PT status notify area (PT to PLC) is provided to notify the PLC of NT20 status changes. When any NT20 status has changed, such change is written to this area in the PLC, and the PLC will read the data from this area to check the NT20 status.
The PT status notify area is configured as three consecutive words as shown below.
Word 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 Bit m
Screen # (4-digit BCD)
Screen being displayed m+1 0
Numeral memory table entry # (3-digit BCD)
Upgraded memory table entry m+2
PT status
0
0
PT status
The first word (word m) of the PT status notify area must be set with the Support Tool.
• Currently Displayed Screen (refer to page 175)
The screen number displayed on the NT20 is written to this word.
Simultaneously, the PT status screen switch strobe flag is set to ON (1).
After the PLC is notified, this flag reverts to OFF (0). Checking the status of this flag will provide a simple method of checking if the NT20 display has switched.
• Upgraded Memory Table Entry (Refer to page 200.)
The number of the numeral memory table entry is written to the word when the numeral memory table contents change due to the touch switch operation on the NT20.
As the number of the numeral table entry is written, the PT status numeral setting strobe flag is simultaneously set ON (1). After the PLC is notified, this flag reverts to OFF (0). Checking the status of this flag will provide a simple method of checking if a number has been input from the NT20.
Note that this function is not available with the character-string memory table.
• PT Status (Refer to page 208.)
The NT20 operation status and other information are written with the ON or OFF of the bits as shown below.
170
Overview of Direct Connection Operations
Section 5-1
A
L
T
TU
Symbol
None
H
C-series
IR Area
HR Area
AR Area
LR Area
TC Area
Timer PVs
---
C
CU
TC Area
Counter PVs
---
--W
TK ---
D
E
DM Area
EM Area
(See note 2.)
E0_to EC_ ---
Word m+2
PT status notify bits
15 14 13 12 11 10 9 8 Bit
0 0 0 0 0
Note
PT operation status (1 (ON): RUN / 0 (OFF): STOP)
Screen switching strobe
Numeral setting strobe flag
The PT status control area (PLC to PT) 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
❍
---
×
---
×
---
×
---
---
---
❍
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.
The screen switching strobe or numeral setting strobe will turn ON in the following cases.
Screen switching strobe:Turns ON when a screen is changed due to an instruction from the PLC or an operation at the PT.
Numeral setting strobe: Turns ON when the contents of a numeral memory table entry is changed due to an operation at the PT.
These strobes turn OFF automatically after the PLC is notified, allowing the operating status of the PT to be easily investigated. If a CVM1/CV-series CPU
Unit is connected and set for asynchronous operation, the status of the strobes cannot be read dependably.
(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.
(3) Make sure there is no duplication in the PT status control area allocations and PT status notify area allocations.
171
Overview of Direct Connection Operations
Section 5-1
(4) When NT link (1:N) is set, the PT status control area must be set for each connected PT.
5-1-4 Switching the Screen Display
The following describes the procedure used to switch the NT20 screen display by controlling from the PLC.
Note
The display screen can be switched also by pressing a touch switch during the operation after registering a screen number to the touch switch. For this
function, refer to the 4-7-2 Screen Switching Function on page 154.
To switch the NT20 screen display by controlling from the PLC, write a screen number at the “screen switch setting” in the PT status control area.
NT20 PLC
Designated screen
PT status control area
Screen switch setting
Copy memory table setting
PT status control setting
Screen number
C
CU
W
TK
D
A
L
T
TU
Symbol
None
H
C-series
IR Area
HR Area
AR Area
LR Area
TC Area
Timer PVs
---
TC Area
Counter PVs
---
---
---
DM Area
Screen Switch Setting in the PT Status Control Area
PT status notify bits
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 Bit
Word n
Screen number (4-digit BCD)
Screen switch setting
Screen number: 0000 (screen clear, no-display)
: 0001 to 0500
• Available Allocation Words
The PT status control area (PLC to PT) 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
Allocation
❍
---
×
---
×
---
×
---
---
---
❍
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
Allocation
❍
Not for
Host Link
❍
Not for
Host Link
×
×
×
×
Not for
Host Link
×
❍
172
Overview of Direct Connection Operations
Section 5-1
E EM Area
(See note 2.)
E0_to EC_ ---
Note
❍
---
EM Area
Current bank
---
Not for
Host Link
---
EM Area
Current bank
EM Area
EM bank 0 to C
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. The range of respective area varies with the type of PLC.
(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.
1,2,3...
1.
Use the Support Tool to allocate the PT status control area (PLC to PT) to the PLC memory.
2.
Create a PLC program to write the number of the displayed screen to the
“screen switch setting word” in the PT status control area.
Use a 4-digit BCD (binary-coded decimal) value to set a screen number.
If a screen has been switched by operating the PT status control area (PLC to
PT), the contents of the “currently displayed screen word” in the PT status notify area (PT to PLC) also change.
• Screen Switching Timing
The NT20 screen switches when the contents of the “screen switch setting” have changed. To re-specify the number of the currently specified screen, first write the value 0000 to clear the screen before writing the appropriate screen number.
• Use of the Screen Switching Strobe
Create a program to read the number of the currently displayed screen and to write the number to the “screen switch setting word” at the leading edge of the “screen switching strobe” of the PT status notify area. This program enables screen switching by using the touch switches on the NT20 and eliminates repeated setting of the same screen number. If the screen switching is not executed on the NT20, the screen switching strobe does not need to be checked.
For the screen switching strobe, refer to the “Notifying the PLC of the Display Screen,” below.
• Continuous Screens and Overlapping Screens
Continuous or overlapping screens can be displayed by designating the parent screen. If a child screen is designated, only the child screen is displayed.
For the continuous and overlapping screens, refer to 4-3-1 Classification of
Example of Display Screen Switching
This example operates the PLC switch (bit) to switch the NT20 display screen.
• Support Tool Settings
Make the following settings with the Support Tool:
PT status control area: Word 0100
PT status notify area: Word 0110
Screen number to be created: Screen #2 and #3
• PLC Ladder Program
173
Overview of Direct Connection Operations
Section 5-1
1,2,3...
Create a PLC ladder program as follows:
00002
@MOV(21)
#0002
100
00003
@MOV(21)
#0003
100
11212
@MOV(21)
110
100
Screen switch strobe flag
• Program Operation
(1)
Screen number
Screen switch setting word
(2)
Screen number
Screen switch setting word
(3)
Screen number
Screen switch setting word
1.
Screen #2 is displayed on the NT20 when bit 00002 turns ON.
2.
Screen #3 is displayed on the NT20 when bit 00003 turns ON.
3.
When the screen switch strobe flag turns ON, the number of the currently displayed screen is read and written to the currently displayed screen word in the PT status notify area. In this case, the NT20 will not write the same screen twice.
5-1-5 Notifying the PLC of the Display Screen
(to Display the Number of Currently Displayed Screen)
The following describes the processing to display the number of currently displayed screen of the NT20.
This processing reads the data from the PLC status notify area.
To indicate that the screen has switched, use the screen switch strobe flag.
To display the number of the currently displayed screen, use the currently displayed screen word.
When the screen has switched, the NT20 notifies the PLC of the following in
PT status notify area (PT to PLC) allocated in the PLC.
Screen switch notification: Screen switch strobe flag of the PT status word
New screen number: Currently displayed screen word
By reading the currently displayed screen word when the screen switch strobe flag has turned ON, the number of the currently displayed screen on the NT20 is displayed.
NT20
Currently displayed screen
PLC
PT status notify area
Currently displayed screen
Upgraded memory table entry
PT status
Screen number
Screen switch strobe flag
174
Overview of Direct Connection Operations
Section 5-1
Currently Displayed Screen and PT Status Words in the PT Status Notify
Area
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 Bit
Word m
Screen number (4-digit BCD)
Screen switch setting m+2
PT status
T
TU
C
CU
A
L
None
H
Symbol C-series
IR Area
HR Area
AR Area
LR Area
TC Area
Timer PVs
---
TC Area
Counter PVs
---
W ---
TK
D
---
DM Area
E EM Area
(See note 2.)
E0_to EC_ ---
15 14 13 12 11 10 9 8 Bit
- 0 0 - 0 0 0
Screen switch strobe
Screen number: 0001 to 0500
Use a 4-digit BCD (binary-coded decimal) value to set a screen number.
The screen switch strobe bit reverts to OFF (0) after the PLC is notified.
• Available Allocation Words
The PT status notify area (PT to PLC) can be allocated to the following
PLC areas.
Allocation
❍
❍
CVM1/CV -series
CIO Area
---
❍
❍
AR Area
---
TC Area
Timer PVs
---
TC Area
Counter PVs
---
Allocation
❍
---
×
---
CS/CJ-series
CIO Area
HR Area
AR Area
LR Area (See note 1.)
Allocation
❍
Not for
Host Link
❍
Not for
Host Link
× ×
---
×
---
---
---
❍
❍
---
---
---
DM Area
EM Area
Current bank
---
×
---
×
---
---
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 ×: NG
Since the AR area bits of the CV-series PLCs are allocated to the system, they cannot be used for purposes other than the system use.
Note
1,2,3...
The range of respective area varies with the type of PLC.
(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.
1.
Use the Support Tool to allocate the PT status notify area (PT to PLC) to the PLC memory.
175
Overview of Direct Connection Operations
Section 5-1
Note
2.
Create a PLC program to read the “currently displayed screen word” in the in the PT status notify area when the “screen switch strobe flag” in the PT status notify area has turned ON.
The contents of the “currently displayed screen word” are updated also by switching the screen by pressing a touch switch on the NT20.
For this function (standalone function or screen switch function), refer to the
Standalone Function on page 154.
• Continuous Screens and Overlapping Screens
When a continuous or overlapping screen is displayed, the number of the parent screen is written to the “currently displayed screen word”.
For the continuous and overlapping screens, refer to the 4-3-1 Classification
Example of Reading the Number of Currently Display Screen
This example gives a PLC program that reads the screen number each time the screen is switched. In this example, the number of the previous screen is also stored.
• Support Tool Settings
Make the following settings with the Support Tool:
PT status notify area: Word 0110
• PLC Ladder Program
11212
(1)
@MOV(21)
DM0100
DM0101
Screen switch strobe flag
@MOV(21)
110
DM0100
Word for storing the number of the previous screen
(2)
Word for notification of the number of the currently displayed screen
Word for storing a new screen number
1,2,3...
• Program Operation
1.
When the NT20 screen display switches and the screen switch strobe flag
(bit 11212) turns ON, the contents of DM0100 are transferred to DM0101.
The number of the previously displayed screen is stored in word 0101.
2.
The new screen number indicated by the NT20 is read and transferred to
DM0100. The number of the currently displayed screen is stored in
DM0100.
176
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
Lamps, Touch Switches, Numeral Setting
Section 5-3
5-3 Lamps, Touch Switches, Numeral Setting
A
L
5-3-1 Allocation Bits and Display of Lamps
Lamps are controlled by allocating them to the PLC bits. Set the area and bit number.
• Available Allocation Bits
The lamps can be allocated to the following PLC areas:
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.
The range of respective area varies with the type of PLC.
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.
To set the data memory (DM), specify the word number and then the bit number (00 to 15).
191
Lamps, Touch Switches, Numeral Setting
Section 5-3
5-3-2 Turning ON (Lit) and OFF (Unlit) the Lamps
(Changing the Contents of Allocated Bits)
The following describes the procedure to change the lamp display status on the NT20 by changing the contents of the allocated bits.
To change the lamp display status on the NT20, turn ON and OFF the lamp control bit allocated in the PLC.
NT20 PLC
Lamp #1 Lamp #2
Lit Unlit
Allocated bit (Lamp #1)
1 1 (ON)
Allocated bit (Lamp #2)
2
0 (OFF)
The lamp bit indicates the lamp status as follows:
0 (OFF): Unlit
1 (ON): Lit (reverse display) or flashing
1,2,3...
1.
Use the Support Tool to set the PLC memory area where the lamp bit is to be allocated to.
2.
Register the lamps to the screen when creating the screen data by using the Support Tool.
3.
Create a PLC program to turn ON/OFF the lamp bit.
Use the Support Tool to set the lamp display attributes whether the lamp is lit or flashing when the lamp control bit is turned ON.
Application Example to Make the Lamp Light or Flash
This example gives a procedure to control the bits to move a robot arm and turning the lamps ON and OFF.
• Support Tool Settings
Allocate the memory as shown below by using the Support Tool.
Lamp #0: Word 000200 (output bit to raise robot arm), guide display message “UP”
Lamp #1: Word 000201 (output bit to lower robot arm), guide display message “DOWN”
Lamp #2: Word 000202 (output bit to rotate robot arm counterclockwise), guide display message “C/CLOCK”
Lamp #3: Word 000203 (output bit to rotate robot arm clockwise), guide display message “CLOCK”
Lamp #4: Word 000204 (output bit to clamp rotate robot arm), guide display message “CLAMP”
Lamp #5: Word 000205 (output bit to unclamp rotate robot arm), guide display message “UNCLAMP”
Contents registered to the screen: Lamp #0 to #5
192
Lamps, Touch Switches, Numeral Setting
Line 1 Process 3
Conveyor Loading Robot Arm
UP
C/
CLOCK
DOWN
CLOCK
CLAMP
UNCLAMP
Section 5-3
Raise: Lamp#0
Lower: Lamp#1
Counterclockwise: Lamp#2
Clockwise: Lamp#3
Clamp: Lamp#4
Unclamp: Lamp#5
• PLC Ladder Program
No PLC ladder program is required to control the NT20. Only a program to control the robot arm movements is required.
• NT20 Operation
When the ladder program to control the robot arm is executed, the lamps on the NT20 screen turn ON and OFF in synchronization with the robot arm movement.
For example, lamp #0 lights when the robot arm moves up and goes out when it stops moving up.
5-3-3 Allocated Bits and Display of Touch Switches
Method for PLC Notification and NT20 Control
Two types of bit can be allocated to touch switches: notify bits - which serve to notify status to the PLC - and control bits, lamp bit, which control the lighting
(flashing) of the touch switches. (For other types of function, only lamp bits can be allocated.) When a touch switch is pressed the notify bit status changes and, when the lamp bit is ON, the touch switch lights (or flashes).
Press
NT20 PLC
Notification bit
1
START
abcde
Control
1
←1
Lights
In order to notify the PLC of the status of a touch switch, the touch switch must be allocated to a specified PLC bit so that it can be managed. Designate the area and bit number.
To use touch switches for notification to the PLC, the following settings must be made using the Support Tool: “touch switch” – “bit setting” – “notify bit”.
• Types of Notification Operation
When using Ver. 5 of the direct connection function, the notification operation when the touch switch is pressed can be selected from the following four types (with Ver. 4 direct connection, the type is fixed as “momentary”):
• Momentary
When the touch switch is pressed the bit comes ON; when it is released the bit goes OFF.
• Alternate
193
Lamps, Touch Switches, Numeral Setting
Symbol
A
L
None
H
T
TU
C-series
IR Area
HR Area
AR Area
LR Area
TC Area
Timer PVs
---
Section 5-3
Each time the touch switch is pressed, the bit status changes from ON to OFF or OFF to ON.
• Set
When the touch switch is pressed, the bit comes ON and remains ON even if the switch is pressed again.
• Reset
When the touch switch is pressed, the bit goes OFF and remains OFF even if the switch is pressed again.
• Notification Operations
The touch switch notification operations are as follows:
Type of
Notification
Operation
Momentary
Alternate
Set
Reset
When Using Host Link or
NT Link with DM Area
(1) Notification in word units
(other bits go OFF)
(2) Notification in word units
(however, the word contents are read on display and notification is based on this reading)
When Using C200H Direct
Communications or NT Link with other than DM Area
(3) Notification in bit units
(4) Notification in bit units
When using touch switch input notification, note the following points:
• In the case of (1), the other bits in the same word as the notification bit are turned OFF by the notification operation.
• In the case of (2), notification is executed on the basis of the contents of the word before display, which means that the other bits are not rewritten. However, if the word contents are changed at the PLC, they will be rewritten based on the contents before display.
• If the screen is switched while a momentary key is being pressed, the touch switch itself disappears, so the status “OFF” is indicated. In the case of (1) this means that the other bits in the word will also be turned
OFF.
• When using the host link, or NT link with the DM area, do not allocate momentary touch switches and other types of touch switch to the same word, since the notification operations are different.
In the case of (3) and (4), the notification operation has no influence on the other bits in the word.
• Possible Bit Allocations
Notify bits and lamp bits for touch switches can be allocated to the areas of the PLC memory listed in the following table.
Allocation
❍
❍
CVM1/CV -series
CIO Area
---
❍
❍
×
---
AR Area
---
TC Area
Timer PVs
---
Allocation
❍
---
×
---
×
---
CS/CJ-series
CIO Area
HR Area
AR Area
LR Area (See note 1.)
TC Area
Timer PVs
TC area,
Timer Completion Flags
Allocation
❍
Not for
Host Link
❍
Not for
Host Link
×
×
194
Lamps, Touch Switches, Numeral Setting
Section 5-3
C
CU
W
TC Area
Counter PVs
---
---
TK ---
D
E
DM Area
EM Area
(See note 2.)
E0_to EC_ ---
Note
×
---
---
---
❍
❍
---
TC Area
Counter PVs
---
---
---
DM Area
EM Area
Current bank
---
×
---
---
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 ×: NG
Since all the CVM1/CV-series AR area bits are allocated to the system, they cannot be used for applications not related to the system.
The range of each memory area differs according to the PLC type.
(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.
When making a data memory (DM) specification, specify the bit number (00 to
15) following the word number.
5-3-4 Lit (Flashing) and Unlit Touch Switch Status
(Changing the Status of Allocated Bits)
This section describes how to change the status of allocated bits and thereby the status of the touch switches displayed by the NT20.
The status of touch switches displayed by the NT20 is changed by switching the control bits allocated in the PLC memory ON and OFF.
NT20
PLC
Allocated bit (touch switch #1)
1 1 (ON)
Lit
1,2,3...
Touch switch #1
The status of the lamp bit reflects the touch switch status, as follows:
0 (OFF): Unlit
1 (ON): Lit (inverse display) or flashing
1.
Use the Support Tool to allocate the touch switch lamp bits to the PLC memory.
2.
When creating the screen data using the Support Tool, register the touch switch for a screen.
3.
Create the PLC program to switch the lamp bit of the touch switch ON and
OFF.
Set whether the lamp lights continuously or flashes when the bit comes ON by setting the touch switch display attribute with the Support Tool.
195
Lamps, Touch Switches, Numeral Setting
Section 5-3
5-3-5 Notifying the Host That a Switch Has Been Pressed
(Determining Touch Switch Status)
This section describes how the status of a touch switch (whether it has been pressed or not) is ascertained.
With the NT20, when a touch switch is pressed, the notify bit allocated to that touch switch in the PLC memory is automatically updated.
Touch switch #1
NT20 PLC
Allocated notify bit (touch switch #1)
1
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_ ---
Depending on the set operation type, the status of the allocated bit for touch switch status notification will be controlled in one of the following ways:
Momentary:
Alternate:
Set:
Reset:
0 (OFF) ... Not pressed
1 (ON) ... Pressed
The allocated bit is switched to 1 (ON) if currently 0, and to 0 (OFF) if currently 1.
The allocated notify bit is forcibly switched to 1 (ON).
The allocated notify bit is forcibly switched to 0 (OFF).
In order to determine the status of a touch switch, the status of the touch switch notification bit allocated to it is determined.
The touch switch notify bits can be allocated to the following areas of the PLC memory.
Allocation
❍
❍
❍
❍
CVM1/CV -series
CIO Area
---
AR Area
---
TC Area
Timer PVs
---
TC Area
Counter PVs
---
Allocation
❍
---
×
---
CS/CJ-series
CIO Area
HR Area
AR Area
LR Area (See note 1.)
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
×
×
×
---
---
❍
❍
---
---
DM Area
EM Area
Current bank
---
---
❍
Not for
Host Link
WR
Task Flags
DM Area
EM Area
Current bank
Not for
Host Link
×
❍
Not for
Host Link
------EM Area
EM bank 0 to C
Not for
Host Link
❍: OK ×: NG
Since all the CVM1/CV-series AR area bits are allocated to the system, they cannot be used for applications not related to the system.
196
Lamps, Touch Switches, Numeral Setting
Note
1,2,3...
Section 5-3
The range of each memory area differs according to the PLC type.
(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.
When making a data memory (DM) specification, specify the bit number (00 to
15) following the word number.
1.
Use the Support Tool to allocate the touch switch notify bits to the PLC memory.
2.
When creating the screen data using the Support Tool, register the touch switch for a screen.
3.
Create a PLC program to determine whether the touch switch notify bit is
ON or OFF.
The touch switch notification operations are as follows:
Type of
Notification
Operation
Momentary
When Using Host Link or
NT Link with DM Area
When Using C200H Direct
Communications or NT
Link with other than DM
Area
(3) Notification in bit units
Alternate
Set
Reset
(1) Notification in word units
(other bits go OFF)
(2)Notification in word units
(however, the word contents are read on display and notification is based on this reading)
(4) Notification in bit units
When using touch switch input notification, note the following points:
• In the case of (1), the other bits in the same word as the notification bit are turned OFF by the notification operation.
Press the touch switch
Bit
15 14
0
1
1 0
0 1
Bit
15 14
0 0
1
1
0
0
Touch switch notify bit
Bits other than notify bits are set to 0 (OFF).
• In the case of (2), notification is executed on the basis of the contents of the word before display, which means that the other bits are not rewritten. However, if the word contents are changed at the PLC, they will be rewritten based on the contents before display.
• If the screen is switched while a momentary key is being pressed, the touch switch itself disappears, so the status “OFF” is indicated. In the case of (1) this means that the other bits in the word will also be turned
OFF.
• When using the host link, or NT link with the DM area, do not allocate momentary touch switches and other types of touch switch to the same word, since the notification operations are different.
In the case of (3) and (4), the notification operation has no influence on the other bits in the word.
197
Lamps, Touch Switches, Numeral Setting
Section 5-3
Example of Determination of Touch Switch Status
This example uses the touch switches as normal switches (bits) in order to use the NT20 as an operating panel.
• Support Tool Settings
Make the following settings using the Support Tool.
Touch switch #10:
Function “Notify Bit”
Display attribute “Light”
Control bit 05000 (Run flag) ... Guide message: “RUN”
Notify bit 06000
Touch switch #11:
Function “Notify Bit”
Display attribute “Light”
Control bit 05000 (Stop flag) ... Guide message: “STOP”
Notify bit 06001
Data registered for the screen: touch switch #10, touch switch #11
Touch switch #10
Line 1
RUN
STOP
Touch switch #11
• PLC Program
Create the following ladder program.
1 scan ON
↓
11212
Touch switch #10 notify bit
↓
06000
05001
Stop flag
(touch switch #11 control bit)
06001
← Touch switch #11 notify bit
05001
Touch switch #10 notify bit
↓
06000 06001
05000
05000
Run flag
(touch switch #10 control bit)
↑
Touch switch #11 notify bit
198
Lamps, Touch Switches, Numeral Setting
Section 5-3
• Program Operation
The operation when the program is executed is presented below.
Execute program
Stop flag : 1 (ON)
Stop touch switch : Lit
Press Run touch switch.
Run flag : 1 (ON)
Run touch switch : Lit
Stop flag : 0 (OFF)
Stop touch switch : Unlit
Press Stop touch switch.
Run flag : 0 (OFF)
Run touch switch : Unlit
Stop flag : 1 (ON)
Stop touch switch : Lit
5-3-6 Notification of Numbers to the PLC
The following describes how the numerical data input at the NT20 by using the numeral setting function is ascertained by the PLC.
In order to determine when numerical data has been input at the NT20, the numeral setting strobe flag in the PT status notify area is used. In order to determine the upgraded numeral memory table entry number, the “upgraded memory table entry” in the PT status notify area is used.
When numerical data is input at the NT20, this is automatically indicated in the PT status notify area (PT
→ PLC) allocated in the PLC memory as follows.
Notification of upgrade: PT status numeral setting strobe flag turned ON (1)
Upgraded numeral table entry number:Stored in the “upgraded memory table entry”
When the PLC reads the “upgraded memory table entry” at the leading edge of the numeral setting strobe flag, it determines the numeral memory table entry number in which the numerical data that was changed at the NT20 is stored.
NT20
PLC
12345678
Numeral memory table entry 1
12345678
PT status notify area
Currently displayed screen
Content upgrade memory table
Table entry No.
PT status
Numeral setting strobe flag
Allocated words (numeral table entry 1)
12345678
Start
Start + 1
199
Lamps, Touch Switches, Numeral Setting
Section 5-3
Upgraded Memory Table Entry in the PT Status Notify Area and PT Status
Word m+1 m+2
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 Bit
0 Numeral memory table entry # (BCD, 3 digits)
Upgraded memory table entry
PT status
TU
C
CU
W
A
L
T
Symbol
None
H
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
15 14 13 12 11 10 9 8 Bit
- 0 0 - 0 0 0 PT status
Numeral setting strobe flag
Numeral memory table entry #: 000 to 127
Data is written to the upgraded memory table entry as three digits of BCD
(binary coded decimal) data.
When the numeral setting strobe flag bit has been updated in the PLC it returns to the OFF (0) status.
For details on the method for storing a number in the word allocated for the
numeral memory table entry, refer to 5-2-1 Displaying the Contents of Allo-
cated Words of Memory Table Entries on page 180.
• Restrictions on Allocating Words
The PT status notify area can be allocated to the PLC memory areas listed in the following table.
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 all the CVM1/CV-series AR area bits are allocated to the system, they cannot be used for applications not related to the system.
The range of each memory area differs according to the PLC type.
(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.
200
Lamps, Touch Switches, Numeral Setting
Section 5-3
1,2,3...
1.
Use the Support Tool to allocate the PT status notify area (PT
→ PLC) to the PLC memory.
2.
Using the Support Tool, create a numeral setting screen and allocate the numeral memory table entry to the PLC memory.
3.
Create a PLC program for reading the “upgraded memory table entry” in the PT status notify area when the numeral setting strobe flag in the PT status notify area comes ON (1).
4.
Read the allocated word for the numeral memory table entry number read in step 3.
Example of Reading a Numeral Memory Table Entry into Which a Numerical Value Has Been Input
This example shows the reading of the numeral memory table entry number after a value has been changed by inputting numerical data at the NT20.
• Setting at the Support Tool
Make the following settings using the Support Tool.
Allocated word for the PT status notify area: 0110
Numeral memory table entry No.3: DM 0005 (saved word: One)
Numeral memory table entry No.4: DM 0006 (saved word: One)
Data registered for the screens:
Numeral setting 1 ... Reference table “numeral memory table entry #3”
Numeral setting 2 ... Reference table “numeral memory table entry #4”
Numeral memory table entry number 3 (4-digit input)
Line 1
Qty. 800 unit
Defect limit 30 unit
1 2 3 4 5 6 7 8 9 0
CLR +/
−
Numeral memory table entry number 4 (4-digit input)
• PLC Program
Create the following PLC ladder program.
11211
@MOV(21)
111
DM0105
(1)
Notification word for upgraded memory table entry
Word that stores the numeral memory table entry number
Numeral setting strobe flag
1,2,3...
• Program Operation
1.
When the numeral setting strobe flag (bit 11211) comes ON (1), the contents of word 0111 (the word where the upgraded memory table entry is located) are transferred to DM 0105. The number of the numeral memory table entry that contains the upgraded data is stored in DM 0105 (in this case it is 0003 or 0004).
If the numeral memory table entry is allocated to a PLC word, the value input to it can be read easily by referring to the allocated word.
201
Lamps, Touch Switches, Numeral Setting
Section 5-3
In this case, the contents of numeral memory table entry #3 is stored in DM
0005 and the contents of numeral table entry #4 is stored in DM 0006.
202
NT20 Status Control
Section 5-4
5-4 NT20 Status Control
The status of the NT20 can be controlled from the PLC by writing control data to the “PT status control bits” of the PT status control area allocated in the
PLC memory.
NT20
Buzzer sounds
Screen off
PLC
PT status control area
Screen switch setting
Copy memory table entry setting
PT status control bits
Control data
5-4-1 Controllable NT20 Functions
PT Status Control Bits of the PT Status Control Area
Word n+3
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 Bit
PT status control designation
15 14 13 12 11 10 9 8 Bit
0 0 0
Item Controlled
Screen display
(Note 1)
1 (ON)
ON
Processing priority registration
(Note 2)
ON
Continuous buzzer ON
0 (OFF)
OFF
OFF
OFF
Intermittent buzzer ON
Backlight mode ON
OFF
Flash
Note 1: The backlighting is on when the screen display bit is set to ON and off when the screen display bit is set to OFF.
Note 2: Priority registration is only valid when NT link (1:N) is set.
The PLC status control bits remain unchanged if the NT20 status is changed with the screen attributes or memory switches, which means that the status of the PT status control bits does not match the actual status of the NT20. For example, the buzzer may sound even though the setting for continuous buzzer bit 13 is “OFF”.
In this kind of case, control the NT20 by using the PT status control bits.
• Screen Display (Bit 15)
The screen display bit is used to display and clear the screen to prevent
“burn-in” on the CRT. Set bit 15 to 0 (OFF) to clear the screen. The backlight will also go OFF at the same time.
When the screen has been cleared, the last displayed screen can be redisplayed either by turning Bit 15 ON, or by pressing a touch switch. The backlight will also light at the same time.
203
NT20 Status Control
Section 5-4
Note
Note
Note that if the screen is OFF by the backlight OFF or EL screen OFF function with Bit 15 ON (1), turn Bit 15 OFF (0) once and then turn it back ON
(1) to redisplay the screen.
Instead of turning Bit 15 ON, a screen can be displayed by specifying its
screen number. For details on screen switching, refer to 5-1-4 Switching the
• Priority Registration for Processing (1:N NT Link Only) (Bit 14)
It is possible to register one of the multiple PTs connected by the 1:N NT link method to have processing priority. The PT for which bit 14 is set ON
(1) is given priority over the other PTs and has a higher response speed for display, touch switches, etc.
When bit 14 is turned OFF (0), this registration is canceled and the normal response speed is reinstated. If priority registration is set for more than one
PT, the one for which the registration was made last will have priority.
By monitoring C200HX/HG/HE words, the unit number of the PT for which priority registration has been set can be confirmed. For details on the monitoring operation at the PLC, refer to the manual for the PLC used.
Connection to RS-232C Port of C200HX/HG/HE
Word
CI0 265
(standard port)
CI0 284
(port A)
(See note.)
CI0 285
(port B)
(See note.)
5
6
3
4
1
2
0
Bit Function
Unit No.0 Communications in progress flag, ON when connected
Unit No.1 Communications in progress flag, ON when connected
Unit No.2 Communications in progress flag, ON when connected
Unit No.3 Communications in progress flag, ON when connected
Unit No.4 Communications in progress flag, ON when connected
Unit No.5 Communications in progress flag, ON when connected
Unit No.6 Communications in progress flag, ON when connected
7
8
Unit No.7 Communications in progress flag, ON when connected
Unit No.0 Priority registration lamp, ON when registered
9 Unit No.1 Priority registration lamp, ON when registered
10 Unit No.2 Priority registration lamp, ON when registered
11 Unit No.3 Priority registration lamp, ON when registered
12 Unit No.4 Priority registration lamp, ON when registered
13 Unit No.5 Priority registration lamp, ON when registered
14 Unit No.6 Priority registration lamp, ON when registered
15 Unit No.7 Priority registration lamp, ON when registered
This is the port of the communications port.
204
NT20 Status Control
Section 5-4
• Continuous Buzzer (Bit 13) and Intermittent Buzzer (Bit 12)
In the case of both buzzers, when the respective bit is ON the buzzer sounds and when it is OFF the buzzer does not sound.
The “continuous buzzer” sounds continuously without interruption.
The “intermittent buzzer” sounds for 0.5 seconds at 0.5 second intervals.
If both Bit 13 and Bit 12 are turned ON simultaneously, Bit 13 takes priority and the continuous buzzer is selected.
Another way to stop a buzzer sounding is to use a touch switch to which the buzzer stop attribute function is allocated.
Whether or not the buzzer actually sounds also depends on the setting of the
“buzzer” memory switch of the NT20. For details on this setting, refer to 3-8-2
Besides using PT status control bit operations, the buzzer status can also be controlled by the screen attributes. The screen attributes are set by using the
Support Tool. The functions that can be set using the screen attributes are the following:
Buzzer attribute: Set whether or not the buzzer will sound when the screen is displayed and, if it sounds, the type of buzzer.
• Backlight Mode (Bit 8)
If bit 8 is turned ON when the screen is displayed (bit 15 = ON), the screen is made to flash using the backlight. When bit 8 is turned OFF, normal display is resumed.
When the screen is not displayed (bit 15 = OFF), the backlight mode is invalid.
It is possible to use NT20 switch settings to make the backlight go off automatically after a set time during which there have been no operations.
Besides using PT status control bit operations, the backlight status can also be controlled by the screen attributes. The screen attributes are set by using the Support Tool. The functions that can be set using the screen attributes are the following:
Backlight: Set whether the backlight will be continuously or intermittently lit when the screen is displayed.
A
L
5-4-2 How to Control NT20 Functions
This section describes how to control the functions of the NT20.
• Restrictions on Allocating Words
The PT status control area (PLC
→ PT) can be allocated to the PLC memory areas listed in the following table.
T
Symbol
None
H
C-series
IR Area
HR Area
AR Area
LR Area
TC Area
Timer PVs
Allocation
❍
❍
CVM1/CV -series
CIO Area
---
❍
❍
×
AR Area
---
TC Area
Timer PVs
Allocation
❍
---
×
---
×
CS/CJ-series
CIO Area
HR Area
AR Area
LR Area (See note 1.)
TC Area
Timer PVs
Allocation
❍
Not for
Host Link
❍
Not for
Host Link
×
205
NT20 Status Control
Section 5-4
TU
C
CU
W
---
TC Area
Counter PVs
---
---
TK
D
---
DM Area
E EM Area
(See note 2.)
E0_to EC_ ---
Note
1,2,3...
---
×
---
---
---
❍
❍
---
---
TC Area
Counter PVs
---
---
---
DM Area
EM Area
Current bank
---
---
×
---
---
---
❍
Not for
Host Link
---
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
×
×
×
Not for
Host Link
×
❍
Not for
Host Link
Not for
Host Link
❍: OK ×: NG
Since all the CVM1/CV-series AR area bits are allocated to the system, they cannot be used for applications not related to the system.
The range of each memory area differs according to the PLC type.
(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.
1.
Use the Support Tool to set the area at the PLC used for allocation of the
PT status control area (PLC
→ PT).
2.
Write a PLC program for writing the control data into the “PT status control bit” of the PT status control area.
• Timing for Control of the PT Status Control Bit
The PT status control bit is not read when the NT20 is started up. It is read, and control executed, only when the contents of the PT status control bit are read for the first time after the NT20 is started up.
Since NT20 status control is executed when the bit corresponding to the
PT status control bit changes, in order to perform the same control again the corresponding bit must be specified again.
Example of Use of PT Status Control Bit
The example below explains how operation with the PT status control bit can be used to use the NT20 like a warning lamp.
• Setting with the Support Tool
Make the following setting with the Support Tool.
Allocated word for PT status control area: Word 0100
• PLC Program
Create the PLC ladder program as follows.
206
NT20 Status Control
Section 5-4
09002 09003
09003
09002 09003
@MOV(21)
#A000
103
@MOV(21)
#9000
103
@ANDW(34)
103
#CFFF
103
(1)
Display screen, sound buzzer continuously
PT status control word
(2)
Display screen, sound buzzer intermittently
PT status control word
(3)
PT status control word
"0" set for continuous and intermittent buzzer sounds only
PT status control word
1,2,3...
• Program Operation
1.
The PT status control bits are set as shown below when bit 09002 turns
OFF. This command block is not executed until bit 09003 is ON.
Screen display (bit 15)
Continuous buzzer (bit 13)
1 (ON)
1 (ON)
The NT20 continuous buzzer sounds.
2.
The PT status control bits are set as shown below when bit 09003 turns
OFF.
Screen display (bit 15)
Intermittent buzzer (bit 12)
Intermittent buzzer (bit 12)
The NT20 buzzer stops.
1 (ON)
1 (ON)
The NT20 intermittent buzzer sounds
3.
The PT status control bits are set as shown below when both bits 09002 and 09003 turn ON.
Continuous buzzer (bit 13) 0 (OFF)
0 (OFF)
207
Notification of the Operating Status to the PLC (Determining the NT20 Operating Status)
Section 5-5
5-5 Notification of the Operating Status to the PLC
(Determining the NT20 Operating Status)
The status (operating status, etc.) of the NT20 can be determined from the
PLC by reading the “PT status” word in the PT status notify area allocated in the PLC memory.
NT20
PLC
PT stopped
Screen number
PT status notify area
Currently displayed screen
Upgraded memory table entry
PT status
5-5-1 Ascertainable NT20 Status (Notified Operating Status)
PT Status Notification Bits of the PT Status Notify Area
Word m+2
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 Bit
PT status
15 14 13 12 11 10 9 8 Bit
0 0 0 0 0
PT operating status
(1(ON) = operating / 0 (OFF) = stopped)
Screen switch strobe flag
Numeral setting strobe flag
!Caution Make the settings so that the PT control area and PT status notify area do not overlap.
• PT Operating Status (Bit 15)
When the NT20 is in the RUN mode this bit is set to ON (1). In other modes and while the system menu is displayed it is OFF (0). When this bit is OFF allocated bits and words cannot be read or written to.
During the run mode, ON (1) is periodically written into this bit. In order to check whether the NT20 is operating normally or not, write OFF (0) to this bit: if it is ON (1) 30 seconds later the NT20 is running, and if it is OFF (0), the NT20 is stopped.
!Caution To ensure system safety, be sure to periodically read the PT operating status bit from the host in order to ensure that the PT is always operating normally.
208
Notification of the Operating Status to the PLC (Determining the NT20 Operating Status)
Section 5-5
• Screen Switch Strobe Flag (Bit 12)
When the screen displayed on the NT20 is switched by a designation from the PLC or by the standalone function, the screen switch strobe flag comes
ON (1). On notification to the PLC, it returns to the OFF (0) status.
For details on how the screen switch strobe flag is used, refer to 5-1-5 No-
tifying the PLC of the Display Screen (to Display the Number of Currently
Displayed Screen) on page 174.
• Numeral Setting Strobe Flag (Bit 11)
When numerical data is input to a numeral memory table entry using the
NT20 numeral setting function, the numeral setting strobe flag comes ON
(1). On notification to the PLC, it returns to the OFF (0) status.
For details on how the numeral setting strobe flag is used, refer to 5-3-6
Notification of Numbers to the PLC page 199.
A
L
5-5-2 Reading the NT20 Operating Status
This section explains how to determine the status of the NT20, and ascertain its operating status.
To ascertain the operating status of the NT20, “PT status” is used.
The NT20 automatically notifies the PLC of information such as the operating status in the PT status word of the PT status notify area (PT
→ PLC) allocated in PLC memory as shown below.
Notification of operation mode: PT operating status
Notification of screen switching: Screen switch strobe flag
Notification of numerical data upgrade: Numeral setting strobe flag
• Restrictions on Allocating Words
The PT status notify area (PT
→ PLC) can be allocated to the PLC memory areas listed in the following table.
None
H
T
TU
C
CU
W
Symbol
IR Area
HR Area
AR Area
LR Area
TC Area
Timer PVs
---
TC Area
Counter PVs
---
---
C-series
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.)
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
209
Notification of the Operating Status to the PLC (Determining the NT20 Operating Status)
Section 5-5
Since all the CVM1/CV-series AR area bits are allocated to the system, they cannot be used for applications not related to the system.
The range of each memory area differs according to the PLC type.
Note
1,2,3...
(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.
Use the Support Tool to allocate the PT status notify area (PT
→ PLC) to the PLC memory.
2.
Write a PLC program to read the “PT status” word of the PT status notify area and check each bit status.
• Timing of PT Status Notify Bit Notification
The contents of the PT status notify area (PT
→ PLC) are written to the
PLC whenever the status of the NT20 changes during operation.
Example of PT Status Notify Bit Application
In the example below, the status of the NT20 is checked by PT status notify bit notification.
• Settings with the Support Tool
Make the following setting with the Support Tool.
Allocated word for PT status notify area: Word 0110
• PLC Program
Create the following PLC ladder program.
11215
(1)
PT stopped
Word that stores the PT status
11215
@MOV(21)
#0001
DM0001
@MOV(21)
#0002
DM0001
(2)
PT running
Word that stores the PT status
1,2,3...
• Program Operation
1.
When the PT operating status (bit 11215) is OFF (0), “1” (PT stopped) is stored in DM0001.
2.
When the PT operating status (bit 11215) is ON (1), “2” (PT running) is stored in DM0001.
210
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.