6.
To store the custom designed character in memory using a binary data stream, the command would be:
<ESC>A
<ESC>K1B3F
01
H
00
H
03
H
80
H
07
H
C0
H
0F
H
E0
H
1F
H
F0
H
3F
H
F8
H
7F
H
FC
H
FF
H
FE
H
07
H
C0
H
07
H
C0
H
07
H
C0
H
07
H
C0
H
07
H
C0
H
07
H
C0
H
07
H
C0
H
07
H
C0
H
<ESC>Z
Note: Spaces are shown between hexadecimal values in the above example for clarity only and
are not included in the data string.
Note that the data string is only half as long as the hexadecimal format. This is because we can send the
binary equivalent of “11111111” (represented above in its hexadecimal value of FF
H
), for example, using
one eight bit word while it takes two eight bit words to transmit the hexadecimal equivalent “F” and “F”.
To send binary characters using BASIC, the expression CHR(&HFF) will send the binary equivalent of
FF (i.e. 11111111).
7.
To recall the custom character from memory, send the following code to the printer:
<ESC>A
<ESC>L0505<ESC>H150<ESC>V100<ESC>K1H903F
<ESC>L0505<ESC>H600<ESC>V100<ESC>K1H903F
<ESC>L0303<ESC>H125<ESC>V250<ESC>MTHIS SIDE UP !
<ESC>Q1<ESC>Z
The printer output for both hexadecimal and binary format examples is:
130
Summary of Contents for OKIPOS X400
Page 16: ...Printer Output 14...