background image

— 90 —

GS  r  n

[Function]

Sending status

[Code]

<1D>H<72>H<n>

[Range]

n=1, 49

[Outline]

Sends the specified status to the host.

n

Function

  1,49    Sends the paper Sensor status.

[Caution]

• When the serial interface is used:

For DTR/DSR control:

The printer sends the status after verifying that the host is
ready to receive. If the host is not ready to receive, the
printer waits for the host to become ready to receive.

For XON/XOFF control:

The printer sends the status without checking whether the
host is ready to receive or busy.

• Because this command is executed when data is mapped in

the receive buffer, there may be a delay between receiving the
command and sending the status depending on the condition
of the receive buffer.

• If ASB (Automatic Status Back) is enabled by GS a, the host

must discriminate between the status due to this command
and the status due to ASB.

• Paper Sensor status (n = 1, 49)

Bit

Status

Hex.

Decimal

0

Paper found by Paper Near-end Sensor 1

00

0

Paper not found by Paper Near-end Sensor 1

01

1

1

Paper found by Paper Near-end Sensor 2

00

0

Paper not found by Paper Near-end Sensor 2

02

2

2

Paper found by Paper-end Sensor

00

0

Paper not found by Paper-end Sensor

(04)

(4)

3

Paper found by Presenter Sensor

00

0

Paper not found by Presenter Sensor

08

8

4

Unused

00

0

5

Undefined

6

Undefined

7

Unused

00

0

Bit 2: Whenever the Paper-end Sensor detects a “paper out”

state, the printer goes offline, and the command is not
executed.  The printer, therefore, never sends a status bit
2 = “1”.

[See Also]

DLE EOT, GS a

Summary of Contents for PPU-231II

Page 1: ...LINE THERMAL PRINTER MODEL PPU 231II Rev 1 01 Newly issued on December 19 2002 Command Reference ...

Page 2: ...Rev No Date Comment Rev 1 00 Jun 10 2002 Newly issued Rev 1 01 Dec 19 2002 Revised P 12 P 78 P 79 P 90 REVISION ...

Page 3: ...he bit image mode S P 1B H 2A H m 24 n1 n2 d k 16 ESC Specifying Canceling underline S P 1B H 2D H n 26 17 ESC 2 Specifying 1 6 inch line feed rate S P 1B H 32 H 27 18 ESC 3 Setting line feed rate of minimum pitch S P 1B H 33 H n 28 19 ESC Data input control S P 1B H 3D H n 29 20 ESC Deleting download characters S P 1B H 3F H n 30 21 ESC Initializing the printer S P 1B H 40 H 31 22 ESC D Setting h...

Page 4: ...H n 52 42 GS Specifying the character size S P 1D H 21 H n 53 43 GS Specifying the absolute vertical position P 1D H 24 H nL 55 of characters in PAGE MODE nH 44 GS Defining the download bit image S P 1D H 2A H n1 56 n2 d n1 n2 8 45 GS A Execution of test printing S 1D H 28 H 41 H 58 pL pH n m 46 GS Printing the downloaded bit image S P 1D H 2F H m 59 47 GS Starting Ending macro definition S P 1D H...

Page 5: ... 30 H Printing of raster bit image S m xL xH 91 yL yH d k 67 GS w Specifying the horizontal size S P 1D H 77 H n 93 magnification of bar code No Command Function Mode Code Page Command relative to NV memory 1C H 67 H 33 m H a1 H a2 H 68 FS g3 Writing data into the download user NV memory S a3 H a4 H nL H 94 nH H d nL nH 256 1C H 67 H 34 H 69 FS g4 Reading data from the download user NV memory S P ...

Page 6: ...r so be sure to use the values within the defined domain Outline Describes the functions of the command Caution Describes important points and cautionary notes as required Default Initial values for the command if it has arguments Reference Describes commands related to the command when it is used Sample Program Describes examples of coding on Quick Basic Examples are only for reference They may v...

Page 7: ...ng of horizontal tab positions is at intervals of 8 characters for font A at 9th 17th 25th 33rd columns See Also ESC D Sample Program Printing Result 12345678901234567890 AAA BBB Initially set horizontal tab AAA BBB CCC When set to the 4th 8th and 15th columns LPRINT 0123456789012345678901 LPRINT CHR HA LPRINT CHR H9 AAA LPRINT CHR H9 BBB LPRINT CHR HA LPRINT CHR H1B D LPRINT CHR 3 CHR 7 CHR 14 CH...

Page 8: ...n the line feed amount having been set Caution The head of the line becomes the next print starting position See Also ESC 2 ESC 3 Sample Program Print Results AAA Print and line feed BBB Print and line feed Line feed only CCC Print and line feed LPRINT AAA CHR HA LPRINT BBB CHR HA LPRINT CHR HA LPRINT CCC CHR HA END ...

Page 9: ... internal print buffer printing and line feed are performed Without data inside the internal print buffer however only line feed is performed See Also LF Sample Program Print Results AAA Print and line feed BBB Print and line feed Line feed only CCC Print and line feed LPRINT AAA CHR HD LPRINT BBB CHR HD LPRINT CHR HD LPRINT CCC CHR HD END ...

