SHARP XEA201O, XE-A201 Service Manual

XE-A201UC
q
SERVICE MANUAL
CODE :
00ZXEA201UCSE
XE-A201 ONLINE COMMUNICATION FUNCTION
ELECTRONIC CASH REGISTER
MODEL XE-A201
(For "U" & "A" version)
CHAPTER 1.
CHAPTER 2.
CHAPTER 3.
CHAPTER 4.
CHAPTER 5.
CHAPTER 6.
CHAPTER 7.
CHAPTER 8.
CONTENTS
OVERVIEW......................................................................................
SYSTEM CONFIGURATION...........................................................
INTERFACE SPECIFICATIONS......................................................
SIGNAL CONNECTION DIAGRAM.................................................
ONLINE PROTOCOL.......................................................................
CONTROL SIGNAL SEQUENCE....................................................
TEXT BLOCK FORMAT................................................................
ONLINE APPLICATION................................................................
1
1
1
1
2
7
10
11
This document has been published to be used
SHARP CORPORATION
for after sales service only. The contents are subject to change without notice.
XE-A201UC
CHAPTER 1. OVERVIEW
1. GENERAL
This is a specification of the on-line data communication via RS-232 interface. It enables the ECR to perform on-line communication. For on-line data communication a ECR can be connected to a host computer. We support mainly the following functions.
a) The function of ONLINE
1) Down load of ECR data (ECR 1 PC)
2) Up load of ECR data (ECR 3 PC)
3) RJE (Remote job entry) function (ECR 1 PC)
CHAPTER 2. SYSTEM
CONFIGURATION
1. GENERAL
Online data communication is allowed always.
g) Code : ASCII h) Bit sequence : LSB first i) Data format : 1 start bit + 7 data bits + 1 parity +
1 stop bit
b1 b2 b3 b4 b5 b6 b7
Start-bit
j) Protocol : Polling/selecting (Simple procedure) k) Transmission:
Cable : Shielded cable Connector (ECR side): D-sub 9 pin (female type) connector Inch
Connector cover : Shielded cover
Data-bit
pitch (4-40 UNC) lock screw
P
Parity-bit Stop-bit
CHAPTER 4. SIGNAL CONNECTION
DIAGRAM
1. CONNECTION BETWEEN THE MASTER (HOST) AND SATELLITE
2. ONLINE DATA COMMUNICATION
In this machine, the type of data communication is “Direct connection” only.
(a) Direct connection
Host computer ECR
CHAPTER 3. INTERFACE
SPECIFICATION
1. ONLINE INTERFACE
This cable is supported as the standard cable with ECR.
9PIN D-SUB 9PIN D-SUB
SD
RD
RTS
DCD
DTR
DSR
CTS
SG
3
2
7
1
4
6
8
55
3
2
7
1
4
6
8
SD
RD
RTS
DCD
DTR
DSR
CTS
SG
a) Interface : RS-232 b) Duplex type : Half-duplex / Full-duplex c) Line configuration : Direct connection/Modem connection d) Data rate : 19200, 9600, 4800 and 2400 bps
(Programmable) e) Synchronizing mode : Asynchronous f) Parity check : Vertical parity check (odd)
SD : TRANSMITTED DATA RD : RECEIVED DATA DTR : DATA TERMINAL READY DSR : DATA SET READY RTS : REQUEST TO SEND DCD : DATA CARRIER DETECTOR CTS : CLEAR TO SEND
– 1 –
CHAPTER 5. ONLINE PROTOCOL
1. BASIC PROTOCOL SPECIFICATION
1) Data transmission from the host to a satellite
( 1 ) Inquires of the satellite.
XE-A201UC
Host Satellite
( 4 ) Receives ACK.
( 5 ) Sends the text.block.
Three types of text block formats are available
( 7 ) Resends the text block if NAK is received. Resends the text block up to two times. Sends EOT and terminates the operation with error if NAK is still received after the second resending of text block.
( 9 ) Sends the next text if ACK is received and sends EOT and terminates the operation if data transfer is fi na i iz ed .
Dummy (3bytes)
Start code Text (parameter) End code
Text (FDS)
Text (DATA)
Terminal No. (6bytes)
ENQ
( 2 ) Receives ENQ. Check the terminal No. to see if it is its own.
( 3 ) Sends ACK.
ACK
( 6 ) Receives text. Checks the check sum,text data,etc. And goes to (8) if there is no error in them.
( 8 )' Sends NAK if any error occurs.
NCK
( 8 ) Sends ACK.
ACK
– 2 –
EOT
( 10 ) Terminates the operation if EOT is received.
XE-A201UC
2) Data transmission from satellite to the host
( 1 ) Inquires of the satellite.
Host Satellite
Dummy (3bytes)
( 4 ) Receives ACK.
( 5 ) Sends the text.block.
Start code Text (parameter) End code
( 7 ) Resends the text block if NAK is received.
Resends the text block up to two times.
Sends EOT and terminates the operation with error if NAK is still received after the second resending of text block.
( 9 ) Sends the next text if ACK is received and sends EOT and
waits for ENQ.
Terminal No. (6bytes)
ENQ
( 2 ) Receives ENQ. Checks the terminal No. to see if it is its own.
( 3 ) Sends ACK.
ACK
( 6 ) Receives text. Checks the check sum,text data,etc. And goes to (8) if there is no error in them.
( 8 )' Se nd s N A K if any error occurs.
NAK
( 8 ) Sends ACK.
ACK
EOT
ACK
( 10 ) Terminates the operation if EOT is received.
ENQ
Continued on the next page
– 3 –
Continued from the preceding page.
XE-A201UC
Host Satellite
( 12 ) Sends text corresponding to the job code.
( 13 ) Receives text. Checks the check sum, text length, text data, etc. And goes to (15) if there is no error in them. Sends NAK if any error occurs.
NAK
(When an error occurs)
( 15 ) Sends ACK.
ACK
( 17 ) Terminates the operation if EOT is received.
Start code Text (FDS) End code
Text (DATA)
( 14 ) Resends text block if NAK is re ceived. Resends text up to two times,and performs error handling if NAK is still received after the second resending of text block.
( 16 ) Sends the next text if ACK is received, and sends EOT and terminates the operation if data transfer is finalized.
EOT
Note : For the description of each data block see section 4 (Text block formats)
Two types of text block formats are available.
2. TRANSMISSION CONTROL PROCEDURE MATRIX
1) Down-loading matrix for the host
STATE Initial After sending ID ENQ After sending text
EVENT 0 1 2
ENQ ...
Sends text and goes to 2. Sends text and goes to 2.
ACK .
NAK ..
EOT ..
TEXT ...
Resends ID ENQ and then goes to 1.
TIME-UP .
If the host has resent ID ENQ two times, it sends EOT and goes to 0. (ERROR END)
KEY ENTRY Sends ID ENQ and goes to 1. ..
Time-up: One second after sending of ID ENQ.
Four seconds after sending of text.
Sends EOT and then goes to 0. (Normal end)
Resends the text and then goes to 2. If the host has resent the text two times, it sends EOT and goes to 0. (ERROR END)
The host goes to 0. (ERROR END)
Resends the text and then goes to 2. If the host has resent the text two times, it sends EOT and goes to 0. (ERROR END)
– 4 –
XE-A201UC
2) Up-loading matrix for the host
STATE Initial After sending ID ENQ After sending text
EVENT 0 1 2
ENQ ACK
NAK
EOT
TEXT
TIME-UP
KEY ENTRY Sends ID ENQ and goes to 1.
Time-up: One second after sending of ID ENQ.
Four seconds after sending of text.
STATE After sending EOT After sending ACK After sending NAK
EVENT 3 4 5
Sends ACK and goes to 4. After the host has received ENQ, resends
ENQ
ACK NAK
The host goes to 0.
EOT
TEXT
TIME-UP
KEY ENTRY
(ERROR END)
Resends EOT and goes to 3. If the host has resent the EOT two times, it goes to 0. (ERROR END)
Time-up: Two second after sending of EOT.
...
.
..
..
...
.
...
...
.
...
Sends text and goes to 2. Sends EOT and goes to 3.
Resends the text and then goes to 2. If the host has resent the text two tim es, it goes to 0. (ERROR END)
The host goes to 0. (ERROR END)
Resends ID ENQ and then goes to 1. If the host has resent ID ENQ two timesit goes to 0. (ERROR END)
..
ACK and goes to 4. After the host has recei ved TEX T, ignores the ENQ.
After the host has r ec eive d T EX T, go es t o 0. (Normal end) After the host has received ENQ, goes to 0. (ERROR END)
The host checks the text block, if the block is correct, the host sends ACK and goes to 4. If is not correct, t he host send s NAK and goes to 5. If transmission cannot be continued, the host sends EOT and goes to 0.
The host goes to 0. (ERROR END) Time-up is 7 seconds
Resends the text and then goes to 2. If the host has resent the text two tim es, it goes to 0. (ERROR END)
The host goes to 0. (ERROR END)
The host checks the text block, if the block is correct, the ho st se nd s ACK and go es to 4. If is not correct, the ho st sends NA K and goes to 5. If transmissi on ca nn ot be co nt in ue d, t he hos t sends EOT and go es to 0. (ERROR END)
The host goes to 0. (ERROR END) Time-up is 7 seconds
.
3) Down-loading matrix for the satellite
STATE Initial After sending ACK After sending NAK
EVENT 0 1 2
ID-ENQ
ACK NAK
EOT
TEXT
TIME-UP
Satellite checks the terminal No.:If it is cor­rect, satellite sends ACK and goes to 1. If is not correct, Satellite ignores the ID­ENQ.
...
...
.
.
.
Satellite checks the terminal No.:If it is cor­rect, satellite sends ACK and goes to 1. If it is not correct, Satellite ignores the ID­ENQ.
After satellite has received TEXT, goes to 0. (Normal end) Before satellite has recei ve d TEXT , i gnores the EOT
Satellite checks the text block, if the block is correct, Satellite sends ACK and goes to 1. If it is not correct, satellit e sends NAK an d goes to 2. If transmission cannot be continued, satel­lite sends EOT and goes to 0. (ERROR END)
Satellite sends EOT, and goes to 0. (ERROR END) Time-up is 7 seconds
– 5 –
Satellite goes to 0. (ERROR END)
Satellite checks the text block, if the block is correct, Satellite sends ACK and goes to 1. If it is not correct, satellite s ends NAK and goes to 2. If transmission cannot be continued, satel­lite sends EOT and goes to 0. (ERROR END)
The host goes to 0. (ERROR END) Time-up is 7 seconds
.
XE-A201UC
4) Up-loading matrix for the satellite
STATE Initial After receiving ID-ENQ and sending ACK. After sending NAK
EVENT 0 1 2
Satellite checks the terminal No.:If it is cor-
ID-ENQ
ACK ... NAK ...
EOT ..
TEXT .
TIME-UP .
rect, satellite sends ACK and goes to 1. If it is not correct, satellite ignores the ID­ENQ.
Satellite checks the terminal No.:If it is cor­rect, satellite sends ACK and goes to 1. If it is not correct, satellite ignores the ID­ENQ.
Satellite checks the text block, if the block is correct, satellite sends ACK and goes to
3. If it is not correct, Satellite sends NAK and goes to 2. If transmission cannot be continued, satel­lite sends EOT and goes to 0. (ERROR END)
Satellite goes to 0. (ERROR END) Time-up is 7 seconds
.
Satellite goes to 0. (ERROR END)
Satellite checks the text block, if the block is correct, satellite sends ACK and goes to
3. If it is not correct, Satellite sends NAK and goes to 2. If transmission cannot be continued, satel­lite sends EOT and goes to 0. (ERROR END)
Satellite goes to 0. (ERROR END) Time-up is 7 seconds
STATE After receiving text and sending ACK After sending ENQ After sending TEXT
EVENT
ID-ENQ ...
ACK .
NAK ..
Satellite sends ENQ and goes to 4. Resends the ENQ and then goes to 4.
EOT
Satellite checks the text block, if the block is correct, satellite sends ACK and goes to
3.
TEXT
TIME-UP
Time-up: Four seconds after sending of text.
If it is not correct, satellite sen ds NA K and goes to 2. If transmission cannot be continued, satel­lite sends EOT and goes to 0. (ERROR END)
The host goes to 0. (ERROR END) Time-up is 7 seconds
Two second after sending of ENQ.
345
Satellite sends the text and goes to 5. Sate ll it e s en d s t he te xt a nd go e s t o 5 , o r
If satellite has resent the ENQ two times, sends EOT and goes to 0. (ERROR END)
..
Resends the ENQ and then goes to 4. If satellite has resent the ENQ two times, sends EOT and goes to 0. (ERROR END)
sends the EOT and goes to 0. (Normal END)
Resends the text and then goes to 5. If satellite has resent the text two times, sends EOT and goes to 0. (ERROR END)
Satellite goes to 0. (ERROR END)
Resends the text and then goes to 5. If satellite has resent the text two times, sends EOT and goes to 0. (ERROR END)
– 6 –
XE-A201UC
CHAPTER 6. CONTROL SIGNAL SEQUENCE
1. ONLINE TRANSMISSION
1) Half duplex transmission
DTEDCE
DATARD
RTS
CTS
DSR
DCD
DTR
2) Full duplex transmission
DTEDCE
DATARD
3) Line connection sequence flow
STARTED BY P.C
DATASD
INITIAL
DTR ON
< 100ms
DSR ON ?
YES
NO
FULL DUPLEX ?
YES
RTS ON
DATASD
LINE ESTABLISHED
NO
RTS
CTS
DSR
DCD
DTR
< 100ms
– 7 –
4) Transmission sequence flow
LINE ESTABLISHED
XE-A201UC
YES
FULL DUPLEX ?
NO NO
DCD OFF ? TIME OUT ?
YES
RTS ON
DSR ON ?
YES
FULL DUPLEX ?
YES
DCD ON ?
YES
CTS ON ?
YES
TIME OUT ?
5 sec
NO
30 sec
YES
YES
NO
TIME OUT ?
YES
7 sec (Programmable)
NO
YES
YES
TXRDY ?
SEND 1 CHARACTER
MORE TO SEND ?
FULL DUPLEX ?
WAIT 100ms
RTS OFF
LINE ESTABLISHED
YES
YES
LINE ESTABLISHED
FULL DUPLEX ?
RTS OFF
DTR OFF RTS OFF
TRANSMIT ERROR
– 8 –
XE-A201UC
5) Receiving sequence flow
LINE ESTABLISHED
DSR ON ?
YES
DCD ON ?
RXRDY ?
YES
READ 1 CHARACTER
EOT ?
ENQ ?
ACK ?
END CODE
NO
NO
NO
YES
YES
YES
YES
HALF
DUPLEX ?
YES
NO
NO
AFTER
RECEIVE
ER-OFF
COMMAND
YES
DTR OFF RTS OFF
NO
TIME OUT ?
30sec
TIME OUT ?
SEND TEXT
LINE ESTABLISHED
NO
YES
YES
YES
ID. ENQ ACK or NAK 4 sec TEXT 7 sec
NO
DTR OFF RTS OFF
RECEIVE ERROR
NAK ?
BUFFER FULL ?
YES
YES
LINE ESTABLISHED
DSR OFF
YES
INITIAL
NO
– 9 –
CHAPTER 7. TEXT BLOCK FORMAT
1. BASIC FORMAT
1) ID- E NQ :
EOT is set as dummy cahracters. (3 bytes)
2) ACK : 1 byte 06h
3) NA K :
4) EOT :
5) E NQ :
6) TEXT :
1 byte 15h 1 byte 04h 1 byte 05h
Data ASCII (max. 1000 bytes)
Bloc k co ns ec ut i v e N o .
Start code
Start code : This code may not be provided.
Null is impermissible.
End code : This code may not be provided.
Null or any same code as the start code is not permissible.
ENQ code (05h)
Terminal No. 00 00 01- 999 99 9 (6 byt es )
10bytes
End code
Check sum
XE-A201UC
Code conversion table.
Print code (high-order or low-order 4 bits) Line image
Bit image Hexadecimal ASCII
0000 0 30h 0001 1 31h 0010 2 32h 0011 3 33h 0100 4 34h 0101 5 35h 0110 6 36h 0111 7 37h 1000 8 38h 1001 9 39h 1010 A 41h 1011 B 42h 1100 C 43h 1101 D 44h 1110 E 45h 1111 F 46h
When master reset is performed, the default is assumed:
Start code = 02h End code = 0Dh
Block consecutive No. : This number starts with 30h and cycles
like this: 30h, 31h . 39h, 30h, 31h (Ring counter system)
Check sum : 2 bytes hex number
Low-order 8-bit data of the complement of 2 for the sum of text data.
RAM data : Even number of data that is obtained by
dividing one byte of RAM data into high­order 4 bits and low-order 4 bits and con­verting them to ASCII codes shown in the code conversion table.
Example
Memory image
Line image
02
30h
1
1
2
3
5A
F0
23
32h 35h
Transmission sequence
41h
46h 30h
– 10 –
XE-A201UC
CHAPTER 8. ONLINE APPLICATION
1. ONLINE PRESET
1. PGM Preset
Job # PGM-MODE programming for online operation
30 Programming of the terminal number 31 Programming of the transmission control 32 Programming of the baud rate 33 Programming of the start and end code 35 Programming of the timeout time
[JOB #30] MRS = 000001
Programming of the terminal number
PGM mode
000000
30
X
XXXXXX
XXXXXX : Terminal number
MRS = 000001 It is set to "000001" when master resetting is taken.
[JOB #31] MRS = 00
Programming of the transmission control If the specification of direct connection is used, this programming must
be not changed.
PGM mode
00
31
X
AB
STST TL
STST TL
[JOB #32] MRS = 05
Programming of the transmission data rate (Baud rate)
PGM mode
32
X
AB
32-A: Transmission data 32-A
Print data send 1 RAM data download and upload 0
32-B: Transm ission baud rate 32-B
2400 bps 6 4800 bps 5 9600 bps 4
19200 bps 3
STST TL
[JOB #33] MRS = 002013
Programming of the start end code If “000” is specified for each of the codes, the data block is provided
with neither the start code nor the end code.
PBM mode
000000
33
XXX : Start code YYY : End code
X
XXXYYY
STST TL
31-A: Not used 31-B: Transmission line form 31-B
Half duplex system 1 Full duplex system 0
When master resetting is taken, “002013” is specified. This means that the data block is provided with the start code 02h
(STX) and the end code 0Dh (CR). Enter both the codes in decimal digits. Any figures greater than 127 can not be specified for start and end
codes.
[JOB #35] MRS = 007
Programming of the timeout time
PGM2 mode
– 11 –
35
X
XXX
XXX : Time out time (1-255 sec)
STST TL
XE-A201UC
q
COPYRIGHT ã 2001 BY SHARP CORPORATION
All rights reserved.
Printed in Japan.
No part of this publication may be reproduced,
stored in a retrieval system, or transmitted.
In any form or by any means,
electronic, mechanical, photocopying, recording, or otherwise,
without prior written permission of the publisher.
SHARP CORPORATION Information Systems Group Quality & Reliability Control Center Yamatokoriyama, Nara 639-1186, Japan
2001 October Printed in Japan
t
Loading...