Toshiba B-SX600 Series Command Manual
Hide thumbs Also See for B-SX600 Series:

Advertisement

TOSHIBA Bar Code Printer
B-SX600 Series
Command Manual
First Edition:
August 31, 2009

Advertisement

Table of Contents
loading

Summary of Contents for Toshiba B-SX600 Series

  • Page 1 TOSHIBA Bar Code Printer B-SX600 Series Command Manual First Edition: August 31, 2009...
  • Page 2 B-SX600 Command Manual • The all company and product names are the registered trademarks or trademarks of their respective companies. • This manual may not be copied, duplicated, or changed, in whole or part in any form. • The contents of this manual may be changed without notification for product improvement.
  • Page 3: Table Of Contents

    PAGE NUMBER SET COMMAND ・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・ DRIVER INFORMATION SET COMMAND ・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・ DOCUMENT INFORMATION SET COMMAND ・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・ ・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・ SPECIAL DATA REQUEST/RESPONSE COMMAND STATUS ・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・ ・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・ ASYNCHRONOUS STATUS COMMAND Copyright © 2009 by TOSHIBA TEC CORPORATION All Rights Reserved 570 Ohito, Izunokuni-shi, Shizuoka-ken, JAPAN...
  • Page 4: Command List

    B-SX600 Command Manual COMMAND LIST The following is the list of the commands for the B-SX600 series. Command Response Description Effective range /TII Image data setting Printer driver – Printer /TID Image data send Printer driver – Printer /TCB /RCB Calibration request/response Printer driver –...
  • Page 5: Image Data Set Command

    B-SX600 Command Manual 1. IMAGE DATA SET COMMAND Format Byte/bit Remarks ‘/’ Header ‘T’ ‘I’ Command identifier ‘I’ image.buf Reserved image.length Image length [line] image.width Image width [word] image.xoffset X-direction offset [dot] image.yoffset Y-direction offset [dot] image.mode Image mode image.rsp Reserved (Ribbon save information) image.vsp Reserved (Verification information)
  • Page 6 B-SX600 Command Manual Example) Print direction • Set the Y-direction offset in units of lines, and it must be within the range from ‘– max. page length’ to the max. page length. When a positive value is set for the Y-direction offset, the print position of an image will shift backward, and when a negative value is set, an image will shift forward, as viewed from the media outlet.
  • Page 7 B-SX600 Command Manual • Relation between the print image rotation and image mode flag Normal Mirror 0-degree rotation, 0x0001 0-degree rotation, 0x0001 IMG_LRB IMG_LRW 90-degree rotation, 0x0001 90-degree rotation, 0x0001 IMG_LRB IMG_LRW 0-degree rotation, 0x0001 | IMG_UD 0-degree rotation, 0x0001 | IMG_UD | IMG_LRB | IMG_LRW 90-degree rotation, 0x0001 | IMG_UD 90-degree rotation, 0x0001 | IMG_UD | IMG_LRB |...
  • Page 8: Print Data Send Command

    B-SX600 Command Manual 2. PRINT DATA SEND COMMAND Format Byte/bit Remarks ‘/’ Header ‘T’ ‘I’ Command identifier ‘D’ Offset before compression Equivalent to the argument “offset” Data size before compression (n) Equivalent to the argument “size” Compression mode Compression parameter 1 (Offset after compression) Compression parameter 2 (Data size after compression)
  • Page 9 B-SX600 Command Manual The meaning of the compression mode field Undefined Pack Bits (Not applicable) 2 to 7 Undefined GrPDK Adaptive Compress (Not applicable) 9 to 15 Undefined Specification not affected by enabling/disabling the compression • Data to be transmitted must comply with the arrangement specified by the Image Data Set Command. •...
  • Page 10 B-SX600 Command Manual Bitmap format When image data is sent to the printer without being compressed, the following image will be comprised of the bitmap structure below. FF FF FF FF F0 00 00 00 CC 00 00 00 C3 00 00 00 CO CO 00 00 CO 30 00 00 CO 0C 00 00 CO 03 00 00 CO 00 C0 00 CO 00 30 00 CO 00 0C 00 CO 00 03 00 CO 00 00 C0 CO 00 00 30 CO 00 00 0C CO 00 00 03 8 7 6 5 4 3 2 1 8 7 6 5 4 3 2 1 8 7 6 5 4 3 2 1 8 7 6 5 4 3 2 1 FF FF FF FF...
  • Page 11: Calibration Request/Response Command

    B-SX600 Command Manual 3. CALIBRATION REQUEST/RESPONSE COMMAND Format ● Request command Byte/bit ‘/’ Header ‘T’ ‘C’ Command identifier ‘B’ ● Response command Byte/bit Remarks Refer to /TJI. SMONID Refer to /TJI. DOCID ‘/’ Header ‘R’ ‘C’ Command identifier ‘B’ measured.sensor_type Sensor mark detection method Refer to /TPI.
  • Page 12: Printer Operation Set Command

    B-SX600 Command Manual 4. PRINTER OPERATION SET COMMAND Format Byte/bit Remarks ‘/’ Header ‘T’ ‘A’ Command identifier ‘I’ action.page_offset Page offset [line] Table Duty action.print_method Reserved Reserved Print speed action.print_speed Feed speed action.feed_speed action.print_density Print tone action.sep_length Reserved (sort feed/print length) action.ondemand_time Tear-off delay time action.cut_method...
  • Page 13 B-SX600 Command Manual • MP (Multi Pulse) and HE (High Energy) specify the method to apply the energy to the print head. For the Multi Pulse method, the energy table is specified by “Table”, and strobe duty is specified by “Duty”, respectively.
  • Page 14: Page Information Set Command

    B-SX600 Command Manual 5. PAGE INFORMATION SET COMMAND Format Byte/bit Remarks ‘/’ Header ‘T’ ‘P’ Command identifier ‘I’ measured.sensor_type Sensor mark detection method measured.measured_length Media pitch [line] measured.lead_cnt Page length [line] Sensor level L measured.vtl Sensor Level H measured.vth Media pitch: Length of media from a sensor mark to the next sensor mark.
  • Page 15 B-SX600 Command Manual • PRP (Pre-print), CN (Count), MA (Manual), TL (Threshold/Level) bits specify a sensor mark detection method which is appropriate for the purpose of use. Sensor mark detection method Media feed mode Usage Fixed length feed mode Continuous paper Easy feed mode Die-cut labels Strict feed mode...
  • Page 16: Home Position Set Command

    B-SX600 Command Manual 6. HOME POSITION SET COMMAND Format Byte/bit Remarks ‘/’ Header ‘T’ ‘A’ Command identifier ‘T’ Equivalent to the argument “pages” The number of pages to feed Equivalent to the argument “mode” Operation mode Function Feeds the media to the print start position based on the parameter settings in the Page Information Set Command and Printer Operation Set Command.
  • Page 17: Print Start Command

    B-SX600 Command Manual 7. PRINT START COMMAND Format Byte/bit Remarks ‘/’ Header ‘T’ ‘S’ Command identifier ‘P’ Equivalent to the argument “mode” Operation mode Reserved Equivalent to the argument “more” Operation after printing Explanation • Operation mode is specified by the following bits: Action Reserved Reserved...
  • Page 18 B-SX600 Command Manual • The operation after printing is specified by the following bits: Reserved Reserved Ondmnd • The operation after printing is determined by the Ondemand and BK bits. Value Operation 0, 0 Stop at the normal position 0, 1 Feed to the tear-off position Ondmnd 1, 0...
  • Page 19: Status Request/Response Command

    B-SX600 Command Manual 8. STATUS REQUEST/RESPONSE COMMAND Format ● Request command Byte/bit ‘/’ Header ‘T’ ‘E’ Command identifier ‘S’ ● Response command Byte/bit Remarks Refer to /TJI. SMONID Refer to /TJI. DOCID ‘/’ Header ‘R’ ‘E’ Command identifier ‘S’ Equivalent to the return value Error “get_pe_errno”...
  • Page 20 B-SX600 Command Manual Error code Meaning Remarks Ribbon has been loaded while the direct thermal printing method is selected. Print head uninstalled/improperly installed Media near end Front cover is opened Ribbon break Ribbon near end Ribbon feed error Paper jam in the peel-off unit Paper jam in the cutter unit Printer is in operation Page information unspecified...
  • Page 21: Fine Adjustment Command

    B-SX600 Command Manual FINE ADJUSTMENT COMMAND Format Byte/bit Remarks ‘/’ Header ‘T’ ‘S’ Command identifier ‘A’ Equivalent to the argument “id” Fine adjustment identifier Equivalent to the argument “value” Fine adjustment value Function Sets a fine adjustment value. Explanation • Fine adjustment identifier and the value are specified by the following bits: Value Fine adjustment Distance between the reflective sensor and the print head...
  • Page 22: Fine Adjustment Value Request/Response Command

    B-SX600 Command Manual 10. FINE ADJUSTMENT VALUE REQUEST/RESPONSE COMMAND Format ● Request command Byte/bit Remarks ‘/’ Header ‘T’ ‘G’ Command identifier ‘A’ Equivalent to the argument “id” Fine adjustment identifier ● Response command Byte/bit Remarks Refer to /TJI. SMONID Refer to /TJI. DOCID ‘/’...
  • Page 23: Sensor Status Request/Response Command

    B-SX600 Command Manual 11. SENSOR STATUS REQUEST/RESPONSE COMMAND Format ● Request command Byte/bit ‘/’ Header ‘T’ ‘S’ Command identifier ‘B’ ● Response command Byte/bit Remarks Refer to /TJI. SMONID Refer to /TJI. DOCID ‘/’ Header ‘R’ ‘S’ Command identifier ‘B’ Equivalent to the return value.
  • Page 24 B-SX600 Command Manual • The “left end” and “right end” indicated by the CL and CR bits are the positions as viewed from the printer back side. Value Operation The front cover is opened. The front cover is closed. The side cover is opened. The side cover is closed.
  • Page 25: Analog Sensor Status Request/Response Command

    B-SX600 Command Manual 12. ANALOG SENSOR STATUS REQUEST/RESPONSE COMMAND Format ● Request command Byte/bit ‘/’ Header ‘T’ ‘S’ Command identifier ‘L’ Sensor identifier ● Response command Byte/bit Remarks Refer to /TJI. SMONID Refer to /TJI. DOCID ‘/’ Header ‘R’ ‘S’ Command identifier ‘L’...
  • Page 26 B-SX600 Command Manual • When 8 to 11 bytes (counted from “0”) read from the printer are “/RSL”, this is judged as a response to the request. - 23 -...
  • Page 27: Printer Version Request/Response Command

    B-SX600 Command Manual 13. PRINTER VERSION REQUEST/RESPONSE COMMAND Format ● Request command Byte/bit ‘/’ Header ‘T’ ‘V’ Command identifier ‘R’ ● Response command Byte/bit Remarks Refer to /TJI. SMONID Refer to /TJI. DOCID ‘/’ Header ‘R’ ‘V’ Command identifier ‘R’ Equivalent to the return value.
  • Page 28: Service Information Request/Response Command

    B-SX600 Command Manual 14. SERVICE INFORMATION REQUEST/RESPONSE COMMAND Format ● Request command Byte/bit ‘/’ Header ‘T’ ‘G’ Command identifier ‘S’ ● Response command Byte/bit Remarks Refer to /TJI. SMONID Refer to /TJI. DOCID ‘/’ Header ‘R’ ‘G’ Command identifier ‘S’ Service_total.pwon_time Operating time (sec.) Service_total.feed_length...
  • Page 29: Service Information Set Command

    B-SX600 Command Manual 15. SERVICE INFORMATION SET COMMAND Format Byte/bit Remarks ‘/’ Header ‘T’ ‘S’ Command identifier ‘S’ Service_total.pwon_time Operating time (sec.) Service_total.feed_length Feed amount (mm) Service_total.print_lines Total printing distance Service_total.num_of_cut Cut count (times) Function Sets the service information. - 26 -...
  • Page 30: Print Head Test Request/Response Command

    B-SX600 Command Manual 16. PRINT HEAD TEST REQUEST/RESPONSE COMMAND Format ● Request command Byte/bit ‘/’ Header ‘T’ ‘T’ Command identifier ‘H’ The number of printable dots (n) Equivalent argument Block designation “block”. Test result size ● Response command Byte/bit Remarks Refer to /TJI.
  • Page 31 B-SX600 Command Manual Explanation • For the number of printable dots, the number of printable dots among the print head is set. (Note 2) • The print head is divided into 16 blocks, and the blocks to be tested are specified dot by dot. The MSB is corresponding to the left block, and the LSB is corresponding to the right block, respectively.
  • Page 32: Cut/Peel-Off Enable Flag Set Command

    B-SX600 Command Manual 17. CUT/PEEL-OFF ENABLE FLAG SET COMMAND Format Byte/bit ‘/’ Header ‘T’ ‘E’ Command identifier ‘C’ Option Flag 1 Flag 2 Function Obtains the information whether the cutter or peel-off unit is enabled or not. Explanation • The Option is specified by the following value 0: No option 1: Peel-off unit 2: Cutter unit...
  • Page 33: Page Number Set Command

    B-SX600 Command Manual 18. PAGE NUMBER SET COMMAND Format Byte/bit ‘/’ Header ‘T’ ‘P’ Command identifier ‘N’ Page number Function Sets the page numbers. This command is used only between the printer driver and the language monitor, and not sent to the port monitor.
  • Page 34: Driver Information Set Command

    B-SX600 Command Manual 19. DRIVER INFORMATION SET COMMAND Format Byte/bit ‘/’ Header ‘T’ ‘D’ Command identifier ‘I’ Data size (n) Data type Data (n bytes) Function This command is issued by the printer driver to notify the language monitor of the printer driver information including the window handle.
  • Page 35 B-SX600 Command Manual Data Data Data Remarks size size Status getting cycle (msec.) When this value is 0, the language monitor does not obtain a status. When this value is other than 0, the language monitor obtains a status at a specified cycle. SMONID, DOCID The first 4 bytes: Unique number issued by the SMONID status monitor...
  • Page 36: Document Information Set Command

    B-SX600 Command Manual 20. DOCUMENT INFORMATION SET COMMAND Format Byte/bit ‘/’ Header ‘T’ ‘J’ Command identifier ‘I’ Data size (n) Data type Data (n bytes) Function This command is issued by the language monitor to notify the printer of the print job (document) information. Explanation •...
  • Page 37: Special Data Request/Response Command

    B-SX600 Command Manual 21. SPECIAL DATA REQUEST/RESPONSE COMMAND Format ● Request command Byte/bit ‘/’ Header ‘T’ ‘S’ Command identifier ‘D’ Data ID Max. size of a response Data size (n) Data 16+n-1 ● Response command Byte/bit Remarks Refer to /TJI. SMONID Refer to /TJI.
  • Page 38 B-SX600 Command Manual Explanation • The contents of special data can be determined between the sender and receiver, and basically the data is not disclosed. • If the data does not meet the specification, it is discarded. • To prevent changes of data by malicious users, any security features, such as authentication should be included in the data.
  • Page 39: Status

    B-SX600 Command Manual STATUS In addition to a response to a command, the printer sends a status or information to the host in the case an event occurs in the printer. ASYNCHRONOUS STATUS COMMAND Format Byte/bit Remarks Refer to /TJI. SMONID DOCID Error: Lower 15 bits...

Table of Contents