SR200 & SR300 Card Printer: SDK Guide 539903-001 Rev. B November 2010
SR200 & SR300 Printer SDK Guide Page 6 Scan Printer Functions The API includes the following ♦ Scan Function ♦ Printer Check Function
SR200 & SR300 Printer SDK Guide Page 7 Printer Status Functions You can use the following functions to retrieve printer status: ♦ Test Un
SR200 & SR300 Printer SDK Guide Page 8 Print on Retransfer Film functions The API provides the following printing functions: ♦ Image Out
SR200 & SR300 Printer SDK Guide Page 9 About UV Ink UV ink becomes visible with ultraviolet rays. UV data is grayscale data, in the range
SR200 & SR300 Printer SDK Guide Page 10 ♦ Portrait: The upper right location starts at 612,743. The lower left location starts at 19, 42.
SR200 & SR300 Printer SDK Guide Page 11 Define LUT Function No. Function Name Explanation 1 int CXCMD_DefineLUT (int iSlot,int iID,
SR200 & SR300 Printer SDK Guide Page 12 Print Function No. Function Name Explanation 1 int CXCMD_Print (int iSlot,int iID, int i
SR200 & SR300 Printer SDK Guide Page 13 Functions for Moving and Discharging the Card The API provides the following functions to move and
SR200 & SR300 Printer SDK Guide Page 14 Card Move Function No. Function Name Explanation 1 int CXCMD_MoveCard (int iSlot, int iID,
SR200 & SR300 Printer SDK Guide Page 15 Retransfer to Card Functions Retransfer Functions No. Function Name Explanation 1 int CXCMD_Ret
SR200 & SR300 Card Printer SDK Guide ii Notice See the “Software License Agreement” on the SR200 & SR300 Support
SR200 & SR300 Printer SDK Guide Page 16 Magnetic Stripe Encoding Functions The API provides the following functions for magnetic stripe en
SR200 & SR300 Printer SDK Guide Page 17 Reading Function (for JIS) No. Function Name Explanation 1 int CXCMD_ReadMagData (int iSlot
SR200 & SR300 Printer SDK Guide Page 18 No. Function Name Explanation pbyTrack2Buff Pointer to the data to write. Data must be ASCII cha
SR200 & SR300 Printer SDK Guide Page 19 Reading Function (for ISO) No. Function Name Explanation 1 int CXCMD_ReadMagData (int iSlot
SR200 & SR300 Printer SDK Guide Page 20 Smart Card (IC) Function IC Control Function No. Function Name Explanation 1 int CXCMD_ICContr
SR200 & SR300 Printer SDK Guide Page 21 Functions for Getting Information & Changing Settings The driver API provides the following fu
SR200 & SR300 Printer SDK Guide Page 22 71-78 Config Version (ASCII): Printer Configuration Version 79-86 Table Version (ASCII): Printer T
SR200 & SR300 Printer SDK Guide Page 23 Ink Data (Page Code = 23H) Bit Byte 7 6 5 4 3 2 1 0 0 0 0 Page Code (0x23) 1 Pa
SR200 & SR300 Printer SDK Guide Page 24 Print Unit Data (Page Code=0x28) Bit Byte 7 6 5 4 3 2 1 0 0 0 0 Page Code (28H)
SR200 & SR300 Printer SDK Guide Page 25 Bit Byte 7 6 5 4 3 2 1 0 38 Reserved 39 Peel Wait Time 41 Resin Black Level 42 Res
SR200 & SR300 Card Printer SDK Guide iii Contents Introduction...
SR200 & SR300 Printer SDK Guide Page 26 MG Peel Mode When MG Peel Mode is enabled, the retransfer film is peeled from the back side diffe
SR200 & SR300 Printer SDK Guide Page 27 Power Save Mode The wait time to enable Power Save Mode, in minutes. 0 5(min) 1 10 2 15 3 20
SR200 & SR300 Printer SDK Guide Page 28 Encode Unit Data (Page Code=0x2A) Bit Byte 7 6 5 4 3 2 1 0 0 0 0 Page Code (2AH
SR200 & SR300 Printer SDK Guide Page 29 *In ”Film T Type” and ”Film B Type”, T (Top) references the lamination function on the top side o
SR200 & SR300 Printer SDK Guide Page 30 Film B Type The type of the lamination film on the bottom side. 0 Patch 1 Overlay NOTE: The LM3
SR200 & SR300 Printer SDK Guide Page 31 47-62 IPv6 Address 63-79 Reserved Session Timeout The time interval to detect that the printer T
SR200 & SR300 Printer SDK Guide Page 32 Mode Select Function No. Function Name Explanation 1 int CXCMD_ModeSelect (int iSlot, int iI
SR200 & SR300 Printer SDK Guide Page 33 Print Unit Data (Page Code=0x28) Bit Byte 7 6 5 4 3 2 1 0 0 0 0 Page Code (0x28
SR200 & SR300 Printer SDK Guide Page 34 Bit Byte 7 6 5 4 3 2 1 0 31 Reserved (0xff) Tips for Success • The contents of t
SR200 & SR300 Printer SDK Guide Page 35 Buzzer Mode: Use 0 if the value for iSp is 0. 0 Enable Buzzer 1 Disable Buzzer Power Save Mode
SR200 & SR300 Card Printer SDK Guide iv Encoding with ExtEscape() ...
SR200 & SR300 Printer SDK Guide Page 36 Encode Unit Data (Page Code=0x2a) Bit Byte 7 6 5 4 3 2 1 0 0 0 0 Page Code (0x2
SR200 & SR300 Printer SDK Guide Page 37 Laminator Unit Data (Page Code=0x2C) Bit Byte 7 6 5 4 3 2 1 0 0 0 0 Page Code (
SR200 & SR300 Printer SDK Guide Page 38 Heat Roller T Temp The heat roller temperature for top-side lamination. Values specified here corr
SR200 & SR300 Printer SDK Guide Page 39 Network Data (Page Code=0x2D) Bit Byte 7 6 5 4 3 2 1 0 0 0 0 Page Code (0x2d) 1
SR200 & SR300 Printer SDK Guide Page 40 DHCP Whether DHCP is enabled. 0 Enabled 1 Disabled Host I/F The type of connection (interface
SR200 & SR300 Printer SDK Guide Page 41 Print Information Data (Page Code=0x2b) Bit Byte 7 6 5 4 3 2 1 0 0 0 0 Page Cod
SR200 & SR300 Printer SDK Guide Page 42 Velocity for Card Fix From 0 (Slow) to 4 (Fast). Peel off Wait Time Wait time in seconds before
SR200 & SR300 Printer SDK Guide Page 43 Log Sense Function No. Function Name Explanation 1 int CXCMD_ LogSense (int iSlot, int iID,
SR200 & SR300 Printer SDK Guide Page 44 Bit Byte 7 6 5 4 3 2 1 0 20 (MSB) Parameter Code (0x0002) (LSB) 21 22 0 0 0 0
SR200 & SR300 Printer SDK Guide Page 45 Log Sense Data Format (Miscellaneous Page: Page Code=0x39) Bit Byte 7 6 5 4 3 2 1
SR200 & SR300 Printer SDK Guide Page 1 Introduction Overview This document explains the application programming interface (API) for the SR
SR200 & SR300 Printer SDK Guide Page 46 Bit Byte 7 6 5 4 3 2 1 0 30 00H 31 Parameter Length (0004H) 32 Printer Status 33 P
SR200 & SR300 Printer SDK Guide Page 47 Printer Status Reports the current status of the printer, for display to the operator, which can
SR200 & SR300 Printer SDK Guide Page 48 0x54: Lower film out of supply 0x55 Cannot detect upper film (No film or broken) 0x56 Cannot de
SR200 & SR300 Printer SDK Guide Page 49 Laminator Counters Page (Page Code = 0x3A) Bit Byte 7 6 5 4 3 2 1 0 0 Reserved P
SR200 & SR300 Printer SDK Guide Page 50 Bit Byte 7 6 5 4 3 2 1 0 28 (MSB) Parameter Code (0x0003) 29 (LSB) 30 0x00 31 Para
SR200 & SR300 Printer SDK Guide Page 51 Bit Byte 7 6 5 4 3 2 1 0 58 (MSB) Parameter Code (0x0007) 59 (LSB) 60 0x00 61 Para
SR200 & SR300 Printer SDK Guide Page 52 How to Encode with the Printer Driver Encoding includes magnetic stripe encoding and smart card (I
SR200 & SR300 Printer SDK Guide Page 53 *Max Length shows the maximum number of characters to encode using that method and format. Tips f
SR200 & SR300 Printer SDK Guide Page 54 Encoding with ExtEscape() You can pass the encoding data to the printer driver by using the ExtEs
SR200 & SR300 Printer SDK Guide Page 55 Smart Card (IC) Programming The driver does not offer the actual IC encoding function. When IC en
SR200 & SR300 Printer SDK Guide Page 2 System Configuration The following diagram shows the software components and their relationships. I
SR200 & SR300 Printer SDK Guide Page 56 Negative, or value different from those listed here The printer driver displays an error. After th
SR200 & SR300 Printer SDK Guide Page 57 How to Override Driver Settings You can override settings in the printer driver using the Win32 Ex
SR200 & SR300 Printer SDK Guide Page 58 cbResult when successful Name Error Code Reserved Length in byte 1 4 Value 0x00 Not defined
SR200 & SR300 Printer SDK Guide Page 59 Programming Sample Change the “Number of copies” to 100 int escape_id; unsigned short id, size;
SR200 & SR300 Printer SDK Guide Page 60 Refer to the “Number of copies” setting int escape_id; unsigned short id, size; unsigned long
SR200 & SR300 Printer SDK Guide Page 61 cbParameter Values All values must be set with Big Endian. Item Name ATR ID Size Data Explana
SR200 & SR300 Printer SDK Guide Page 62 Item Name ATR ID Size Data Explanation 0x00000011 Print black text of back side with K and p
SR200 & SR300 Printer SDK Guide Page 63 Appendix A: API Error Codes This appendix lists errors returned by the printer driver API. It incl
SR200 & SR300 Printer SDK Guide Page 64 Driver Errors (0x02xxxxxx) Bit 31-24 (0x02) Bit 23-16 Bit 15-0 Explanation 0x02 00 1 Not eno
SR200 & SR300 Printer SDK Guide Page 65 Appendix B: Magnetic Stripe Data This section contains: ♦ 4-bit data ♦ Codes for 4-unit (bit) da
SR200 & SR300 Printer SDK Guide Page 3 About the API This section provides background information about the printer driver API. Command St
SR200 & SR300 Printer SDK Guide Page 66 6-bit data 6 unit code 0 0 1 1 0 1 0 1 b4 b3 b2 b1 0 1 2 3 0 0 0 0 0 0
SR200 & SR300 Printer SDK Guide Page 67 7-bit data 7 unit code b7 0 0 0 0 1 1 1 1 b6 0 0 1 1 0 0 1 1 b5 0 1 0 1 0
SR200 & SR300 Printer SDK Guide Page 68 Appendix C: Card Printer Error Codes No. Error Code Name Contents SK ASC ASQ 1 02 D0 00 No
SR200 & SR300 Printer SDK Guide Page 69 No. Error Code Name Content SK ASC ASQ 15 03 90 00 Jam(Hopper) The card does not arrive a
SR200 & SR300 Printer SDK Guide Page 70 No. Error Code Name Content SK ASC ASQ 31 04 AC 00 MG Hardware A hardware error occurred
SR200 & SR300 Printer SDK Guide Page 71 No. Error Code Name Contents SK ASC ASQ 50 05 20 00 Invalid Command Operation Code The con
SR200 & SR300 Printer SDK Guide Page 72
SR200 & SR300 Printer SDK Guide Page 4 Printer Control Functions The Printer Control DLL (a Windows DLL) supports the printer control func
SR200 & SR300 Printer SDK Guide Page 5 Process Flow to Issue the Card First, use the Scan Printer function to obtain the Slot number and I
Comentários a estes Manuais