BAR CODE FORMAT COMMAND [ESC] XB


   

   

   

   

   

   

   

    the maximum numbers of columns and rows for the micropdf417

   

    “-” for parameter 00 to 04 indicates that the numbers of columns/rows are automatically set by the printer.

    in this case, the pattern which has a smaller number of code words is automatically selected. when the numbers of code words is equal, the smaller number of columns is selected.

   

   

   

    kkkk --- kkk: data string to be printed (omissible)

    max. 473 digits

    ll↓1, ll↓2, ll↓3, --- ll20:link field no. (omissible)

    01 to 99 (1 to 99 can also be used.)

    up to 20 digits can be designated using commas.

    explanation (1) bar code number

    when drawing by the data command ([esc] rb), the format designated by the

    bar code is selected.

    (2) print origin of coordinates

   

    the print origin of coordinates must be set so that the result of bar code drawing will be within the effective print area set by the label size set command ([esc] d).

   

    (3) type of bar code

   

   

    (4) type of check digit

    ① where no check digit is attached, the bar code of the data row will be drawn.

    ② in the case of the check digit check, if each check digit checked according to the type of bar code is normal, the bar code will be drawn. if the check digit not meeting the requirement is designated, the bar code will not be drawn.

    ③ in the case of the check digit auto attachment, each check digit is attached according to the type of bar code and the bar code is drawn.

    ④ if the type of bar code is code93, code128 (with auto code selection), or ucc/ean128, the check digit will always be attached regardless of the designation of the type of check digit.

    ⑤ if the type of bar code is jan, ean, or upc, the designation of no check digit attachment automatically assume the check digit check.

    ⑥ dbp modulus 10 is modulus 10 for deutsche bundespost postdienst only.

    (5) bar width, space width, and character-to-character space

    designate the bar, space, and character-to-character space widths according to the type of bar code. note that the designated proper value differs according to the rotational angle of bar code, type, number of digits, print speed, paper and ribbon used, etc. examples of such designation are listed below. (1 dot = 1/12 mm)

    in the case of jan, ean, upc, code93, code128, ucc/ean128, pdf417, or micropdf417, 2 to 6-module width is calculated automatically when 1-module width is designated.

   

    in the case of data matrix or cp code

   

    when 1-cell width is 00 for the data matrix or cp code, a two-dimensional code is not drawn. however, the two-dimensional code printed on the previous label is cleared.

    when nw7 is used, transmission of the space character assumes the space of (narrow space × 12) dots. in this case, the space is max. 255 dots.

    (6) rotational angle of bar code

   

    (7) bar code height

   

    when the bar code height is 0000, bar code (including guard bar) and numerals under bars are not drawn. however, the bar code printed on the previous label is cleared.

    (8) length of guard bar

    the length of guard bar is valid only when the type of bar code is wpc. it is ignored in any other cases.

   

    (9) numerals under bars

    numerals are not or provided under bars according the parameter for the presence or absence of numerals under bars. the contents of numerals under bars to be printed vary according to the type of bar code. the character set of numerals under bars is ocr-b. such numerals are enlarged or reduced only horizontally according to the width of the bar code. they are drawn vertically in the fixed one magnification.

    [drawing positions of numerals under bars]

    ① in the case of jan and ean

    (example) ean13 + 2 digits

   

    (example) ean8

   

    ② in the case of upc

    (example) upc-a + 2 digits

   

    (example) upc-e

   

    ③ in the case of other than jan, ean, and upc

    (example) code39

   

    (example) ucc/ean128

   

    (10) start/stop code

    · this parameter is valid only when the type of bar code is code39 and nw7.

    · where the parameter is designated, the program will not check if the transmit print data is with a start code and stop code.

    · when the parameter is omitted in the case of code39 and nw7, a start/stop code will be attached. the code to be added is “*” in the case of code39, and “a” in the case of nw7.

    · for details, refer to “auto attachment of start/stop code” to be discussed later in this specification.

    (11) increment/decrement

    printing is performed while the data is incremented or decremented each time a label is issued.

    [the following applies to the b-372-qp (up to v2.3), b-572-qp/qq (up to v2.3) and b 872-qp/qq (up to v1.2).]

    where the data row includes any data other than numerals, the data row will not be drawn. where the data row exceeds the maximum number of digits (40), the data row will not be drawn.

    when code128 (without auto code selection) is used, the number of the start code (code a, code b, and code c) digits is regarded as 2.

   

    [the following applies to the b-372-qp (v2.4 or after), b-572-qp/qq (v2.4 or after), b 872-qp/qq (v1.3 or after) and b-672-qp/qq.]

    letters and numerals for increment/decrement

    for code39 (standard), code39 (full ascii), nw-7, code93, code128, if a data string other than numerals is included in the data, increment/decrement designation is performed. if any code which does not exist in each bar code table is contained in the data, increment/decrement designation is not performed.

    up to 40 digits (including letters, numerals and symbols) are possible.

    example of increment/decrement calculation

   

    example of increment/decrement of data including the special codes of code128

    increment/decrement calculation starts from the last digit in the data strings. when the data string to be calculated is numeric, and the next (upper) digit is “]”, that is a special code (shown with underline below). the next digit is calculated without incrementing/decrementing these two digits.

    example of increment/decrement calculation of code128

   

    (12) zero suppression

   

    the leading zero(s) in a data row is replaced by a space(s) according to the designated number of digits. however, if the number of digits to be suppressed is greater than the data row, the data row will be drawn without zero suppression. where the data row exceeds the maximum number of digits (40), the data row will not be drawn.

    when the print data including start/stop code is sent to sending print data, the start/stop code is also counted as a digit. when the bar code type is jan, ean, upc or ucc/ean 128, the data will be drawn without zero suppression.

    (13) data string to be printed

    drawing data can be programmed by designating the number of digits after the symbol “=.” the maximum number of digits to be printed varies according to the types of bar codes. for codes, refer to the bar code table mentioned later.

    (14) link field no.

    the link field no. can be programmed by designating it after the symbol “;.” after the link field no. is designated using the format command, the data string are linked by the link field data command to draw an image.

    up to 20 fields can be linked.

    the following shows an example of linked fields on the two continuous labels.

   

    [data command]

   

    (15) explanation for data matrix

    ① ecc type

    data matrix contains a function to correct a code reading error using an error correcting code (ecc) and restore normal data. there are several eccs and ecc is designated according to usage. the general correction ability is as follows. however, it may vary according to the error conditions.

   

    ② format id

    data matrix can handle all codes including alphanumerics, symbols and kanji. since data compression rate varies according to codes, a code to be used is designated using the format id.

   

    ③ maximum number of digits

    the maximum number of digits varies according to the ecc type or format id. since each kanji character uses 2 bytes, the maximum number of digits for it becomes half of the following values.

   

    for the maximum number of digits in cell units, see the next page.

    ④ connection setting

    the connection setting is used to comprise data with a set of two-dimensional codes when the data cannot be expressed with a two-dimensional code. when three twodimensional codes are used to comprise data, identification information of 1/3, 2/3, and 3/3 is inserted into each two-dimensional code. the id number is programmed to include a proper combination of two-dimensional codes when one label contains plural connecting symbols. for example, when there are two kinds of data containing identification information for 1/2 and 2/2 in the same label, combination of two dimensional codes is unclear. by adding the id number, the combination is made clear.

   

   

    (16) explanation for the pdf417, micropdf417

    ① security level

    the pdf417 contains a function to correct a code reading error using an error correcting code word and restore normal data. the security level is designated according to usage to perform the error correction function.

    for the micropdf417, the printer sets the security level automatically.

   

    ② no. of columns (strings)

    the number of lines is variable in the pdf417. the line length (no. of data strings) is also variable. therefore, a symbol can be created in a form that can be easily printed, by changing the proportion of the height and width.

    the number of columns (data strings) is variable between 1 to 30.

    if the number of columns is small when data amount is large and security level is also high, drawing may not be performed. this is because the number of lines exceeds 90 when the number of columns becomes small. (when the pfd417 is used, the number of lines of symbols is limited from 3 to 90.)

    for the micropdf417, not only the number of columns (data strings) but also the number of rows (data lines) can be designated. when these are to be designated, see the table on page 66. note that the max. number of digits for the set parameter (gg) varies according to the character type. if data over the max. number of digits for the set parameter (gg) is set, the bar code is not printed. the number of columns (data strings) is variable from 1 to 4.

    however, the max. number of lines, which is 44, depends on the number of columns.

    (17) explanation for qr code

    ① error correction level

    the qr code contains functions to detect and correct an error. if one of the data characters is damaged, the information can be restored when this code is read. there are 4 levels that can be designated. the general correction ability is as follows.

   

    ② 1-cell width

   

    when the 1-cell width is 0, a two-dimensional code is not drawn. however, the twodimensional code printed on the previous label is cleared.

    ③ selection of mode

    all codes including alphanumerics, symbols, and kanji can be used in one qr code. manual mode or automatic mode can be selected to perform the operation.

    ④ selection of model

    model 1: original specification

    model 2: extended specification which enhances the function of position correction and contains a large amount of data.

    ⑤ mask number

    to be sure to read the qr code, it is preferable that white and black modules are arranged in this symbol in a balanced manner. this prevents the bit pattern “1011101”, which is characteristically seen in the position detecting pattern, from appearing in the symbol as much as possible.

    the mask number is 0 to 7. the pattern is determined by placing each masking pattern for the mask number upon the module pattern. when the mask number is set to 8, masking is not performed. when the parameter is omitted, the most appropriate mask number is automatically selected to perform masking.

    ⑥ connection setting

    for qr code, data can be divided into several codes. even though there is only a narrow print space, the code can be entered in the space by dividing the code. the data can be divided into a max. of 16 codes. parity data is obtained by ex-oring all input data in units of bytes before dividing. the input data is calculated based on shift jis for kanji, or on jis 8 for others. examples are shown below:

    “012345678日本” is divided into “0123,” “4567” and “89日本”.

    code no. 1 no. of divided codes: 3 parity data: 84 data “0123”

    code no. 2 no. of divided codes: 3 parity data: 84 data “4567”

    code no. 3 no. of divided codes: 3 parity data: 84 data “89 ”

    * the parity data is the ex-ored value for “0123456789日本”.

    30 31 32 33 34 35 36 37 38 39 93 fa 96 7b = 84

    (18) explanation for maxicode

    ① connection setting

    for maxicode, data can be divided into a max. of 8 codes.

    (19) explanation for cp code

    ① ecc (error correction code) level

    the cp code contains a function to correct a code reading error using an error correcting code word and restore normal data. the error correction level is selected according to usage to perform the error correction function.

    the higher the percentage of the error correcting code word is, the higher the error correcting ability is.

    for the cp code, the program is designed so that all remaining areas are used for correcting errors when the number of code characters is specified by a user. when the number of code characters is specified, “0” (no designation) can be used.

    when the number of code characters is not specified by the user, a value from 10 to 50% must be selected. the printer automatically determines the number of code characters so that the error correcting code word exceeds the percentage specified by the user.

    ② the number of bits per character

    data is compressed by using the 8-bit compaction method. if “0” is specified, the data is compressed in the same way.

    character set for 8 bits

    8 bits: iso 00h to ffh (for kanji)

    ③ the number of code characters

    for the cp code, a 3×3 cell is used for one block, and the block set forms the cp code.

    the numbers of characters in x and y directions can be set by the user.

    when “0” is specified, the printer automatically sets the smallest code size in which data set by the user can be contained.

    the rectangular code can be specified. the value for the y direction must be smaller than the x direction.

    the number of cells for the code is as follows.

    (no. of code characters) × 3 + 2

    (1) the check digit attach, increment/decrement, and zero suppress processes are performed according to the following priority. if any of the conditions is improper, no drawing will take place.

    for example, the zero(s) is replaced by a space(s) as a result of zero suppression but the modulus 10 designated to be attached cannot be calculated.

    increment/decrement ] zero suppression ] attachment of check digit

    (2) up to 32 fields for which incrementing/decrementing has been designated can be drawn. if a total of bit map font, outline font or bar code increment/decrement fields exceeds 32, drawing will take place without incrementing/decrementing any excessive field. the field to be incremented or decremented is incremented or decremented until the image buffer clear command ([esc] c) is transmitted.

    [example]

    ① format command (increment bar code no. 01 (+1))

    ② format command (increment bar code no. 02 (+2))

    ③ image buffer clear command

    ④ data command (bar code no. 01 “0001”)

    ⑤ data command (bar code no. 02 “0100”)

    ⑥ issue command (2 labels)

   

    ⑦ issue command (1 label)

   

    ⑧ image buffer clear command

    ⑨ data command (bar code no. 02 “3000”)

    ⑩ issue command (1 label)

   

    (3) more than one bar code format command can be connected when transmitted.

    [esc] xb01; 0100, 0150, 3, 1, 03, 03, 08, 08, 03, 0, 0150 [lf]

    b02; 0350, 0150, 3, 1, 03, 03, 08, 08, 03, 0, 0150 [lf] [nul]

    (4) when the drawing data is changed per label issue during printing, the field of the drawing data for the previous label is automatically cleared using the bar code number, then the next drawing data is printed. therefore, the bar code number which differs according to the drawing fields should be designated. since the automatic field clear is not performed between the clear command ([esc] c) and issue command ([esc] xs), the fixed data may be drawn using the same bar code number. in this case, the format command and data command should be sent alternately. (after the issue command is sent, the fields with the same bar code number are automatically cleared until the clear command is sent.)

    (5) the link field designation is cleared by omitting the link field designation using the same bar code no. and reformatting data.

    the link field designation can be also cleared by the image buffer clear command.

    (6) a print data string and link field no. cannot be programmed at the same time.

    refer to bit map font format command ([esc] pc)

    outline font format command ([esc] pv)

    bar code data command ([esc] rb)

    examples

   

    10 print #1, esc$; ”c”; lf$; nul$;

    20 print #1, esc$; ”xb01; 0200, 0125, 3, 1, 03, 03, 08, 08, 03, 0, 0150=12345”; lf$;

    nul$;

    30 print #1, esc$; ”xb02; 0830, 0550, 3, 1, 02, 04, 07, 08, 04, 3, 0150,”;

    40 print #1, ”+0000000000, 1, 00, n”; lf$; nul$;

    50 print #1, esc$; ”rb02; * abc *”; lf$; nul$;

    60 print #1, esc$; ”xs; i, 0002, 0002c5000”; lf$; nul$;

    (2)

   

    10 print #1, esc$; ”c”; lf$; nul$;

    20 print #1, esc$; ”pc001; 0200, 0300, 1, 1, c, 00, b; 01, 02”; lf$; nul$;

    30 print #1, esc$; ”pv01; 0650, 0550, 0200, 0150, b, 33, b; 02” ; lf$; nul$;

    40 print #1, esc$; ”xb01; 0200, 0550, 3, 1, 03, 03, 08, 08, 03, 0, 0150; 01, 02”; lf$;

    nul$;

    50 print #1, esc$; ”rb; s”; lf$; ”001”; lf$; nul$;

    60 print #1, esc$; ”xs; i, 0002, 0002c5000”; lf$; nul$;

    (3)

   

    10 print #1, esc$; ”c”; lf$; nul$;

    20 print #1, esc$; ”xb01; 0200, 0125, p, 04, 03, 03, 0, 0010”; lf$; nul$;

    30 print #1, esc$; ”xb02; 0830, 0550, q, 08, 04, 05, 3”; lf$; nul$;

    40 print #1, esc$; ”rb01; pdf417”; lf$; nul$;

    50 print #1, esc$; ”rb02; data matrix”; lf$; nul$;

    60 print #1, esc$; ”xs; i, 0002, 0002c5000”; lf$; nul$;

   

   
东芝 B-572 相关内容:报价 | 参数 | 图片 | 论坛 | 评测