-51-
-3 Sensor Status Check Commands
ENQ S Command (Sensor Status Inquiry Command)
[Explanation]
This command is for returning the present status of the card sensor. (The existence of a card at each
sensor position can be detected using this command.)
The data is of a form of 1-byte ASCII numeric code + CR. "1" is returned when a card is detected or
"0" when no card is detected.
[Format]
Host Computer
This device
ENQ
S
N
CR
Receive
(05H) (53H)
(0DH)
Receive
Data output
#
+ CR
1-byte status data
N is a 1-byte ASCII code indicating the sensor number. 1-byte data indicating the status of each
sensor by bit is returned when N is 0 or the status of a specified sensor when N is not 0.
When N = 0
When N
≠
0: The sensor is turned on when status data = 1 or off when status data = 0
N = 1 (31H): Sensor S1
2 (32H): Sensor S2
3 (33H): Sensor S3
4 (34H): Sensor S4
5 (35H): DF sensor
6 (36H): Cover open
(0: Close, 1: Open)
7 6 5 4 3 2 1 0
t
i
B
l
a
n
g
i
S
l
o
r
t
n
o
c
s
u
t
a
t
S
0
1
S
r
o
s
n
e
S
e
l
b
a
l
i
a
v
a
t
o
n
d
r
a
C
:
1
,
e
l
b
a
l
i
a
v
a
d
r
a
C
:
0
1
2
S
r
o
s
n
e
S
2
3
S
r
o
s
n
e
S
3
4
S
r
o
s
n
e
S
4
r
o
s
n
e
s
F
D
5
n
e
p
o
r
e
v
o
C
E
S
O
L
C
:
0
N
E
P
O
:
1
6
d
e
s
u
t
o
N
)
1
s
y
a
w
l
a
(
1
7
d
e
s
u
t
o
N
)
0
s
y
a
w
l
a
(
0
10.Data Transfer Mode