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
Screen Display on page 172.
• 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
Using the Buzzer on page 107.
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