Mode of operation of the graphics commands Graphics commands
160
T5023/5023+ - Programming Guide
Mode of operation of the graphics commands
This section describes the mode of operation of the graphics commands.
The graphics commands are structured as follows:
ESC command identifier (n) (m) data ...
Command identifiers are the letters K, L, Y, Z or * (s). Via entry of the identifier,
with ESC * by means of entry of the parameter s, one of the graphics modes of
the document printer is switched on. The number of dots printed vertically in a
dot column is now fixed (8-dot or 24-dot mode).
The parameters n and m determine the number of dot columns to be printed:
number of dot columns = m * 256 + n.
The subsequent data contains the information encrypted in numbers between 0
and 255 (bytes) about the dots from which the graphics are to be composed. The
encryption takes place as described in the section “Character definition” of the
“Character set commands” chapter.
The total number of data bytes is calculated from the parameters n and m:
Number of data bytes = m * 256 + n (8-dot mode)
Number of data bytes = 3 * (m * 256 + n) (24-dot mode)