NT21_Reference Manual (V069-E1-1) (986756), страница 64
Текст из файла (страница 64)
When the screen switching strobe (bit 11112) comes ON as the screen isswitched by operation at the PT, the program transmits the data at DM0100to DM0101. The previous screen number is saved to the word provided forthat purpose.2. The program reads out the new screen number that was notified to the PT totransmit it to DM0100. The screen number of the screen presently displayedat the PT is stored to DM0100.307SectionDisplay and Control of Windows3-43-4Display and Control of WindowsA window means a partial screen that can be displayed on the presently displayed screen (base screen).A window can be created by registering a screen under a screen number from 1to 3999 as a window screen.This section describes the following types of operation that can be performed fora window.• Opening/closing/moving a window• Checking the display status of a window• Disabling/enabling the opening of a windowReference:S Window screen is called window/keyboard screen at the Support Tool.S Window has the following two types.Global window:Local window:3-4-1 Opening/Closing/Moving a WindowThe PT provides the following methods to open/close/move a window.• Pressing a touch switch that has the input key-window/keyboard function.(Opening/closing are possible)• Pressing a touch switch that has the cursor moving key function.
(windowopening only)• Pressing a touch switch that has the window moving key function. (windowmoving only)• Controlling the window by the operation of the window control area from thehost (Window opening/closing/moving are possible)• Setting Load Local 1 (Keyboard), Load Local 2 screen attribute for a standardscreen and perform screen switch. (window opening only)Reference:S If 1 (disable) is set for the window opening PT status control bit, it is not possible to open a window by operation at the PT. (Closing of a window is allowed.)S Touch switch operation will be disabled when the touch switch interlock function is being used and the host’s interlock bit that controls the touch switch’soperation is OFF. (See Disabling Touch Switches with Interlock Bits on page370 for details.)S If the window for which open is specified is not a window screen, the windowopen command is disregarded.S When creating a screen with the Support Tool, it is possible to designate a window that is opened at the same time the screen is displayed (set with the LoadWindow/Keyboard Screen attribute of Screen Property).308SectionDisplay and Control of Windows3-4Opening/Closing a Window by Pressing a Touch Switch That Has the Input Key –Keyboard FunctionIf this method is used, the specified window can be opened and closed by operation at the PT.By this method, only the local window can be controlled.No changes after pressing SCREEN 1No changes after pressing CLOSEBase ScreenBase ScreenOpening window 1SCREEN 1Opening/closing window 2SCREEN 2ClosingCLOSEPressing SCREEN 1SCREEN 1Pressing CLOSEScreen 1SCREEN 2CLOSEPressingSCREEN 1Pressing SCREEN 2Pressing SCREEN 2Pressing CLOSEPressingSCREEN 2Base ScreenSCREEN 1Screen 2SCREEN 2CLOSESettingWhen creating a screen, set the input key – keyboard function that opens/closesa window for the touch switch and specify the window screen number (keyboardscreen number) of the window to be opened.
Register the window number forthe screen.The window screen numbers that can be set are:0001 to 3999:Screen (keyboard screen) No. 1 to No. 3999Reference: If the specified number is not the number of a window screen, no window opens.OperationPress a touch switch that has the input key – keyboard function to open/close awindow.The window set for the touch switch opens.Reference: When words are allocated for the window control area in the host, window screennumber and the bottom left coordinate of the window that is opened are notifiedto the window control area. (Refer to page 313)Also, window open status bit of the corresponding window type in PT statusnotify area goes ON. (Refer to page 313)Opening/Closing a Window by Pressing a Touch Switch That Has the Cursor MovingFunctionIt is possible to give a cursor moving key, which is used to specify numeral orcharacter string input fields, the function of opening a window.By this method, only the local window can be controlled.In this method, a specific window (keyboard screen) can be opened at the sametime as a numeral or character string input field is specified by operation at thePT.309SectionDisplay and Control of Windows3-4When a cursor moving key is used, the window opens in the same manner as aninput key-window/keyboard function that has open action type.Numeral/character string input fieldTouch switches for whichcursor moving andwindow openingfunctions setNumeral/character string input field123456123456–41.8ABCDEWhen the toptouch switchis pressed...–41.8123456The specified window opensSettingWhen creating a screen using the Support Tool, set the cursor moving functionfor a touch switch and specify the input field.
Then, specify the window number ofthe window screen (keyboard screen) to be displayed at the same time and register them for the screen.The window screen numbers that can be set are:0001 to 3999:Screen (keyboard screen) No. 1 to No. 3999Reference: If the specified number is not the number of a window screen, no window opens.OperationPress the touch switch that has the cursor moving function to specify the numeral/character string input field.
The specified window is automatically opened.Reference: When a window control area is allocated words in the host, window screen number and the bottom left coordinate of the window that is opened are notified to thewindow control area. (Refer to page 313)Also, window open status bit of the corresponding window type in PT statusnotify area goes ON. (Refer to page 313)Opening a Window by Pressing a Touch Switch That Has the Window MovingFunctionIn this method, a window can be moved by operation at the PT.By this method, only the local window can be controlled.SettingWhen creating a screen using the Support Tool, set the window moving functionfor a touch switch and register it for the window to be moved.Operation1, 2, 3...1.
Press the touch switch that has the window moving function on the windowto be moved.The window is changed to a frame display only with a + mark at the center ofit.2. Press the touch panel of PT at a destination position of the window.Window is moved to that position. (The center position of the window comesto the pressed position.)310SectionDisplay and Control of Windows3-4If the window is going to extend out the screen boundary with the specifiedposition, the position of the window is automatically adjusted so that the window comes within the screen.Window move touch switchMoveMovePress the destination positionReference: When a window control area is allocated words in the host, the bottom left coordinate of the window after moving operation is notified to the window control area.(Refer to page 313)Opening/Closing/Moving a Window by the Operation of Window Control AreaIf this method is used, the window can be opened, closed and moved by operation from the host.By this method, both the global window and local window can be controlled.SettingTo use a window control area, allocate words for the window control area in thehost when creating a screen using the Support Tool.OperationIn the window control area, the following three words are provided for each global window, local window 1 and local window 2.Word 1514131211109876543210BitScreen No.
(4-digit BCD or hexadecimal)kk+1X coordinate (4-digit BCD or hexadecimal)k+2Y coordinate (4-digit BCD or hexadecimal)k+3Screen No. (4-digit BCD or hexadecimal)k+4X coordinate (4-digit BCD or hexadecimal)k+5Y coordinate (4-digit BCD or hexadecimal)k+6Screen No. (4-digit BCD or hexadecimal)k+7X coordinate (4-digit BCD or hexadecimal)k+8Y coordinate (4-digit BCD or hexadecimal)Global windowLocal Window1Local Window2To control a window, operate the window control area as follows:1, 2, 3...1.
To open a window, write window screen number in 4-digit BCD or hexadecimal to window screen number of the window type to be used. Then, write thecoordinate of window (bottom left coordinate of the window) in 4-digit BCDor hexadecimal to X coordinate and Y coordinate. Which of BCD or hexadecimal is used is determined by the setting of Tools – PT Configuration – System – Numeral Storage Type at the Support Tool.The window screen numbers that can be set are:0001 to 3999: Screen (keyboard screen number) 1 to 3999The coordinates that can be set are:PT modelAllowed settingsNT21X coordinate: 0000 to 0240 (0000 to 00F0 hexadecimal)Y coordinate: 0019 to 0139 (0013 to 008B hexadecimal)NT31/NT31CX coordinate: 0000 to 0300 (0000 to 012C hexadecimal)Y coordinate: 0019 to 0239 (0013 to 00EF hexadecimal)NT631/NT631CX coordinate: 0000 to 0620 (0000 to 026C hexadecimal)Y coordinate: 0019 to 0479 (0013 to 01DF hexadecimal)311Display and Control of WindowsReference:Section3-4S When a new window is opened (when a window screen number is changedfrom 0000), window open status bit of the corresponding window type in PTstatus notify area goes ON.
(Refer to page 313) However, when a window thatis already opened is switched (when a window screen number is changed),window open status bit does not change.S The position on which a window is actually displayed is by 20 dot unit. When theX coordinate is not multiple of 20 or when Y coordinate is not multiple of 20 – 1,the specification is disregarded. (In case of moving operation, nothing isexecuted.
In case of opening a new window, the window is displayed at theposition that was specified when it was created.)This rule also applies when the specification is made so that the window is going to extend out the screen boundary with the specified value.S If the specified number is not the number of a window screen, no window isopened, and window screen number in window control area is returned to0000, consequently, the window is closed.S Displayed window is switched when the window screen number of presentlydisplayed screen is changed.2. To move the position of a presently displayed window, write the new coordinate to X coordinate and Y coordinate in the window control area that corresponds to the window.The values that can be specified are same as for (1) (open).3.
To close a presently displayed window, write 0000 to window screen numberin the window control area that corresponds to the window.Window is closed, however, X coordinate and Y coordinate retain existingvalues.Reference:S When a window is closed, window open status bit of the corresponding window type in the PT status notify area goes OFF. (Refer to page 313)S When NT20S or NT30/620 compatible mode is being used, the word containing the PT status notify bits is shifted down one word. (Refer to page NO TAG.)Opening a Window by Setting Load Local 1 (Keyboard) or Load Local 2 ScreenAttributeIf this method is used, the specified window can be opened automatically at thesame time the screen is displayed by setting the screen number of the local window to be displayed for a screen attribute of a standard screen.Each time the screen is switched to the one for which Load Local 1 (Keyboard) orLoad Local 2 screen attribute is set, the specified window opens.By this method, only the local window can be opened.