N-OR7B Instruction Manual
N-OR7B Instruction Manual
CONTENTS
DA TA
/S TB 0. 5μS
0. 5μS
0. 5μS
0. 5μS
0. 5μS
TTL
RS232
TTL:
http://www.whkj.com.cn -2-
User’s manual for thermal printer
pin signal direction description
1 TXD out transmit status messages out of printer
2 RXD in receiving data from the CPU
3 GND — grounding signal
RS232:
pin signal direction description
5 RXD In receiving data from the CPU
3 TXD out transmit status messages out of printer
2 BUSY out high level indicates the printer is busy and can’t receive data now . Low level is the opposite.
9 GND — grounding signal
Attention: (1)“in” indicates input to the printer,”out” means output from the printer
(2)signal level is EIA standard or TTL standard.
●The ways to change the serial printer’s baud rate and communication mode:
Press SET Key and make printer power on at the same time . The printer will print out the state of
print state setting. And press the LF key.The printer will print out serial setting report. After that
we can chang the serial baud rate through the LF key and the communication mode though the
SET key.
Baud rate in serial mode is optional in the range of 1200\2400\4800\9600\19200bps.The original
setting is 9600bps and can be alternated by the LF key.
The printer has to be repowered after setting.
The original communication mode setting is mode 1,and can be alternated by the SET key.
Asynchronous frame format is shown as following:
mode1: one frame is 10 bits, 1 start bit, 8 data bits and 1 stop bit.
Mode3: one frame is 11 bits, 1 start bit, 8 data bits, 1 party bit and 1 stop bit.
please press SET key to set negative direction,and press LF key to set forward direction.
●The way to self-check:
Press the LF Key and repower at the same time, and then the printer will print out the self-check
scrip.
1 3
Indicates:
Faceplate style: pin 1 is positive pole(+), pin 2 is empty, pin 3 is negative pole (-)
Platform style: the column end is positive pole (+), the board end is negative pole (-)
http://www.whkj.com.cn -6-
User’s manual for thermal printer
Hex: 1B 51 n
Explanation:
N value means n-characters blank space on the right side will be left. Each character space is the
sum of width of the character matrix and the horizontal space between. The value of n should be
in the range from 0 to the line width of this model printer.
Default n = 0, that means no right margin.
http://www.whkj.com.cn -8-
User’s manual for thermal printer
Explanation:
When n=0, select reverse print, printing from right to left. When n=1, cancel reverse print, printing
from left to right.
When the printer is assembled vertically, it is convenient to read the word reversely so its initial
value is 1.
3-3-8 Set Character Rotational Print
Format: ASCⅡ: FS I n
Dec: 28 73 n
Hex: 1c 49 n
This command is to rotate characters, which is 6*8 dots matrix. The values of n are as following:
n Characters rotated widdershins
0 0º
1 90º
2 180º
4 270º
Notice: the data is from the top down, and then from left to right.
For example:
16X16 dots matrix, 8X16 character
1 8
D7□□□□□□□□
□□□□□□□□
■■■■■■■■
■■■■■■■■
□□□■■□□□
□□□■■□□□
□□□■■□□□
D0□□□■■□□□
D7□□□■■□□□
□□□■■□□□
□□□■■□□□
□□□■■□□□
□■□■■□□□
□□■■■□□□
□□□□□□□□
D0□□□□□□□□
d1=30h,d2=00h,d3=30h,d4=08h,d5=30h,d6=04h,
d7=3fh,d8=0fch,d9=3fh,d10=0fch,d11=30h,d12=00h,d13=30h,d14=00h,d15=30h,d16=00h
24X24 dots matrix, 12X24 character
1 12
D7□□□□□□□□□□□□
□□□□□□□□□□□□
□□□□□□□□□□□□
■■■■■■■■■■■■
■■■■■■■■■■■■
□□□□□■■□□□□□
□□□□□■■□□□□□
D0□□□□□■■□□□□□
D7□□□□□■■□□□□□
□□□□□■■□□□□□
□□□□□■■□□□□□
□□□□□■■□□□□□
□□□□□■■□□□□□
□□□□□■■□□□□□
□□□□□■■□□□□□
D0□□□□□■■□□□□□
D7□□□□□■■□□□□□
□□□□□■■□□□□□
□□□□□■■□□□□□
□□□■□■■□□□□□
□□□□■■■□□□□□
□□□□□□□□□□□□
□□□□□□□□□□□□
D0□□□□□□□□□□□□
d1=18h,d2=00h,d3=00h,d4=18h,d5=00h,d6=00h
d7=18h,d8=00h,d9=00h,d10=18h,d11=00h,d12=10h
d13=18h,d14=00h,d15=08h,d16=1fh,d17=0ffh
d18=0f8h,d19=1fh,d20=0ffh,d21=0f8h,d22=18h
d23=00h,d24=00h,d25=18h,d26=00h,d27=00h
d28=18h,d29=00h,d30=00h,d31=18h,d32=00h,
http://www.whkj.com.cn - 10 -
User’s manual for thermal printer
d33=00h,d34=18h,d35=00h,d36=00h
【curve print】
Explanation: The two groups of commands below is to print curve. Use the group of commands , it
http://www.whkj.com.cn - 11 -
User’s manual for thermal printer
will print out abscissa ,coordinate and scale .The origin printed out by the first group is in the left of
the paper, the other is in the right.
http://www.whkj.com.cn - 12 -
User’s manual for thermal printer
HEX: 1C 4E k n Y1 0B Y2 0B…Yn 0B 00
This command is to print out y-axis and scale in the direction of cutting paper from right to left.
Parameter k is offset to origin. Parameter n is the spacing between each coordinate point, and the
unit is every point. Parameter Y is the value of scale, The maximum digitals is three, with the
form of ASCII. For example: the sclae150, need to input 31, 35, 30. Parameter 0B is the end of a
scale. Parameter 00 express the end of printing y-axis.。
For example: To print a y-axis with 50 dots of the space between. The scale is 00 50 100 150 , and
the offset of origin is 40, then the command:
0x1C 0x4e 40 50 0x20 0x30 0x30 0x0b 0x30 0x35 0x30 0x0b 0x31 0x30 0x30 0x0b 0x00.
3-6-1 Set the size of both the wide and narrow bar
Format: ASCII: GS W n1 n2
Dec: 29 87 n1 n2
Hex: 1D 57 n1 n2
The size of the narrow bar is n1 dot.
One dot is 1/203 inch or 0.125mm.
initial value is 3.
The size of the wide bar is n2 dot.
n narrow wide
bar bar
1 1 3
2 2 5
3 3 7
4 4 9
http://www.whkj.com.cn - 14 -
User’s manual for thermal printer
When n=0, forbid the data received,, and all the commands received are of no effect; When n=1,
Allow the data received.
Default n=1
http://www.whkj.com.cn - 15 -
User’s manual for thermal printer
Parallel port: Different value of parameter n, different meanings. After this command, the printer
will send a bit signal though the pin 23 of the parallel port.
n=0, 30 output paper out signal. When the bit is low level, show that the paper is enough; when
the byte is high level, show that the paper is lacking.
n=1, 31 output printer head state signal. When the bit is low level, show that the printer head roll is
open; When the byte is high level, show that the printer head roll is closed.
n=2, 32 cutter reset signal. When the bit is high level show that the cutter reset, could cut paper
full or half; when the byte is low level, show that the cutter do not reset, and could not cut
paper.
Note: Cut half or full can be selected by the place of redline and black line between the circuit
board and the cutter.
http://www.whkj.com.cn - 16 -
User’s manual for thermal printer
http://www.whkj.com.cn -17-
User’s manual for thermal printer
-http://www.whkj.com.cn - 18 -