5-3 Lamps, Touch Switches, Numeral Setting. Omron NT 20S-ST122-V1, NT 600M-LB122-V1, NT 20M-DT121-V2, NT 20-ST128, NT 20, NT 20M, NT 20S-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, Programmable Terminal NT NT20-ST121-E, Programmable Terminal NT NT20-ST128. The OMRON NT20 programmable terminal is a versatile device that can be used to display information, control equipment and communicate with a host system. It features a downsized and waterproof body, making it ideal for use in industrial environments. The NT20 can be connected to a variety of host systems including PLCs, PCs and other devices. It also supports various communications protocols such as Host Link, NT link, RS-232C, and C200H direct communications.
Advertisement
Advertisement
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
Download
Advertisement
Key features
Downsized body
Waterproof structure equivalent to oil-resistant IP65
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 supports the following communications methods: Host Link, NT Link, RS-232C, and C200H direct communications.
The NT20 can be connected to OMRON PLCs and Mitsubishi FX-series and Mitsubishi A-series PLCs.
The NT20 can be used to display data, receive data from a host system, send data to a host system, control equipment and provide alarm notifications.
The screen data is created using support tools on a computer and then stored in the NT20.
The NT20 is connected to a PC/AT using an RS-232C cable for transferring screen data.