When sending print data, note these:
(1) Each string of bar code data must begin with a codeset select character (CODE A, CODE
B, or CODE C), which selects the first codeset to use.
(2) Every special character is specified by a combination of two characters: a brace "{"
followed by one character.
"{{."
Special characters
7B 53
7B 41
7B 42
7B 43
7B 31
7B 32
7B 33
7B 34
7B 7B
<Example>
• If the printer finds a string of bar code data that does not begin with a codeset select
character, it immediately aborts the command processing and handles the subsequent data
as normal data.
• If the printer received a character that is not available in the currently selected codeset, it
immediately aborts the command processing and handles the subsequent data as normal
data.
• An HRI character corresponding to either a Shift character or a code select character is not
printed.
as a space character.
[Sample Program]
LPRINT CHR$ (&H1D) ; "H" ; CHR$ (2) ;
LPRINT CHR$ (&H1D) ; "k" ;
LPRINT CHR$ (4) ;
LPRINT "123" ; CHR$ (0) ;
Hex.
ASCII
{ S
{ A
{ B
{ C
{ 1
{ 2
{ 3
{ 4
{ {
To print "No." in codeset B, followed by "123456" in codeset C, send the
following data string:
GS k <73><10><7BH 42H> "No." <7BH 43H><12><34><56>
An HRI character for either a function character or a control character is treated
A brace "{" itself is specified by two consecutive braces
Codeset A
Codeset B
SHIFT
SHIFT
CODE A
–
CODE B
CODE C
CODE C
FNC1
FNC2
FNC3
FNC4
{
[Print Results]
107
iDP3221 User's Manual
Codeset C
–
CODE A
CODE B
–
–
FNC1
FNC1
FNC2
–
FNC3
–
FNC4
–
{
{
CITIZEN