![background image](http://html.mh-extra.com/html/omron/nt20s/nt20s_operation-manual_744540232.webp)
Bit
Parameter
213
Lamps, Touch Switches, Numeral Setting
Section 6-4
Touch Switch Number Output (from NT20S to Host)
Format
1B
[ESC]
48
H
m
1
* *
m
2
* *
0D
[CR]
m
1
m
2
: Address of the pressed touch # (2-digit hexadecimal)
00 to E2
H
(0 to 226)
Description
If a touch switch is pressed while the screen for which the “Bit In = Off” attribute is
set is displayed, the address of the pressed touch switch is reported to the Host.
Reference: If more than one touch switch is pressed at the same time, only the address of the
touch switch which was pressed first is reported to the Host.
Notification of numeral setting is not executed in the case of touch switches which
have been allocated as ten keys.
Touch Switch Bit Output (from NT20S to Host)
Format
1B
[ESC]
4A
J
s0
1
* *
s0
2
* *
s1
2
* *
s2
1
* *
s2
2
* *
s3
1
* *
s1
1
* *
0D
[CR]
s3
2
* *
s0,
…
s3:
Status of the touch switch (2-digit hexadecimal value for each switch)
The relationship between the touch switch number and an expression
of s0 to s3 in bits is given in the following table.
sx
1
sx
2
7
6
5
4
3
2
1
0
s0
07
06
05
04
03
02
01
00
s1
15
14
13
12
11
10
09
08
s2
23
22
21
20
19
18
17
16
s3
31
30
29
28
27
26
25
24
sx1:
Higher 4 bits of sx (x: 0 to 3)
sx2:
Lower 4 bits of sx
Bit ON:
The touch switch is on.
Bit OFF: The touch switch is off.
Example
Touch switches at addresses 0, 3, 21, and 27 are ON
s0
1
s0
2
s1
1
s1
2
s2
1
s2
2
s3
1
s3
2
=09002008
Description
S
If the touch switch status is changed while the screen for which the “Bit Input,
Touch Switch” attribute is set is displayed, the status of the corresponding bit is
reported to the Host.
S
This report is made each time a touch switch is turned ON or OFF.
Summary of Contents for NT20S
Page 1: ...Cat No V020 E1 04 NT20S Programmable Terminal OPERATION MANUAL ...
Page 2: ...i ...
Page 3: ...ii ...
Page 4: ...iii NT series Programmable Terminal Operation Manual Revised August 1997 ...
Page 5: ...iv ...
Page 7: ...vi ...
Page 11: ...x ...
Page 19: ...xviii ...
Page 129: ...110 ...
Page 169: ...150 ...
Page 253: ...234 ...