DOWNLOAD Sharp UP-5300 (serv.man2) Service Manual ↓ Size: 17.14 MB | Pages: 74 in PDF or view online for FREE

Model
UP-5300 (serv.man2)
Pages
74
Size
17.14 MB
Type
PDF
Document
Service Manual
Brand
Device
EPOS / UP5300 Internal Printer (UPT80BP) Service Manual
File
up-5300-sm2.pdf
Date

Sharp UP-5300 (serv.man2) Service Manual ▷ View online

No.
Command
Function
Remarks
47
[GS] H [n]
Select printing position of HRI character
48
[GS] I
Transmits printer ID.
ROM version etc. are transmitted.
49
[GS] P [n1] [n2]
Sets basic line feed pitch.
50
1
 [GS] V [m] 
2
 [GS] V [m] [n]
Cuts paper.
Valid only at the beginning of a line.
51
[GS] a [n]
Enables/disables automatic status transmission.
52
[GS] f [n]
Selects font for HRI character.
Font A and Font B can be set.
53
[GS] h [n]
Selects height of bar code.
Number of dots.
54
1
 [GS] k [m] [data] k [00]
2
 [GS] k [m] [n] [data] k
Selects bar code system and prints bar code.
55
[GS] r [n]
Transmit status.
Status: Same as [ESC] v and [ESC] u.
56
[GS] w [n]
Selects horizontal size of bar code.
2. Command description
No.
COMMAND
FUNCTION
CODE
1
LF
Print and line feed
<0Ah>
[Function]
Standard mode) 
Prints data in the print buffer and advances the paper by the
previously set amount.
Moves the print position to the beginning of the next line. 
Page mode) 
Does not print data in the print buffer.
Advances the paper by the previously set amount.
Moves the print position to the beginning of the next line. 
[Reference] 
[ESC] 2: Sets the line feed amount to 30/203 inch (30 dots). 
[ESC] 3: Sets the line feed amount. 
No.
COMMAND
FUNCTION
CODE
2
FF
Page mode print and return
<0Ch>
[Function]
Standard mode) 
No function
Page mode) 
Prints all the print data in one page.
Then returns to the standard mode.
The print data is all erased after printing. 
[Notes] 
This command is valid for the page mode only.
The print position is moved to the beginning of the next line.
Paper cutting is not performed.
To perform paper cutting, it is necessary to send the paper cut com-
mand before sending this command.
Print data put in line feed codes is printed. 
[Reference] 
[ESC] FF: Remains in the page mode.
No.
COMMAND
FUNCTION
CODE
3
CAN
Cancel print data
<18h>
[Function]
Standard mode) 
Erases one line of print data not put in line feed codes in the
receive buffer.
Page mode) 
Erases one page of print data not put in FF codes in the receive
buffer. 
Moves the print position to the beginning of journal paper. 
[Notes] 
When print data may be missed due to power failure, etc. during
printing, it is necessary to resend print data after recovery for correct
printing. This command is provided mainly for such cases. 
In the standard mode, it is possible to cancel a line for which power
failure is caused during receiving. 
In the page mode, it is possible to cancel a page for which power
failure is caused during receiving. 
No.
COMMAND
FUNCTION
CODE
4
SI
Selects character height reduction
<0Fh>
[Function]
Starts character height reduction. 
Reduces the character height to 1/2 by removing bits one by one.
[Note]
This command is valid only when set at the beginning of a line.
[Reference] 
[DC2]: Cancel character height reduction 
No.
COMMAND
FUNCTION
CODE
5
DC2
Cancel character height reduction
<12h>
[Function]
Cancels character height reduction.
[Notes]
This command is valid only when set at the beginning of a line. 
[Reference] 
[SI]: Select character height reduction 
No.
COMMAND
FUNCTION
CODE
6
DLE EOT n
Transmit status in real time
<10h><04h>n 
[Range]
à
 n 
à
 4
