Oki OKIPOS408II OKIPOS 408II Programmer s Technical Reference - Page 339
Automatic Status
View all Oki OKIPOS408II manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 339 highlights
5-3-3 Automatic Status Auto status is a group of states that are automatically returned from the printer to the hos t when the printer's status has changed. Automatic status is composed of "Header 1," "Header 2" and "plurality of bytes of the printer status" and is continuously returned to the host. The host always uses an identifying method to identify the data for every byte received. (It is possible that Xon/Xo codes are exceptionally mixed in the auto status in the Xon/Xo mode (when using a serial I/F), so it is necessary to consider that on the receiving side.) The valid/invalid conditions of the auto status abide by the DIPSW or the memory switch settings for the initial values. It is possible to change the conditions using the ESC RS a n command after turning ON the power. Also, it is possible to get the auto status using the ESC ACK SOH command, regardless of the valid/invalid conditions. 1. Header 1 Header 1 is the 1 byte length information tr ansmitted at the head of the automatic status. The table below shows the composition of the Header 1. Header 1 represent s the entire status transmission byte count, including Header 1, using bit 1 to bit 3 and bit 5. The host gets the transmission byte information and always receives the status data for that amount transmission bytes. For reference, the table below shows the relationship of actual transmission bytes and the Header 1. Because the bit 0 that indicates that this is the Header 1 is normally 1 (the second byte and beyond is 0), to detect the Header 1, it is acceptable to verify that bit 0 is 1 and bit 4 = 0 for this data. Note that bit 6 is for future expans ion and is ignored in host-side processes. Bit Contents 7 Fixed at "0" 6 Reserved (Fixed at "0") 5 Number of printer status bytes 4 Fixed at "0" Number of printer status 3 bytes 2 Number of printer status bytes Number of printer status 1 bytes 0 Fixed at "1" Status "0" "1" - - - - By Model 408 TUP900 TSP1000 TSP828L TUP500 408II - - - - - - - - - - - - - - - - - - - - - - - - Actual transmission byte count and header 1 table Transmission Byte Count n (7 ≤ n ≤ 15) 7 8 9 10 11 12 13 14 15 Header 1 00001111B (0F Hex) 00100001B (21 Hex) 00100011B (23 Hex) 00100101B (25 Hex) 00100111B (27 Hex) 00101001B (29 Hex) 00101011B (2B Hex) 00101101B (2D Hex) 00101111B (2F Hex) _____ STAR Page Mode Command Speci cations 5-12