96
⿎
Bar code marking data (Shift-JIS code specied) : BRS
Sets character string to be encoded as a bar code or 2D code by shift-JIS code. For characters including control code
(specied with 2-bytes alternate codes), KANA, KANJI and function characters.
• Setting / Readout data of bar code marking data
STX BRS
Sub
command
[Bar code No.] [Line No.]
[Bar code data]
Max. 63-byte
(Check sum) Delimiter
Sub command is “S” at the time of setting and “A” for response data at the time of readout.
• Readout request of bar code marking data
STX BRS R
[Bar code No.] [Line No.]
Max. 3-byte
(Check sum) Delimiter
Name
Data length
[byte]
Description Remarks
Bar code No. 1 “0”–“7”
Line No. 1 or 2
1D code: “1”–“2”
2D code: “1”–“9”
2D part of Composite code: “01”–“09”
Species the line for data setting.
Bar code data Max. 60
Species the character string within 30 characters with shift-JIS code for setting
in the specied line.
However, for the functional characters, species in ASCII code characters with
beginning with “%” (25(HEX)).
Reference
• When setting bar code marking data in multiple lines, data in each line are jointed in the order of line numbers and they
are coded as the data in one line. (No line break is inserted for each line.)
• When setting bar code marking data in multiple lines, make sure the sum of all barcode data is 255 characters or less.
• If readout data includes function characters (such as “%SFT:0”), the setting character (“%SFT:0”) is read out, but
characters to be actually marked are not.
• For the method to specify bar code data, refer to “Setting method of character string for marking (specied with shift-JIS
code)” (P.86). and “Functional character (specied with ASCII code)” (P.86).
• To input the control codes in the barcode/2D code strings, set the code data as follows:
• To include the control codes in the strings, set the all control codes with BRS command by using these 2-byte
alternate codes instead of ASCII code. In this case, set the other characters including alphanumeric by using shift-
JIS code.
Control code 00 (HEX) to 1F (HEX) 7F (HEX)
Alternate code
F050 (HEX) to F06F (HEX) F071 (HEX)
• The following control codes EOT, FS, GS, RS, or US you can set with BBS command by using ASCII code. Refer to
“Bar code marking data (ASCII code specied) : BBS” (P.95).
• To input “FNC1” for CODE128, GS1 Data Matrix, GS1 DataBar Expanded, and 2D side of Composite code, use the
following alternate code. In this case, set the other characters including alphanumeric by using shift-JIS code.
Control code FNC1
Alternate code F072 (HEX)