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
SECTION 6
Using RS-232C Communications
This section describes how to carry out communications via the RS-232C interface used with the NT20-ST128, focusing on the commands.
6-1 Table of Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
6-2 RS-232C Communications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
6-2-1 Communications Procedure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
6-2-2 Precautions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
6-3 Screen Display . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
6-4 Memory Tables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
6-5 Lamps, Touch Switches, Numeral Setting . . . . . . . . . . . . . . . . . . . . . . . . . . .
6-5-1 Notification and Control of Touch Switches . . . . . . . . . . . . . . . . . .
6-5-2 Notification of Numeral Setting Input and Touch Switch Status . . .
6-6 Controlling the NT20 Status . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
6-7 Terminal Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
6-8 Key to Programs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
6-8-1 Use of Programs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
212
213
213
214
216
218
221
221
224
227
229
234
234
211