JCM
Part
No
.
960
-
000053R
_
Rev
.
6
©
2007,
JCM
-
American
Corporation
6
-
2
1
Programming
and
Testing
AD
-
02
Retrievable
Bill
Validator
Section
6
Command/Response
Protocol
C
OMMAND
/R
ESPONSE
L
IST
Table
6
-
9
lists
the
Name
and
Function
for
each
Command
Code
.
See
Figure
6
-
57
AD
-
02
Normal
State
Command/
Response
Sequence
Flow
Diagram
on
page
6
-
25
.
C
OMMAND
F
ORMAT
Table
6
-
10
lists
the
command
format
bit
code
structure
.
The
code
bit
positions
are
defined
as
follows:
Bit
1
Command
Code:
1
Byte
Specified
depending
on
the
processing
request
.
Bits
2
-
6
Time
Data:
5
Bytes
Year/Month/Day/Hour/Minute
data
Since
this
data
area
is
not
used
in
this
specification,
these
bytes
can
be
filled
with
any
appropriate
user
data
.
Bit
7
Command
Text
Data:
X
Bytes
Used
to
set
each
command
parameter
.
The
length
(X)
of
the
text
is
defined
for
each
command
.
R
ESPONSE
F
ORMAT
Table
6
-
11
lists
the
response
format
bit
code
structure
.
The
code
bit
positions
are
defined
as
follows:
Bit
1
Response
Code:
1
Byte
Same
as
the
received
command
.
Bit
2
Response
Parameter:
1
Byte
When
the
machine
sends
a
response
without
executing
the
processing
specified
by
the
received
command,
and
of
the
bits
listed
in
Table
6
-
12
will
be
sent
to
Response
Code
Bit
1
.
In
this
case
response
text
data
will
not
be
added
.
Bits
3,
4
&
5
Machine
Status:
3
Bytes
Indicates
machine
status
.
Normally,
only
one
of
the
bits
is
set
to
1
.
However,
if
a
program
error
is
detected
when
the
power
is
turned
ON,
both
the
Power
-
ON
and
Waiting
for
Download
bits
are
set,
and
the
machine
enters
into
a
compulsorily
download
mode
.
Machine
Status
1
is
defined
in
Table
6
-
13
.
Machine
Status
2
is
defined
in
Table
6
-
14
.
Table
6
-
9
Command
and
Response
Code
Listing
Command
Code
(Hex)
Command
Name
Command
Function
(Outline)
30
(H)
Reset
Initializes
the
machine
52
(H)
Status
3
Requests
machine
status
information
during
a
download
90
(H)
Download
Request
Requests
a
download
start
91
(H)
Download
Data
Transfers
and
writes
downloaded
data
92
(H)
Download
End
Notifies
a
download
termination
.
Table
6
-
10
Command
Format
Listing
Bit
Command
Code
1
Command
Code
2
Time
Data
Year
3
Time
Data
Month
4
Time
Data
Day
5
Time
Data
Hour
6
Time
Data
Minute
7
Command
text
data
.
Table
6
-
11
Response
Format
Listing
Bit
Command
Code
1
Response
Code
2
Response
Parameter
3
Machine
Status
1
4
Machine
Status
2
5
Machine
Status
3
6
Bill
Storage
Condition
1
7
Bill
Storage
Condition
2
8
Error
code
9
Response
text
data
.
Table
6
-
12
Response
Parameter
Descriptions
Bit
Name
Description
0
Command
Error
When
an
undefined
command
is
received
1
Command
Parameter
Error
When
the
command
parameter
setting
is
invalid
2
Command
Execution
Disabled
When
an
un
-
executable
command
in
the
current
machine
status
is
received
3
to
7
Zero
-
Fixed
N/A
.
Table
6
-
13
Machine
Status
1
Code
Bit
Definitions
Bit
Name
Function
0
Power
-
ON
From
the
moment
power
is
turned
ON
until
a
reset
command
is
executed
1
Resetting
Active
during
a
reset
operation
2
Standby
Power
ON
Standby
3
to
7
Zero
-
Fixed
N/A
.
Table
6
-
14
Machine
Status
2
Code
Bit
Definitions
Bit
Name
Function
0
On
Alarm
When
issuing
an
alarm
1
to
3
Fixed
to
Zero
(0)
None
4
Waiting
for
Download
Waiting
to
receive
download
data
5
Write
Download
Data
Writing
Download
Data
Table
6
-
11
Response
Format