5-1 Overview of Direct Connection Operations. 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
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
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.