SureMark 4610 Printers Programming Guide for Models 1xR and 2xR GA27-5005-01
SureMark 4610 Printers Programming Guide for Models 1xR and 2xR GA27-5005-01
Note Before using this information and the products it support, be sure to read the general information in “Notices” on page 111, and the Safety Information – Read This First manual, GA27-4004, and Warranty Documents that ships with this product. October 2011 This edition applies to IBM SureMark Printer Models 2xR and 1xR. This edition replaces GA27-5005-01. Current versions of the Retail Store Solutions documentation are available on the IBM Retail Store Solutions Website at www.ibm.
Contents Figures . . . . . . . . . . . . . . vii Tables . . . . . . . . . . . . . . . ix About this book . . . . . . . . . . . xi Who should read this guide . . . . . . . . . xi How this guide is organized . . . . . . . . . xi Related publications . . . . . . . . . . . xi Publications accessibility . . . . . . . . . . xii Notice statements . . . . . . . . . . . . xii Providing feedback . . . . . . . . . . . . xii Summary of changes . . . . . . . . xiii | October 2011. June 2009 . . April 2009 . . . . .
| Select PDF417 ECC (error correction codewords) level . . . . . . . . . . . . . . . Select aspect ratio PDF417 bar code . . . . Enable PDF417 truncation . . . . . . . Print character commands . . . . . . . . Print and line feed . . . . . . . . . . Print and line feed . . . . . . . . . . Print, form feed, and cut the paper (FF) . . . Print and feed paper n lines . . . . . . . Print and feed paper using minimum units . . Print graphic messages . . . . . . . . . Select and print a graphics (logo) command .
Cable ferrite requirement . . Electrostatic discharge . . . Product recycling and disposal Battery return program . . . For Taiwan: . . . . . . For the European Union: . For California: . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 116 116 117 118 118 119 119 Flat panel displays . . . Monitors and workstations . Trademarks . . . . . . . . . . . . . . . . . . . . . . . . . . . . 120 . 120 . 120 Index . . . . . . . . . . . . . . .
vi SureMark 4610 Printers : Programming Guide for Models 1xR and 2xR
Figures 1. 2. 3. 4. Proportional font example. . . . . . . . 27 Composite Characters . . . . . . . . . 72 Paper feed and document feed buttons 102 Pressing the power button . . . . . . . 103 © Copyright IBM Corp. 2008, 2011 5. 6. 7. Example of the offline selection main menu 103 Offline tests activation . . . . . . . .
viii SureMark 4610 Printers : Programming Guide for Models 1xR and 2xR
Tables | | | 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. RS-232 operating systems supported . . . Driver documentation by operating system RS-232 commands organized by function Commands in alphabetical order . . . . Device Type = 30. . . . . . . . . . Printer memory allocation defaults . . . . Unicode positions for code page 858 - 2 bytes for each mapping location . . . . . . MCT command definitions . . . . . . Print characteristics . . . . . . . . . Characters that select font A, B, and C . .
x SureMark 4610 Printers : Programming Guide for Models 1xR and 2xR
About this book This guide provides programming commands and other technical information for your IBM SureMark Models 2xR and 1xR printers. Who should read this guide This guide is intended for use by programming personnel who are installing, setting up, or modifying the IBM SureMark printer Models 2xR and 1xR.
v IBM 4694/4695 Point-of-Sale Terminals Service Diskette Publications accessibility The softcopy version of this guide and other related publications are accessibility enabled. Notice statements Notices in this guide are defined as follows: Notes These notices provide important tips, guidance, or advice. Important These notices provide information or advice that might help you avoid inconvenient or problem situations. Attention These notices indicate potential damage to programs, devices, or data.
Summary of changes | October 2011 | | This update provides additional changes throughout the entire book from the new spec and the subject matter expert. | | Changes or additions to the text are indicated by a change bar to the left of the text. June 2009 This update provides additional changes throughout the entire book from the new spec and the subject matter expert. April 2009 This update provides changes throughout the book from the new spec. © Copyright IBM Corp.
xiv SureMark 4610 Printers : Programming Guide for Models 1xR and 2xR
Chapter 1. Introducing the 4610 Models 1xR and 2xR | | | | The IBM SureMark printer Models 1xR and 2xR printers consist of a high-speed thermal station and an impact station for printing inserted documents. For further information about the physical specifications of Models 2xR and 1xR, refer to the User's Guide for Models 2xR and 1xR, GA27-5003-00. Operating system requirements Drivers can be downloaded from the Retail Store Solutions Web site at www.ibm.com/solutions/retail/store/support/.
| Table 1. RS-232 operating systems supported (continued) | | | | Operating System | | | | SUSE Linux Enterprise Point of Service (SLEPOS) 11 | PC DOS 2000 | | | | | * The 2NR/2CR printers are supported in compatibility mode in V5R2, but 4690 OS can only update the firmware starting with the 0820 maintenance package. The 1NR is supported in compatibility mode in V5R2, but requires package 0900 for firmware update. All of these models are supported in compatibility or native mode in V6R2.7.
Updating the firmware A SureMark printer that is RS-232 attached has the capability to receive SureMark firmware updates from its attached host system unit. To update the firmware, use the latest drivers from the IBM Retail Store Solutions Web site: www.ibm.com/solutions/retail/store. Chapter 1.
4 SureMark 4610 Printers : Programming Guide for Models 1xR and 2xR
Chapter 2. Communication parameters | | | | | RS-232 serial parameter . . . . . . . . . . . 6 RS-232 commands summary by function . . . . . 6 Alphabetized commands summary . . . . . . 10 System commands . . . . . . . . . . . . 13 Verify previous commands completed . . . . 13 Status request . . . . . . . . . . . . 13 Reset printer . . . . . . . . . . . . . 13 EC/Request/Real-time status request. . . . . 14 Retrieve Native Mode Status (when printer is in compatibility mode) . . . . . . . . . .
| Retrieve size of user flash storage . . . Prepare printer for shut down (S3) . . Asynchronous (real-time) commands . . . Real-time requests . . . . . . . . Data buffer management and batch printing . . . . . . . . . . . . . . . Marker command . . . . . . . Reset line count . . . . . . . . Disable line count . . . . . . . Hold printing until buffer is released . Release print buffer. . . . . . . 74 74 74 74 76 . . . . . . . . . . . . . . . . . . . .
Table 3.
Table 3. RS-232 commands organized by function (continued) Description Command Page Set document length for landscape print GS c 1 n where n = 2 bytes indicating the length of the document in print motor steps.
Table 3.
Table 3. RS-232 commands organized by function (continued) Description Command Page Set vertical position GS $ y or X'1D24;y' 80 Set relative vertical position GS \ y or X'1D5C;y' 80 Set right margin position ESC ] n1 n2 or X'1B5D;n1;n2'' 47 System Commands Set left margin position (standard ESC $ n1 n2 or X'1B24;n1;n2' mode), Set absolute print position (page mode) 81 Set relative horizontal position ESC <5C>h n1 n2 or X'1B5C;n1;n2' 81 Set printing position GS ] x y or X'1D5D;x;y' 82 P
Table 4.
Table 4.
Table 4. Commands in alphabetical order (continued) Description Command Page Set relative vertical position GS \ y or X'1D5C;y' 80 Set sheet eject length ESC C n or X'1B43;n' 45 Set vertical position GS $ y or X'1D24;y' 80 Status request ESC v or X'1B76' 13 Status sent to system ESC ) n or X'1B29;n' 50 Tab to next tab stop HT or X'09' 71 Thermal code page MCT commands; see Table 8 on page 31.
Purpose: The printer stops if processing a command and begins its reset routine. The print buffer is canceled. All commands are erased. All printer settings go back to default values. Remarks: None Error Conditions: None EC/Request/Real-time status request Syntax: DLE ENQ 4 or X'100534' Immediate or X'1B008000' Buffered Purpose: To send the printer status to the system. Remarks: The printer status is returned in status bytes 1–16. Status byte 5 bit is set after the EC request is executed.
Error conditions: None | | Extended address command-request printer ID Syntax: GS | SOH or X'1D4901' Purpose: This command returns 15 bytes of printer-specific information following the printer status. Printer ID format Table 5. Device Type = 30 Byte 1: Device type = 30 Reserved Byte 2: Device ID Byte 3: EC – HW version level Reserved Byte 4: EC – Software release level This level increments after a formal test cycle on the code.
Table 5. Device Type = 30 (continued) Byte 9: Feature byte 2CR = 0x9E Bit 0 Reserved Bit 1 DI Landscape Station; N/A for Model 1xR Bit 2 DI Station support multipart forms; N/A for Model 1xR Bit 3 MICR reader present; N/A for Models 2NR and 1xR Bit 4 Flipper present; N/A for Models 2NR and 1xR Bit 5 Scanner present; N/A for Models 1xR and 2xR Bit 6 Journal print station – N/A for Models 1xR and 2xR Bit 7 Cash drawer capable. Cannot detect when cash drawer is attached.
– Fixes the EC level in the DEVICE ID at 0x61. – Sets status byte 1 bit 6 (CR cover open) if any of the following errors are detected: - CR feed error (status byte 11 bit 0) - CR paper out (status byte 8, bit 5) - Cutter jam (status byte 11 bit 5) v Firmware download and erase commands: The firmware will look at the code that is downloaded to verify that the code is 1xR/2xR code before it erases the current code in the printer. If the code is not 1xR/2xR code, the old firmware will not be erased.
v In order to implement fixes, new functionality, and other improvements, new releases of printer microcode are routinely published. It is advisable that you run the most recent version firmware on the printer. v If one line is aligned using spaces and another line is aligned using the relative position commands, the data might appear misaligned.
and Microcode Tolerance Information - Request commands regarding information for adjusting these values.) The MCT value represents the number of 64KB sectors assigned to the respective function. In Model 2xR/1xR reallocation: To change the memory allocation of any of the character sets (user-defined impact characters, user-defined thermal characters, thermal DBCS character storage, Impact DBCS character storage), ALL memory partitions must be emptied or erased.
Table 6. Printer memory allocation defaults (continued) Function Default memory allocation MCT location Memory allocation required DBCS Code page Note: As double byte code for thermal DBCS (0xa6) pages are modified, these allocations could change. See the double-byte information available on the RSS web site: www.ibm.
determine the logos that have been stored in the printer. These messages can be positioned on the page using the commands for setting positions. Decimal values are shown, but all parameter values (logo number, n1, n2) must be hex values when sent to the printer. The dot density of these messages is specified when the message is printed. See “Print predefined graphics (logo) command” on page 67.
v The command is trying to redefine a logo that was already defined, or v The allocated memory is full. Verify the sector was erased before downloading images. Predefine messages Syntax: GS : message# data GS : or X'1D3A;message#;data;1D3A' Where: message# The message number being stored 1 to 255 data All data and commands to be included in this message. No immediate commands can be included in the data. Purpose: To store predefined messages. This cuts transmission time.
3. X'1D5E03' (This prints the message that has been stored at location 3. The message cannot have a X'1D5Exx' in it, because that would be more than one level of nesting.) 4. 'Is Your Cashier Today' X'0D' 5. X'1D3A' Using the stored message and the above commands, the resulting text will be: Welcome to Our Store Jane Doe Is Your Cashier Today v These commands cannot be included in the predefined message: – “Define document wait time” on page 49. – “Select character for reprinted lines” on page 50.
v Before the characters are defined, the sector of the flash EPROM which stores this data must be erased. (See “Erase flash sector” on page 30.) Also, the character matrix for the code page must have already been defined. (See Table 8 on page 31, MCT# 3, 4, and 5.) v Flash EPROM sector 4 contains all user-defined code pages for the thermal print head. To redefine a code page, you must erase and reprogram all of them. v Flash EPROM sector 3 contains both user-defined code pages for the impact print head.
Note: The number of data bytes = 2 × dot height (20) = 40 bytes. | Proportional font Note: The syntax for the proportional font command is the same command as the “Download user-defined characters” on page 23 with limitations.
Limitations: The memory required for proportional fonts is much greater than the memory that was required for user-defined fonts. Therefore, when code page 1 (or 3) is set up as proportional, code page 2 (or 4) is not valid. You cannot set up code page 2 or code page 4 as a proportional font. A conversion program for TrueType (TT) fonts is available on the 4610 Web site. This program converts the TT fonts to the required download format for the 4610 printers. To download the font: 1.
0000111100000000 0001111110000000 0011111111000000 0111000011100000 0110000001100000 1100000000110000 1100000000110000 1100000000110000 1100000000110000 1100000000110000 1100000000110000 1100000000110000 1111111111110000 1111111111110000 1100000000110000 1100000000110000 1100000000110000 1100000000110000 1100000000110000 1100000000110000 1100000000110000 1100000000110000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 00
Example: 11 half-dots wide (or 5.5 full dots) × 9 high | Defined as: X'1B26034141F000080014000200110000081100020014000800F000' | The above statement defines character X'41' as an ‘A’. | Note: The number of data bytes = 2 × dot width (11) = 22 bytes. Error Conditions: Flash EPROM load error - Verify the sector was erased before downloading images. User-defined code page mapping 485/USB Syntax: X'1B;6a;data' RS232 Syntax: ESC j data or X'1B;6a;data' Where: data 256 bytes of data to fill code page.
Table 7. Unicode positions for code page 858 - 2 bytes for each mapping location (continued) U00025A0 FEh " For the Unicode characters supported in the printers please see separate Spread Sheet. Characters 0x20 through 0x7F are the same as other codepages. Therefore, the amount of Unicode values will be from 0x80 through 0xFF ( 128 Unicode values, 256 bytes). Selection of the User Defined code page is ignored if the code page has not been defined. The previous codepage will still be selected.
Flash storage write Syntax: ESC ' n1 n2 data or X'1B27;n1;n2;data' Where: n1 = number of data bytes to store n2 = 3-byte address where data bytes are to be stored Error Conditions: Flash EPROM load error - Verify the sector was erased before downloading data. Remarks: The valid address range depends on the memory allocated to this function. Use “Retrieve size of user flash storage” on page 74 to determine the valid range. The command is rejected when the address is out of range.
Microcode tolerance (MCT) information - loading Syntax: ESC M n h l or X'1B4D;n;h;l' Where: n Microcode tolerance (MCT) that is being adjusted h The high-order byte of MCT data l The low-order byte of MCT data Purpose: The microcode tolerance (MCT) information is used to make adjustments to the printer's microcode. MCT data is nonvolatile data stored in the printer EPROM that is specific to a printer.
Table 8.
Table 8. MCT command definitions (continued) DEC HEX MCT Default Min Max 30 1E Mode options X'FFFF' N/A N/A Bit 0: (Valid in the 1xR printers) v 1 = IBM native mode. v 0 = Set to non-IBM emulation mode. Bits 1–12 Reserved for future use, should be left at 1 Bit 13: (DI portrait mode only) v 1 = Line feeds not executed until DI ready (non-IBM mode). v 0 = Line feeds are executed without regard for the state of DI ready (IBM mode). Bit 14: v 1 = Normal operations (IBM mode).
Table 8. MCT command definitions (continued) DEC HEX MCT Default Min Max 53 35 DBCS Address Vector 3 0000h 0000H FFFFH 68 44 Power supply capabilities - peak current - mAmps 96-104 60-68 Reserve for manufacturing / native windows driver 105 108 69 – 6E Printer usage statistics N/A N/A FFFFH 111 6F Status request options: N/A 0 FFFFH FFFH Bit 15: See “Microcode tolerance (MCT) information - request ” on page 31.
Table 8. MCT command definitions (continued) DEC HEX MCT Default Min Max 168 A8 Electronic Journal Storage Memory Allocation 0000h 0000h 0030h 169 A9 User-defined Code Page Mapping 0001h 0000h 0001h Setup commands Setup commands change character font, intercharacter spacing, and the target print station. | Set print mode | | Syntax: | Where: ESC ! n or X'1B;21;n' n | Specifies print characteristics, as shown in Table 9. | | | | | | | | | | | | Table 9.
– Font B = 12 dots (wide) × 24 dots (high) or 1.5 mm × 3.0 mm. – Font C = 8 dots (wide) × 20 dots (high) or 1.0 mm × 2.0 mm. Invert cannot be used with over-line and underline. v For impact printing: – Font A = dot density of 75 half-dots per inch (resident characters = 1.2 mm × 2.0 mm). – Font B = dot density of 60 half-dots per inch (resident characters = 1.5 mm × 2.0 mm). Emphasized printing enable and disable, and font A or font B selection must be at the beginning of a print line to be recognized.
| – Bit 6 can change at any time. | | | | | | Character that are 150 dpi and 75 dip can be mixed on a line. However, characters that are 150 DPI and 120 DPI cannot be mixed on a line.
Set or cancel underline mode Syntax: ESC − n or X'1B2D;n' Where: n=00 Cancel underline mode n=01 Set underline mode Default: n = 00 Remarks: This is valid in the Cash Receipt station. Set or cancel overline mode Syntax: ESC x‘5F’ n or X'1B5F;n' Where: n=00 Cancel overline mode n=01 Set overline mode Default: n = 00 Remarks: This is valid in the customer receipt station only.
Remarks: This must be at the beginning of a print-line in the document portrait station. It is enabled for the entire line. Select maximum print speed Syntax: ESC ? n or X'1B2F;n' Where: n=00 80 lines per second n=01 52 lines per second n=02 35 lines per second Default: n = 00 Remarks: v In the cash receipt station, the printing will slow down to the maximum selected speed.
Remarks v Document length data is sent in the status after the status bytes. v Status byte 5, bit 3, is sent to indicate that extra data is attached. Note: There are 50 motor steps per inch. A 6-inch document = 300 steps. (Use 295 to allow a margin for error; n=0x127.) To calculate the number of dots per printed line: v Under normal operation, the printer measures the length of the document. This command can be used to save transaction time if the document length is known by the application.
Default: n = 02 Remarks: See Chapter 4, “Document handling,” on page 85. The EJ station can be selected along with one of the other stations; however, you cannot select both CR and DI. Select user-defined or resident character sets Syntax: ESC % n or X'1B25;n' Where: n=00 Select resident character sets n=01 Select user-defined character sets Default: n = 00 when printer is in Single Byte Mode n = 01 when printer is in Double Byte Mode.
n=10 Code Page 861 – Icelandic n=11 Code Page 1250 – Windows Latin 2 n=12 Code Page 1251 – Windows Cyrillic n=13 Code Page 1252 – Windows Latin 1 n=14 Code Page 1253 – Windows Greek n=15 Code Page 1254 – Windows Turkish n=16 Code Page 1255 – Windows Hebrew n=17 Code Page 1256 – Windows Arabic n=18 Code Page 1257 – Windows Baltic Rim Default: n = 01 Remarks: Changing code pages is valid for resident character sets only.
Remarks: If you select double-width printing, the space to the right of each character is doubled. Set or cancel rotated characters Syntax: ESC V n or X'1B56;n' Where: n=00 Cancel Rotated Characters n=01 Set Rotated Character Default: n = 00 Remarks: Rotation is 90 degrees clockwise. This command is supported only in the thermal print station. Set print station parameters Syntax: ESC c 1 n or X'1B63;31;n' Where: n Specifies the print station.
Note: Spacing in the document - portrait is actually 8.5 lines per inch. Line spacing dimension is approximate. For the impact printer in portrait mode, the actual line spacing must be calculated using 51 steps per inch. Note: For DI Portrait Printing: Characters greater than 9 dots high (DBCS 16x16 character) takes 2 passes of the print head - with paper fed in-between the lines (4 steps). The actual lines-per-inch will be adjusted. Example if printer is set to 1/8 inch line spacing.
Default: n = 00 Purpose: To enable half-character or full-character color printing, or to disable color printing. Remarks: v You can enable and disable full-character color printing within a print line. This enables you to print one word in a different color. v This command can be used up to 8 times in a line when full-character color printing is used. v Half-character color printing is only supported at the beginning of a print line.
Default: n = 0x68 (104 decimal) Maximum: 255 steps (FF hex) This value is stored in the printer memory so that it is not lost when the printer is reset. Set horizontal tab positions Syntax: ESC D [n1 n2] NUL NUL or X'1B44[n1n2]0000' Where: n1 The high-order-byte dot offset for the horizontal tab. n2 The low-order-byte dot offset for the horizontal tab. Default: There is a tab every 100 dots. Remarks: This command should be sent after “Set print station parameters” on page 43.
The maximum value for the customer receipt station is 576. The maximum value for the document insert station is 474. In the customer receipt station, this number is rounded back to a factor of 8. This command should be sent after “Set print station parameters” on page 43. Set right margin position Syntax: ESC ] n1 n2 or X'1B5D;n1;n2'' Where n1 Is the high order byte of the dot offset from the beginning of the print line. n2 Is the low order byte of the dot offset from the beginning of the print line.
If this number plus the left margin exceeds the printable area it is ignored. See “Set left margin position” on page 46. In the customer receipt station, this number is rounded back to a factor of 8. Set low paper calibration Syntax: GS c 2 or X'1D63;32' Purpose: You must calibrate the printer to accurately recognize the thickness of the paper supply. Calibration can be done using an offline test (see “Summary of the offline test menus (Models 1xR)” on page 108) or using the above command.
v If the Align Column Right command is received but the line is filled before an EOL is received, the filled line is treated as an EOL. There are usually a few dot positions available, but not enough for a full character. The column alignment will occur on the few dot positions available. Set error recovery function Syntax: ESC c 4 n or X'1B63;34;n' Where: n Selects the function.
Delay = y × 0.1 seconds Defaults: x = 02 y = 03 Remarks: If y = 0, the printer does not grab the document. The operator must use the document feed button to pull the document into the printer. If x = 0, the printer never sends error status if no print data is sent to the document station. Select character for reprinted lines. Status sent to system Syntax: ESC ) n or X'1B29;n' Where: n Selects the function.
Re-initialize the printer Syntax: ESC @ or X'1B40' Purpose: Re-initialize all printer setting to their default values and reset the impact print head. Remarks: Commands in the print buffer are not lost when this command is issued.
Bit 6 Reserved. Bit 7 Volume. 0 = loud, 1 = soft. Value (Bits 0–3) Note Value (Bits 0–3) Note Value (Bits 4–5) Octave 0000–0 C 1000–8 G# 00–0 1 0001–1 C# 1001–9 A 01–1 2 0010–2 D 1010–A A# 10–2 3 0011–3 D# 1011–B B 11–3 4 0100–4 E 1100–C Rest / Silence 0101–5 F 1101–D Reserved 0110–6 F# 1110–E Reserved 0111–7 G 1111–F 1 KHz (normal beep) Default: n = X'00' Purpose: To enable or disable the beeper.
Where: n enables or disables upside-down printing. X'00' Disable upside-down printing. X'01' Enable upside-down printing. Default: n = X'00' Purpose: The print data appears upside down when data is printed normally. This command allows the data to be right-side up as it comes out of the printer. Remarks: v When upside-down printing is enabled, the last line of data must be sent to the print first. v This command is valid only at the beginning of a printer line.
v Bits 3 and 8 of n are ignored. v The Set Print Mode command (see “Set print mode” on page 35) can also select the character height (double high and double wide). The last command that is received is the effective command. v Underline and overline is not supported when the height is scaled 8x. v The bar for overline and underline is not magnified in thickness Fix font matrix Syntax: ESC : n or X'1B3A;n' Where: n The character width to which all proportional characters will be adjusted.
v The logo is 24 dot rows high. If printed in double-high mode, the logo will be 48 rows high. v The number of data bytes to form the image is figured by {((n1×256+n2)−1)/8+1}×24. v Like user-defined characters, if the image is only 14 dots wide, the last two dots should be zero to complete the byte. When printed, the image will be only 14 dots wide. Set or cancel strike-through Syntax: ESC; sn or X'1B73;n' Where: n = 00 Cancel strike-through mode. n = 01 Set strike-through mode.
Bar code commands Bar code commands are valid in the thermal print station only. Note: For the Models 2xR and 1xR, bar-codes print at a maximum rate of 52 LPS. Print bar code Syntax: GS k n NUL or X'1D6B;n;data;00' Where: n = Bar Code data X'00' UPC-A X'01' UPC-E X'02' JAN13 (EAN-13) X'03' JAN8 (EAN-8) X'04' CODE 39 X'05' ITF X'06' CODABAR X'07' CODE 128C X'08' CODE 93 X'09' CODE 128A, 128B, and 128C For n=00 through n=08, the ASCII representation of the characters to be printed.
v For CODABAR, a stop and start character is required. v A leading zero will be added to the data for ITF bar codes if the data received has an odd number of bytes. v If a bar code width is greater than the paper width, the right of the bar code is truncated, making the bar code unreadable. v Bar codes will always be printed in black, regardless of color printing settings. Chapter 2.
Table 12. Code 128 character set Value 58 Code Decimal Hex Set A Set B Set C 0 0 SP SP 00 1 1 ! ! 01 2 2 “ “ 02 3 3 # # 03 4 4 $ $ 04 5 5 % % 05 6 6 & & 06 7 7 ‘ ‘ 07 8 8 ( ( 08 9 9 ) ) 09 10 A * * 10 11 B + + 11 12 C ‘ ‘ 12 13 D – – 13 14 E . .
Table 12. Code 128 character set (continued) Value Code Decimal Hex Set A Set B Set C 39 27 G G 39 40 28 H H 40 41 29 I I 41 42 2A J J 42 43 2B K K 43 44 2C L L 44 45 2D M M 45 46 2E N N 46 47 2F O O 47 48 30 P P 48 49 31 Q Q 49 50 32 R R 50 51 33 S S 51 52 34 T T 52 53 35 U U 53 54 36 V V 54 55 37 W W 55 56 38 X X 56 57 39 Y Y 57 58 3A Z Z 58 59 3B [ [ 59 60 3C \ \ 60 61 3D ] ] 61 62 3
Table 12.
Print bar code examples Table 13.
n = the print position n = X'00' Not Printed n = X'01' Above the bar code n = X'02' Below the bar code n = X'03' Both above and below the bar code. Default: n = X'00' Remarks: Human readable information is normal text associated with the bar code. Note: The last valid value is kept when an invalid value is sent.
Error Conditions: If an image cannot be printed, status byte 7, bit 2 will be set. This may happen when the image is too big to print. Try decreasing the ECC level. Select PDF417 ECC (error correction codewords) level Syntax: GS R n or X'1D;52;n1;n2' Where: n1 The high-order byte of the ECC level. n2 The low-order byte of the ECC level. Default: n1 = 00 n2 = 15 Range: 0 ≤ n1n2 ≤ 400 decimal (170 hex) Remarks: For 0 ≤ n1n2 ≤ 8, the ECC level is assumed as that particular security level.
Remarks: This is not an exact ratio. The image will get as close as possible to the ratio. However, the maximum width of an image is 12 columns and the maximum height is 90 rows. Enable PDF417 truncation Syntax: GS T n or X'1D;54;n' Where: n Whether to enable truncation 0 Disable truncation. 1 Enable truncation. Default: n=0 Remarks: Truncated PDF generates a symbol with the right row indicator and stop pattern replaced by a single width bar.
station or document insert station by a preset amount, until the document exits the feed rollers. If a cutter is available at the station (CR station only), it cuts the paper. Print and feed paper n lines Syntax: ESC d n or X'1B64;n' Where: n Specifies the number of line-feeds. Purpose: Prints data in the print buffer and feeds the paper by the amount specified in this command. Print and feed paper using minimum units Syntax: ESC J n or X'1B4A;n' Where: n Specifies the line feed steps.
Note: In the document station, this takes three passes of the print head for a logo that is 8 dots high. 01 Double wide - 100 dpi in the receipt station, 75 dpi in the document station. Note: In the document station, this takes one pass of the print head for a logo that is 8 dots high. 02 Double wide and high - 100 dpi in the receipt station, 75 dpi in the document station. Every dot row in the vertical direction will be printed twice.
If the parameter d, w, or h is out of the defined range for this command, the command is discarded and the remaining data is processed as print data. This command will increment status byte 6. If this message is printed on a regular basis, consider downloading it to save communication time. (See “Download graphics (logo) commands” on page 20.) The data buffer can be used for signature capture.
Enable watermark printing Syntax: GS 2B logo dot offset alignment or X'1D2B;'logo;dot offset;alignment Where: logo Is the number of the stored logo that will be used as the WaterMark (0x01 <= 0xFF) dot offset Is the number of millimeters (8 dot rows = 1 mm) offset between each WaterMark (0x00 <= 0xFF) alignment/density Is the alignment and density of the mark x0 Align Left x1 Align Center x2 Align Right x3 Roll Right (Left -> Center -> Right -> Left -> ...
Retries will not be attempted on print errors. Attention: Stored commands can increment status byte 6. See “Predefine messages” on page 22. Check processing commands - 2CR only This printer can process the check entirely without taking it from the printer. It can read the magnetic ink character (MICR) line, frank the back of the check, and flip the check to print the face of the check. Note: To print the face of the check, select the document station in landscape mode as the print station.
Character Description ASCII Hex value representation Bit 13 = 1 X'44' Dash CMC7 - Special characters Special character 1 a X'61' Special character 2 b X'62' Special character 3 c X'63' Special character 4 d X'64' Special character 5 e X'65' TOAD representation Bit 13 = 0 D X'44' Same as ASCII representation and Hex value. v For E13B checks, the 1st byte of additional data is the signal level of the check.
Error Conditions: Document feed error (status byte 7). This bit is set if the inserted check is too long. The maximum check length is 10 inches. The error is also set if the check does not clear the document sensor when expected. Magnetic noise present (status byte 8, bit 6). Set when MICR read shows random noise count ≥ 100 decimal or periodic noise > 0. If set to a “1”, this value will be in the status message when status byte 5, bit 2 = “1” otherwise it will be a “0” in other status messages.
Remarks: This is only supported on 2xR/1xR printers. It is intended for use with languages that require “composite characters”. Example. Send x`61; 08; 87; 08; 98' to get the composite character below. Figure 2. Composite Characters Return home (select print head location) Syntax: ESC < n or X'1B;3C;n' Where: n 72 The print-head position: 00 Document Home Position 01 Open Document Throat Position 02 Reserved 03 Left Home Position 04 Re-find Document Home position.
Remarks: Only valid at the beginning of the line. Only valid for impact print stations. Purpose: To move the print head to the desired location. Remarks: Valid at the beginning of the line only. Valid in impact print stations only. Paper cut/DI eject Syntax: ESC i or ESC m or X'1B;69 or 1B;6D' Purpose: To cut the paper in the customer receipt station, or eject the document in the document insert station.
The valid address range for each SureMark depends on the model number and which memory option, if any, is installed. Use “Retrieve size of user flash storage” to determine the valid address range for your printer. Retrieve size of user flash storage Syntax: ESC 4 x '08 FF FF FF' or X'1B;34;08;FF;FF;FF' Purpose: Retrieve the size of the user flash storage in the printer. Remarks: The size of the user flash storage will be returned in 8 bytes after the printer status bytes.
n Description 31 Release print buffer 32 Cancel print buffer 33 Undefined 34 EC request; send status 35 Undefined 36 Undefined 37 Undefined 38 Undefined 40 Reset printer 41 Enable unsolicited status 42 Disable unsolicited status 43 Disable transparent XON/XOFF m n Description 1 31 Release the print buffer for printing. This should be sent after an error has occurred and the print buffer is held.
m n Description A 41 Enable unsolicited status. Note: A status message is returned immediately after execution of this command. To enable these status messages, the Status Sent to System setup command must be enabled. See “Status sent to system” on page 50. B 42 Disable unsolicited status C 43 Disable transparent XON/XOFF Purpose: To process a command immediately. Remarks: Either the Release print buffer or the Cancel print buffer command must be used when the print buffer is held.
0x'1B3D04' LINE 4 FGHIJKLMNOPQRSTUVWXYZ1234567890x'0a' LINE 5 FGHIJKLMNOPQRSTUVWXYZ1234567890x'0a' LINE 6 FGHIJKLMNOPQRSTUVWXYZ1234567890x'0a' LINE 7 FGHIJKLMNOPQRSTUVWXYZ1234567890x'0a' LINE 8 FGHIJKLMNOPQRSTUVWXYZ1234567890x'0a' 0x'1B3D05' v After the first three lines, the printer will transmit back status with the normal printer status: Status Byte 4 = x'04'. v After the 8th line, the printer will send back status with Status Byte 4 = 0x05.
Release print buffer Syntax: DLE ENQ 1 X'10;05;31'' Purpose: To release the print buffer for printing Remarks: If an error occurs during the transaction that was being held, the printer will send back the line number it occurred on with the error status. The system can then decide to cancel or continue the printing when the error is corrected. The command will continue the printing after the error is fixed.
Chapter 3. Page mode printing commands This section describes the page mode commands. Select page mode Syntax: ESC L or X'1B;4C' Remarks: v Enables page mode printing. v Supported on thermal station only. v Starting position is set by Set printable area X'1B;57.' and Set print direction X'1B;54.' commands. v Intercharacter spacing X'1B;20;n' and line spacing X'1B;31', X'1B;32', X'1B;33' commands are set independently for page mode and standard mode.
v If the printing area is defined outside the maximum page size, the printing area is limited to the page size. v Maximum page size is 576 dots in the horizontal direction, and 800 dots in the vertical direction (except Models Tx8 and Tx9, which is 1250 dots in the vertical direction). Select printing direction/position Syntax: ESC T n or X'1B;54;n' Where: n Table 14.
v Moves the printing position the specified number of dots from the current print position, in the direction perpendicular to the printing direction specified by the Select printing direction/position command (X'1B;54...'). If the print direction is bottom-to-top, or top-to-bottom, this command adjusts the printing position in the horizontal direction. v If the value of y is outside the specified printable area defined by the Select printable area command, this command is ignored.
v n2 is the low-order byte of the dot offset, relative to the left margin in standard mode or the current print position in page mode. default: n1 = 0, n2 = 0 Remarks: v In the thermal station, 1 mm = 8 dots. v In the impact station, 1 inch = 150 half-dots (75 dots). v n1 and n2 are hex values. To get the decimal equivalent, convert each to decimal, and then use this formula: (n1 x 256) + n2. v To move the position to the left, use a negative number.
Print page in page mode Syntax: ESC FF or X'1B 0C' Remarks: v In standard mode, this command is ignored. v In page mode, this command prints the page that is loaded in the printer. The page remains loaded in the printer's buffer and the printer remains in page mode. This should be used for repeatedly printing the same page, or if there is a template that is filled in with each printout.
84 SureMark 4610 Printers : Programming Guide for Models 1xR and 2xR
Chapter 4. Document handling To read checks, insert them from the front of the printer. Use the side load capability only for documents that must be positioned to begin printing at a particular location on the document. (There is an arrow on the side of the cover to indicate where printing begins.) Use front load for all other cases. Portrait mode This is a suggested method of document handling: 1.
Landscape mode Landscape mode printing is primarily for printing the face of a check. Notes on landscape printing: v Lines you send to print start at the bottom of the form, against the right stop, and continue to the top of the form, to a maximum of 80 mm from the bottom of the form. This is because the bottom of the form is known (against the right stop) and the top of the form is unknown to the printer. v Different lengths of paper allow different print-line lengths.
3. Send print lines to be printed in this station. The number of characters that can be printed on a line depends on the width of the document. The print area is: v 63 mm high, starting 17 mm from the bottom of the document v The entire width of the document less 34 mm from the right edge and 10 mm from the left edge 4. Final handling. You have an option on final handling: finish printing and either eject the document or open the document throat to allow manual removal of the document: 4a.
88 SureMark 4610 Printers : Programming Guide for Models 1xR and 2xR
Chapter 5. Status information Models 2CR and 2NR have 16 status bytes. When Models 2CR and 2NR is in emulation mode the status bytes will reflect the status of the older 4610 models. Status is sent to the system for the following conditions: Table 15. Summary of status conditions v Cash receipt print error. The cover is open or out of paper. v Printer buffer empty. If enabled, see “Status sent to system” on page 50. v Document sensor state changed. If enabled, see “Status sent to system” on page 50.
Status byte 1 Table 16. Status byte 1 Bit Description 0 (LSB) Command complete (immediate command and flash storage commands). Set to 1 when the command is complete. 1 Reserved 2 Document left home position. Set to 1 when the print head is in the left home position. 3 Document right home position. Set to 1 when the print head is in the right home position. 4 Reserved. Always 0. 5 Ribbon cover open. Set to 1 when the ribbon cover is open.
Table 18. Status byte 3 (continued) Bit Description 2 Document error. the document was not inserted after the document station was selected, and the wait subsequently timed out. 3 Flash EPROM load error or MCT load error. 4 Reserved. Always equals 0. 5 User flash storage sector is full. 6 Firmware error. CRC on the firmware failed. The printer is running out of the boot sector. Only system commands and firmware commands are accepted. The firmware must be reloaded into the printer.
Table 20. Status byte 7 (continued) Bytes Description 6 Station selected. Set to 1 when document insert station is selected. Clear when the cash receipt station is selected. 7 (MSB) Feed error. This is a document feed error: Set when there is an error after a Flip Check or a MICR command is executed. Status byte 8 Table 21. Status byte 8 | | | | | | | | Bit Description 0 (LSB) Reserved 1 Reserved 2 Reserved 3 Reserved 4 Reserved (always 0) 5 Set to 1 when CR paper is out.
Status byte 10 Table 23. Status byte 10 Bit Description 0 (LSB) Reserved 1 Electronic journal suspend (see driver spec for electronic journal support) 2 Set when responding to checksum request for download graphics logos or stored messages. 3 Reserved 4 Reserved (Always = 0) 5 Reserved 6 Reserved 7 (MSB) Reserved Status byte 11 Table 24. Status byte 11 Bit Description 0 (LSB) CR feed error - no motion detected when line feeding. 1 Reserved 2 Detected partial paper cut.
Table 25. Status byte 12 (continued) Bit Description 7 (MSB) Reserved Status byte 13 The printer can detect problems with the cards and might be able to communicate. If it can communicate, these are the statuses that are sent. If the failure is such that the printer cannot print, offline status will be set, and the CR LED will blip. Table 26.
| Table 28. Status byte 15 (continued) | Bit Description | | 7 (MSB) Reserved (Always = '1') | Status byte 16 | The printer detects problems communicating with the thermal print head. | Table 29.
96 SureMark 4610 Printers : Programming Guide for Models 1xR and 2xR
Chapter 6. Character fonts This section describes font capabilities.
Implementing proportional fonts The variable width of proportional fonts can make it difficult to layout a receipt using traditional methods. you can simplify the process of laying out the format of a receipt by using the alignment and tab features of the SureMark printer. The following topics show how to use the alignment and tab features with proportional fonts. Command descriptions are given in RS-232 (EIA-232) command format.
Note: Finding the optimum value of xx for this command will vary depending on the proportional character set being used, and may require some experimentation. 4. Print the item price. For the first item, this is the ASCII data $ .45. 5. Issue the Fix Font Matrix command with n=0, which disables the fixed font matrix. The command syntax is X'1B 3A 00'. 6. Issue the Print and Line Feed command. Use the command syntax X'0A' or X'0D'.
Note: You might have True Type fonts other than those supplied by IBM on your system. Before using the conversion utility to convert and download any non-IBM fonts for use by the SureMark printer, you must confirm that you have received authorization from the owner of the fonts to convert and download the fonts.
Chapter 7. Tests and diagnostics This section describes the tests available for the 4610 Models 2xR and 1xR printers. Low paper sensing and calibration Low paper sensing is based upon the paper thickness and the core size. You can modify the low paper and critically low sensing settings. These settings determine the amount of paper that remains on the roll and at which time the low paper and the critically low paper status is sent.
Table 30. MCT load command settings for low paper and critically low paper (continued) Dec Hex 40 28 LowPaperCalibrationConstant; The high order bit to this variable is set after this printer has calibrated the Low Paper. The lower order bits are the number of mm the printer will feed after detecting the sensor change until the paper is out. Firmware offline tests (Models 2xR) To enter the firmware offline test and setup procedures for 4610 Models 2xR, complete the following steps: A B C Figure 3.
Figure 4. Pressing the power button 2. Close the paper cover and press the paper feed button ( A ) while the printer is powering up. 3. The following offline selection menu is printed. See Figure 5. Off-line Selection started To select a sub-menu or test: FIRST, press the paper feed button the indicated number of times. THEN, press again and hold button down at least 1 second to confirm selection.
Table 31. Summary of the offline test menu items (continued) Menu item Definition 2. Choose emulation mode Displays the submenus (see next column) 3. Model selection Sub-menu (if applicable) Definition Compatibility with Legacy 4610 Changes the command set and statuses to support the previous drivers and applications (such as plug and play for existing 4610 printers).
A card in the printer has been replaced Main Logic’s S/N is 41-MVT02 Interface Card’s S/N is 41AAVT50 Check the serial number (S/N) of the printer. The S/N is located next to the document insert station and on the bottom of the printer. If S/N matches one of the above, please update the card with the incorrect S/N. If S/N does not match one of the above, Refer to the Hardware Service Manual. To select a sub-menu or test: FIRST, Press the paper feed button the indicated number of times.
Earlier methods for offline tests The section provides the previous methods for initiating offline tests. Although these methods are supported, IBM recommends that you use the firmware menu and sub-menus to initiate all offline tests. Resetting the printer and the document sensor threshold To reset the printer,: 1. Press and hold the paper feed and document feed buttons ( A and B in Figure 3 on page 102) to enter offline mode. 2. When the printer-ready indicator begins blinking, release both buttons. 3.
Firmware offline tests (Models 1xR) To enter the firmware offline test and setup procedures for Models 1xR, complete the following steps: The following sections describe the steps to enter the firmware offline test and setup procedures for Model 1xR. 1. Open the top cover. 2. Press the white power reset switch ( A in Figure 6) to turn the printer off and then on again. A Figure 6. Offline tests activation 3. Close the top cover 4.
Off-line Selection started To select a sub-menu or test: FIRST, press the paper feed button the indicated number of times. THEN, press again and hold button down at least 1 second to confirm selection. Sub-menus and tests Thermal Receipt test Choose Emulation Mode Select receipt width EIA-232/RS-232 Flow Control More Selections Press 1 2 3 4 5 To exit Off-line setup, open printer cover. Figure 7. Example of the offline selection main menu. See 108for an explanation of these menu items. 5.
| Table 32. Summary of the offline test menu items (continued) | | Menu Item Definition | | 8. Execute printhead test Starts printhead tests. | | 9. Reset TPH user data. Select after you install a new thermal printhead. | | 10. Motion sensor test Starts the test up | | 11. Print resident code pages Prints all resident code pages with options of font choice | | 12.
110 SureMark 4610 Printers : Programming Guide for Models 1xR and 2xR
Notices This information was developed for products and services offered in the U.S.A. IBM may not offer the products, services, or features discussed in this document in other countries. Consult your local IBM representative for information on the products and services currently available in your area. Any reference to an IBM product, program, or service is not intended to state or imply that only that IBM product, program, or service may be used.
Information concerning non-IBM products was obtained from the suppliers of those products, their published announcements or other publicly available sources. IBM has not tested those products and cannot confirm the accuracy of performance, compatibility or any other claims related to non-IBM products. Questions on the capabilities of non-IBM products should be addressed to the suppliers of those products. This information is for planning purposes only.
Electronic emission notices Federal Communications Commission statement This equipment has been tested and found to comply with the limits for a Class A digital device, pursuant to Part 15 of the Federal Communications Commission (FCC) Rules. These limits are designed to provide reasonable protection against harmful interference when the equipment is operated in a commercial environment.
Industry Canada Class A Emission Compliance statement This Class A digital apparatus complies with Canadian ICES-003. Avis de conformité aux normes d'Industrie Canada Cet appareil numérique de la classe A est conforme à la norme NMB-003 du Canada. Germany Zulassungsbescheinigung laut dem Deutschen Gesetz über die elektromagnetische Verträglichkeit von Geräten (EMVG) vom 30. August 1995 (bzw. der EMC EG Richlinie 89/336).
Chinese Class A warning statement Attention: This is a Class A product. In a domestic environment this product may cause radio interference, in which case the user may be required to take adequate measures. Japanese Electrical Appliance and Material Safety Law statement Japanese power line harmonics compliance statement Japanese VCCI Council Class A statement Attention: This is a Class A product based on the standard of the VCCI Council.
Taiwanese Class A warning statement Taiwan contact information IBM Taiwan Product Service Contact Info: IBM Taiwan Corporation 3F, No 7, Song Ren Road, Taipei Taiwan Telephone: 0800-016-888 Cable ferrite requirement All cable ferrites are required to suppress radiated EMI emissions and must not be removed. Electrostatic discharge Attention: Electrostatic discharge (ESD) damage can occur when there is a difference in charge between the part, the product, and the service person.
ESD damage prevention Anytime a service action involves physical contact with logic cards, modules, back-panel pins, or other ESD sensitive (ESDS) parts, the service person must be connected to an ESD common ground point on the product through the ESD wrist strap and cord. The ESD ground clip can be attached to any frame ground, ground braid, green wire ground, or the round ground prong on the AC power plug. Coax or connector outside shells can also be used.
2002/96/EC en matière de Déchets des Equipements Electriques et Electroniques (DEEE), qui détermine les dispositions de retour et de recyclage applicables aux systèmes utilisés à travers l’Union européenne. Conformément à la directive, ladite étiquette précise que le produit sur lequel elle est apposée ne doit pas être jeté mais être récupéré en fin de vie.
For the European Union: Notice: This mark applies only to countries within the European Union (EU) Batteries or packaging for batteries are labeled in accordance with European Directive 2006/66/EC concerning batteries and accumulators and waste batteries and accumulators. The Directive determines the framework for the return and recycling of used batteries and accumulators as applicable throughout the European Union.
The foregoing notice is provided in accordance with California Code of Regulations Title 22, Division 4.5, Chapter 33: Best Management Practices for Perchlorate Materials. This product/part includes a lithium manganese dioxide battery which contains a perchlorate substance. Flat panel displays The fluorescent lamp in the liquid crystal display contains mercury. Dispose of it as required by local ordinances and regulations.
Index Numerics 1/6-inch line spacing, selecting 1/8-inch line spacing, selecting 4610 Models 2xR Firmware offline tests 102 offline test, firmware 102 44 43 A accessibility of publications xii align positions command 48 asynchronous commands 74 data buffer management and batch printing 76 real-time requests 74 B backspace, composite characters batch printing, and data buffer management 76 battery return program 118 71 C cable ferrite requirement 116 cash drawer drive pulse command 73 changing the inter
low paper sensing and calibration 101 low paper, sensing and calibration 101 M MCT command definitions 31 MCT loading 31 memory allocation 18 mercury-added statement 120 message format 89 MICR read 69 MICR test results, understanding 106 microcode tolerance (MCT) information request 31 miscellaneous commands 71 generate drive pulse for cash drawer 73 horizontal tab 71 paper cut/DI eject command 73 Prepare printer for shut down (S3) 74 retrieve the flash storage 73 retrieve the size of user flash storage 74
V verify previous commands completed 13 Index 123
124 SureMark 4610 Printers : Programming Guide for Models 1xR and 2xR
Readers’ Comments — We'd Like to Hear from You SureMark 4610 Printers Programming Guide for Models 1xR and 2xR Publication No. GA27-5005-01 We appreciate your comments about this publication. Please comment on specific errors or omissions, accuracy, organization, subject matter, or completeness of this book. The comments you send should pertain to only the information in this manual or product and the way in which the information is presented.
GA27-5005-01 ___________________________________________________________________________________________________ Readers’ Comments — We'd Like to Hear from You Cut or Fold Along Line _ _ _ _ _ _ _Fold _ _ _and _ _ _Tape _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _Please _ _ _ _ _do _ _not _ _ staple _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _Fold _ _ _and _ _ Tape ______ NO POSTAGE NECESSARY IF MAILED IN THE UNITED STATES BUSINESS REPLY MAIL FIRST-CLASS MAIL PERMIT NO.
Printed in USA GA27-5005-01