Page 10: ...SC L ESC S GS FF FF Standard Mode Function Printing and paper feeding to the top of the Black mark position Code 0C H Outline This command prints the data in the printer buffer and searches for the head of the next label Black mark position Caution This command is valid only when the label printer is selected with DS2 7 It is ignored when the thermal paper is specified After sending one label wort...

Page 11: ...d in the currently effective print area in PAGE MODE Caution This command is only effective when PAGE MODE is selected If the previously established print area overlaps the currently effective print area the overlapped data in the previously established area will be erased See Also ESC L ESC W ...

Page 12: ... way as with this command Therefore the user should be reminded of this fact Example 1 Suppose a command ESC mnL nH d1 dk where d1 10 H d2 04 H d3 01 H The DLE EOT n command cannot be interleaved into the code string of another command consisting of 2 bytes or more Example 2 If the printer sends DLE EOT 3 after the host has sent up to ESC 3 in its attempt to send ESC 3 n the printer handles the ES...

Page 13: ...nused 02 2 2 Unused 00 0 Not in paper feed state triggered by 00 0 FEED switch 3 In paper feed state triggered by FEED 08 8 switch 4 Unused 10 16 Printing is not stopped because of 00 0 paper out state 5 Printing is stopped because of 20 32 paper out state 6 Error not occurred 00 0 Error occurred 40 64 7 Unused 00 0 Bit 5 Printing is stopped if the paper end detector detects a paper out state or i...

Page 14: ...e error and then DLE ENQ n 1 n 2 can be used to recover from the error However it is not possible to recover from any error due to a circuit problem e g broken wire Bit 6 If a head overheat error is detected the printing is stopped until the head temperature falls At this time bit 6 1 4 Continuous paper detector status When n 4 is specified Bit Status Hex Decimal 0 Unused 00 0 1 Unused 02 02 2 Pap...

Page 15: ...nL nH d k where d1 10 H d2 05 H d3 01 H1 is given the DLE ENQ n command cannot be interleaved into the code string of another command consisting of two bytes or more Example 2 If the printer sends DLE ENQ 2 when the host has sent up to ESC 3 in its attempt to send ESC 3 n the printer treats the ESC 3 as ESC 3 10 H Thus the user should be careful Even if DLE ENQ 2 is executed the settings made by f...

Page 16: ... a batch printout of the data mapped in the entire print area in PAGE MODE Caution This command is only effective when PAGE MODE is selected Mapped data as well as the ESC T and ESC W settings and the character mapping position are held even after printing See Also FF ESC L ESC S ...

Page 17: ...P Fractions resulting from calculation are corrected with the minimum pitch of the mechanism and the remainder is omitted In STANDARD MODE this command uses the horizontal basic calculation pitch x In PAGE MODE the basic calculation pitch used by this command depends on the start point 1 If the start point specified by ESC T is top left or bottom right the command uses the horizontal basic calcula...

Page 18: ...Program Print Results AAAAA 0 dot space A A A A A 1 dot space A A A A A 12 dots space LPRINT CHR H1B CHR 0 LPRINT AAAAA CHR HA LPRINT CHR H1B CHR 1 LPRINT AAAAA CHR HA LPRINT CHR H1B CHR 12 LPRINT AAAAA CHR HA END ...

Page 19: ...aution With double height and double width being specified simultaneously quadruple characters are created An underline is attached to the full character width which however is not attached to the part having been skipped by the horizontal tab Neither is it attached to 90 right turned characters The underline width is as specified by the ESC command The default setting is 1 dot width In case chara...

Page 20: ...s Font B Emphasis Quadruple Underline Font A Underline Font A Double Width Font A Double Height LPRINT CHR H1B CHR H00 H LPRINT CHR H1B CHR H01 H LPRINT CHR H1B CHR H08 H LPRINT CHR H1B CHR H10 H LPRINT CHR H1B CHR H20 H LPRINT CHR H1B CHR HB9 H LPRINT CHR HA END ...

Page 21: ... P leaves a fraction the fraction is corrected with the minimum pitch of the mechanism and the remainder is omitted In STANDARD MODE this command uses the horizontal Paper feed direction basic calculation pitch x In PAGE MODE this command acts differently depending on the start point 1 If the start point specified by ESC T is top right or bottom left the command uses the vertical Paper feed direct...

Page 22: ...ute Position Specified A B C B A 0 50 100 256 62 LPRINT CHR H1B LPRINT CHR 0 CHR 0 A LPRINT CHR H1B LPRINT CHR 50 CHR 0 B LPRINT CHR H1B LPRINT CHR 0 CHR 1 C LPRINT CHR HA LPRINT CHR H1B LPRINT CHR 100 CHR 0 A LPRINT CHR H1B LPRINT CHR HC2 CHR HFF B LPRINT CHR HA END ...

