Using Bit Value Tables - Epson L60IIP - TM B/W Direct Thermal Printer Information Manual

Information guide
Table of Contents

Advertisement

Using Bit Value Tables

For each command that has a complex method of determining the variable n, there is a table showing
how to calculate the variable in three numbering systems: binary, hexadecimal, and decimal.
When you look at the table, first find the value of each component of the variable. Then add the
values of the components together to determine the value of the variable n.
For example, here is how you would use the table below, which sets the print mode, to combine
double height, double width, and underline. In the table, you see that bit 4 on (or hex 10 or decimal
16) turns on double height, bit 5 on (or hex 20 or decimal 32) turns on double width, and bit 7 on (or
hex 80 or decimal 128) turns on underline mode.
To combine all three, turn on bits 4, 5, and 7, which is 10110000 in binary. Or you can add the hex
values 10, 20, and 80 for the hex sum of B0, or you can add the decimal values 16, 32, and 128 for the
decimal value of 176.
Therefore, you send the following to turn on double height, double width, and underline, depending
on the numbering system used:
ASCII
ESC
Hex
1B
Decimal
28
Bit
Off/On Hex
Decimal Function
Off
00
0
1
On
01
1
2
Off
00
0
3
On
08
8
Off
00
0
4
On
10
16
Off
00
0
5
On
20
32
6
Off
00
0
7
On
80
128
Note that the program examples throughout this chapter use decimal numbers, but binary, decimal,
and hexadecimal numbers all have the same printing results.
1-4 Command Descriptions
n
!
21
B0
33
176
Character font-A selected.
Character font-B selected.
Undefined.
Emphasized mode not selected.
Emphasized mode selected.
Double-height mode not selected.
Double-height mode selected.
Double-width mode not selected.
Double-width mode selected.
Undefined.
Underline mode not selected.
Underline mode selected.
Rev. A

Advertisement

Table of Contents
loading

This manual is also suitable for:

Esc/pos tm-l60iiEsc/pos tm-l60iip

Table of Contents