Omron NT620S Operation Manual page 228

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

Advertisement

Lamps and Touch Switches
5-3-5 Notifying the PC that a Switch has been Pressed
(Determining Touch Switch Status)
Procedure 1. Use the support tool to allocate the touch switch notify bits to the PC memory.
This section describes how the status of a touch switch (whether it has been
pressed or not) is ascertained.
With the NT620S/620C, when a touch switch is pressed, the notify bit allocated to
that touch switch in the PC memory is automatically notified.
Touch switch 1
NT620S/620C
The status of the notify bit reflects the touch switch status, as follows:
Momentary: 0 (OFF)
1 (ON)
. . .
Alternate:
The allocated bit is switches to 1 (ON) if currently 0, and to 0
(OFF) if currently 1.
Set:
The allocated notify bit is forcibly switched to 1 (ON).
Reset:
The allocated notify bit is forcibly switched to 0 (OFF).
The status of a touch switch is determined by checking the ON/OFF status of its
notify bit.
The touch switch notify bits can be allocated to the following areas of the PC
memory.
Symbol
C Series PCs
DM
Data memory
CH
Internal/Special Relay
TIM
Timer
CNT
Counter
HR
Holding Relay
AR
Auxiliary Relay
LR
Link Relay
Since all the CVM1/CV-series special auxiliary relays are allocated to the sys-
tem, they cannot be used for applications not related to the system.
The range of each memory area differs according to the PC type. See Appendix
L "PC Memory Map" (page 327).
When making a data memory (DM) specification, specify the bit number (00 to
15) following the word number.
2. When creating the screen data using the support tool, register the touch
switch for a screen.
3. Create the PC program to switch the notify bit of the touch switch ON and
OFF.
PC
Allocated notify bit (touch switch No. 1)
1
. .
Not pressed
Pressed
Allocated
CVM1/CV Series PCs
f
Data memory
f
Internal/Special Relay
Timer
Counter
f
f
Auxiliary Relay
f
Section
5-3
Allocated
f
f
f: OK
: NG
217

Advertisement

Table of Contents
loading

This manual is also suitable for:

Nt620c

Table of Contents