6-84
6.5.21 Routine Commands
The routine commands put character strings and commands in the user area of RAM and prints data in routine
formats. They are a type of macro processes.
The routine commands begin with DC2 'E' m and are divided into four types according to the value of m.
Only the two low-order bits of m are valid.
m = 0: Set routine format.
m = 1: Set routine parameter data.
m = 2: Execute routine format.
m = 3: Delete all routine data.
DC2 'E' 0 n dl dh {DATA}
Set Routine Format
Code
12H 45H 00H n dl dh {d1 d2•••dk}
0
n
127
0
dl
65525
Function Creates and registers a print format which is a combination of ruled lines and character print
position in the user area of RAM.
n is a routine format number. 128 types can be registered (00H to 7FH). If n is not in the above
range, DC2 'E' 0 n is ignored and the subsequent data is processed as normal data.
dl and dh indicate the number of bytes of the routine format data.
d indicates routine format data, and dl bytes of command data are sent.
Only the following commands can be set in routine formats. If commands other than those listed
below are registered, they are ignored when executing the routine format.
'A'
NAME
: Selects ruled line A.
FUNCTION : Selects ruled line buffer A. (Same function as DC3 'A')
'B'
NAME
: Selects ruled line B.
FUNCTION : Selects ruled line buffer B. (Same function as DC3 'B')
'C'
NAME
: Clears ruled line.
FUNCTION : Clears the currently selected ruled line buffer. (Same function as DC3 'C')
'L' ml mh nl nh
NAME
: Sets routine line.
FUNCTION : Sets the dot from the start point to the end point of the selected buffer to 1.
(Same function as DC3 'L' sl sh el eh)
(ml)= Line start point
(nl) = Line end point
'D' nl nh
NAME
: Sets routine dot (Same function as DC3 'D' nl nh).
FUNCTION : Sets the specified dot of the selected ruled line buffer to 1.
(nl)=dot position
'F' n1 n2
NAME
: Sets routine pattern (Same function as DC3 'F' nl nh).
n1, n2: Repetitive pattern data
FUNCTION : Places a repetitive pattern of bit images (2-byte data) of the specified code
in the selected ruled line buffer.
Summary of Contents for DPU-S445 SERIES
Page 1: ...DPU S445 SERIES THERMAL PRINTER TECHNICAL REFERENCE U00110811309 ...
Page 90: ...6 43 Figure 6 10 Print Sample 5 ...
Page 100: ...6 53 Figure 6 12 Print Sample 6 ...
Page 126: ...6 79 Figure 6 24 Print Sample 12 ...
Page 128: ...6 81 Figure 6 26 Print Sample 13 ...
Page 130: ...6 83 Figure 6 28 Print Sample 14 ...