SATO CL408/412 Printer User Manual


 
208 SATO RISC Printers
8. Custom Characters And Graphics Programming Manual
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:
E$ = CHR$(27)
OPEN "lpt1:" FOR RANDOM AS #1
PRINT #1, E$; "A";
PRINT #1, E$; "V0100"; E$; "H0100"; E$; "GB006006";
PRINT #1, CHR$(&H3F); CHR$(&HFF); CHR$(&HFF); CHR$(&HFF);
CHR$(&HFF); CHR$(&HFC);
PRINT #1, CHR$(&H7F); CHR$(&HFF); CHR$(&HFF); CHR$(&HFF);
CHR$(&HFF); CHR$(&HFE);
PRINT #1, CHR$(&HE0); CHR$(&H60); CHR$(&H0); CHR$(&H0);
CHR$(&H6); CHR$(&H7);
PRINT #1, CHR$(&HC0); CHR$(&H60); CHR$(&H0); CHR$(&H0);
CHR$(&H6); CHR$(&H3);
PRINT #1, CHR$(&HC0); CHR$(&H60); CHR$(&H0); CHR$(&H0);
CHR$(&H6); CHR$(&H3);
PRINT #1, CHR$(&HC0); CHR$(&H60); CHR$(&H0); CHR$(&H0);
CHR$(&H6); CHR$(&H3);
PRINT #1, CHR$(&HC0); CHR$(&H60); CHR$(&H0); CHR$(&H0);
CHR$(&H6); CHR$(&H3);
PRINT #1, CHR$(&HC0); CHR$(&H60); CHR$(&H0); CHR$(&H0);
CHR$(&H6); CHR$(&H3);
PRINT #1, CHR$(&HC0); CHR$(&H60); CHR$(&H0); CHR$(&H0);
CHR$(&H6); CHR$(&H3);
PRINT #1, CHR$(&HC0); CHR$(&H60); CHR$(&H0); CHR$(&H0);
CHR$(&H6); CHR$(&H3);
PRINT #1, CHR$(&HC0); CHR$(&H60); CHR$(&H0); CHR$(&H0);
CHR$(&H6); CHR$(&H3);
PRINT #1, CHR$(&HC0); CHR$(&H60); CHR$(&H0); CHR$(&H0);
CHR$(&H6); CHR$(&H3);
PRINT #1, CHR$(&HC0); CHR$(&H60); CHR$(&H0); CHR$(&H0);
CHR$(&H6); CHR$(&H3);
PRINT #1, CHR$(&HC0); CHR$(&H60); CHR$(&H0); CHR$(&H0);
CHR$(&H6); CHR$(&H3);
PRINT #1, CHR$(&HC0); CHR$(&H60); CHR$(&H0); CHR$(&H0);
CHR$(&H6); CHR$(&H3);
PRINT #1, CHR$(&HC0); CHR$(&H60); CHR$(&H0); CHR$(&H0);
CHR$(&H6); CHR$(&H3);
PRINT #1, CHR$(&HC0); CHR$(&H60); CHR$(&H0); CHR$(&H0);
CHR$(&H6); CHR$(&H3);