7 graphic data input commands, 8 formfeed commands, 9 exit commands – Brother HL-2170W User Manual
Page 504: Graphic data input commands, Formfeed commands, Exit commands
APPENDIX C HBP MODE COMMANDS - 10
3.2.7
Graphic data input commands
Command
@G+[data length(3bytes)]+data
Function
The 3 bytes of data following the @G command shows the length of the data, N. The N bytes following this 3
byte header is handled as graphic data.
(Example)
fprintf(fp,"@G%c%c%c",
(char)((data_length>>16)&0xff),
(char)((data_length>>8)&0xff),
(char)((data_length>>0)&0xff) );
fwrite(data,(size_t)1,(size_t)data_length,fp);
See section 2.3 for further details of the data format.
The printer driver can send the printer 1 page of print data divided into sections by sending these commands
continuously. It is recommended to send 1 page of print data without dividing into sections when the 1 page
print data is more than the printer memory (500 Kbytes) as the printer will print this ' on the fly' and sending it in
one block will improve the print performance.
3.2.8
Formfeed commands
Command
@F
Remark: The last raster scan on each page should be a white raster. For instance, the white raster command
'@G<00H><00H><01H>
Function
This command sets a page break.
The printer works as follows when it receives this command;
(1) If 1 page of print data is less than the input buffer size in the printer, the printer recognizes the command
as a page break and starts printing.
(2) If 1 page of print data is more than the input buffer size in the printer, then since the printer has already
started printing, this command is handled as a page break only.
When it is received after printing, a Print Overrun error occurs in the printer. If Bit0 is set to 1 in the
mode setting command (@M+*) mentioned in section 2.2.5., the printer ignores the data until it receives
this form feed command when a Print Overrun error occurs.
3.2.9
Exit commands
Command
@X
Function
This command exits from HBP mode
The HL-1040 printer is restored to the default emulation mode by this command
- HL-1670N HL-6050D HL 5250DN HL-5070N HL-2460 HL-6050DN HL-2150N HL 2700CN HL-2130 HL-S7000DN HL-3040CN HL 1650 HL-6050 HL-5240 HL-5240L HL-1470N HL 3070CW HL 5170DN HL-3450CN HL-3140CW HL 5470DW HL-5140 HL-5440D HL-7050 HL-2240 HL-5040 HL-4070CDW HL-1870N HL-1110 HL-1850 HL 4150CDN HL-8050N HL 5450DN HL 5370DW HL-5050 HL-2140 HL 1270N HL-2600CN HL-6180DW HL-5350DN HL-4050CDN HL-2070N HL-3260N HL-5150D HL-5280DW HL-3170CDW HL-4570CDW HL-3150CDW HL 4040CN HL-4140CN HL 2240D HL 2270DW HL-1250 HL-7050N HL 5340D HL-2250DN HL-1450 HL-L9200CDWT HL-1112 HL-5270DN HL-5450DNT HL-L8250CDN HL 4570CDWT HL-5380DN HL-6180DWT HL-L8350CDW HL-4040CDN HL-L8350CDWT HL-2230 HL-5470DWT HL 2220 HL-1110E HL-1112E