![background image](http://html1.mh-extra.com/html/omron/nt21-series/nt21-series_reference-manual_744543313.webp)
3-4
Section
Display and Control of Windows
304
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.
0
0
1 (ON)
Run
Low
Printing
Off
Open
Open
Open
0 (OFF)
Stop
Normal
Stopped
Lit/Flashing
Closed
Closed
Closed
0
0
0
0
Notified Information
PT operation status
Battery status
Screen switch strobe
Numeral setting strobe flag
Character string setting strobe flag
Printer operating status
Backlight status
Global window open status
Local window1 open status
Local window2 open status
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 Bit
15
13
12
11
10
7
6
5
4
3
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
Name
1 (ON)
0 (OFF)
5
Global window open status
Open
Closed
4
Local window 1 open status
Open
Closed
3
Local window 2 open status
Open
Closed
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 13 12 11 10 9 8 7 6 5 4 3 2 1 0 Bit
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)
Word
k
k+1
k+2
k+3
k+4
k+5
k+6
k+7
k+8
Global window
Local Window1
Local Window2
With the program in the host, read out window screen number, X coordinate and
Y coordinate in a window control area which 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
which 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
electronic components distributor
Содержание NT21 Series
Страница 3: ...iv Downloaded from Elcodis com electronic components distributor...
Страница 5: ...vi Downloaded from Elcodis com electronic components distributor...
Страница 367: ...3 12 Section Enabling Disabling PT Operations 358 Downloaded from Elcodis com electronic components distributor...
Страница 399: ...4 4 Section Memory Link Online Transfer Function 390 Downloaded from Elcodis com electronic components distributor...
Страница 431: ...6 2 Section Responding to Displayed Error Messages 422 Downloaded from Elcodis com electronic components distributor...
Страница 463: ...Downloaded from Elcodis com electronic components distributor...
Страница 465: ...Downloaded from Elcodis com electronic components distributor...