PPTII-A Programming Manual
www.hprt.com
45
4.Programming Process Guide
Because the different printing stat us and error can be transmitted by Auto Status Back (ASB) command,
it is recommended that you can use ASB command to inquiry status. ASB command is effective when
the printer is powered on and can be directly sent to inquiry the status.
The recommended programming process is shown as below:
1) Inquire the printer status
Make sure that the printer status is normal before sending data to print.
2) Intitialize the printer
Make sure that the previous setting does not affect the current printing.
3) Set the print content
Set the print content such as character property, bitmap property and barcode property etc for the
needed printing effect.
4) Send the data for printing (including the setup command befor printing)
If the printing data is bitmap data, please do not send the status inquiry command before sending
printing data.
5) Inquire the printer status after printing
If ASB is enabled, the printer will return the printer status automatically.