[Function] 
Transmits the status in real time by setting “n”. 
n
Function
1
Transmits the printer status. 
2
Transmits the offline factor status.
3
Transmits the error factor status.
4
Transmits the paper detector status.
4 – 2
This command is executed regardless of the state of the host com-
puter. (The DSR signal is not checked.) 
This command is executed even if offline, receive buffer full or error
states are provided. 
Status transmission is made immediately when this command is
received. 
n=1; Printer status
bit
Function
Value 0/1
0
Not used
Fixed to 0
1
Not used
Fixed to 1
2
Not defined
3
Online/Offline state
Online/Offline
4
Not used
Fixed to 1
5
Not defined
6
Not defined
7
Not used
Fixed to 0
n=2; Offline factor status
bit
Function
Value 0/1
0
Not used
Fixed to 0
1
Not used
Fixed to 1
2
HEAD UP LEVER
Close/Open
3
Paper feed SW
Paper not being fed/Paper
being fed
4
Not used
Fixed to 1
5
Print stop due to no paper
Not stopping/Stopping
6
Error state
No error caused/Error
caused
7
Not used
Fixed to 0
bit 5; Becomes 1 in case of print stop set by [ESC]c4.
n=3; Error factor status
bit
Function
Value 0/1
0
Not used
Fixed to 0
1
Not used
Fixed to 1
2
Not defined
3
Auto cutter error
No error caused/Error caused
4
Not used
Fixed to 1
5
Unrecoverable printer
error
No error caused/Error caused
6
Head temperature rise
No error caused/Error caused
7
Not used
Fixed to 0
n=4; Paper detector status
bit
Function
Value 0/1
0
Not used
Fixed to 0
1
Not used
Fixed to 1
2
Near end detector
Paper is present/Paper is out
3
Not defined
4
Not used
Fixed to 1
5
Not defined
6
Paper end detector
Paper is present/Paper is out
7
Not used
Fixed to 0
[Notes]
Status transmission is also made when data of 10h, 04h and n (1 
à
 n
à
 4) is received. 
<Example> 
In case of D1=10h, D2=04h and D3=01h with ESC * n1 n2 [DATA] k. 
No.
COMMAND
FUNCTION
CODE
7
DLE ENQ n
Request status in real time
<10h><05h>n 
[Range]
à
 n 
à
 2
[Function] 
Responds to requests from the host computer by setting “n”.
n
Function
1
Recovers from the error and restarts printing at the
beginning of the line where the error is caused.
2
Restarts printing after clearing the receive buffer and print
buffer.
This command is executed regardless of the state of the host com-
puter. (The DSR signal is not checked.)
This command is executed even if offline, receive buffer full or error
states are provided.
This command is executed immediately when it is received (without
being entered in the receive buffer). 
No.
COMMAND
FUNCTION
CODE
8
ESC FF
Page mode print
<1Bh><0Ch>
[Function]
(Standard mode) 
No function
(Page mode) 
Prints all the print data in one page. 
Then remains in the page mode. 
The print data is all erased after printing.
[Notes]
This command is valid for the page mode only.
The print position is moved to the beginning of the next line.
Paper cutting is not performed.
To perform paper cutting, it is necessary to send the paper cut com-
mand before sending this command.
Print data put in line feed codes is printed. 
[Reference] 
FF: Return to the standard mode after printing. 
No.
COMMAND
FUNCTION
CODE
9
ESC SP n
Set character right side
spacing
<1Bh><20h> n
[Range]
à
 n 
à
 255 
[Function] 
Sets the space on the right side of each character in basic calculation
pitches.
The space on the right side of each character is [n 
×
 (basic calcula-
tion pitch)] inches. 
[Notes] 
If double-width and quadruple-width are selected, the amount of
space on the right side of each character is doubled and quadrupled. 
Space is provided on the right side of each character even in case of
lateral turning.
[n 
×
 (basic calculation pitch)] is calculated when this command is
received.
Therefore, this setting is not changed only by changing the basic
calculation pitch through GS P. 
4 – 3
[Default] 
n = 0 
[Reference] 
GS P:
Set basic calculation pitch
ESC !: Set character mode
GS !:
Set character size
[Print example]
AAAA
 A  
A A A
No.
COMMAND
FUNCTION
CODE
10
ESC ! n
Set character mode
<1Bh><21h> n
[Range]
à
 n 
à
 255 
[Function] 
Selects the character mode. 
The meaning of each bit of “n” is as follows. 
bit
Function
0
0: Character font 12 
×
 24
1: Character font 9 
×
 24
1
 
 
 
 
Not  defined
2
 
 
 
 
Not  defined
3
 
 
 
 
Not  defined
4
0: Double-height canceled
1: Double-height selected
5
0: Double-width canceled 
1: Double-width selected
6
 
 
 
 
Not  defined
7
0: Underline canceled
1: Underline selected
[Notes]
No underline is provided in the following cases. 
1) Laterally-turned character 
2) Blank portions specified by set absolute position/set relative
position 
When both double-height and double-width are selected at the same
time, quadruple characters are printed. 
This setting can be changed within one line. 
If there are both double-height characters and normal characters in
one line, they are aligned on the base line. 
[Default] 
n = 0 
[Reference] 
GS P:
Set basic calculation pitch 
ESC !: Set character mode 
GS !:
Set character size 
[Print example]
AAAAA
A
AA
No.
COMMAND
FUNCTION
CODE
11
ESC $ n1 n2
Set absolute position
<1Bh><24h> n
[Range]
à
 n1 
