Graphics Printing And Codepage Choosing Commands - SPRT SP-RMD11A User Manual

Mini thermal printer
Table of Contents

Advertisement

70 LPRINT CHR$(27);CHR$(58);
80 LPRINT CHR$(65);
The print result of the above programs is as following:

4.2.5 Graphics Printing and Codepage Choosing Commands

ESC K
Format: ASCII:
Decimal:
Hexadecimal: 1B
Explanation:
This command is used to print (n2x256+n1) ×8bit map. The width of this graphics is
(n2×256+n1) dots and the height is 8 dots. Each column has 8 dots and can be presented
by a 8-bit byte, the MSB is on the top.
The values of n1, n2 denote a 16-bit binary data, n1 is LSB, n2 is MSB, which mean that
the width of printed bitmap through ESC K command is n2x256+n1. In our printer series,
n2=0/1. The sum of dots number should be ≤384. Data are the bytes content of each
column in this graphics. The bytes number should equal to n2x256+n1.
Remark: If the width of printed graphics is beyond the remaining width of current line, the
beyond part of graphics won't be printed out and the printed position will change to the
next line.
For example: If you want to print two Chinese characters "中文" with ESC K command, the
bit- map for the two Chinese is as the below figure shows. Each character is composed by
7 × 8 dots to 7 columns, there is a space between the two characters, so totally there are
15 columns, then n1=15, n2=0, the 15-byte data showed in hexadecimal are as follows:
7C, 44, 44, FF, 44, 44, 7C, 00, 41, 62, 54, C8, 54, 62, 41
ESC K
n1
n2....data.....
27
75
n1
n2....data.....
4B
n1
n2....data.....
32
'ESC :command
'print original character
Print bit-map graphics

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the SP-RMD11A and is the answer not in the manual?

Subscribe to Our Youtube Channel

Table of Contents