HM-E200 Programming Manual
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) Initialize 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 before 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.
Appendix
Appendix A: Code128 Bar Code
A.1 Description of the CODE128 Bar Code
In CODE128 bar code system, it is possible to represent 128 ASCII characters, the one hundred
numbers from 00 to 99 and some special characters with three code sets: A, B and C. Each code
set is
used for representing the following characters:
· Code set A: ASCII characters 00H to 5FH
· Code set B: ASCII characters 20H to 7FH
· Code set C: 100 numerals from 00 to 99
The following special characters are also available in CODE128:
· SHIFT characters
In code set A, the character just after SHIFT is processed as a character for code set B. In code
set B, the character just after SHIFT is processed as a character for code set A.
SHIFT characters cannot be used in code set C.
· Code set selection character (CODE A, CODE B, CODE C).
This character switches the following code set to code set A, B, or C.
· Function character (FNC1, FNC2, FNC3, FNC4)
The usage of function characters depends on the application software. In code set C, only FNC1
is available.