SATO 410 Printer User Manual


 
4. Using the hexadecimal data, send the following code to print the graphic image as
designed.
<ESC>A<ESC>H0100<ESC>V0100<ESC>GH006006
FFFFFF FFFFFF FFFFFF FFFFFF C00000 000003
C00000 000003 C000FF FFFFF3 C00080 000013
C00080 000013 C0009F FFFF13 C00080 000013
C00080 000013 C0009F FFFF13 C00080 000013
C00080 000013 C000FF FFFFF3 C00000 000003
C00000 000003 C00000 000003 C00000 000003
C00000 000003 C00000 000003 C00003 C00003
C00007 E00003 C0000F F00003 C0000F F00003
C0000F F00003 C0000F F00003 C00007 E00003
C00003 C00003 C00000 000003 C00000 000003
C00000 000003 C00000 000003 C00001 800003
C00003 C00003 C00003 C00003 C00003 C00003
C00003 C00003 C00003 C00003 C00003 C00003
C00003 C00003 C00003 C00003 C00003 C00003
C00003 C00003 C00001 800003 C00000 000003
C00000 000003 FFFFFF FFFFFF FFFFFF FFFFFF
<ESC>Q1<ESC>Z
Note: Spaces shown in the hexidecimal listing above are for emphasis only. Spaces must
not be encoded within the graphic portion of the data stream to the printer. Also, CR and
LF characters to separate the lines must not be encoded in the data stream.
5. To send the data in binary format, the software must convert the data into binary
format before transmitting it to the printer. Using the BASIC programming
language for example, this is done by notation “CHR$ (&HC0)” which sends the
hexidecimal value of “C0” as binary data (11000000). The BASIC program listing
for sending this graphic to the printer (using the RS232 port) in binary format is:
CLS
OPEN “COM2:9600,N,8,1,CS,DS” FOR OUTPUT AS #1
E$ = CHR$(27)
PRINT #1,CHR$(2); E$; “A”; E$; “V0100"; E$; ”H0100"; E$; “GB006006";
PRINT #1,CHR$(&HFF);CHR$(&HFF);CHR$(&HFF);CHR$(&HFF);CHR$(&HFF);
PRINT #1,CHR$(&HFF);CHR$(&HFF);CHR$(&HFF);CHR$(&HFF);CHR$(&HFF);
PRINT #1,CHR$(&HFF);CHR$(&HFF);CHR$(&HC0);CHR$(&H00);CHR$(&H00);
PRINT #1,CHR$(&H00);CHR$(&H00);CHR$(&H03);CHR$(&HC0);CHR$(&H00);
PRINT #1,CHR$(&H00);CHR$(&H00);CHR$(&H00);CHR$(&H03);CHR$(&HC0);
PRINT #1,CHR$(&H00);CHR$(&HFF);CHR$(&HFF);CHR$(&HFF);CHR$(&HF3);
PRINT #1,CHR$(&HC0);CHR$(&H00);CHR$(&H80);CHR$(&H00);CHR$(&H00);
PRINT #1,CHR$(&H13);CHR$(&HC0);CHR$(&H00);CHR$(&H80);CHR$(&H00);
PRINT #1,CHR$(&H00);CHR$(&H13);CHR$(&HC0);CHR$(&H00);CHR$(&H9F);
PRINT #1,CHR$(&HFF);CHR$(&HFF);CHR$(&H13);CHR$(&HC0);CHR$(&H00);
PRINT #1,CHR$(&H80);CHR$(&H00);CHR$(&H00);CHR$(&H13);CHR$(&HC0);
PRINT #1,CHR$(&H00);CHR$(&H80);CHR$(&H00);CHR$(&H00);CHR$(&H13);
PRINT #1,CHR$(&HC0);CHR$(&H00);CHR$(&H9F);CHR$(&HFF);CHR$(&HFF);
PRINT #1,CHR$(&H13);CHR$(&HC0);CHR$(&H00);CHR$(&H80);CHR$(&H00);
PRINT #1,CHR$(&H00);CHR$(&H13);CHR$(&HC0);CHR$(&H00);CHR$(&H80);
PRINT #1,CHR$(&H00);CHR$(&H00);CHR$(&H13);CHR$(&HC0);CHR$(&H00);
PRI NT #1,CHR$(&HFF);CHR$(&HFF);CHR$(&HFF);CHR$(&HF3);CHR$(&HC0);
PRINT #1,CHR$(&H00);CHR$(&H00);CHR$(&H00);CHR$(&H00);CHR$(&H03);
PRINT #1,CHR$(&HC0);CHR$(&H00);CHR$(&H00);CHR$(&H00);CHR$(&H00);
PRINT #1,CHR$(&H03);CHR$(&HC0);CHR$(&H00);CHR$(&H00);CHR$(&H00);
PRINT #1,CHR$(&H00);CHR$(&H03);CHR$(&HC0);CHR$(&H00);CHR$(&H00);
PRINT #1,CHR$(&H00);CHR$(&H00);CHR$(&H03);CHR$(&HC0);CHR$(&H00);
PRINT #1,CHR$(&H00);CHR$(&H00);CHR$(&H00);CHR$(&H03);CHR$(&HC0);
Appendix C: Custom Characters and Graphics
PageC-69001069A SATOCTSeriesPrinters