Page 23: ...t Results Internal Character Set Download Character GOSUB SETCHR LPRINT CHR H1B CHR 0 LPRINT A CHR HA LPRINT CHR H1B CHR 1 LPRINT A CHR HA END SETCHR LPRINT CHR H1B LPRINT CHR 3 A FOR J 1 TO 2 READ REP LPRINT CHR REP FOR I 1 TO REP 3 READ D LPRINT CHR D NEXT I NEXT J RETURN DATA 6 DATA HEF H80 H00 DATA H80 H80 H00 DATA H80 H80 H00 DATA H80 H80 H00 DATA HFF HFF HFF DATA HFF HFF HFF DATA 12 DATA HFF...

Page 24: ...n total in the range of 20 H to 7E H a indicates the number of dots to be defined in horizontal direction p is the data to be defined which indicate a pattern equal to a dots in horizontal direction from the left end The rest of the pattern on the right side is filled with space The number of data to be defined is s a Download characters thus defined remain valid until redefinition ESC GS FS q exe...

Page 25: ...ting 1 for a printed dot and 0 for an unprinted dot Sample Program Refer to Sample Program and Print Results for ESC on page 23 Font A Font B 12dot 24dot p1 p4 p5 p6 p34 p35 MSB LSB p36 p2 p3 9dot 24dot p1 p4 p5 p6 p25 p26 MSB LSB p27 p2 p3 ...

Page 26: ...tions that can be printed on one line the excess data are discarded d is bit image data Bits to be printed are specified as 1 and those not as 0 The bit image modes specified by m are shown as follows m Mode Vertical Direction Horizontal Direction No of Dots Dot Density Dot Density Max No of Dots 0 8 dots single density 8 67 DPI 101 DPI 288 1 8 dots double density 8 67 DPI 203 DPI 576 32 24 dots s...

Page 27: ...HR 20 CHR 0 GOSUB IMG1 LPRINT CHR HA LPRINT CHR H1B LPRINT CHR 32 CHR 20 CHR 0 GOSUB IMG2 LPRINT CHR HA LPRINT CHR H1B LPRINT CHR 33 CHR 20 CHR 0 GOSUB IMG2 LPRINT CHR HA END IMG1 LPRINT CHR HFF FOR I 1 TO 18 LPRINT CHR H85 NEXT I LPRINT CHR HFF RETURN IMG2 LPRINT CHR HFF LPRINT CHR HFF LPRINT CHR HFF FOR I 1 TO 18 LPRINT CHR H80 LPRINT CHR H00 LPRINT CHR H05 NEXT I LPRINT CHR HFF LPRINT CHR HFF L...

Page 28: ...having been skipped by horizontal tab command An underline is not attached to a 90 right turned characters Default n 0 See Also ESC FS Sample Program Print Results LPRINT CHR H1B CHR 0 LPRINT AAAAA LPRINT CHR H1B CHR 1 LPRINT AAAAA CHR HA END n Function 0 48 Canceling an underline 1 49 Specifying an underline for 1 dot width 2 50 Specifying an underline for 2 dots width Underline Canceled Underlin...

Page 29: ...m Print Results 1 6 inch line feed 0 203 inch line feed 50 203 inch line feed 1 6 inch line feed 100 203 inch line feed 1 6 inch line feed A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A LPRINT AAAAA CHR HA LPRINT CHR H1B 3 CHR 0 LPRINT AAAAA CHR HA LPRINT CHR H1B 3 CHR 50 LPRINT AAAAA CHR HA LPRINT CHR H1B 2 LPRINT AAAAA CHR HA LPRINT AAAAA LPRINT CHR H1B J CHR 100 LPRINT AA...

Page 30: ...hanism and the remainder is omitted In STANDARD MODE this command uses the vertical Paper feed direction basic calculation pitch y In PAGE MODE this command acts differently depending on the start point 1 If the start point specified by ESC T is top left or bottom right the command uses the vertical Paper feed direction basic calculation pitch y 2 If the start point specified by ESC T is top right...

Page 31: ...ined 3 Not defined 4 Not defined 5 Not defined 6 Not defined 7 Not defined When the printer has not been selected this printer abandons all the received data until it is selected by this command Caution Even when the printer has not been selected it can become BUSY state through printer operation When the printer is deselected this printer discards all the data until it is selected with this comma...

Page 32: ...ution The character n indicates the character code used to delete the defined pattern After the deletion characters are printed in the same pattern as the internal characters This command deletes the code defined pattern of the character font selected by ESC This command is ignored if the specified character code is undefined See Also ESC ESC ...

Page 33: ...DIP switches are not read again Data inside the internal input buffer is not cleared Macro definitions are not cleared NV bit image definitions are not cleared Data in the user NV memory is not cleared Sample Program Print Results Each setting has been initialized by this command A A A A A A LPRINT CHR H1B CHR H30 LPRINT CHR H1B V CHR 1 LPRINT AAA CHR HA LPRINT CHR H1B LPRINT AAA CHR HA END ...

Page 34: ...um 32 Specifying tab positions exceeding this limit is ignored n k which denotes a setting position is input in the increasing order and ends at 00 H ESC D NUL clears all the set tab positions Following clearing the horizontal tab command is ignored Caution When the data n k is equal to or smaller than its preceding data n k 1 it is assumed that tab setting is finished If this is the case the next...

