Page 2
CUSTOM S.p.A. GENERAL SAFETY INFORMATION THE CE MARK AFFIXED TO THE PRODUCT CERTIFY THAT THE Via Berettine 2/B Your attention is drawn to the following actions PRODUCT SATISFIES THE BA- that could compromise the characteristics of the 43010 Fontevivo (PARMA) - Italy SIC SAFETY REQUIREMENTS.
Page 5
INTRODUCTION 1 CONSULTING COMMANDS MANUAL ....... . . 6 2 IDENTIFICATION OF THE MODELS .
Page 6
1 CONSULTING COMMANDS MANUAL Each command reported in this manual is described as shown in the following picture. In the irst heading ield is reported the hexadecimal command value and the ASCII command value. In the second heading ield reported the command func- tion.
Page 7
The ields shown in the scheme of the previous igure have the following meaning: [Format] hexadecimal and ASCII command value. [Range] Limits of the values the command and its variables can take. [Description] Description of command function. [Notes] Additional information about command use and settings. [Default] Default value of the command and its variables.
Page 8
2 IDENTIFICATION OF THE MODELS NOMENCLATURE DESCRIPTION DPT-S 24 characters per line DPT-S 24 characters per line DPT-S 40 characters per line DPT-S 40 characters per line 8 │ Introduzione...
Page 9
3 PAPER SPECIFICATION All the dimensions shown in following igures are in millimetres. Paper with black mark on the termal side The following image shows an example of black mark placement on the thermal side of the paper. For more information about the use of paper with labels see user manual. PAPER WIDTH 57 ±...
Page 10
Paper with black mark and labels The following image shows a portion of paper with labels placement of the black mark on the thermal side of the paper. To properly use the alignment commands, you need to use paper with labels that comply with the dimensions shown in the following igure.
Page 11
Paper with hole and labels The following image shows a portion of paper with labels placement of the black mark on the thermal side of the paper. To properly use the alignment commands, you need to use paper with labels that comply with the dimensions shown in the following igure.
2 COMMANDS LISTED BY FUNCTION COMMANDS FOR BARCODE PRINTING 0x1B 0x63......<ESC c> ........19 Management of barcode printing CHARACTERS COMMANDS 0x00...
Page 17
PRINT COMMANDS 0x0A ......<LF> ........35 Print and line feed 0x0B .
Page 19
COMMANDS FOR BARCODE PRINTING <ESC c> 0x1B 0x63 Management of barcode printing Valid for DPT-S 24 characters per line DPT-S 40 characters per line [[Format] [code] [height] [position] [options] [length] [data] ASCII [code] [height] [position] [options] [length] [data] [Description] This command executes a barcode printing with the following settings: •...
Page 20
BIT 5 BIT 4 FUNCTION DESCRIPTION Normal Double Barcode width Triple Not used BIT 6 FUNCTION DESCRIPTION Not used BIT 7 FUNCTION DESCRIPTION Not used • [length] Specify the characters number to print trough a byte; in following are listed the maximum lengths allowed: Interleaved 2 of 5 = 12 characters...
CHARACTERS COMMANDS <NUL> 0x00 Small character printing Valid for DPT-S 24 characters per line DPT-S 40 characters per line [Format] ASCII [Range] [Description] The printer prints in small characters (normal). [Notes] • The commands 00H - 09H do not cancel the print bufer. •...
<SOH> 0x01 Double width printing Valid for DPT-S 24 characters per line DPT-S 40 characters per line [Format] ASCII [Range] [Description] The printer prints in double width format. [Notes] [Default] [Reference] 0x00, 0x02, 0x03, 0x04 [Example] 22 │ Emulazione CUSTOM/POS...
<STX> 0x02 Double height printing Valid for DPT-S 24 characters per line DPT-S 40 characters per line [Format] ASCII [Range] [Description] The printer prints in double height format. [Notes] • The commands 00H - 09H do not cancel the print bufer. •...
<ETX> 0x03 Expanded printing Valid for DPT-S 24 characters per line DPT-S 40 characters per line [Format] ASCII [Range] [Description] The printer prints in expanded character mode. [Notes] • commands 00H-09H do not cancel the print bufer • the commands which modify the dimensions of the characters are only active at the beginning of the line [Default] [Reference]...
< EOT> 0x04 Restore small character printing Valid for DPT-S 24 characters per line DPT-S 40 characters per line [Format] ASCII [Range] [Description] The printer resumes printing with small characters. [Notes] • The commands 00H-09H do not cancel the print bufer. •...
< BEL> 0x07 Cancel print data bufer Valid for DPT-S 24 characters per line DPT-S 40 characters per line [Format] ASCII [Range] [Description] Deletes all the print data in the current print bufer. [Notes] If data that existed in the previously speciied printing area also exists in the currently speciied print- ing area, it is deleted.
<DC1> 0x11 Enable graphic mode Valid for DPT-S 24 characters per line DPT-S 40 characters per line [Format] ASCII [Range] [Description] Enables graphic mode: a line in 24 column mode corresponds to 144 horizontal dots divided into 24 blocks of 6 dots each; a line in 40 column mode corresponds to 240 horizontal dots divided into 40 blocks of 6 dots each.
<ESC N> 0x1B 0x4E Set normal mode printing Valid for DPT-S 24 characters per line DPT-S 40 characters per line [Format] ASCII [Range] [Description] Select normal mode printing: the receipt feeds out of the printer with the printing upside down running from right to left.
<ESC Q> 0x1B 0x51 Enable underlined printing Valid for DPT-S 24 characters per line DPT-S 40 characters per line [Format] ASCII [Range] [Description] On receiving this command, the characters are printed underlined. [Notes] [Default] [Reference] 0x1B 0x71 [Example] 30 │ Emulazione CUSTOM/POS...
<ESC R> 0x1B 0x52 Set reverse mode printing Valid for DPT-S 24 characters per line DPT-S 40 characters per line [Format] ASCII [Range] [Description] Set reverse mode printing: the receipt exits from the device with the printing not upside down running from left to right.
<ESC W> 0x1B 0x57 Prints a graphic line at 203 dpi Valid for DPT-S 24 characters per line DPT-S 40 characters per line [Format] ASCII [Range] [Description] After receiving this command, the device waits for 48 bytes which correspond to an entire graphic line.
<ESC s> 0x1B 0x73 Transmit the next character in serial Valid for DPT-S 24 characters per line DPT-S 40 characters per line [Format] ASCII [Range] [Description] Transmits the next character it receives on the serial port. [Notes] [Default] [Reference] [Example] If you transmit 0x1B 0x73 0x41,the last character, 0x41, will not be printed but immediately transmit- ted on the serial.
PRINT COMMANDS <LF> 0x0A Print and line feed Valid for DPT-S 24 characters per line DPT-S 40 characters per line [Format] ASCII [Range] [Description] This command sets the print position to the beginning of the line printing the data in the bufer..
<VT> 0x0B Perform n line feeds Valid for DPT-S 24 characters per line DPT-S 40 characters per line [Format] ASCII [Range] 0x00 ≤ n ≤ 0x09 [Description] Perform as many line feeds as are speciied by parameter n. [Notes] • The number must be ASCII and between 0 and 9 (when n = 0 the command is ignored) •...
<CR> 0x0D Print and carriage return Valid for DPT-S 24 characters per line DPT-S 40 characters per line [Format] ASCII [Range] [Description] This command handles the end of a line text. [Notes] If “Autofeed” setup parameter is set to “CR enabled”, this command works in the same way as 0x0A, otherwise it is disregarded.
<SI> 0x0F Set CRLF mode Valid for DPT-S 24 characters per line DPT-S 40 characters per line [Format] ASCII [Range] [Description] Inhibits the command 0x0D maintaining enabled only the command 0x0A for printing. [Notes] • To disable this option, reset the printer. •...
<ESC A> 0x1B 0x41 Executes n dot lines feed Valid for DPT-S 24 characters per line DPT-S 40 characters per line [Format] ASCII [Range] 0x00 ≤ nH, nL ≤ 0xFF [Description] Executes n dots line feed where N = 256 x nH + nL. [Notes] •...
PRINT POSITION COMMANDS <ESC a> 0x1B 0x61 Select the number of dots space Valid for DPT-S 24 characters per line DPT-S 40 characters per line [[Format] (dd) ASCII (dd) [Range] 0x00 ≤ (dd) ≤ 0x7F [Description] By using (dd) parameters it’s possible to select the dots line number between one print line and another [Notes] (dd) are two ASCII characters which identiies number from 0 to 127 in Hex form and corresponds...
<GS W> 0x1D 0x57 Prints n byte of a 200 dpi graphic line Valid for DPT-S 24 characters per line DPT-S 40 characters per line [Format] d1... ASCII d1... [Range] 0x01 ≤ n ≤ 0x31 0x00 ≤ d1... dn ≤ 0xFF [Description] Print n byte of a 200 dpi graphic line where : •...
STATUS COMMANDS <ESC v> 0x1B 0x76 Transmit paper sensor status Valid for DPT-S 24 characters per line DPT-S 40 characters per line [Format] ASCII [Range] [Description] When this command is received, transmit the current status of the paper sensor. The status to be transmitted is shown in the table below: OFF/ON FUNCTION 0x00...
ALIGNMENT COMMANDS <GS ö> 0x1D 0xF6 Align the ticket with the printhead Valid for DPT-S 24 characters per line DPT-S 40 characters per line [Format] ASCII ö [Range] nH and nL are the values of the shift to be made once the notch has been found. [Description] This command align the edge of black mark to the alignment point (see ALIGNMENT...
MISCELLANEOUS COMMANDS <ESC m> 0x1B 0x6D Transmit the print mode coniguration on the serial port Valid for DPT-S 24 characters per line DPT-S 40 characters per line [Format] ASCII [Range] [Description] Transmits the print mode coniguration on the serial port. [Notes] •...
<ESC #> 0x1B 0x23 Transmit printer ID Valid for DPT-S 24 characters per line DPT-S 40 characters per line [Format] ASCII [Range] ≤ n ≤ 0x03, 0x31 ≤ nH ≤ 0x33 [Description] Transmits the printer ID speciied by n follows: DEVICE ID SPECIFICATION 0x53 DPT-S 24 characters per line...
<ESC @> 0x1B 0x40 Initialize device Valid for DPT-S 24 characters per line DPT-S 40 characters per line [Format] ASCII [Range] [Description] Clears the data in the print bufer and resets the device mode to that in efect when power was turned [Notes] •...
<ESC ú> 0x1B 0xFA Print graphic bank (384 x 85 dots) Valid for DPT-S 24 characters per line DPT-S 40 characters per line [Format] ASCII 0xFA [Range] 0x00 ≤ n1, n2 ≤ 0xFF [Description] Prints the graphics bank from lash based on the values of n1 and n2 where: •...
<GS $> 0x1D 0x24 Set absolute print position into a graphic line Valid for DPT-S 24 characters per line DPT-S 40 characters per line [Format] ASCII [Range] 0x00 ≤ n ≤ 0x2F [Description] Set the beginning print position into a graphic line based on the current value of n that indicate the byte number of shift from left margin.
<GS I> 0x1D 0x49 Transmit device ID Valid for DPT-S 24 characters per line DPT-S 40 characters per line [Format] ASCII [Range] 0x01 ≤ n ≤ 0x03, 0x31 ≤ n ≤ 0x33 [Description] Transmits the device ID speciied by n follows: DEVICE ID SPECIFICATION 0x53 DPT-S 24 characters per line...
<GS U> 0x1D 0x55 Reset the device parameters to the default coniguration Valid for DPT-S 24 characters per line DPT-S 40 characters per line [Format] ASCII [Range] [Description] Reset the device parameters to the default coniguration. [Notes] After executing this command the printer is initialized. [Default] [Reference] [Example]...
Page 52
1 ALIGNMENT COMMANDS Devices listed in this manual are equipped with sensors that allow the use of alignment notch in order to handle rolls of with pre-printed and ixed length ields. For further information, refer to the user manual of each device. The command available for managing the alignment of the ticket is the following: 0xF6:perform the alignment of ticket, which is advanced to cut the ticket at the irst alignment point available.
Page 53
[Example 1] Commands sequence to print tickets with “alignment point” set to the edge of the notch (“Black Mark Distance” parameter = 0 mm set in the setup procedure). Start Paper with black mark not aligned. Tearing Line Printing Line Sensor Alignment command 0x1D 0xF6...
Page 54
Command for text printing: ‘TICKET 1’, 0x0A, ’FIRST LINE’, 0x0A, ’SECOND LINE’, 0x0A Tearing Line Printing Line Sensor Alignment command 0x1D 0xF6. Paper is fed. The next black mark is recognized by the sensor and aligned under the printing line. Tearing Line Printing...
Need help?
Do you have a question about the DPT100-S and is the answer not in the manual?
Questions and answers