Omron NT21 Reference Manual page 328

Programmable terminals
Hide thumbs Also See for NT21:
Table of Contents

Advertisement

Display and Control of Windows
15
14
13
12
11
10
0
Reading Out the Opening/Closing Status of a Window
The bit for notifying the PT status (PT status notify bit) is provided at the second
word (word m + 1) from the beginning of the PT status notify area.
9
8
7
6
5
4
3
2
0
0
0
Check the bits from 3 to 5 of the second word (word m + 1) from the beginning of
the PT status notify area with the program in the host.
The status of each bit and the correspondence to a window are as follows:
Bit
5
4
3
By checking the status of the bit shift, it is possible to know the occurrence of
opening/closing of the window.
Notification of Window Screen Number and Coordinates
In the window control area, the following three words are provided for each glob-
al window, local window 1 and local window 2.
15
14
Word
k
k+1
k+2
k+3
k+4
k+5
k+6
k+7
k+8
With the program in the host, read out window screen number, X coordinate and
Y coordinate in a window control area that corresponds to the window of which
display status is to be checked.
The window screen number and bottom left X, Y coordinates of the window that
is presently displayed on the PT are stored in 4-digit BCD or hexadecimal. Which
of BCD or hexadecimal is used is determined by the setting of Numeral Storage
Type in PT Configuration at the Support Tool.
When the window is not displayed, 0000 is stored in window screen number. In
the case of global window, however, when the screen other than user screen
1
0
Bit
0
0
Notified Information
15
PT operation status
13
Battery status
12
Screen switch strobe
11
Numeral setting strobe flag
10
Character string setting strobe flag
7
Printer operating status
6
Backlight status
5
Global window open status
4
Local window1 open status
3
Local window2 open status
Bit 7 is not supported by the NT21.
Name
Global window open status
Local window 1 open status
Local window 2 open status
13
12
11
10
9
8
7
6
Screen No. (4-digit BCD or hexadecimal)
X coordinate (4-digit BCD or hexadecimal)
Y coordinate (4-digit BCD or hexadecimal)
Screen No. (4-digit BCD or hexadecimal)
X coordinate (4-digit BCD or hexadecimal)
Y coordinate (4-digit BCD or hexadecimal)
Screen No. (4-digit BCD or hexadecimal)
X coordinate (4-digit BCD or hexadecimal)
Y coordinate (4-digit BCD or hexadecimal)
Section
1 (ON)
0 (OFF)
Run
Stop
Low
Normal
Printing
Stopped
Off
Lit/Flashing
Open
Closed
Open
Closed
Open
Closed
1 (ON)
0 (OFF)
Open
Closed
Open
Closed
Open
Closed
5
4
3
2
1
0
Bit
Global window
Local Window1
Local Window2
3-4
313

Advertisement

Table of Contents
loading

This manual is also suitable for:

Nt631Nt31 seriesNt21 seriesNt631 series

Table of Contents