21
Example:
Character Setting Commands
ESC ! n
Set character printing mode
Format:
ASCII : ESC ! n
Decimal :
27 33 n
Hexadecimal :
1B 21 n
Explanation:
Set the character printing mode. Each bit of parameter n is defined as
follows:
Default value =0, i.e. normal character size.
ESC S0
Set double width character printing
Format:
ASCII : ESC S0
Decimal : 27 14
Hexadecimal : 1B 0E
Explanation:
Set the double width character printing in the same print line.
This command can be cancelled by carriage return or DC4 commands.
22
ESC DC4
Cancel double width character printing
Format:
ASCII :
ESC DC4
Decimal :
27
20
Hexadecimal :
1B 14
Explanation:
Cancel the double width character printing mode set by ESC S0.
The double width printing can be cancelled by carriage return or DC4
commands but not the character enlargement set by ESC !.
ESC % n
Select user-defined characters
Format:
ASCII : ESC %
n
Decimal :
27
37
n
Hexadecimal :
1B 25
n
Explanation:
Enable/disable user-defined characters. Default n=0.
When n = 1, user-defined character set is selected.
When n = 0, normal character set is selected.
Default n=0.
ESC & s n m
Define user-defined characters
Format:
ASCII :
ESC &
s n m [a[p]s x a]m-n+1
Decimal :
27
38
s n m [a[p]s x a] m-n+1
Hexadecimal :
1B 26
s n m [a[p]s x a]m-n+1
Explanation:
ESC & is used to define user-defined characters. s = 3, 32 = n< m = 126, 0 =
a = 12, 0 = p = 255.