Star Micronics TCP300II Series Product Specifications Manual
Star Micronics TCP300II Series Product Specifications Manual

Star Micronics TCP300II Series Product Specifications Manual

Star micronics printer product specification sheet

Advertisement

Quick Links

TCP300II Series
Product Specifications Manual
Commands
First Release: October 21, 2005
Star Micronics Co., Ltd.
Special Products Operating Division

Advertisement

Table of Contents
loading

Summary of Contents for Star Micronics TCP300II Series

  • Page 1 TCP300II Series Product Specifications Manual Commands First Release: October 21, 2005 Star Micronics Co., Ltd. Special Products Operating Division...
  • Page 2: Table Of Contents

    Table of Contents APPLICATION PRECAUTIONS FOR PROGRAMMING AND FOR HANDLING COMMUNICATION SPECIFICATIONS 3-1. Communication Procedures -------------------------------------------------------------------------2 3-2. Transmission Control Matrix-------------------------------------------------------------------------4 3-3. Transmission Control Matrix (Reader Type)----------------------------------------------------5 3-4. Command and Response Transfer Formats ---------------------------------------------------6 3-5. Transfer Control Characters -------------------------------------------------------------------------6 3-6. Cards for Processing ----------------------------------------------------------------------------------7 3-7.
  • Page 3: Application

    1. APPLICATION This manual describes the commands relating to the TCP300II series printers. 2. PRECAUTIONS FOR PROGRAMMING AND FOR HANDLING • The volatile memory writing life is approximately one million times. The expect ed life will be reached by frequent use, which can cause problems in the operation of the printer.
  • Page 4: Communication Specifications

    3. COMMUNICATION SPECIFICATIONS 3-1. Communication Procedures This device communicates with its host using block transmissions of resend requests. When communications are started from the host, the host will transmit a command block to the reader/writer. When the reader/writer receives the command block, it will respond with either of the characters of ACK (normal), NAK (resend request) or DLE (reject).
  • Page 5 DLE Sequence Host Command sent → DLE received ← See section 2-5. Transmission Control Characters for details regarding ACK, NAK and DLE character codes. Reader/writer Command received DLE sent...
  • Page 6: Transmission Control Matrix

    3-2. Transmission Control Matrix Event ACK received Host status Idling Read and discarded After command sent ACK received waiting receive After received waiting receive Reset TCP response After response Reset TCP received ACK After response Reset TCP received NAK Notes: There is no time limit to send ACK after receiving a command block.
  • Page 7: Transmission Control Matrix (Reader Type)

    3-3. Transmission Control Matrix (Reader Type) Event STX received TCP status 1 Idling →2 2 Command received Buffering → 2 If BCC matched If BCC matched → 4 3 BCC received If BCC does not If BCC does not match NAK sent→...
  • Page 8: Command And Response Transfer Formats

    3-4. Command and Response Transfer Formats Command Transfer Formats Commands Response Transfer Formats Commands Status Data string must be within 1024 bytes. BCC is an exclusive logic sum from the command to ETX. 3-5. Transfer Control Characters The following shows the transmission control character codes and functions. Character Code BCC is an exclusive logic sum from the command to ETX.
  • Page 9: Cards For Processing

    3-6. Cards for Processing The cards that can be processed are called readable and writable cards. When the card is inserted into the inlet, it is a process targeted card. When the process is completed, the card idles in the machine, and is a process targeted card. When idling in the device, the idling card is a process targeted card regardless of whether there is a card at the inlet.
  • Page 10: Reading The Buffer

    3-8. Reading the Buffer It is possible to read the buffer when a card that has been read/written is idling. The buffer read commands (29h, 2Ah, 2Bh) obtains the read data stored in the read buffer on the visual card reader/writer. It is possible to get the read data on the track by using the buffer read commands (29h, 2Ah, 2Bh) without transporting a card.
  • Page 11: Commands And Status Lists

    3-9. Commands and Status Lists Command List Code First track read command Second track read command Third track read command First track read (status with no card) command Second track read (status with no card) command Third track read (status with no card) command First track buffer read command Second track buffer read command Third track buffer read command...
  • Page 12 Code Status Request Command ROM version request command LED, buzzer control command Card transport count request command Print count request command Cleaning button enable/disable command Cleaning command Reset command Communication setting command Model setting command Model Details 300: 1 Track magnetic head model (TCP300**) 310: 3 Track magnetic head model (TCP310**) * 1 EEPROM default values are listed below.
  • Page 13 Status List The following shows the content of status. When there is the status code 20h there is no error. Anything other than 20h, it is recommended to branch the error and processing. Error notification codes may change or be added to without prior notice. Undefined statuses are reserved for the system.
  • Page 14: Command Details

    4. COMMAND DETAILS 4-1. Magnetic Stripe Commands Third track read command (Model: 310) General Description This command idles the first track read of a magnetic strip encoded in the following formats. • 7-bit + 1 parity (called 7-bit format below) Conforming to JISX6302* •...
  • Page 15 Second track read command (Models: TCP300/310) General Description This command waits for the second track read of a magnetic strip encoded in the following formats. • 7-bit format conforming to JISX6302* • Reverse 7-bit + 1 parity Reverse direction writing format of the format above* •...
  • Page 16 First track read (status with no card) command (Model: 310) General Description This command idles the first track read of a magnetic strip encoded in the following formats. • 7-bit format conforming to JISX6302* • Reverse 7-bit format Reverse direction writing format of the format above* •...
  • Page 17 Second track read (status with no card) command (Models: 300/310) General Description This command waits for the second track read of a magnetic strip encoded in the following formats. • 7-bit format conforming to JISX6302* • Reverse 7-bit format Reverse direction writing format of the format above* •...
  • Page 18 First track buffer read command (Model: 310) This command acquires the first track buffer data of the following formats. • 7-bit format conforming to JISX6302* • Reverse 7-bit format Reverse direction writing format of the format above* • 6-bit format conforming to ISO 7811/2 first track •...
  • Page 19 Third track buffer read command (Model: 310) This command acquires the third track buffer data of the following formats. • 7-bit format conforming to JISX6302* • Reverse 7-bit format Reverse direction writing format of the format above* • 6-bit format conforming to ISO 7811/2 first track •...
  • Page 20 (11) Reverse 7 bit format second track data setting command (Models: 300/310) This command sets the write data to the second track with a reverse 7-bit format. Excluding 02h (STX) and 03h (ETX), the write data string must be data from 01h to 7Eh in 0 to 69 bytes.
  • Page 21 (12) Reverse 7 bit format third track data setting command (Model: 310) This command sets the write data to the third track with a reverse 7-bit format. Excluding 02h (STX) and 03h (ETX), the write data string must be data from 01h to 7Eh in 0 to 69 bytes.
  • Page 22 (15) 7 bit format third track data setting command (Model: 310) This command sets the write data to the third track with a 7-bit format. Excluding 02h (STX) and 03h (ETX), the write data string must be data from 01h to 7Eh in 0 to 69 bytes.
  • Page 23 (17) Second track data setting command (Models: 300/310) This command sets the second track write data. The magnetic format of the write data corresponds to the following formats, but the format that is set abides by the content of the preset memory switches. See Model Setting Commands (91h) for details.
  • Page 24 (19) Magnetic stripe write → idle command (Models: 300/310) General Description This command writes magnetic data set by the data setting command. Details of Operation This writing operation starts only when normal write data is set for all specified write tracks. If there is no targeted card, it will wait until one is inserted into the device, then begin to write to the card.
  • Page 25 (20) Magnetic stripe write → idle (status with no card) command (Models: 300/310) General Description This command writes magnetic data set by the data setting command. This writes to the magnetic stripe of the targeted card, if one is inserted in the reader/writer. If no target card is inserted in the device, this sets the no card status (22h) to the response block status field and quits the command.
  • Page 26: Print And Erase Commands

    4-2. Print and Erase Commands The speed to write and erase switches according to the ambient environment and card media. To perform a timeout, set the timeout value according to the environment of use. Print expansion buffer clear command This command clears the print expansion buffer only. Image data is expanded in the print expansion buffer by the character (including external characters) by the print character data setting command (41h), and the internal image data expansion command (42h).
  • Page 27 Print character data setting command This command expands character data to be printed (including external fonts) in the print expansion buffer. The print data string is composed of the print control header string and the print text data string. The print control header string is composed of the card arrangement direction parameter, the X coordinate specification parameter string, the Y coordinate specification parameter string, and a comma for separating each parameter.
  • Page 28 Print control header string and print text data description example Visual Card1.Communication (&h41, “2,0,23, STAR Micronics (Corp.)”, 0, False ); This expands “STAR Micronics (Corp.)” by additional writing to a vertical card at the (X coordinate and Y coordinate) = (0, 23).
  • Page 29 Notes: The Y coordinate specification parameter indicates the bottom left edge of the text data to expand, so when the set font is 24 dots, the minimum value of the Y coordinate specification value is 23. If the set font is 16 dots, the minimum value of the Y coordinate specification value is 15.
  • Page 30 • ESC This expands a specified 16 dot 2-byte external characters FONT in the print expansion buffer memory. ESC ‘I’ next parameter range: ESC “I0” ESC “I1” ESC “I9” ESC “IA” ESC “IE” ESC “IF” • ESC This expands a specified 24 dot 1-byte external characters FONT in the print expansion buffer memory.
  • Page 31 • ESC Sets the dot space for gaps in single-byte characters. Dot spaces are applied to the right side of characters. ESC ‘d’ next parameter range: • ESC Sets the width size of characters to expand. ESC ‘W’/’w’ next parameter range: ESC “W1”...
  • Page 32 Command Transfer Formats Data arrangement specification Response Transfer Formats Status Parameter Explanation • Data arrangement specification parameter To specify whether to use the internal vertically or horizontally, select ‘0’ to ‘3.’ ‘0’: Vertical card + overwrite ‘1’: Horizontal card + overwrite ‘2’: Vertical card + added writing (recommended) ‘3’:...
  • Page 33 External image data expand command This command sets the image data to the rasterized image register buffer (volatile memory). Assuming that the card is horizontally oriented, this registers a maximum of 320 vertical dot image expansion data to the position specified with the X coordinate on the buffer for one page.
  • Page 34 External image data expand command This command sets the image data to the rasterized image register buffer (volatile memory). Image data is expanded from the expansion starting X coordinate and the expansion starting Y coordinate (byte: 8 dot units) with the range specified by the image data length. If image data with a number larger than the data specified in the image data length, this automatically increments the X coordinate and expands to the next dot string.
  • Page 35 • Expansion starting Y address parameter Specifies whether to expand the registered image Y address to the rasterized image register buffer. Becomes 0 when omitted. Specify in bytes (8 dot units). When making minute adjustments to the image print position in the Y direction, adjust the top and bottom margins on the image data.
  • Page 36 Two-byte external character font register command This command registers 24 dot or 16 dot two-byte fonts to the external character buffer (the volatile memory) as external fonts. Along with sizes, 16 fonts can be registered. Reregistering set fonts overwrites the existing ones. Command Transfer Formats STX 44h Font...
  • Page 37 Example Setting A B C D E F G H I J K L M N O P Q R S T U V W X ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ●...
  • Page 38 Single-byte external character font register command This command registers 24 dot or 16 dot single-byte fonts to the external character buffer to the (volatile memory) as external fonts. Along with sizes, 16 fonts can be registered. Command Transfer Formats Font size specification Response Transfer Formats Status...
  • Page 39 Erase + print → discharge command This command performs the operations specifying the control methods for deleting, printing and discharging. If there is a card idling in the device, it operates immediately. If there is no targeted card, the system will wait until one is inserted into the device, then perform the operation after a card is inserted.
  • Page 40 Cards after discharged to the front after erasing/printing in the same way as parameter specification 1. This parameter specification method (specifying only the discharge control method) is completely compatible with the conventional erase + discharge command (46h). • Parameter specification example 3 After printing, the card is discharged to front.
  • Page 41 (11) Erase → discharge command This command erases the print surface. If there is a card idling in the device, it erases to the card. If there is no targeted card, it will wait until one is inserted into the device, then starts erasing. After erasing, the device will either discharge the card according to the discharge method specification parameter or it will stop while idling and hold the card.
  • Page 42 (12) Bar Code Data Setting Commands These commands expand bar code strip patterns and subscript to the print expansion buffer. The print data string is composed of the bar code control header string and the bar code data string. Command Transfer Formats Bar Code Control Header Response Transfer Formats Status...
  • Page 43 • ‘,' (Commas) Required to separate parameters. • Bar code status stop code parameter This is necessary only when the bar code type parameters are ‘0,’ ‘1,’ ‘6’ and ‘7.’ When the bar code type parameters are ‘0,’ ‘1’ ‘A’: Sets CODE 128 bar code to code set A.
  • Page 44 Bar Code Data Bar Code String Data ASCII "1 0" → chr(&H10) "1 1" → chr(&H11) "1 2" → chr(&H12) "1 3" → chr(&H13) "1 4" → chr(&H14) "1 5" → chr(&H15) "1 6" → chr(&H16) "1 7" → chr(&H17) "1 8"...
  • Page 45 Bar Code Data chr(&H40) chr(&H41) chr(&H42) chr(&H43) chr(&H44) chr(&H45) chr(&H46) chr(&H47) chr(&H48) chr(&H49) chr(&H4A) chr(&H4B) chr(&H4C) chr(&H4D) chr(&H4E) chr(&H4F) chr(&H50) chr(&H51) chr(&H52) chr(&H53) chr(&H54) chr(&H55) chr(&H56) chr(&H57) chr(&H58) chr(&H59) chr(&H5A) chr(&H5B) chr(&H5C) chr(&H5D) chr(&H5E) chr(&H5F) chr(&H60) chr(&H61) chr(&H62) chr(&H63) chr(&H64) chr(&H65) chr(&H66) •...
  • Page 46 • When the bar code type parameters are ‘4’, ‘5’ (ITF) Expresses “0” to “9” numbers with the bar code ITF. With the bar code of this mode, it is possible to expand bar code fonts by transmitting the character to use as an ASCII character. A start and stop code is automatically applied.
  • Page 47: Card Commands

    4-3. Card Commands Card discharge command This command discharges a card. If there is a card in the device, this will discharge that card. The card follows the discharge method specification parameter and is either discharged to a position where it can be reused, or completely discharged. Cards that are discharged to the reuse position and cards completely discharged are both set to await being removed, and are not process targeted cards.
  • Page 48 Card rear side idle command This command transports and idles cards to the idling position on the rear side. Regardless of whether the card in the device is waiting to be removed or is a process targeted card, it is transported to the idling position on the rear side of the device and is idled there. If there is no card in the device, the device waits until a card is inserted, then transports it to the rear side where it is idled.
  • Page 49 Card removal wait status cancel command This command makes a card in the device that is waiting removal a process targeted card. A card that is executing the erase + print command, the erase command or the discharge command becomes a card waiting removal by the user. To reread the magnetic stripe data or to print again, either execute this command, or execute the card rear side idle command or the card front side idle command to make it a process targeted card.
  • Page 50: Information Display Commands

    4-4. Information Display Commands Status request command This command gets the status of the four card sensors in the device and the cover open sensor. The following shows the sensor status string for each character composed of six characters. Command Transfer Formats Response Transfer Formats Status The following shows the response block sensor status data string.
  • Page 51 ROM version request command This command acquires the ROM version information (model name and version) of the reader/writer. Command Transfer Formats Response Transfer Formats Status The following shows the response block ROM information data string. “TCP3II Series name (6 characters) Blank Fixed at v Version number (integer field 1, decimal points, two decimal points)
  • Page 52 Use the following codes for the LED color setting data. Code Either of 47h (‘G’)/67h (‘g’)/31h (‘1’) Either of 4Fh (‘O’)/6Fh (‘o’)/33h (‘3’) Either of 52h (‘R’)/72h (‘r’)/32h (‘2’) Use the following codes for LED operation and buzzer setting data. Code ‘...
  • Page 53 Print count request command This command requests the number printings, as a reference. The print count data string is 10 digits long. When the power is cut, the transport count less than 10 times is rounded down. Command Transfer Formats Data String Response Transfer Formats Status...
  • Page 54: Cleaning Command

    4-5. Cleaning Command Cleaning button enable/disable command This command enables and disables the cleaning button on the front panel. The setting is saved in the non-volatile memory. Command Transfer Formats Enable/disable parameter Response Transfer Formats Status Parameter Explanation • Enable/disable parameter ‘0’: Disables the panel cleaning button.
  • Page 55: Other Commands

    4-6. Other Commands Reset command This command resets the device. The reset command is a priority command that resets the device even when another command is being executed. When the reset command is received while executing another command, the device quits the execution of that command. Command Transfer Formats Response Transfer Formats Status...
  • Page 56 Specifying USB Serial Number This command sets the terminal individual number when using a USB interface. If the serial number is a value between 0 and 9, the host COM number can be value unique to that terminal. The COM port varies with the port to use when the serial number is 0. STX, 90h, ‘U’/‘u’, to 1 digit parameters, ETX, BCC Parameters are described in three digit decimal values.
  • Page 57 Setting Type and Parameter List (Types are set alphabetic characters and parameter are set by numerical values) Contents Type ANK fonts sizes ‘J’/‘j’ 24/16 dot font types ‘F’/‘f’ character ‘B’/‘b’ thickness Enable magnetic ‘C’/‘c’ writing track Enable magnetic ‘R’/‘r’ reading track Card arrangement ‘P’/‘p’...
  • Page 58 • 24/16 dot font type specification (US/EU) This command sets the US, and EU destined 24/16 dot fonts for AN characters. Settings using the ESC sequence (ESC, F/f) in the print text data string are enabled only in one electronic statement, but settings using this command function as default settings in the print character data setting command 41h.
  • Page 59 • Card arrangement direction setting This command sets the direction for card arrangement. In the print character data setting command (41h), the settings made using this command are enabled for the card arrangement direction if not setting the card arrangement direction and data arrangement coordinate printing control header string.
  • Page 60 • Magnetic stripe write retry count setting This command sets the number of times the device will retry to write to the magnetic stripe. Settings using this command function as default settings in the magnetic stripe write → idle command 31h and magnetic stripe write → idle (status with no card) command 32h. STX, 91h, ‘W’/‘w’, magnetic write retry count setting, ETX, BCC Magnetic write retry count setting parameters ‘0’:...
  • Page 61 • Two-byte characters gap dot space setting (JP/GP2312 or GB18030, BIG5, KR) This command sets the two-byte characters gap dot space. Settings using the ESC sequence (ESC, D) in the print text data string are enabled only in one electronic statement, but settings using this command function as default settings in the print character data setting command 41h.
  • Page 62 • Line gap dot space setting This command sets the line gap dot space. Settings using the ESC sequence (ESC, M/m) in the print text data string are enabled only in one electronic statement, but settings using this command function as default settings in the print character data setting command 41h. STX, 91h, ‘M’/‘m’, line gap dot space setting, ETX, BCC Line gap dot space setting parameters ‘0’:...
  • Page 63 • Magnetic format reading direction conforming to JISX6302 This command sets the magnetic format reading direction conforming to JISX6302 Settings using this command function as default settings in the first, second, and third track read commands 21h, 22h, 23h, the first, second and third track read (status with no card) commands 25h, 26h, 27h, and the first, second, and third track buffer read commands 29h, 2Ah and 2Bh.
  • Page 64: Materials

    5. MATERIALS 5-1. Switching Firmware Use the following steps to switch the firmware of the device. Install the flash memory loading program into your PC. Copy the firmware to any folder. Turn off the power to the device, then mount either of the applicable interfaces of serial, USB, or LAN.
  • Page 65: Error Display

    5-2. Error Display A self-diagnosis test is performed when the LED light sequentially at power on. A self-diagnosis test is performed only, without lighting the LED when recovering from a transport path open state, when the reset command is executed. The result of the test is displayed by the LED and buzzer.
  • Page 66: Recommended Timeout

    5-5. Recommended Timeout Name Command First track read command Second track read command Third track read command First track read command (status with no card) Second track read command (status with no card) Third track read command (status with no card) First track buffer read command Second track buffer read command Third track buffer read command...
  • Page 67 ELECTRONIC PRODUCTS DIVISION STAR MICRONICS CO., LTD. 536 Nanatsushinya, Shimizu-ku, Shizuoka, 424-0066 Japan Tel : 0543-47-0122 Fax: 0543-48-5013 Please access the following URL http://www.star-m.jp/eng/dl/dl03.htm for the lastest revision of the manual. Distributed by OVERSEAS SUBSIDIARY COMPANIES STAR MICRONICS AMERICA, INC.

Table of Contents