Page 35: ...ng 1 Specifying emphasis printing This is effective to all characters Dot configuration of a emphasized character includes one extra dot added at its side Emphasis printing can also be specified using ESC however ESC E or ESC whichever command is processed last takes precedence See Also ESC Sample Program Print Results Emphasis canceled Emphasis specified A A A B B B A A A B B B LPRINT CHR H1B E C...

Page 36: ...nction 0 Canceling double strike printing 1 Specifying double strike printing This is effective to all characters Caution With this printer double strike printing and emphasis printing provide completely the same results See Also ESC E Sample Program Print Results Double strike printing canceled Double strike printing specified A A A B B B A A A B B B LPRINT CHR H1B G CHR 0 LPRINT AAABBB CHR HA LP...

Page 37: ...In STANDARD MODE this command uses the vertical Paper feed direction basic calculation pitch y In PAGE MODE this command acts differently depending on the start point 1 If the start point specified by ESC T is top left or bottom right the command uses the vertical Paper feed direction basic calculation pitch y 2 If the start point specified by ESC T is top right or bottom left the command uses the...

Page 38: ... point specified by ESC T in the print area specified by ESC W The commands listed below which have separate settings for PAGE MODE and STANDARD MODE are changed to the settings for PAGE MODE use 1 Spacing setting ESC SP 2 Line feed width setting ESC 2 ESC 3 The following commands are valid only in PAGE MODE 1 ESC V Specifying canceling 90 right turned characters 2 ESC a Aligning the characters 3 ...

Page 39: ... H n Definition value n 0 1 48 49 Outline Selects character fonts n Function 0 48 Selection of font A 12 24 1 49 Selection of font B 9 24 Details ESC can also select fonts but the setting made by the command that has last been processed becomes valid Reference ESC ...

Page 40: ...Depending on the value of n one of the following character sets is specified n Character Set 0 U S A 1 France 2 Germany 3 U K 4 Denmark I 5 Sweden 6 Italy 7 Spain I 8 Japan 9 Norway 10 Denmark II 11 Spain II 12 Latin America 13 Korea Default n 0 See Also Character Code Table International Character Set ...

Page 41: ...is executed the beginning of the line is taken as the next print start position The print area defined by ESC W is initialized The commands listed below which have separate settings for STANDARD MODE and PAGE MODE are changed to the settings for STANDARD MODE use 1 Spacing setting ESC SP 2 Line feed width setting ESC 2 ESC 3 STANDARD MODE is selected when the printer is turned on or reset or when ...

Page 42: ...printer without affecting the printing in STANDARD MODE The character mapping position will be the start point of the print area specified by ESC W The basic calculation pitch x or y used by the following commands varies with the start point 1 If the start point is the top left or bottom right The characters are mapped in the direction perpendicular to the paper feed Commands using x ESC SP ESC S ...

Page 43: ...acters n Function 0 48 Canceling 90 right turned Characters 1 49 Specifying 90 right turned Characters Caution No underlines are attached to 90 right turned characters Default n 0 Sample Program Print Results 90 Rotation Canceled 90 Rotation Specified LPRINT CHR H1B V CHR 0 LPRINT AAAAA LPRINT CHR H1B V CHR 1 LPRINT AAAAA CHR HA END A A A A A A A A A A ...

Page 44: ...the horizontal length or vertical length is 0 this command is canceled and the next data is handled as normal data The character mapping position will be the start point specified by ESC T in the print area If the horizontal start point horizontal length is greater than the horizontal printable area the horizontal printable area horizontal start point is taken as the horizontal length If the verti...

Page 45: ...length and Dy vertical length The printable area for this printer is approximately 72 070 mm 576 203 inches horizontally and 117 mm 1662 360 inches vertically Default xL xH yL yH 0 dxL 64 dxH 2 dyL 126 dyH 6 When 58mm wide paper is used dxL 176 dxH 1 See Also CAN ESC L ESC T GS P Print Area Paper Paper Feed Direction ...

Page 46: ...left specify it as nL nH 256 65536 N The basic calculation pitch is set by GS P Fractions resulting from calculation are corrected with the minimum pitch of the mechanism and the remainder is omitted In STANDARD MODE this command uses the horizontal basic calculation pitch x In PAGE MODE this command acts differently depending on the start point 1 If the start point specified by ESC T is top left ...

Page 47: ...w n Position 0 48 Left end alignment 1 49 Centering 2 50 Right end alignment Caution This command is valid only when it is inputted at the beginning of a line This command does not affect the PAGE MODE Default n 0 Sample Program Print Results Paper Feed Direction Left justified Centered Right justified AAAAA AAAAA AAAAA LPRINT CHR H1B a CHR 0 LPRINT AAAAA CHR HA LPRINT CHR H1B a CHR 1 LPRINT AAAAA...

Page 48: ...Paper Sensor a paper end signal should be output Each bit for n has the following meaning Bit Position Value 0 1 0 Paper Near end Disabled Enabled 1 Paper Near end Disabled Enabled 2 Paper end Disabled Enabled 3 Paper end Disabled Enabled 4 Undefined 5 Undefined 6 Undefined 7 Undefined Caution This command is valid only for the parallel interface Default n 15 ...

Page 49: ...ensor which helps to stop printing when the paper supply almost runs out Each bit for n has the following meaning Bit Position Value 0 1 0 Paper Near end Disabled Enabled 1 Paper Near end Disabled Enabled 2 Undefined 3 Undefined 4 Undefined 5 Undefined 6 Undefined 7 Undefined This printer can only select one kind of Paper Sensor a Paper Near end Sensor Default n 0 ...

Page 50: ...ution When the panel switch is disabled with this command the FEED switch is also disabled Therefore the paper cannot be fed by operating the FEED switch Regardless of the setting of this command the FEED switch is always enable while the switch is being waited for at the time of macro execution Default n 0 Sample Program When enabling the FEED switch When disabling the FEED switch LPRINT CHR H1B ...

Page 51: ... lines do not remain The beginning of the line is specified as the next print start position Caution If n line feed width exceeds approximately 1016 mm this command feeds paper by approximately 1016 mm 40 inches Default The initial value is not defined Sample Program Print Results 2 6 inch line feed AAAAA AAAAA LPRINT AAAAA LPRINT CHR H1B d CHR 2 LPRINT AAAAA CHR HA END ...

Page 52: ...r near end PNE sensor is disabled this command has no function The set value and the remaining amount of printing are not cleared by the initialize command ESC If a value lower than the preset value is set during PNE detection the printer may stop printing The set value remains valid until the printer is restarted or the a new value is set Default n 150 150 cm Sample Program When setting the remai...

Page 53: ...gual 3 Codepage PC860 Portuguese 4 Codepage PC863 Canadian French 5 Codepage PC865 Nordic 6 Codepage PC852 Eastern Europe 7 Codepage PC866 Russian 8 Codepage PC857 Turkish 9 Windows Codepage 255 Space Page For user setting Default This is a character code table specified with DIP Switch Sample Program Print Results n 0 n 9 LPRINT CHR H1B t CHR 0 LPRINT n 0 FOR C HB2 TO HB5 LPRINT CHR C NEXT C LPRI...

Page 54: ...racters 1 Specifying inverted characters Caution Inverted printing means printing the line turned 180 This command is valid only when it is specified at the beginning of a line This command does not affect the PAGE MODE Default n 0 Sample Program Print Results Paper Feed Direction Inversion Canceled Inversion Specified AAAAA BBBBB BBBBB AAAAA LPRINT CHR H1B CHR 0 LPRINT AAAAA CHR HA LPRINT BBBBB C...

Page 55: ...fication or horizontal magnification is out of the defined range In STANDARD MODE the vertical direction is defined as the paper feed direction and the horizontal direction is defined as the direction perpendicular to the paper feed These definitions are therefore interchanged when 90 right turned characters are specified In PAGE MODE the vertical direction means the top bottom direction of each c...

Page 56: ...nification are contained in a line the baseline of each character is lined up Horizontal and vertical magnification can also be specified canceled by ESC The ESC or GS command whichever is handled last becomes effective Default n 0 See Also ESC ...

Page 57: ...on of a character at the data mapping start position is not moved The start point used as the reference is specified by ESC T Depending on the start point specified by ESC T this command acts as follows 1 If the start point is the top left or bottom right the command specifies the absolute position in the paper feed direction The character s top bottom direction using the vertical basic calculatio...

Page 58: ...l direction d indicates bit image data Once defined the download bit image remains effective until redefinition ESC execution ESC or power OFF takes place Caution Relations between the bit image data and the dots defined are shown below A download character and a download bit image cannot be defined simultaneously With this command executed the defined content of a downloaded character is cleared ...

Page 59: ... MODE DOUBLE WIDTH MODE DOUBLE HEIGHT MODE GOSUB IMG LPRINT CHR H1D CHR 0 LPRINT CHR H1D CHR 1 LPRINT CHR H1D CHR 2 LPRINT CHR H1D CHR 3 END IMG n1 10 n2 5 LPRINT CHR H1D LPRINT CHR n1 CHR n2 FOR J 1 TO n1 8 FOR I 1 TO n2 LPRINT CHR J NEXT I NEXT J RETURN ...

Page 60: ...mp 2 50 Printer s status printing 3 51 Rolling pattern printing Details This command is only valid when processed at the head of a line during the STANDARD MODE The command will be ignored in PAGE MODE During macro definition if this command is processed the macro definition is suspended and the command starts being processed Printer will reset its hard disk after finishing test printing Therefore...

Page 61: ...rection 0 48 NORMAL MODE 203 DPI 203 DPI 1 49 DOUBLE WIDTH MODE 203 DPI 101 DPI 2 50 DOUBLE HEIGHT MODE 101 DPI 203 DPI 3 51 QUADRUPLE SIZE MODE 101 DPI 101 DPI Caution When data exist in the print buffer this command is ignored When a downloaded bit image has not been defined this command is ignored A portion of a downloaded bit image exceeding one line length is not printed A downloaded characte...

Page 62: ...efined Even with ESC Initialization of the printer having been executed defined content is not cleared Therefore it is possible to include ESC into the content of macro definition Normal printing operation is carried out even during macro definition Default The initial value is not defined See Also GS Sample Program Print Results Printing during Macro Execution Normal Printing during Macro Definit...

Page 63: ...eed caused by the black mark top position detecting command FF GS FF GS A or by the operation of the FEED switch and just after setting the top of form at printer power on If you want to correct the top position in the forward direction set the value in consideration of the print length as the printable area may change after setting the value Use the basic pitch for vertical direction in calculati...

Page 64: ...y valid in the lowest bit The black white inversion works on internal and downloaded characters The black white inversion works also on the right spacing of characters defined by ESC SP This command does not affect the bit image downloaded bit image bar code HRI characters or the skip area specified by HT ESC or ESC This command does not affect the space between lines Black white inversion specifi...

Page 65: ...e and below the bar code Caution The HRI characters refer to the bar code turned characters so that you can read them The HRI characters are printed in the font selected with GS f Specify before the GS k command Default n 0 See Also GS f GS k Sample Program LPRINT CHR H1B 3 CHR 5 LPRINT CHR H1D h CHR 50 LPRINT CHR H1D H CHR 0 GOSUB BC LPRINT CHR H1D H CHR 1 GOSUB BC LPRINT CHR H1D H CHR 2 GOSUB BC...

Page 66: ... 64 Printed above and below Print Results No HRI characters Printed above Printed below ...

Page 67: ...efined 6 Undefined 7 Unused 00 0 Caution Under DTR DSR control the printer sends the printer ID after verifying that the host is ready to receive If the host is not ready to receive the printer waits for the host to become ready to receive Under XON XOFF control the printer sends the printer ID without checking whether the host is ready to receive or busy Because this command is executed when data...

Page 68: ...on pitch is defined by GS P Once defined the left margin is not changed if the basic calculation pitch is changed by GS P The left margin is calculated with the horizontal basic calculation pitch x set by GS P A fraction resulting from the calculation is corrected with the minimum pitch of the mechanism and the remainder is omitted When mapping character data if the print area specified is not wid...

Page 69: ...e if the print area specified is narrower than 9 bits only the line for that data is handled as follows 1 The print area is extended toward the left So the left margin is decreased until it is 9 dot wide but not wider than the printable area Default nL 0 nH 0 See Also GS P GS W ...

Page 70: ...ed 1 Commands using x ESC SP ESC ESC GS L GS W 2 Commands using y ESC 3 ESC J In PAGE MODE the parameters used depend on the character orientation as follows 1 If the start point specified by ESC T is the top left or bottom right The characters are mapped in the direction perpendicular to the paper feed Commands using x ESC SP ESC ESC W ESC Commands using y ESC 3 ESC J ESC W GS GS 2 If the start p...

Page 71: ...n any of the following cases 1 There is no paper in the presenter The state where no eject command is received or receipt has already been removed 2 A command related to the next printing has been received The state where a command related to the next printing has already been received Caution This command is ignored when the collection function of the DIP switch is disabled See Also GS R 1 n ...

Page 72: ... set If n 0 receipts are not collected automatically This command is ignored in any of the following cases 1 There is no paper in the presenter The state where no eject command is received or receipt has already been removed 2 A command related to the next printing has been received The state where a command related to the next printing has already been received Caution This command is ignored whe...

Page 73: ...s detected the print paper is cut and ejected Also at the time of printer power on a black mark is detected and the print paper is cut and ejected Settable with DIP switch If the 18 in black mark cannot be detected a mark detection error occurs causing BUSY and FAULT to be generated while cutting and ejecting the print paper Caution This command is ignored when normal thermal paper is set in the p...

Page 74: ...he label sheet specs In STANDARD MODE this command only works when it is entered at the beginning of a line For 1 A partial cut Leaving a bridge area uncut is executed For 2 If n 0 the paper is fed to the cut position and then cut If n 0 the paper is fed by n basic calculation pitch inches past the cut position and then cut The basic calculation pitch is set by GS P The paper feed amount is calcul...

Page 75: ...rea width The basic calculation pitches are defined by GS P Once defined the print area width is not changed if the basic calculation pitch is changed by GS P The print area width is calculated with the horizontal basic calculation pitch x defined by GS P A fraction resulting from the calculation is corrected with the minimum pitch of the mechanism and the remainder is omitted If the first charact...

Page 76: ...ity or one dot for double density only the line for that image is handled as follows 1 The print area is extended toward the left So the left margin is decreased until it is equal to the minimum width of the image but not wider than the printable area Default nL 64 nH 2 When 58mm wide paper is used nL 176 nH 1 Since the default value varies depending on the number of columns refer to Defing the pr...

Page 77: ...e A negative value is the complement of 65536 For example to move the position by N pitches up specify it as nL nH 256 65536 N The specification of a relative position outside the specified print area is ignored Depending on the start point specified by ESC T this command acts as follows 1 If the start point is the top left or bottom right the command specifies the relative position in the paper f...

