![background image](http://html1.mh-extra.com/html/omron/nt21-series/nt21-series_reference-manual_744543305.webp)
3-3
Section
Screen Display and Notification
296
If this bit changes to 1 (ON), it indicates that the screen has been switched by
operation at the PT.
Reference:
The screen switching strobe automatically returns to 0 (OFF) when the occur-
rence of the event is notified to the host.
Notifying The Screen Number
The area for the screen switch command and notification of the screen number
is provided at the beginning (word n) of the PT status notify area.
15 14 13 12 11 10 9
8
7
6
5
4
3
2
1
0
Word
Bit
n
Screen No. (4-digit BCD or hexadecimal)
Screen switch setting
n + 1
Copy source memory table No.
(4-digit BCD or hexadecimal)
n + 2
Copy destination memory table No.
(4-digit BCD or hexadecimal)
Copy memory table
setting
n + 3
PT status control bits
PT status control
n + 4
Reserved for system use
The configuration and functions of these words are
different when the PT is in NT30/620 compatible mode.
Read out the beginning (word n) of the PT status control area with the program in
the host.
The screen number of the screen displayed at the PT is stored in a 4-digit BCD or
a 4-digit hexadecimal. Whether BCD or hexadecimal notation is to be used is set
for Numeral Storage Type of PT Configuration at the Support Tool. Refer to
2-19
PT Configuration Settings (page 275) for settings related to the PT environment.
Reference:
While the PT is running, the screen number of the currently displayed screen is
always recorded in the screen switch setting word in the PT status control area
(except when the screen displayed is an error screen or the System Menu
screen, in which case the screen number of the screen displayed immediately
before remains recorded).
An example of a PC program which reads the screen number each time the
screen is switched by the PT is described below. This example program stores
the previous screen number also.
Setting with The Support Tool
Set the following words with the Support Tool.
•
Allocated word in the PT status control area: 00100 (word 100 in the CIO area)
•
Allocated word in the PT status notify area: 00110 (word 110 in the CIO area)
PC Program
Create the PC ladder program as indicated below.
@MOV(21)
DM0100
DM0101
11112
(1)
(2)
Screen
switching
strobe
Word for storing the screen number of the previous screen
Word for notifying the screen number of the presently displayed screen
Word for storing the screen number of the new screen
@MOV(21)
100
DM0100
Program Operation
1, 2, 3...
1. When the screen switching strobe (bit 11112) comes ON as the screen is
switched by operation at the PT, the program transmits the data at DM0100
Example of Use
electronic components distributor
Summary of Contents for NT21 Series
Page 3: ...iv Downloaded from Elcodis com electronic components distributor...
Page 5: ...vi Downloaded from Elcodis com electronic components distributor...
Page 463: ...Downloaded from Elcodis com electronic components distributor...
Page 465: ...Downloaded from Elcodis com electronic components distributor...