NT21_Reference Manual (V069-E1-1) (986756), страница 30
Текст из файла (страница 30)
It is possible to create a single large rectangular touchswitch using multiple touch switch elements.NT21:13 wide x 7 highNT31/NT31C: 16 wide x 12 highNT631/NT631C: 32 wide x 24 high20 dots20 dotsSTOPOne touch switch cancomprise multiple touch switchelements.Function ExecutionWhen the touch switch is pressed,the set function is executed.Size of Touch Switch ElementsModelWidthHeightNT21-ST121j-E9.0 mm9.0 mmNT31-ST121j-EV2NT31C-ST141j-EV27.2 mm7.2 mmNT631C-ST141j-EV27.2 mm7.2 mmNT631-ST211j-EV2NT631C-ST151j-EV26.6 mm6.6 mmIf any one of the touch switch elements within the set touch switch area ispressed, this is interpreted as the touch switch as a whole being pressed, andthe set function is executed.When Show ON State is set, for a moment, the display graphic is displayed inreverse video when the touch switch is pressed.Reference: If a touch switch with the screen switching function or pop-up keyboard functionis pressed while another touch switch is still being pressed, the key function willnot be executed.
Release the other key first.Interlock FunctionThe operation of a touch switch can be controlled (enabled/disabled) from thePC by setting the interlock function for the touch switch and allocating an interlock bit in a PC data area. The status of the allocated interlock bit is read and itsstatus determines whether the touch switch is enabled or disabled.The following table shows how touch switches operate when the interlock function is used or not used.InterlockfunctionOperationUsedThe touch switch operation is enabled only while the interlock bit isON. If the touch switch is pressed while the interlock bit is OFF, thebuzzer will sound and the touch switch operation won’t be performed.Not usedThe touch switch operation can be performed at any time.The PT continuously reads the status of the corresponding interlock bit while atouch switch that uses the interlock function is being displayed on the screen.
ifthe interlock bit’s status changes, the touch switch’s operation is disabled or enabled according to the interlock bit’s status.Output FunctionsTouch switches can make the following outputs depending on the processingfunction set for them.127SectionTouch Switches2-7Host Notification FunctionA bit at the host is overwritten in accordance with the set notification method.Screen Print Key Function (NT31/NT31C and NT631/NT631C Only)A hard copy of the currently displayed screen can be printed out at a printer connected to the PT.For details, see Processing Functions below.It is possible to sound the key press sound when a touch switch is pressed.Whether or not the key press sound is sounded can be set at key press soundwith memory switch.
(Refer to the Setup Manual for details.)Processing FunctionsWhen a touch switch is pressed, the function set for it is executed.There are nine functions that can be set for touch switches, as follows:• Host notification function• Screen switching function• Control key function• Character string input key function• Window key function• Copy key function• Cursor moving key function• Window move function• Screen print key function (NT31/NT31C and NT631/NT631C Only)Host Notification FunctionThis function notifies the host that a touch switch has been pressed.When this function is used, a bit for notification (the notify bit) must be set for thetouch switch. The input statuses of the touch switches displayed at the PT arealways reflected by the notify bits. If the notify bit is not set, the touch switch willnot function (it will function as a lamp only).The properties for input notification are as follows:SettingsAddressPC BitAddressAllocated bit for touch switch notification(Allocation of the notify bit, page 130).I/OCommentsComment that indicates the contents of the allocated bitCharacter string of up to 16 alphanumerics and symbolsAction TypeNotification operation when the touch switch is pressedMomentary, Alternative, Set, ResetTypes of Notification OperationThe following four methods for notification to the host can be selected.MomentaryWhile a touch switch is pressed the notify bit is ON; it goes OFF when the switchis released.1 (ON)Pressed↓Released↓Pressed↓Released↓Notify bit0 (OFF)AlternateEach time the touch switch is pressed, it goes OFF if it is ON, or ON if it is OFF.The status of the notify bit does not change when the touch switch is released.1 (ON)Notify bit0 (OFF)128Pressed↓Released↓Pressed↓Released↓SectionTouch Switches2-7SetWhen the touch switch is pressed, the notify bit comes ON, and it remains ONafter the switch is released.Pressed↓1 (ON)Released↓Pressed↓Released↓Notify bit0 (OFF)ResetWhen the touch switch is pressed, the notify bit goes OFF, and it remains OFFafter the switch is released.Pressed↓1 (ON)Released↓Pressed↓Released↓Notify bit0 (OFF)Reference: If there the same bit is allocated for more than one momentary touch switch onone screen, and more than one switch is pressed and released at the same time,the OFF status will be notified each time one of the switches is released.Notes on Notification OperationsThe manner in which touch switch notification is executed differs according tothe notification operation and communication method as follows:S Host linkS NT link for C or CVM1/CV-series PCs in an area other thanSNTlinkforCorCVM1/CV-seType of notificatheDM or EM Arearies PCs in the DM or EMtion operationS NT link for CS/CJ-series PCsAreain any areaMomentary SetReset(1) Notification in word units(all other bits in the wordare OFF)(3) Notification in bit units(4) Notification in bit unitsAlternate(2) Notification in word units(note that the wordcontents are read ondisplay and notification isbased on these contents)When using touch switch input notification, note the following points.• In the case of (1) in the table, the other bits in the same word are turned OFF bynotification.Bit 15 140 1Bit turned ON byladder program1001Touch switch pressedTouch switchnotify bitBit 15 140 01010Bits other thannotify bit go OFF• As shown in the example above, the only bits that are turned OFF are the onesthat were turned ON by processes other than PT operations, such as the ladder program or a Programming Device.In the NT21, NT31/NT31C, and NT631/NT631C, changes to bits by PT processes are always reflected correctly so the same word can be allocated forthe momentary, alternate, set, and reset touch switches.
(In the earlier NT20S,NT30/NT30C, and NT620S/NT620C/NT625C PTs, the same word could notbe allocated for the momentary touch switch because the other switches’ operations would turn OFF the momentary touch switch’s ON notification.)• In the case of (2) in the table, since notification is executed on the basis of thecontents of the word before the display, the other bits in the word are not over-129SectionTouch Switches2-7written.
However, if the contents of the word are changed at the host duringdisplay, they will be rewritten based on the contents before display.• If the screen is switched while a momentary touch switch is pressed, the touchswitch itself will disappear and the OFF status will be notified to the host.Therefore, in the case of (1) in the table, all the bits in the word will be set to theOFF status.• When using the host link, since writing in bit units is not possible, the statusesof bits other than the notify bit in the word allocated for a momentary/set/resettouch switch are not retained when the screen is switched.• If the status of a bit allocated for an alternate touch switch is changed otherthan by touch switch operation — for example by Programming Console operation — the correct operation of the alternate touch switch cannot be guaranteed from that point onward (the ON and OFF states may be transposed).• In the case of (3) and (4) in the table above, notification has no effect on theother bits in the word.Reference: In the case of (1) in the table above, even a bit whose status is retained by theKEEP instruction for ladder program self latch operation will be turned OFF.
Inorder to avoid this, allocate bits other than in the DM Area when using the NT linkalso.Allocation of the Notify BitThe notification bit can be allocated in the following host (PC) areas.SymbolC-series PCsAllocationCV-series PCsAllocationCS/CJ-series PCsAllocationNoneIR AreaOKCIO AreaOKCIO AreaOKHHR AreaOK------HR AreaNot forHost LinkAAR AreaOKAuxiliary AreaNoAR AreaOKLLR AreaOK------LR Area*1Not forHost LinkTTC Area,Timer PVsNoTimer Area,Timer PVsNoTC Area,Timer PVsNoTU------------TC Area,Timer Completion FlagsCTC Area,Counter PVsNoCounter Area,Counter PVsNoTC Area,Counter PVsCU------------TC Area,Counter Completion FlagsNot forHost LinkW------------WR AreaNot forHost LinkTK------------Task FlagsNot forHost LinkDDM AreaOKDM AreaOKDM AreaEEM Area *2,current bankOKEM Area,current bankE0_ toEC_---------Not forHost Link---Not forHost LinkNoOKEM Area *3(Current Bank)Not forHost LinkEM Area,EM banks 0 to CNot forHost Link*1: LR 00000 to LR 00199 are converted to CIO 01000 to CIO 01199.*2: The EM Area is supported only by C200HX/HG/HE(-Z)E PCs.*3: The EM Area current bank cannot be used in CS/CJ-series PCs when a 1:N NTLink (standard or high-speed) is being used through a Serial Communications130SectionTouch Switches2-7Board or Serial Communications Unit.
An error will occur during PT operation if abit is specified in a CS1-series PC’s EM current bank.The Auxiliary Area of the CVM1 and CV-series PCs is allocated to system functions, and it cannot be used for purposes other than system use.The range of each memory area differs according to the PC. Refer to Appendix DPC Memory Maps on page 441.When a DM Area or EM Area address is specified, add a bit number (00 to 15) tothe end of the word address.Screen Switching FunctionThis function allows the screen to be switched by touch switch operation at thePT, without instructions from the host.When this function is used, the screen to be displayed is set for the touch switch.When the touch switch is pressed, the display switches to the set screen (at thistime, the new screen number is notified via the PT status notify area).Reference:S When a screen with a number other than those indicated below is allocated toa touch switch, the screen does not switch and the currently displayed screenremains displayed.S The screen can also be switched by PT status control area operation (page300), by bit memory table operation (page 303), and by the alarm/history function (page 304).S To display overlapping screens, specify the screen number of the parentscreen.The attributes for screen switching are as follows:SettingsScreen No.Screen number of newly displayed screen (See note.)1 to 3999, 9001, 9002, 9020, 9021 to 9023, 9030, 9999Note The following screen numbers are not supported by the NT21:9021 to 9023 and 9030.Specified Screen Number and Display OperationThe display operation at the PT depends on the specified screen number, as follows:• Screen Nos.