Samsung SRP-500 Programmer's Manual

Samsung SRP-500 Programmer's Manual

Inkjet receipt printer
Hide thumbs Also See for SRP-500:

Advertisement

P
'
G
ROGRAMMER
S
UIDE
Programmer's Guide
SRP-500 InkJet Receipt Printer
1
2002. 1. 8.
Programmer's Guide

Advertisement

Table of Contents
loading

Summary of Contents for Samsung SRP-500

  • Page 1 ’ ROGRAMMER UIDE Programmer's Guide SRP-500 InkJet Receipt Printer 2002. 1. 8. Programmer’s Guide...
  • Page 2: Table Of Contents

    2.2.2 Drawer kick-out connector (modular connector).......... 9 Functions ........................10 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 Character Code Tables ..................
  • Page 3 ONTENTS ESC % ......................24 & y c1 c2 [x1 d1...d(y ×x1)]...[ xk d1... d(y × xk)]........24 d1...dk ESC * nL nH ................26 ESC - ......................27 ESC 2 ......................27 ESC 3 ......................28 ESC < ......................28 ESC = ......................
  • Page 4: Basic Specifications

    ASIC PECIFICATION 1. B ASIC PECIFICATIONS Printing Specifications (1) Printing method Inkjet Printer (2) Head configuration 12-Nozzle serial configuration (3) Printing directions Bi-directional printing (logical seeking) (4) Printing speed Approx. 6.5 LPS (at 42 columns) (LPS: Lines Per Second) Note1: If the printing duty ratio is too high, the printing quality is poor by the duty limit. In such circumstances, the printing speeds shown above cannot be guaranteed.
  • Page 5: Paper Specifications

    ASIC PECIFICATION Paper Specifications (1) Paper feeding method: Friction feed (2) Paper feed interval: Initial setting: 1/6 inch Able to set feeding interval by every 1/192 inch with command. (3) Paper dimensions Width 76 mm ± 0.5 mm Maximum diameter 83 mm Auto Cutter Partial cut is executed by command.
  • Page 6: Configuration

    UNCTIONS 2. C ONFIGURATION Interface Specifications 2.1.1 RS-232 serial interface 2.1.1.1 Specifications Data transmission: Serial Synchronization: Asynchronous Handshaking: DTR/DSR or XON/XOFF control Signal levels: MARK = -3 to -15 V ... logic ‘1’ / OFF SPACE = +3 to +15 V ... logic ‘0’ / ON Baud rate: 2400, 4800, 9600, 19200 bps Data word length:...
  • Page 7: Ieee 1284 Bidirectional Parallel Interface(Parallel Interface Specifications)

    UNCTIONS 2.1.2 IEEE 1284 Bidirectional Parallel Interface (Parallel Interface Specifications) Copyright (C) 1993 by the Institute of Electrical and Electronic Engineers, Inc. 2.1.2.1 Specifications Synchronization: Externally supplied nStrobe signals Handshaking: nAck and Busy signals Signal levels: TTL compatible Connector: Centronics 36P Reverse communication (Printer Host): Nibble or Byte Mode, ECP Mode.
  • Page 8: Connectors

    UNCTIONS IEEE1284 Pin Description Compatible Pin No. Source Nibble Mode Byte Mode Mode Host Nstrobe HostClk HostClk Host / Printer Data 0 (LSB) Data 0 (LSB) Host / Printer Data 1 Data 1 Host / Printer Data 2 Data 2 Host / Printer Data 3 Data 3...
  • Page 9: Drawer Kick-Out Connector (Modular Connector)

    UNCTIONS (2) IEEE 1284 Parallel interface specification 2.2.2 Drawer kick-out connector (modular connector) The signal specified by the ESC p command is output to this connector. The host can confirm the input signal state by using the DLE EOT, GS a, and GS r commands.
  • Page 10: Functions

    UNCTIONS 3. F UNCTIONS Commands 3.1.1 Commands list for SRP-500 Series. (EPSON TM-U200 Mode) Command Description Hexadecimal Print and carriage return Horizontal tab Print and linefeed DLE EOT Transmit real-time status 10 04 DLE ENQ Real-time request to printer 10 05...
  • Page 11: Commands List For Srp-500 Series. (Star Mode)

    UNCTIONS 3.1.2 Commands list for SRP-500 Series. (STAR Mode) Command Description Hexadecimal Deferred drive command “A” for peripheral unit 1 Page feed (Form feed) Print and linefeed (same as LF) Select expanded character mode Select upside-down Cancel upside-down character Cancel expanded character mode(Default...
  • Page 12: Commands List For Srp-500 Series. (Citizen Mode)

    UNCTIONS 3.1.3 Commands list for SRP-500 Series. (CITIZEN Mode) Command Description Hexadecimal First drawer drive command1 Paper feed command FF n “n”-lines paper feed command 0C n Enlarged character command Normal character command Initial set command Inverted character command Red color print command...
  • Page 13: International Character Set

    OMMANDS International character set Using 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.
  • Page 14: Power (Led)

    OMMANDS 3.4.1 Power (LED) This indicator light is on when the power is turned on. It blinks when the printer is the self- test printing standby state. Always wait until this indicator light stops blinking before you start using the printer and before you turn it off.
  • Page 15 OMMANDS DIP SW2 Switch Function Default Data receive error Print “?” Ignore Reserved Hand shaking DTR/DSR XON/XOFF Word length 7 bits 8 bits Parity check Enable Disable Parity selection EVEN Baud rate selection Refer to the following table Transmission 2400 baud 4800 baud 9600 baud 19200 baud...
  • Page 16: Commands

    OMMANDS 4. C OMMANDS Command Notation XXXX [Name] The name of the command. [Format] The code sequence. [Range] Gives the allowable ranges for the arguments. [Description] Describes the command’s function. [Notes] Provides important information on setting and using the printer command, if necessary.
  • Page 17: Exception Processing

    OMMANDS (6) Inch A unit of length. One inch is 25.4mm. (7) MSB Most Significant Bit (8) LSB Least Significant Bit Exception Processing 4.3.1 Undefined codes This term refers to the codes ranging from 00H to 1FH in the character code table. If a code in this range that is not defined as a command is input, that code (one byte) is read in and discarded, and subsequent data is processed as normal data.
  • Page 18: Command Descriptions

    OMMANDS Command descriptions [Name] Horizontal tab [Format] ASCII Decimal [Description] Moves the print position to the next horizontal tab position. [Notes] ▪ This command is ignored unless the next horizontal tab position has been set. Horizontal tab positions are set with ESC D. ▪...
  • Page 19: Dle Eot

    OMMANDS [Name] Print and carriage return [Format] ASCII Decimal [Description] This command prints the data in the print buffer and does not feed the paper. [Note] Sets the print starting position to the beginning of the line [Reference] DLE EOT [Name] Real-time status transmission [Format]...
  • Page 20 OMMANDS n = 1 : Printer status Off/On Decimal Function Not used. Fixed to Off. Not used. Fixed to On. Drawer kick-out signal is LOW (connector pin 3) Drawer kick-out signal is HIGH (connector pin 3) On-line. Off-line. Not used. Fixed to On. Not used.
  • Page 21 OMMANDS n = 4 : Continuous paper sensor status Off/On Decimal Function Not used. Fixed to Off. Not used. Fixed to On. Paper near-end sensor. Paper adequate. Paper near-end is detected by the paper near- end sensor. Not used. Fixed to On. Paper end sensor.
  • Page 22: Dle Enq

    OMMANDS DLE ENQ [Name] Real-time request to printer [Format] ASCII DLE ENQ n Decimal [Range] n = 0, n = 2 [Description] The printer responds to a request from the host specified by n. n = 0: Recovers to on-line state. n = 2: Recovers from an error after clearing the receive and print buffers.
  • Page 23: Esc ! N

    OMMANDS ESC ! [Name] Select print mode(s) [Format] ASCII ESC ! 21 n Decimal 33 n [Range] 0 ≤n ≤255 [Description] Selects print mode(s) using n as follows: Off/On Decimal Function Character font A (12 ×14) selected. Character font B (12 ×12) selected. Undefined.
  • Page 24: Esc

    OMMANDS ESC % [Name] Select/cancel user-defined character set [Format] ASCII ESC % 25 n Decimal 37 n [Range] 0 ≤n ≤255 [Description] Selects or cancels the user-defined character set. When the Least Significant Bit (LSB) is 0, the user-defined character set is canceled and the internal character set is enabled.
  • Page 25 OMMANDS [Notes] Consecutive character codes for multiple characters can be ▪ defined in one definition. When specifying only one character, specify c1 = c2. ▪ "d" is definition data that indicates the pattern for " x" dots in the horizontal direction starting from the left edge. If " x" does not satisfy the number of dots in the character configuration pattern, the remaining dots on the right are spaces.
  • Page 26: Esc * Nl Nh D1

    OMMANDS ESC * nL nH d1...dk [Name] Select bit-image mode [Format] ASCII ESC * m nL nH d1...dk 2A m nL nH d1...dk Decimal 42 m nL nH d1...dk [Range] m = 0, 1 0 ≤ nL ≤ 255 0 ≤ nH ≤ 3 0 ≤...
  • Page 27: Esc

    OMMANDS ESC - [Name] Turn underline mode on/off [Format] ASCII Decimal [Range] n = 0, 1, 48, 49 [Description] Turns underline mode on or off, When n = 0 or 48, underline mode is turned off. ▪ When n = 1 or 49, underline mode is turned on. ▪...
  • Page 28: Esc 3

    OMMANDS ESC 3 [Name] Set line spacing [Format] ASCII ESC 3 33 n Decimal 51 n [Range] 0 ≤ n ≤ 255 [Description] Sets the line spacing to [ n ×(1/192)] inches. [Default] n = 32 (1/6 inch) [Reference] ESC 2 ESC <...
  • Page 29: Esc ? Esc

    OMMANDS ESC ? [Name] Cancel user-defined characters [Format] ASCII ESC ? 3F n Decimal 63 n [Range] 32 ≤ n ≤ 255 [Description] Cancels user-defined characters. [Notes] This command cancels the pattern defined for the character code ▪ specified by n. After the user-defined characters is cancelled, the corresponding pattern for the internal character is printed.
  • Page 30: Esc D N1

    OMMANDS ESC D n1... nk NUL [Name] Set horizontal tab positions [Format] ASCII n1...nk NUL 44 n1...nk 00 Decimal 68 n1...nk 0 [Range] 1 ≤ n ≤ 255 0 ≤ k ≤ 32 [Description] Sets horizontal tab positions. n specifies the column number (counted from the beginning of the ▪...
  • Page 31: Esc E

    OMMANDS ESC E [Name] Turn emphasized mode on/off [Format] ASCII Decimal [Range] 0 ≤ n ≤ 255 [Description] Turns emphasized mode on or off. When the LSB of n is 0, emphasized mode is turned off. ▪ When the LSB of n is 1, emphasized mode is turned on. ▪...
  • Page 32: Esc J

    OMMANDS [Notes] * Printing is slower in double-strike mode. Only the lowest bit of n is enabled. ▪ The printer does not double-strike for bit-images. ▪ Printer output is the same in double-strike and in emphasized ▪ (ESC E). [Default] n = 0 [Reference] ESC E...
  • Page 33: Esc R

    OMMANDS ESC R [Name] Select an international character set [Format] ASCII Decimal [Range] 0 ≤n ≤10 [Description] Selects an international character set n from the following table: Character set U.S.A France Germany U.K. Denmark I Sweden Italy Spain I Norway Denmark II [Default] n = 0...
  • Page 34: Esc A

    OMMANDS ESC a [Name] Select justification [Format] ASCII 61 n Decimal 97 n [Range] 0 ≤ n ≤ 2, 48 ≤ n ≤ 50 [Description] Aligns all the data in one line to the specified position. n selects the type of justification as follows: Justification 0, 48 Left justification...
  • Page 35: Esc C 3 N

    OMMANDS ESC c 3 [Name] Select paper detector(s)to output paper end signals [Format] ASCII 63 33 n Decimal 99 51 n [Range] 0 ≤n ≤ 255 [Description] Selects paper detector(s) to output paper end signals, using n as follows: Off/On Decimal Function Paper roll near end sensor disabled.
  • Page 36: Esc C 4 N

    OMMANDS ESC c 4 [Name] Select paper sensor(s)to stop printing [Format] ASCll 63 34 n Decimal 99 52 n [Range] 0 ≤n ≤255 [Description] Selects the paper sensor(s) used to stop printing when a paper-end is detected, using n as follows : Off/On Decimal Function...
  • Page 37: Esc C 5 N

    OMMANDS ESC c 5 [Name] Enable/disable panel buttons [Format] ASCII 63 35 n Decimal 99 53 n [Range] 0 ≤n ≤255 [Description] Enables or disables the panel buttons. When the LSB of n is 0, the panel buttons are enabled. ▪...
  • Page 38: Esc M

    OMMANDS ESC m [Name] Execute partial cut [Format] ASCII ESC m Decimal [Description] Execute partial cut with one point uncut m t1 t2 [Name] Generate pulse [Format] ASCII Decimal [Range] m = 0, 1, 48, 49 0 ≤ t1 ≤255 0 ≤...
  • Page 39: Esc R

    OMMANDS ESC r [Name] Select print color [Format] ASCII Decimal [Range] n = 0, 1, 48, 49 [Description] Selects the print color. Selected color 0, 48 Black 1,49 [Notes] Valid only when input at the beginning of a line. ▪ [Default] n = 0 ESC t...
  • Page 40: Esc

    OMMANDS ESC { [Name] Turns on/off upside-down printing mode [Format] ASCII Decimal [Range] 0 ≤n ≤ 255 [Description] Turns upside-down printing mode on or off. When 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. ▪...
  • Page 41: Gs I

    1 ≤n ≤3 [Function] Transmits the printer ID specified by n as follows: Printer ID Specification ID (hexadecimal) 1,49 Printer model ID SRP-500 series 2,50 Type ID See table below 3,51 ROM version ID ROM version n = 2, Type ID...
  • Page 42: ① Gs V M

    OMMANDS ① GS V ② GS V [Name] Feeds paper for cutting position. [Format] ① ASCll Decimal ② ASCll Decimal [Range] ① m = 1, 49 ② m = 66 , 0 ≤n ≤255 [Description] Feeds paper for cutting position as follows; Print mode 1, 49 Partial cut (one portion left uncut)
  • Page 43 OMMANDS Off/On Decimal Status for ASB Drawer kick-out connector pin 3 status disabled. Drawer kick-out connector pin 3 status enabled. On-line/off-line disabled. On-line/off-line enabled Error status disabled. Error status enabled. Paper roll sensor status disabled. Paper roll sensor status enabled. Undefined.
  • Page 44 OMMANDS First byte (printer information) Off/On Decimal Function Not used. Fixed to Off. Not used. Fixed to Off. Drawer kick-out connector pin 3 is LOW. Drawer kick-out connector pin 3 is HIGH. On-line. Off-line. Not used. Fixed to On. Not used. Fixed to Off. Paper is not being fed by the paper feed button.
  • Page 45: Gs R

    OMMANDS GS r [Name] Transmit status [Format] ASCII Decimal [Range] 1 ≤n ≤2, 49 ≤n ≤50 [Description] Transmits the status specified by n as, follows: Function 1, 49 Transmits paper sensor status 2, 50 Transmits drawer kick-out connector status [Notes] This command is executed when the data in the receive buffer is ▪...

Table of Contents