à
 255 
à
 n2 
à
 255
[Function] 
Based on the beginning of the line, sets the print starting position
through calculation using the basic calculation pitch. 
The distance between the print starting position and the beginning of
the line is as follows. 
(n1 + n2 
×
 256) 
×
 (basic calculation pitch) 
[Notes] 
Any specification that exceeds the end of the line is ignored. 
This calculation is made based on the basic pitch in the horizontal
direction. 
In case of overlapping with the print data expanded currently, over-
printing is performed. 
[Reference] 
ESC\: Set relative position 
 
No.
COMMAND
FUNCTION
CODE
12
ESC % n
Select/cancel
user-defined character
<1Bh><25h> n
[Range]
à
 n 
à
 255 
[Function] 
Selects or cancels the mode for make printable the preset user-
defined character data. 
bit 0 of “n” = 1: User-defined character selected 
bit 0 of “n” = 0: User-defined character canceled 
[Notes] 
There are other jobs for user-defined character setting. 
When the character code set for user-defined character is selected
after selecting the user-defined character mode, the user-defined
character is printed. 
When the character code not set for user-defined character is
selected, the normal character is printed. 
[Default] 
n = 0 
[Reference] 
ESC &: Set user-defined character 
ESC ?: Delete user-defined character 
 
No.
COMMAND
FUNCTION
CODE
13
ESC & 03 C1 C2
(n[DATA] (nx3))
(C2-C1)
Define
user-defined
character
<1Bh><26h><03h>
[Range]
32 
à
 C1 
à
 C2 
à
 126:
User-defined character range 
(C1 to C2)
à
 DATA1 
⋅⋅⋅
 DATA (3xn) 
à
 255: Print bit data
à
 n 
à
9:
×
 24 font selected
à
 n 
à
 12:
12 
×
 24 font selected
[Function]
Sets user-defined characters. 
03h indicates the number of bytes in the vertical direction. C1
Indicates the beginning user-defined character code; C2 indicates
the ending user-defined character code. ••• User-defined character
setting from C1 to C2 can be made with this command. If only one
character is defined, use C1=C2.
The character code range is from ASCII code 20h to 7Eh and the
total number of characters is 95. 
4 – 4
"n" indicates the number of dots in the horizontal direction. When
data size is lesser than the font size, the last dot pattern on the
right side is space.
[Example] 
[ESC] & 03h 20h 21h 02h [DATA1]....[DATA6] 0Ch [DATA1]....
[DATA36]
         C1  C2  n   (Data for C1)   n    (Data for C2)
[Notes] 
The set user-defined character data is not cleared until the MASTER
RESET and ESC @ commands are received.
If the above-mentioned data is out of the range, the setting is dis-
abled. 
[Default] 
n = 0 
[Reference] 
ESC %: Select/cancel user-defined character 
ESC ?: Delete user-defined character
Setting example) 
In case of font A 
d1=<00h> d4=<18H>..... 
d2=<00h> d5=<63h>..... 
d3=<E0h> d6=<F8h>.....
In case of font B 
d1=<00h> d4=<18H>..... 
d2=<00h> d5=<63h>.....  
d3=<E0h> d6=<F8h>..... 
No.
COMMAND
FUNCTION
CODE
14
ESC * m n1 n2 [DATA] k
Set bit image
data
<1Bh><2Ah>...
[Range]
m = 0, 1, 32, 33 
à
 n1 
à
 255
à
 n2 
à
 3
à
 data 
à
 255
k = n1 + n2 
×
 256
                 (In case of m = 0,1) 
k = (n1 + n2 
×
 256) 
×
 3
                 (In case of m = 32,33) 
[Function] 
Expand to the print buffer the bit image data specified by “data”
using the density specified by “m”.
(n1 +n2
×
256) represents the number of dots in horizontal direction
of the bit image data to be printed. 
If the bit image data exceeds the number of printable dots in one
line, the excess data is ignored. 
d1
d4
d7
d10 d13 d16 d19 d22 d25 d28 d31 d34
d2
d5
d8
d11 d14 d17 d20 d23 d26 d29 d32 d35
d3
d6
d9
d12 d15 d18 d21 d24 d27 d30 d33 d36
MSB
LSB
1
4
d1
d1
d4
d7
d10
d13
d16
d19
d22
d25
d2
d5
d8
d11
d14
d17
d20
d23
d26
d3
d6
d9
d12
d15
d18
d21
d24
d27
MSB
LSB
1
4
d1
4 – 5
Page of 74
Display

Click on the first or last page to see other UP-5300 (serv.man2) service manuals if exist.