NT21_Reference Manual (V069-E1-1) (986756), страница 50
Текст из файла (страница 50)
(Local window 1/Localwindow2)238Section 2-15Window FunctionOpening, closing or moving a window can be performed by the following operations.• Setting the screen attribute (A window pops up when the screen is displayed.)• Touch switch operation (using input key-window/keyboard or window movefunction touch switch)• Window control area operation from the host.It is possible to specify the window type that is used for opening a window, therefore, the same window can be opened as a global window or as a local window.However, it is not possible to display the same window multiply using both window types.Reference: With PT, up to 3 windows can be opened at the same time. (1 global window and 2local windows)2-15-3 Window Screens and Display ElementsUsing the window function, window can be created in any of the user screens,numbered 1 to 3999 (a screen for which a window is registered is called a window screen)When a screen is registered as a window screen, the window area must be specified to set the size of the window.
The window is always displayed at the window area size.In addition, window position can be specified for the screen attribute, touchswitch property or window control area when displaying the window. The windowposition can be moved later by touch switch operation or by a specification atwindow control area.With PT windows, all elements other than thumbwheel switch and recipe objectscan be registered.However, only one temporary input field (numeral or string input) can be registered for a window.By setting the background color screen attribute for a window screen, the window can be displayed with a different background color than that of the basescreen.Reference:S Elements that project beyond the window area will not be displayed when thewindow opens.S While a window is open, display processing is slightly delayed.2-15-4 Opening/Closing and Moving a WindowWindow can be controlled by the following operations.Opening windows bysetting screen attributeWhen creating a screen using the Support Tool, up to two windows can be specified as a pop-up window that is displayed at the same time the screen is opened.By this method, window is displayed at the position that was specified when window screen was created.
This kind of window is a local window. For details of thesetting, refer to Screen Attributes (page 45)WindowopensSwitch screen239Section 2-15Window FunctionOpening/Closing andmoving a window bytouch switch operationTo create a pop-up window/keyboard touch switch on a screen or a window enables to open/close specified window.By this method, window is displayed at the position set for touch switch property.This kind of window is a local window.Pop-up window keyboard touch switchWindow opensOpensAlso, by creating window move touch switch on window, it is possible to move awindow by touch panel operation at the PT.Window move touch switchMoveMovePress the destination positionFor details of touch switches, refer to 2-7 Touch Switches (page 119).It is not possible to control global window by touch panel operation.Opening/Closing andmoving a window by theoperation of windowcontrol areaWhile running the PT, by writing window screen number or X, Y coordinate ofwindow position (bottom left) at window control area from the host, opening/closing, moving window are possible.Window control area can control both global window and local window.
For details, refer to 3-4 Display and Control of Windows (page 309).NT31/NT31CPCLocal window 1 open(Window screen No.125)Window control areaScreen No.←0125X coordinate←0060Y coordinate←0179Local window 1Bottom left coordinate (60, 179)2-15-5 Size and Display Position of a WindowSize of a window can be specified freely by 20 dot unit when creating a windowscreen.
(Minimum window size: 20x20) It is possible to display a window at adifferent position from where it was created, or to move a window. (Distance ofmovement has to be multiple of 20 also.)Example:Original positionDestination PositionMoveMultiple of 20Multiple of 20240Section 2-15Window Function2-15-6 Changing the Displaying Order of WindowsWhen multiple windows are displayed on a base screen, the part of the windowsmay overlap with each other.
To move a window that is covered by the other window to the front, follow the methods below.• Changing the displaying order by opening or moving operation of the windowThe window that was opened or moved last comes to the front.Pop-up window/keyboardWindow openstouch switchOpenWindow already opened• Changing the displaying order by closing operation of the windowWhen the window at the front is closed, the window displayed next comes tothe front.Close the window at the frontThe window displayed next comes to the front• Changing the displaying order by touch panel operation at the PTWhen the window is touched, while it is being displayed, the touched windowcomes to the front automatically. However, if a touch switch is registered at thetouched position, the touch switch function will be performed and the displaying order of windows is not changed.• When a window other than touch switch position is pressedNotify bit touch switchTouch the position other than touch switchThe touched window comes to the front• When a touch switch on a window is pressedNotify bit touch switchNotifiesHostTouch a touch switchWindow status does not change.Touch switch functions.2-15-7 Checking the Display Status of a WindowWhether window is opened or closed is written to window open status at PT status of PT notify area.241Section 2-15Window FunctionWindow screen number and window position (bottom left coordinate) of currently displayed screen is written to window control area.Checking these areas from the host enables to know the display status of window.
For details, refer to 3-4 Display and Control of Windows (page 309).2-15-8 Temporary Input FieldsNumeral/Character string input field registered on a window is a temporary inputfield.(Only one numeral or character string input field can be registered for a window.)This input field can be used - in combination with a number of numeral and character string input fields on base screen - for provisional input before any data isinput into the actual input field on the base screen.The advantage of a temporary input field is that entries can be input into it whilechecking the current setting on the base screen.Numeral input field Temporary input field (displays data being input)123456–41.80002.71Current setting0555.4474108 9 ↑5 6 ↓2 3 ±.
ENTWindowHowever, if there is not even one numeral setting input field (numeric key type) orcharacter string input field on the base screen, the temporary input field will notbe displayed (cannot be used).If the temporary input field has fewer digits than the actual input field on the basescreen (integer part + decimal fraction part + decimal point digit + sign digit ), itwill be displayed but can not be used.If it is not possible to use a temporary input field, the data has to be input directlyonto the base screen.2-15-9 Focus WindowFocus window is a screen on which currently activated input field (temporary input field) is registered. (In case there are no active input fields on windows evenwhen multiple windows are displayed, it means that there are no focus windows.)When the data is input from touch switches or bar code reader, the data is inputto a temporary input field on a focus window.The focus window is determined by the following rules.• When only one window has an active temporary input field.The window with an active input field is a focus window.• When there are multiple temporary input fields that are active.The one at the front of all the windows that have active input fields is a focuswindow.242Section 2-15Window FunctionExample:Character string Temporary input field 1input fieldTemporary input field 2GHDEIFABCWindow 1Window 3Window 2In the example above, window 2 is a focus window.
All the input indicated belowis performed to a temporary input field on window 2.• Input from a character string key on base screen• Input from a character string key on window 1• Input from a character string key on window 2• Input from a character string key on window 3• Input from a bar code readerReference: When a window 3 is touched on the position other than touch switch, the displayorder of the windows is switched and the window 3 will be the focus window.243Section 2-16Special Functions2-16 Special FunctionsApart from the elements, the PT has the following functions that can be executedat the PT itself.• Display history functionPage 244• Alarm history functionPage 246• Resume functionPage 249• Screen saver functionPage 249• Buzzer functionPage 250• Clock functionPage 251• Print function (NT31/NT31C and NT631/NT631C only)Page 253• Adjusting contrast and brightness during PT operationPage 255• Programming Console function (expansion function)Page 257• Device Monitor function(NT31/NT31C and NT631/NT631C only)Page 259• Mathematical functionPage 279These special functions are described here, except for the Device Monitor andmathematical functions, which are described in the following sections.2-16-1 Display History Record FunctionThe display history record function serves to record the order of display and display frequency of screens during operation.
The recorded data can be displayedand checked either from the System Menu or during operation.Procedure for Using theDisplay History RecordFunction1, 2, 3...The procedure for using the display history record function is as follows:1. Setting the Screen AttributeWhen creating screens with the Support Tool, set the History attribute forscreens whose display history is to be recorded.