Page 78: ...EED Switch After waiting for the time specified by n2 the ARARM LED flickers and the FEED switch is waiting to be pressed When it is pressed the macro is executed once This action is repeated n1 times Caution When this command is received while in macro definition suspension of macro definition is indicated At this time the defined content is cleared No execution takes place when the macro is held...

Page 79: ...ition status items disabled for ASB may also have changed The ASB function is disabled if all status items are disabled If the ASB function is enabled by default the host receives the status the first time the printer gets ready for communication after it is turned on The printer sends 4 bytes of status shown in the tables below without checking whether the host is ready to receive or busy The 4 b...

Page 80: ...ection error occurred only when Black mark is selected 00 0 A Black mark detection error occurred 04 4 only when Black mark is selected 3 Auto cutter error not occurred 00 0 Auto cutter error occurred 08 8 4 Unused 00 0 5 Unrecoverable error not occurred 00 0 Unrecoverable error occurred 20 32 6 Auto recovery error not occurred 00 0 Auto recovery error occurred 40 64 7 Unused 00 0 Bit 1 If this er...

Page 81: ... Near end Sensor 2 02 2 2 Paper found by Paper end Sensor 00 0 Paper not found by Paper end Sensor 04 4 3 Paper found by Presenter Sensor 00 0 Paper not found by Presenter Sensor 08 8 4 Unused 00 0 5 Undefined 6 Undefined 7 Unused 00 0 4 4th byte Paper Sensor information Bit Status Hex Decimal 0 Undefined 1 Undefined 2 Undefined 3 Undefined 4 Unused 00 0 5 Undefined 6 Undefined 7 Unused 00 0 Defau...

Page 82: ...1 49 Font B 9 24 The HRI characters refer to the bar code turned characters so that you can read them Caution The HRI characters are printed at the position specified with GS H Default n 0 See Also GS H Sample Program Print Results FONT A FONT B LPRINT CHR H1D h CHR 50 LPRINT CHR H1D H CHR 2 LPRINT CHR H1D f CHR 0 GOSUB BC LPRINT CHR H1D f CHR 1 GOSUB BC END BC LPRINT CHR H1D k LPRINT CHR 4 LPRINT...

Page 83: ...e height of the bar code Code 1D H 68 H n Range 1 n 255 Outline Selecting bar code height n denotes the number of dots in the vertical direction Default n 162 Sample Program Refer to Sample Program and Print Results for GS w on page 93 ...

Page 84: ...2 48 d 57 1 UPC E 11 k 12 48 d 57 2 JAN13 EAN 12 k 13 48 d 57 3 JAN8 EAN 7 k 8 48 d 57 4 CODE39 1 k 48 d 57 65 d 90 32 36 37 43 45 46 47 5 ITF 1 k Must be 48 d 57 an even number 6 CODABAR 1 k 48 d 57 65 d 68 36 43 45 46 47 58 For 2 m Bar code system Range of n Range of d 65 UPC A 11 n 12 48 d 57 66 UPC E 11 n 12 48 d 57 67 JAN13 EAN 12 n 13 48 d 57 68 JAN8 EAN 7 n 8 48 d 57 69 CODE39 1 n 255 48 d ...

Page 85: ...processing of the command is aborted and the subsequent data is handled as normal data For STANDARD MODE If d is out of the range only a paper feed is executed and the subsequent data is handled as normal data If the bar code is wider than the print area for one line the bar code is not printed but only a paper feed is executed The amount of paper feed corresponds to the height of the bar code Inc...

Page 86: ...for the next data mapping If d is out of the range the processing of the command is aborted and the subsequent data is handled as normal data In this case the data mapping start position does not move If the bar code is wider than the print area the bar code is not printed but the data mapping start position is moved to the left end of the non print area Default The initial value is not defined ...

Page 87: ...consisting of numerals only has a fixed length of 13 columns a 12 column number entered from the host or application software plus a check digit 13th column automatically calculated inside the printer If the 13th column numeral is sent from the host the entire bar code will be printed as it is JAN 8 EAN This bar code consisting of numerals only has a fixed length of 8 columns a 7 column number ent...

Page 88: ... is preceded and followed by a character HRI characters for control characters 00H 1FH and 7FH are each printed as a combination of a character and an alphabetic character Control character HRI character Control character HRI character ASCII Hex ASCII Hex NUL 00 U DLE 10 P SOH 01 A DC1 11 Q STX 02 B DC2 12 R ETX 03 C DC3 13 S EOT 04 D DC4 14 T ENQ 05 E NAK 15 U ACK 06 F SYN 16 V BEL 07 G ETB 17 W ...

Page 89: ... used in code set B one character next to a Shift character is treated as a character of code set A The Shift character cannot be used in code set C Code set select characters CODE A CODE B CODE C The code set following a code set select character is switched to code set A B or C Function characters FNC1 FNC2 FNC3 FNC4 How the function characters are used depends on each application In code set C ...

