If the position into which the download character is written (the character code) is defined as (21)H, (22)H, (23)H, then we have n1 = (21)H, n2 = (23)H The relation between the character pattern data and the print head assigns the 9 pin as unused. Therefore, m0 = (80)H.
If data m1 to m18 is converted to hexadecimal, it appears as follows.
Data | Binary | Hex. |
| Data | Binary | Hex. |
| Data | Binary | Hex. |
m1 | 10100000 | A0 |
| m1 | 10011000 | 98 |
| m1 | 11111111 | FF |
m2 | 10100000 | A0 |
| m2 | 11100100 | E4 |
| m2 | 10000011 | 83 |
m3 | 10111110 | BE |
| m3 | 10000010 | 82 |
| m3 | 10111101 | BD |
m4 | 10100000 | A0 |
| m4 | 11100100 | E4 |
| m4 | 11000001 | C1 |
m5 | 10100000 | A0 |
| m5 | 10011000 | 98 |
| m5 | 11111111 | FF |
DATA TRANS - MISSION
PRINT SAMPLE
CODE
FUNCTION
OUTLINE
CODE
FUNCTION
OUTLINE
(1) | Difine download | (1B)H (26)H (00)H (21)H (23)H (80)H |
|
| (A0)H (A0)H (BE)H (A0)H (A0)H |
|
| (80)H (98)H (E4)H (82)H (E4)H (98)H |
|
| (80)H (FF)H (83)H (BD)H (C1)H |
|
| (FF)H |
|
|
|
(2) | Select download | (1B)H (25)H (01)H |
(3) | Character code | (21)H (22)H (23)H (A0)H |
(4) | Cancel download | (1B)H (25)H (00)H |
(5) | Character code | (21)H (22)H (23)H (0A)H |
ESC a n
(1B)H (61)H n
After printing the data in the current line, n lines are fed by this code. The value of n ranges from 1 to 120.
ESC C n (1B)H (43)H n
Sets page length in lines
This code sets the length of a page to n lines. The value of n ranges from 1 to 120. On initialization, the page length default condition will be 42 lines. The line feed pitch is one- sixth inch.
– 17 –