Preview only show first 10 pages with watermark. For full document please download

Asb Function Specifications Manual

   EMBED


Share

Transcript

ASB (Automatic Status Back) Function Specifications Manual General Use Status This manual prescribes the general use status returned to the host. The general use status is composed of “header 1 + header 2 printer statuses” and is continuously returned. However, in the Xon/Xoff mode, because it is possible to mix both Xon and Xoff codes partway through the general use status, the host abides by an identification method, described later, to always identify data for each reception of 1 byte. The following provides a detailed description of the general use status. Enabling and disabling conditions of the automatic status abide by the setting of the memory switch and the DIPSW (refer to each printer manual for details). It can be changed using the “a” n command after turning ON the power. Header 1 Header 1 carries information regarding the length of one byte to be transmitted to the header of the general use status. The configuration of Header 1 is shown in Table 1 – 1. Header 1 represents the entire transmission byte count of the status using bits 1 to 3 and bit 5, including header 1. This value is added so that the host can correctly receive all data when changing the printer status byte count that accompanies an upgrade of the general use status. The host must correctly receive that many bytes. (The relationship between an actual transmitted byte count and Header 1 is shown in Table 1 – 2.) To indicate that this is header 1 of the header data, bit 0 is always 1 (subsequent bytes are always 0). Therefore, when detecting header 1, verify that bit 0 is 1. Also, because bit 6 is reserved for future expansion, the host ignores it. Table 1-1 Header 1 (First Byte) Bit Content 0 Always 1 Status 0 Status 1 – 1 2 Printer Status Byte Count 3 4 Always 0 – 5 Printer Status Byte Count 6 Reserved (Fixed to 0) – 7 Not Used (Fixed to 0) – Table 1-2 Corresponding of Actual Transmission Byte Counts and Header 1 Transmission Byte Count n Header 1 (7≤n≤15) 7 00001111B (0F Hex) 8 00100001B (21 Hex) 9 00100011B (23 Hex) 10 00100101B (25 Hex) 11 00100111B (27 Hex) 12 00101001B (29 Hex) 13 00101011B (2B Hex) 14 00101101B (2D Hex) 15 00101111B (2F Hex) Header 2 Header 2 carries the information of the length of one byte transmitted to second byte of the general use status. The configuration of Header 2 is shown in Table 1 – 3. Header 2 represents the version of the general use status (called general use status version below) using bits 1 to 3 and bit 5. (The relationship between the actual version and Header 2 is shown in Table 1 – 3.) Table 1 – 3 Header 2 (Second Byte) Bit Contents Status 0 0 Always 0 – Status 1 1 2 General Use Status Version Number 3 4 5 6 7 Always 0 – General Use Status Version Number Not Used (Fixed at 0) – Table 1 – 4 Corresponding of Actual General Use Version and Header 2 (Partially Omitted) Version Number n (1≤n≤31) Header 2 Version Number n Header 2 (1≤n≤31) 1 00000010B (02 Hex) 9 00100010B (22 Hex) 2 00000100B (04 Hex) 10 00100100B (24 Hex) 3 00000110B (06 Hex) • • • • • • 4 00001000B (08 Hex) 16 01000000B (40 Hex) 5 00001010B (0A Hex) • • • • • • 6 00001100B (0C Hex) 30 01101100B (6C Hex) 7 00001110B (0E Hex) 31 01101110B (6E Hex) 8 00100000B (20 Hex) Printer Status (Minimum 5 Bits) The entire printer status is sent from the third byte of the general use status. The configuration of the status is shown in Tables 1 (-5, -6, -7, -8 and -9) Printer status is returned by (transmission byte count – 2 by Header 1). Printer status is always updated to the latest information (no record exists). Also, refer to each printer specification manual for details on which are the contents of operation of each bit information (ex: recoverable errors). There are cases in which the content of the printer status is added when upgrading the version. Invalid is always handled as “0.” Table 1 – 5 Printer Status 1 (3rd Bit) BIT Contents Status 0 Status 1 SP298 SP2000 TSP400Z TUP492 TSP552II TSP800 TSP2000 TUP492Z 0 Always 0 1 Command Not Executed Executed Valid Valid Valid Valid Valid Valid Valid 2 Conversion Switch Status Open Closed Valid Valid Valid Invalid Valid Valid Valid 3 Online/Offline Status Online Offline Valid Valid Valid Valid Valid Valid Valid 4 Always 0 5 Cover Status Closed Open Invalid Invalid Invalid Invalid Valid Valid Valid 6 Offline by Pressing the Online Not Occurred Occurred Switch Invalid Valid Valid Invalid Invalid Invalid Invalid 7 Not Used (Fixed at 0) (*) Bit 1 is cleared to 0 when returned to the host. Table 1 – 6 Printer Status 2 (4th Byte) BIT Content Status 0 Status 1 SP298 SP2000 TSP400Z TUP492 TSP552II TSP800 TSP2000 TUP492Z 0 Always 0 1 2 Mechanical Error No Error Error Valid Valid Valid Valid Valid Invalid Valid 3 Auto-cutter Error No Error Error Valid Valid Valid Valid Valid Valid Valid 4 Always 0 5 Non-recoverable Error No Error Error Valid Valid Valid Valid Valid Valid Valid 6 Stopped Due to High Temp. of Does not Print Head Stop Stops Invalid Valid Valid Valid Valid Valid Valid 7 Not Used (Fixed at 0) Table 1 – 7 Printer Status 3 (5th Byte) BIT Content Status 0 Status 1 SP298 SP2000 TSP400Z TUP492 TSP552II TSP800 TSP2000 TUP492Z 0 Always 0 1 Head-up Error No Error Error Invalid Invalid Valid Valid Invalid Valid Invalid 2 Presenter Paper Jam Error No Error Error Invalid Invalid Invalid Valid Invalid Invalid Invalid 3 Paper Size Error No Error Error Invalid Invalid Valid Valid Invalid Invalid Invalid 4 Always 0 5 Command Error No Error Error Invalid Invalid Valid Valid Invalid Invalid Invalid 6 Reception Buffer Overflow Error (*) No Error Error Valid Valid Valid Valid Valid Valid Valid 7 Not Used (Fixed at 0) (*) Bit 6 is cleared to 0 when returned to the host. Table 1 – 8 Printer Status 4 (6th Bit) BIT Content Status 0 Status 1 SP298 SP2000 TSP400Z TUP492 TSP552II TSP800 TSP2000 TUP492Z 0 Always 0 1 Receipt Paper Outer Side Near End Has Paper No Paper Invalid Invalid Invalid Valid Invalid Invalid Invalid 2 Receipt Paper Inner Side Near End Has Paper No Paper Invalid Valid Invalid Valid Valid Valid Valid 3 Receipt Paper End Has Paper No Paper Invalid Valid Valid Valid Valid Valid Valid 4 Always 0 5 6 7 Not Used (Fixed at 0) Table 1 – 9 Printer Status 5 (7th Bit) BIT Content Status 0 Status 1 SP298 SP2000 TSP400Z TUP492 TSP552II TSP800 TSP2000 TUP492Z 0 Always 0 1 Presenter Paper Detector No Paper Has Paper Invalid Invalid Invalid Valid Invalid Invalid Invalid 2 Slip TOF Detector Has Paper No Paper Valid Invalid Invalid Invalid Invalid Invalid Invalid 3 Slip BOF Detector Has Paper No Paper Valid Invalid Invalid Invalid Invalid Invalid Invalid 4 Always 0 5 6 7 Not Used (Fixed at 0) IEEE1284 Device ID IEEE1284 device ID return Valid/Invalid settings depend upon the printer model, but it can be set using the DIP switches or the memory switch. Refer to the operations manuals or the Programmer’s Manual for details (Ex-factory setting: Invalid). Star Mode SP298 SP2000 TSP400Z TUP492 TUP492Z DATA LENGTH: <00>h <34>h <00>h <35>h <00>h <34>h <00>h <34>h MFG: Star; Star; Star; Star; CMD: STAR; STAR; STAR; STAR; MDL: SP298 (STR001); SP2000 (STR-001); TSP400 (STR-001); TSP400 (STR-001); CLS: PRINTER; PRINTER; PRINTER; PRINTER; Star Mode TSP552II TSP800 TSP2000 DATA LENGTH: <00>h <37>h <00>h <34>h <00>h <36>h MFG: Star; Star; Star; CMD: STAR; STAR; STAR: MDL: TSP550II (STR001); TSP800 (STR-001); TSP2000 (STR-001); CLS: PRINTER; PRINTER; PRINTER; ESC/POS mode SP298 SP2000 TSP552II TSP800 DATA LENGTH: <00>h <37>h <00>h <38>h <00>h <3A>h <00>h <38>h MFG: Star; Star; Star; Star; CMD: ESC/POS; ESC/POS; ESC/POS; ESC/POS; MDL: SP298 (ESP001); SP2000 (ESP-001); TSP550II (ESP–001) TSP800 (ESP-001) CLS: PRINTER; PRINTER; PRINTER; ESC/POS mode TSP2000 DATA LENGTH: <00>h <39>h MFG: Star; CMD: ESC/POS; MDL: TSP2000 (ESP001); CLS: PRINTER; PRINTER; Commands “a” n 1B 61 n 1E Sets automatic status transmission conditions n ASB “0” or <0> Invalid “1” or <1> Valid To check the status when the ASB function is invalid: 1B 06 01 First transmission of automatic status: This command transmits the contents of the automatic status of the printer the first time. (Enters “data exists” status when printer has bi-directional parallel interface.) How to Identify the Status The host can identify the status returned from the printer because the numerical values of specific bits are fixed, as shown in the table below. (However, it cannot distinguish the ENQ status between the general use status.) Status Identification Command and Function Status XON <00010001>B XOFF <00010011>B ENQ Status <***0****>B EOT Status <***1***0>B General Use Status (1st Byte
) <0**0***1>B General Use Status (Second byte and beyond) <0**0***0>B ELECTRONIC PRODUCTS DIVISION STAR MICRONICS CO., LTD. 536 Nanatsushinya, Shimizu, Shizuoka, 424-0066 Japan Tel : 0543-47-0112 Fax: 0543-48-5013 OVERSEAS SUBSIDIARY COMPANIES STAR MICRONICS AMERICA, INC. 1150 King Georges Post Road, Edison, NJ 08837-3729 U.S.A. Tel : 732-623-5555 Fax: 732-623-5590 STAR MICRONICS U.K. LTD. Star House, Peregrine Business Park, Gomm Road, High Wycombe, Bucks, HP13 7DL, U.K. Tel : 01494-471111 Fax: 01494-473333 Please access the following URL http://www.star-micronics.co.jp/service/frame_sp_spr_e.htm for the lastest revision of the manual. Distributed by 2000.08.30 Printed in Japan, 80874375