Page 90: ...th a code set select character it immediately aborts the command processing and handles the subsequent data as normal data If the printer received a character that is not available in the currently selected code set it immediately aborts the command processing and handles the subsequent data as normal data An HRI character corresponding to either a Shift character or a code select character is not...

Page 91: ...ixed length bar code consisting of numerals only 8 column fixed length bar code consisting of numerals only Abbreviated version of UPC A 13 column fixed length bar code consisting of numerals only 8 column fixed length bar code consisting of numerals only Variable length bar code consisting of alphabetic characters and numerals The start stop code is automatically added Even column variable length...

Page 92: ...g the status depending on the condition of the receive buffer If ASB Automatic Status Back is enabled by GS a the host must discriminate between the status due to this command and the status due to ASB Paper Sensor status n 1 49 Bit Status Hex Decimal 0 Paper found by Paper Near end Sensor 1 00 0 Paper not found by Paper Near end Sensor 1 01 1 1 Paper found by Paper Near end Sensor 2 00 0 Paper no...

Page 93: ...there is no print data in the print buffer Any of the print modes Character size emphasis double strike inverting underlining back to white reversing etc does not affect the raster bit image If the print area specified by GS L and GS W is narrower than a minimum width the print area for that line only is extended to the minimum width The minimum width is one dot in NORMAL MODE m 0 48 and DOUBLE HE...

Page 94: ...d the processing of the command starts The macro is left undefined d denotes defined data Dots to be printed are specified as 1 and those not to be printed as 0 Example When xL xH 256 64 yL yH 256 dot xL xH 256 8 dot 512 dot 7 1 2 3 62 126 k 2 127 k 1 128 k 63 64 65 66 67 6 5 4 3 2 1 0 LSB MSB ...

Page 95: ... in fine element width Default n 3 Sample Program Print Results Height 30 Magnification 2 Height 50 Magnification 3 Height 80 Magnification 4 LPRINT CHR H1D h CHR 30 LPRINT CHR H1D w CHR 2 GOSUB BC LPRINT CHR H1D h CHR 50 LPRINT CHR H1D w CHR 3 GOSUB BC LPRINT CHR H1D h CHR 80 LPRINT CHR H1D w CHR 4 GOSUB BC END BC LPRINT CHR H1D k LPRINT CHR 4 LPRINT 12 CHR 0 RETURN ...

Page 96: ...or 1 character When the STANDARD MODE is selected this command is valid only when it is written at the head of the line This command is invalid when PAGE MODE is selected If this command is sent while a macro is being defined the definition process will be stopped and the execution of this command will start If the argument m the storage start address a1 a2 a3 a4 or the number of stored data nL nH...

Page 97: ... used less than 10 times a day It may happen that the printer becomes BUSY during the process of writing data into the non volatile memory while this command is executed When the printer becomes BUSY it will stop receiving data Therefore sending data from the host Including real time commands is prohibited Reference FS g4 ...

Page 98: ... m the send start address a1 a2 a3 a4 or the number of sent data nL nH is outside the definition area this command becomes invalid and the following data will be processed as normal data When the preparation for sending data is completed the following processes are executed 1 The printer state will change from READY to BUSY If the printer state is already set to BUSY the printer will do nothing 2 ...

Page 99: ...mmand and storing the data depending on the state of the receiving buffer Caution After the header is sent all data will be sent without verifying whether the host can receive the data or not Therefore the available space in the receiving buffer of the host should be more than The number of sent data 2 in order not to lose data during the execution of this command While data is being sent real tim...

Page 100: ... selected this command is valid only when there is no data in the print buffer This command is invalid when PAGE MODE is selected Any printing modes except the upside down printing mode i e emphasis double strike underlining character size inverted character printing 90 right turned are not affected When the printing area set by the functions GS L and GS W is not enough for one vertical line of th...

Page 101: ...of line feed set with ESC 2 and ESC 3 NORMAL MODE and DOUBLE WIDTH MODE execute a paper feed of Height n of NV bit image dots while DOUBLE HEIGHT MODE and QUADRUPLE SIZE MODE execute a paper feed of Height n of NV bit image 2 dots At the completion of the bit image printing the head of the line will be used for the next printing position and normal data processing will take place Related Commands ...

Page 102: ... the previously defined multiple data All the data must be resent From the execution of this command until the completion of the hardware reset any mechanical operation such as opening the cover initializing the printer head position or using the paper feed switch etc The NV bit image refers to a bit image that is defined by the FS q command in the non volatile memory and printed by the FS p comma...

Page 103: ...k is manipulated once and Data xL xH 256 yL yH 256 8 header 4 bytes of non volatile memory is used to store it The maximum definition area of this printer is 2M bit 256K byte Multiple NV bit images can be defined but bit images of which total size Bit image data header exceeds 2M bit 256K byte can not be defined The printer state will change to BUSY just before the writing operation into the non v...

Page 104: ...defined The receiving buffer printer buffer will be cleared and each setting will go back to its default value Then the status of dip switches will be checked once more It may happen that the printer becomes BUSY during the process of writing data into the non volatile memory in the execution of this command When the printer becomes BUSY it will stop receiving data Therefore sending data from the ...

Reviews: