background image

 

 

P

ROGRAMMER

G

UIDE

 

 

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Programmer's Guide 

SRP-500 InkJet Receipt Printer

 

 

  

2002. 1. 8. 

Programmer’s Guide 

1

 

Summary of Contents for Bixolon SRP-500

Page 1: ...PROGRAMMER S GUIDE Programmer s Guide SRP 500 InkJet Receipt Printer 2002 1 8 Programmer s Guide 1 ...

Page 2: ...terface connectors 8 2 2 2 Drawer kick out connector modular connector 9 3 Functions 10 3 1 Commands 10 3 1 1 Commands list for SRP 500 Series EPSON TM U200 Mode 10 3 1 2 Commands list for SRP 500 Series STAR Mode 11 3 1 3 Commands list for SRP 500 Series CITIZEN Mode 12 3 2 Character Code Tables 12 3 3 International character set 13 3 4 Using the control panel 13 3 4 1 Power LED 14 3 4 2 Error LE...

Page 3: ...28 ESC 28 ESC n 28 ESC n 29 ESC 29 ESC D n1 nk NUL 30 ESC E n 31 ESC G n 31 ESC J n 32 ESC R n 33 ESC U n 33 ESC a n 34 ESC c 3 n 35 ESC c 4 n 36 ESC c 5 n 37 ESC d n 37 ESC m 38 ESC p m t1 t2 38 ESC r n 39 ESC t n 39 ESC n 40 GS I n 41 GS V m 42 GS V m n 42 GS a n 42 GS r n 45 2002 1 8 Programmer s Guide 3 ...

Page 4: ...inting the printing speed goes down compared to mono color printing It is caused by the switching operation in the printer 5 Two color printing Black red blue green colors are selectable 1 2 Character Specifications 1 Character types Alphanumerics 95 characters Graphics 128 12 character tables International characters 32 characters 2 Character configuration 12 12 12 14 1 3 Roll Paper Supply Unit 1...

Page 5: ...ry 1 192 inch with command 3 Paper dimensions Width 76 mm 0 5 mm Maximum diameter 83 mm 1 5 Auto Cutter Partial cut is executed by command Partial cut Cutting with one point left uncut 1 6 Receive Buffer 8 KB 1 7 Reliability 1 Life Mechanism 15 000 000 lines Print head 7 million characters Auto cutter 500 000 cuts 2 MTBF 30 000 hours 2002 1 8 Programmer s Guide 5 ...

Page 6: ...t using the interface and when the printer is ready to receive data 2 During the self test 3 During paper feeding using the FEED button 4 Between the time when the printer stops printing due to a paper end and when the on line recovery wait time finishes after loading paper 5 When an error has occurred Conditions to go on line 1 Automatically after the time when the power is turned on including re...

Page 7: ...or Byte Mode ECP Mode 2 1 2 2 Switching between on line and off line The printer is not equipped with any on line off line switch The printer is placed into off line status in either of the followings z When the power is turned on or until the printer becomes ready for data transmission after it is initialized by the reset signal nInit from the interface z In the process of self test z In the proc...

Page 8: ...Printer Nack PtrClk PtrClk 11 Printer Busy PtrBusy Data 3 7 PtrBusy 12 Printer Perror AckDataReq Data 2 6 AckDataReq 13 Printer Select Xflag Data 1 5 Xflag 14 Host NautoFd HostBusy HostBusy 15 NC ND ND 16 GND GND GND 17 FG FG FG 18 Printer Logic H Logic H Logic H 19 30 GND GND GND 31 Host Ninit Ninit Ninit 32 Printer Nfault nDataAvail Data 0 4 nDataAvail 33 GND ND ND 34 Printer DK_Status ND ND 35 ...

Page 9: ...ignments Pin No Signal Name Direction 1 Frame GND 2 Drawer kick out drive signal 1 Output 3 Drawer open close signal Input 4 24 V 5 Drawer kick out drive signal 2 Output 6 Signal GND 2 Drawer kick out drive signal Output signal Voltage Approximately 24 V Current 1 A or less CAUTION To avoid an overcurrent the resistance of the drawer kick out solenoid must be 24 Ωor more Output waveform The ESC p ...

Page 10: ...ESC Initialize printer 1B 40 18 ESC D Set horizontal positions 1B 44 19 ESC E Turn emphasized mode on off 1B 45 20 ESC G Turn double strike mode on off 1B 47 21 ESC J Print and feed paper n vertical units 1B 4A 22 ESC R Select an international character set 1B 52 23 ESC U Turn unidirectional printing mode on off 1B 55 24 ESC a Select justification 1B 61 25 ESC c 3 Select paper sensor to output pap...

Page 11: ... 1B 43 17 ESC E Emphasized print mode 1B 45 18 ESC F Emphasized print mode deselection Default setting 1B 46 19 ESC M Select 9 7 Half dots character size 1B 4D 20 ESC R Select international character set 1B 52 21 ESC U Set or cancel uni direction mode 1B 55 22 ESC W 1 ESC W 1 Select expanded character mode 1B 57 31 1B 57 01 23 ESC W 0 ESC W 0 Cancel expanded character mode Default setting 1B 57 30...

Page 12: ...Second drawer drive command 1A 11 ESC BEL Drive pulse setting command for the first drawer 1B 07 12 ESC Underline command 1B 2D 13 ESC 1 1 9 inch paper feed preset command 1B 31 14 ESC 2 2 9 inch paper feed preset command 1B 32 15 ESC C Paper length set command 1B 43 16 ESC P 0 Paper partial cut command 1B 50 00 17 ESC P 1 Paper partial cut command 1B 50 01 18 FS First drawer quick drive command 1...

Page 13: ...ng the control panel Most of the functions of this printer are governed by software but you can monitor the printer s status by looking at the lights on the control panel and for some procedures you will use the buttons 2002 1 8 Programmer s Guide 13 ...

Page 14: ...inter the left cartridge indicator will be used In the most cases the left cartridge is black and the right is a color This indicator light LH RH blinks when the cartridge is almost out of ink and stays on when the cartridge s is removed 3 4 4 Clean BUTTON Use this button to clean the printer head or to enter MENU mode 3 4 5 Feed BUTTON Use this button to feed paper or to start self test and for h...

Page 15: ...haking DTR DSR XON XOFF OFF 2 4 Word length 7 bits 8 bits OFF 2 5 Parity check Enable Disable OFF 2 6 Parity selection EVEN ODD OFF 2 7 OFF 2 8 Baud rate selection Refer to the following table OFF Transmission 2 7 2 8 2400 baud ON ON 4800 baud OFF ON 9600 baud OFF OFF 19200 baud ON OFF 2002 1 8 Programmer s Guide 15 ...

Page 16: ...s a buffer that stores as is the data received from the host the reception data The reception data is stored in the reception buffer temporarily and is then processed sequentially 2 Print buffer The print buffer is a buffer that stores the image data to be printed 3 Print buffer full This is the state where the print buffer is full If new print data is input while the print buffer is full the data...

Page 17: ... that follows are read in and discarded Example 30H 1BH 22H 31H 32H If the above data string is input the printer discards the data 1BH and 22H as undefined commands As a result the data string that is actually processed is 30H 31H 32H 4 3 3 Settings outside the defined range If a value outside of the defined range is input for a command that takes parameters that command is ignored and the previo...

Page 18: ...et Horizontal tab positions are set with ESC D The default tab positions are at intervals of 8 characters columns 9 17 25 for the font B 12 12 Reference ESC D LF Name Print and line feed Format ASCII LF Hex 0A Decimal 10 Description Prints the data in the print buffer and feeds one line based on the current line spacing Note This command sets the print position to the beginning of the line Referen...

Page 19: ...er status specified by n in real time according to the following parameters n 1 Transmit printer status n 2 Transmit off line status n 3 Transmit error status n 4 Transmit paper roll sensor status Notes This command should not be used within the data sequence of another command that consists of 2 or more bytes For example If you attempt to transmit ESC 3 n to the printer but DTR DSR for the host c...

Page 20: ...o paper end Off 00 0 No error 6 On 40 64 Error occurs 7 Off 00 0 Not used Fixed to Off Bit 5 On printing stops due to paper end when printing stops due to paper end detected by the paper end sensor or the paper near end enabled by using the ESC c 4 n 3 Error status Bit Off On Hex Decimal Function 0 Off 00 0 Not used Fixed to Off 1 On 02 2 Not used Fixed to On Off 00 0 No mechanical error 2 On 04 4...

Page 21: ...sed Fixed to On Off 00 0 Paper near end sensor Paper adequate 2 3 On 0C 12 Paper near end is detected by the paper near end sensor 4 On 10 16 Not used Fixed to On Off 00 0 Paper end sensor Paper adequate 5 6 On 60 96 Paper end is detected by the paper end sensor 7 Off 00 0 Not used Fixed to Off 2002 1 8 Programmer s Guide 21 ...

Page 22: ...ocessed as the code for ESC 3 10 H This command n 2 is valid only when a mechanical error or an auto cutter error has occurred DLE ENQ 2 enables the printer to recover from an error after clearing the data in the receive buffer and the print buffer The printer retains the settings by ESC ESC 3 etc in effect when the error occurred The printer can be initialized completely by using this command and...

Page 23: ...ble height mode not selected 4 On 10 16 Double height mode selected Off 00 0 Double width mode not selected 5 On 20 32 Double width mode selected 6 Undefined Off 00 0 Underline mode not selected 7 On 80 128 Underline mode selected Notes When both double height and double width modes are selected quadruple size characters are printed Underlining is added to the entire width of each character includ...

Page 24: ...cified automatically Default n 0 Reference ESC ESC ESC y c1 c2 x1 d1 d y x1 xk d1 d y xk Name Define user defined characters Format ASCII ESC y c1 c2 x1 d1 d y x1 xk d1 d y xk Hex 1B 26 y c1 c2 x1 d1 d y x1 xk d1 d y xk Decimal 27 38 y c1 c2 x1 d1 d y x1 xk d1 d y xk Range y 2 32 c1 c2 255 0 x 14 Font A 0 x 12 Font B 0 d1 d y x 255 Description Defines user defined characters y specifies the number...

Page 25: ... are spaces The number of bytes required to download a character definition for one character is y x In the definition data a 1 represents a dot that is to be printed and a 0 represents a dot that is not to be printed Independent downloaded character definitions are possible for each font The font is selected by the ESC command The defined downloaded characters are cleared in the following circums...

Page 26: ...put exceeds the number of dots to be printed on a line the excess data is ignored d indicates the bit image data Set a corresponding bit to 1 to print a dot or to 0 to not print a dot The bit image modes selectable by m are as follows m No of Vertical Dots Dot Density Adjacent Dot Maximum number of dots 0 8 Single Density Permitted 252 1 8 Double Density Permitted 504 Notes If the values of m and ...

Page 27: ...e is turned on Notes Underlines can be printed for all characters but not for the space set by HT This command and ESC turn underline mode on or off in the same way If n is out of the specified range this command is ignored Default n 0 Reference ESC ESC 2 Name Select default line spacing Format ASCII ESC 2 Hex 1B 32 Decimal 27 50 Description Selects default 1 6 inch line spacing Reference ESC 3 20...

Page 28: ...escription Moves the print head to the standby position Notes The leftmost end is detected by the home position sensor Since the home position is detected when this command is executed the printing position may shift after this command is executed ESC n Name Select device Format ASCII ESC n Hex 1B 3D n Decimal 27 61 n Range n 1 Description Selects device to which host computer sends data n 1 enabl...

Page 29: ...deletes the defined pattern for the specified code in the character font selected by the ESC command If a user defined character has not been defined for the specified character code the printer ignores this command Reference ESC ESC ESC Name Initialize printer Format ASCII ESC Hex 1B 40 Decimal 27 64 Description Clears the data in the print buffer and resets the printer mode to the mode that was ...

Page 30: ...is command deletes horizontal tab positions that have already been set When n 8 has been set for the horizontal tab position the printing position moves to the ninth digit when HT is executed Up to 32 tab positions can be set Data exceeding 32 tab positions is processed as normal data Input n k in ascending order and place a NUL code 00 H at the end when n k is less than or equal to the preceding ...

Page 31: ...printer does not emphasize bit images This command and ESC turn on and off emphasized mode in the same way The last proceeded command becomes effective Printer output is the same in double strike ESC G and in emphasized Default n 0 Reference ESC ESC G ESC G n Name Turn double strike mode on off Format ASCII ESC G n Hex 1B 47 n Decimal 27 71 n Range 0 n 255 Description Turns double strike mode on o...

Page 32: ...e ESC E ESC J n Name Print and feed paper Format ASCII ESC J n Hex 1B 4A n Decimal 27 74 n Range 0 n 255 Description Prints the data in the print buffer and feeds the paper n 0 122mm 1 192 inches Notes After printing is completed this command sets the print starting position to the beginning of the line This command has no effect on the line feed amount set by the ESC 2 command or the ESC 3 comman...

Page 33: ...weden 6 Italy 7 Spain I 8 9 Norway 10 Denmark II Default n 0 ESC U n Name Turn unidirectional printing mode on off Format ASCII ESC U n Hex 1B 55 n Decimal 27 85 n Range 0 n 255 Description Turns unidirectional printing mode on or off When the LSB of n is 1 turn on unidirectional printing mode Notes Only the lowest bit of n is enabled To avoid horizontal printing misalignment unidirectional printi...

Page 34: ... specified position n selects the type of justification as follows n Justification 0 48 Left justification 1 49 Centering 2 50 Right justification Notes The command is enabled only when input at the beginning of the line A portion of data skipped by means of HT is also target data for the justification function Default n 0 Example 2002 1 8 Programmer s Guide 34 ...

Page 35: ... 1 On 02 2 Paper roll near end sensor enabled Off 00 0 Paper roll end detector disabled 2 On 04 4 Paper roll end detector enabled Off 00 0 Paper roll end detector disabled 3 On 08 8 Paper roll end detector enable 4 Undefined 5 Undefined 6 Undefined 7 Undefined Notes It is possible to select multiple detectors to output signals Then if any of the detectors detects a paper end the paper end signal i...

Page 36: ...roll near end sensor disabled 1 On 02 2 Paper roll near end sensor enabled 2 Undefined 3 Undefined 4 Undefined 5 Undefined 6 Undefined 7 Undefined Notes The printer goes off line after printing stops The paper roll near end sensor is an option therefore if the paper roll near end sensor is enabled by this command when the sensor is not equipped it does not stop printing The paper roll near end sen...

Page 37: ...hen the panel buttons are disabled no buttons on the panel are usable If disabled is set the paper feed switch no longer functions Default n 0 ESC d n Name Print and feed n lines Format ASCII ESC d n Hex 1B 64 n Decimal 27 100 n Range 0 n 255 Description Prints the data in the print buffer and feeds n lines Notes This command sets the print starting position to the beginning of the line The amount...

Page 38: ...t1 t2 Hex 1B 70 m t1 t2 Decimal 27 112 m t1 t2 Range m 0 1 48 49 0 t1 255 0 t2 255 Description Outputs the pulse specified by t1 and t2 to connector pin m as follows m Connector Pin 0 Drawer kick out connector pin 2 1 Drawer kick out connector pin 5 Notes The pulse ON time is t1 2 ms and the OFF time is t2 2 ms When t2 t1 the printer processes t1 2 ms Reference 2002 1 8 Programmer s Guide 38 ...

Page 39: ...hen input at the beginning of a line Default n 0 ESC t n Name Select character code table Format ASCII ESC t n Hex 1B 74 n Decimal 27 116 n Range n 0 2 3 4 5 16 17 18 19 21 22 23 Description Selects a page n from the character code table n Page 0 PC437 2 PC850 3 PC860 4 PC863 5 PC865 16 PC1252 17 PC866 18 PC852 19 PC858 21 PC862 22 PC864 23 PC874 Default n 0 Reference 2002 1 8 Programmer s Guide 3...

Page 40: ... the LSB of n is 0 upside down printing mode is turned off When the LSB of n is 1 upside down printing mode is turned on Notes Only the lowest bit of n is effective This command is enabled only when input at the beginning of a line In upside down printing mode the printer rotates the line to be printed by 180 and then prints it Default n 0 Example 2002 1 8 Programmer s Guide 40 ...

Page 41: ...l Function Off 00 0 Two byte character code not supported 0 On 01 1 Off 00 0 Auto cutter not equipped 1 On 02 2 Auto cutter equipped 2 Undefined 3 Undefined 4 Off 00 0 Not used Fixed to Off 5 Undefined 6 Undefined 7 Off 00 0 Not used Fixed to Off Two byte character code supported Notes The printer ID is transmitted when the data in the receive buffer is developed Therefore there may be a time lag ...

Page 42: ...r for cutting position n 0 122 mm 1 192 inches and partial cut Notes This command is effective only at the beginning of a line When n 0 the printer feeds the paper to the cutting position When n 0 the printer feeds the paper to cutting position n 0 122 mm 1 192 inches GS a n Name Enable Disable Automatic Status Back Format ASCII GS a n Hex 1D 61 n Decimal 29 97 n Range 0 n 255 Description Enables ...

Page 43: ...changes that status is sent In this case because the current state is shown for each status there is a possibility of a state change for a status for which ASB is not enabled If all statuses are disabled the Automatic Status Back ASB function is disabled When transmitting a status the printer transmits only four bytes Four bytes of status data must be consecutive except for XOFF code This command ...

Page 44: ...ccurred 4 Off 00 0 Not used Fixed to Off Off 00 0 No unrecoverable error 5 On 20 32 Unrecoverable error 6 Off 00 0 Not used Fixed to Off 7 Off 00 0 Not used Fixed to Off Third byte paper sensor information Bit Off On Hex Decimal Function Off 00 0 Paper near end sensor paper adequate 0 1 On 03 3 Paper near end sensor paper near end Off 00 0 Paper end sensor paper present 2 3 On 0C 12 Paper end sens...

Page 45: ...er sensor status n 1 49 Bit Off On Hex Decimal Status for ASB Off 00 0 Paper near end sensor paper present 0 1 On 03 3 Paper near end sensor paper near end Off 00 0 Paper end sensor Paper present 2 3 On 0C 12 Paper end sensor no paper present 4 Off 00 0 Not used Fixed to Off 5 Off 00 0 Not used Fixed to Off 6 Off 00 0 Not used Fixed to Off 7 Off 00 0 Not used Fixed to Off Drawer kick out connector...

Reviews: