background image

 

 

 

 

 

 

 

 

 

 

 

 

TCP300 Series 

Programmer’s Manual

 

 

 

 

 

 

Third Edition: August 7, 2003 

 

Star Micronics Co., Ltd. 

 

Special Products Operating Division 

 

 

 

Summary of Contents for TCP300 Series

Page 1: ...TCP300 Series Programmer s Manual Third Edition August 7 2003 Star Micronics Co Ltd Special Products Operating Division ...

Page 2: ...52 4 5 Cleaning Command 56 4 6 Other Commands 58 5 MATERIALS 70 5 1 Switching Firmware 70 5 2 Error displays 71 5 3 Loading Setting Cards 72 5 4 Self test Operation 72 Trademark acknowledgments TCP300 Star Micronics Co Ltd Notice All rights reserved Reproduction of any part of this manual in any form whatsoever without STAR s express permission is forbidden The contents of this manual are subject ...

Page 3: ...ion times The expected life will be reached by frequent use which can cause problems in the operation of the visual card reader writer Therefore only use the model set command 91h and the cleaning yes no command 5Bh when starting up the system Note that the parameters that can be set by the model setting command 91h describe the font size and character spacing with the escape sequence in the print...

Page 4: ... the BCC sent by the host If the calculated BCC and the received BCC do not match the reader writer responds with the NAK characters When the reader writer has responded with the NAK characters the host resends that command block In the same way the reader writer should calculate on the host side the BCC of the response block that is sent If the BCC values sent by the reader writer do not match th...

Page 5: ...K sent Command processed Response received Response sent NAK sent NAK received Response received Response resent ACK sent ACK received DLE Sequence Host Reader writer Command sent Command received DLE received DLE sent See section 2 5 Transmission Control Characters for details regarding DLE transmissions ACK NAK and DLE character codes ...

Page 6: ...nd ACK after receiving a command block Responses can be up to three seconds 2 There is no limit to the number of times to resend for transmission errors of command blocks or response blocks Therefore the host side must be controlled 3 There is no time limit from sending ACK to starting to send the response block When issuing a command while inserting a card the command is executed after inserting ...

Page 7: ...normal buffering 2 2 3 BCC received If BCC matched 4 If BCC does not match NAK sent 1 If BCC matched 4 If BCC does not match NAK sent 1 If BCC matched 4 If BCC does not match NAK sent 1 If BCC matched 4 If BCC does not match NAK sent 1 If BCC matched 4 If BCC does not match NAK sent 1 3 4 Wait for ACK after response sent Read discarded 4 Read discarded 4 Read discarded 4 1 Response resend 4 4 When...

Page 8: ...ne ESC 1Bh Start escape sequence BCC Block check character BCC is an exclusive logic sum from the command to ETX 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 waits in the device and is a process targeted card When idling in the device the ...

Page 9: ...automatically The initial values for retries is set to two times total of three 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 command 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 without transporting a card by using the buffer read command...

Page 10: ... Data format set by EEPROM 310 31h Magnetic strip write idle command 300 310 32h Magnetic strip write idle status with no card command 300 310 Magnetic stripe commands 40h Print buffer clear command 49h Image buffer clear command 41h Print data setting command 42h Internal image data 1 expand command 43h External image data expand command line mode 44h Two byte external character font register com...

Page 11: ...ad model TCP300 310 3 Track magnetic head model TCP310 FROM 2 Model Model has optional second FROM mounted on main PCB Ask our sales staff or our sales representative for details when purchasing Mechanism part Mechanism parts sold separately TCM3 models 1 EEPROM initial values for magnetic strips per country of destination are listed below 3 Track magnetic head model TCP310 3Bh 6 bit 1 parity ISO7...

Page 12: ...8h Card jam B 40h Cover open B 41h Invalid command C 42h Cam motor error A 43h Erase head temperature error A 45h EEPROM error A 4Ch Non compatible BMP file data C 51h Expand buffer overflow C Rank A Reader writer hard error inspection and repair are required Rank B Device cleaning and card reissuing requiring operator Depending on the frequency of the error it may be necessary to inspect and repa...

Page 13: ...d the card If a card is waiting to be removed from the device it will wait until the card is discharged If reading of the card fails the device will automatically reread the card according to the number of times that were set If still the card cannot be read with that set number of rereads the values of 23h 31h to 34h are set to the response block status field After this command is issued it is po...

Page 14: ... in the following formats 7 bit format conforming to JISX6302 6 bit format conforming to ISO 7811 2 first track 4 bit format conforming to ISO 7811 2 second and third tracks Note that this command can be used with on models with one magnetic stripe TCP300 See the first track read command for details on other descriptions and operations Command Transfer Formats STX 22h ETX BCC BCC 21h Response Tran...

Page 15: ...O 7811 2 first track 4 bit format conforming to ISO 7811 2 second and third tracks The starting symbol in the magnetic stripe automatically determine what format to use to read the card Note that this command cannot be used with on models with one magnetic stripe TCP300 Details of Operation If a card is idling in the machine this will read the magnetic stripe on the idling card If there is no targ...

Page 16: ...Transfer Formats STX 25h Status Read Data String ETX BCC 5 Second track read status with no card command Model TCP300 310 General Description This command waits the second track read of a magnetic strip encoded in the following formats 7 bit format conforming to JISX6302 6 bit format conforming to ISO 7811 2 first track 4 bit format conforming to ISO 7811 2 second and third tracks Note that this c...

Page 17: ... for details on other descriptions and operations Command Transfer Formats STX 27h ETX BCC Response Transfer Formats STX 27h Status Read Data String ETX BCC 7 First track buffer read command Model TCP310 This command acquires the first track buffer data of the following formats 7 bit format conforming to JISX6302 6 bit format conforming to ISO 7811 2 first track 4 bit format conforming to ISO 7811...

Page 18: ...00 Command Transfer Formats STX 2Ah ETX 29h Response Transfer Formats STX 2Ah Status Read Data String ETX BCC 9 Third track buffer read command Model TCP310 This command acquires the third track buffer data of the following formats 7 bit format conforming to JISX6302 6 bit format conforming to ISO 7811 2 first track 4 bit format conforming to ISO 7811 2 second and third tracks See the third track ...

Page 19: ...sfer Formats STX 38h Write data string ETX BCC Response Transfer Formats STX 38h Status ETX BCC 11 7 bit format second track data setting command Model TCP300 310 This command sets the write data to the second 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 The starting and ending symbols LRC and parity bit on the magnetic...

Page 20: ...nsfer Formats STX 3Ah Status ETX BCC 13 First track data setting command Model TCP310 This command sets the first 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 7 bit format conforming to JISX6302 6 bit format conforming to ISO 7811 ...

Page 21: ...a Command Transfer Formats STX 3Ch Write data string ETX BCC Response Transfer Formats STX 3Ch Status ETX BCC 15 Third track data setting command Model TCP310 This command sets the third 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 22: ... write the data the number of times set by the write retry count setting command 91h W The initial value for the retry count is two times initial time plus 2 times Write track specifying parameters 1 Enable magnetic writing to track 1 2 Enable magnetic writing to track 2 3 Enable magnetic writing to tracks 1 and 2 4 Enable magnetic writing to track 3 5 Enable magnetic writing to tracks 1 and 3 6 E...

Page 23: ...ite data is not set to the specified write track the reader writer will respond with the DLE characters to reject the command The device automatically verifies the data after magnetically writing When the magnetic writing fails the device will retry to write the data the number of times set by the write retry count setting command 91h W The initial value for the retry count is two times initial ti...

Page 24: ... print expansion buffer is cleared only by executing the print expansion buffer clear command 40h or by turning the power off and on again Command Transfer Formats STX 40h ETX 43h Response Transfer Formats STX 40h Status ETX BCC 2 Rasterized image register buffer clear command This command clears the rasterized image register buffer The rasterized image data transmitted from the host is expanded i...

Page 25: ...s the print expansion buffer is cleared so the same printing can be performed as many times as required If print data expanded in the print expansion buffer exceeds the printable range of a card an expansion buffer overflow error 51h response is transmitted The command length can be a maximum of 1024 bytes If it should exceed that separate the length into a plurality of commands Command Transfer F...

Page 26: ...pecifies whether to expand the Y coordinate of the bottom left edge of the text data to expand to each print expansion buffer When the card arrangement direction specification is 0 2 0 to 479 When the card arrangement direction specification is 1 3 0 to 319 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 m...

Page 27: ...ring this sets the characters size specification combined with the next character ESC E e Specifies character size ESC E e next parameter range 11 12 21 22 2 digit configuration ESC E11 Normal size ESC E12 Horizontal double size ESC E21 Vertical double size ESC E22 Vertical horizontal double size ESC G This expands a specified 24 dot 2 byte external characters font in the print expansion buffer me...

Page 28: ... configuration ESC S Moves the next print character to the right an N character amount including spaces for two byte characters by calculating the position to expand the expansion buffer memory in two bytes ESC S next parameter range 01 to 29 2 digit configuration ESC s Moves the next print character to the right an N character amount including spaces for two byte characters by calculating the pos...

Page 29: ...e dot space for gaps in two byte characters Dot spaces are applied to the right side of characters ESC D next parameter range 0 to F 1 digit configuration ESC d Sets the dot space for gaps in one byte characters Dot spaces are applied to the right side of characters ESC d next parameter range 0 to F 1 digit configuration ESC W w Sets the width size of characters to expand ESC W w next parameter ra...

Page 30: ...as ANK characters ESC J j next parameter range 0 to 1 1 digit configuration ESC J0 Specifies two byte gothic fonts ESC J1 Specifies single byte gothic fonts ANK character double byte specifications are valid only on Japanese models ESC F f Sets 24 16 dot fonts for AN characters ESC F f next parameter range 0 to 1 1 digit configuration ESC F0 Specifies 24 dot fonts ESC F1 Specifies 16 dot fonts 16 ...

Page 31: ...umber ETX BCC Response Transfer Formats STX 42h Status ETX BCC 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 Horizontal card added writing recommended These four parameters specify how to write Required to...

Page 32: ...haracter text format If registering the image part way in a Y direction this sets the parameter expansion starting Y address With the total for the expansion starting address and the expansion image data exceed 320 dots a reject response is issued Command Transfer Formats STX 43h Expansion start X coordinate Expansion start Y address Expansion image data ETX BCC Response Transfer Format STX 43h St...

Page 33: ...e data length this automatically increments the X coordinate and expands to the next dot string If the image data length is 10 bytes and 20 bytes of image data which becomes 40 bytes after characters disintegrate into 4 bit pieces it is possible to specify 2 dot strings at the same time The maximum length of image data is 1024 bytes If all data to be transmitted with one command cannot all be spec...

Page 34: ...data 0 to 39 Expansion image data parameter Expresses each 8 dots using two characters of text LSB specifies the upper side bits MSB specifies the lower side bits In the example below this is 3A The maximum value that can be specified for image data is 1024 bytes 512 x 8 dots The number of image data should be an integer magnification of the image length Bit 0 3 33h Bit 1 Bit 2 Bit 3 Bit 4 A 41h B...

Page 35: ... length X Coordinate 1 The following equation is for the number of times to repeat the command when the image data count is an integer magnification of the data length Repeat count X direction dot count image data count data length 33 ...

Page 36: ...dot x 24 dot fonts 1 Vertical horizontal 16 dot x 16 dot fonts Commas Required to separate parameters External character registration number parameter This specifies the external character number to register To set print data any external print font can be printed by specifying this external character register number 0 to F can be specified External character font data parameter Specifies external...

Page 37: ... 12 13 14 15 16 17 18 19 20 21 22 23 24 Data 0 Font number 001000001000081020101010 A to D string 20000840380400FE0000FF01 E to H string 80FF0380FF03C0FF07DEFFF7 I to L string C0FF0780FF0380FF0300FF01 M to P string 00FE00003100400004201008 Q to T string 101010081020001000000000 U to X string ...

Page 38: ...ster 0 Vertical horizontal 24 dot x 12 dot fonts 1 Vertical horizontal 16 dot x 8 dot fonts Commas Required to separate parameters External character registration number parameter This specifies the external character number to register To set print data any external print font can be printed by specifying this external character register number 0 to F can be specified External character font data...

Page 39: ... The print expansion buffer and rasterized image register buffer are not cleared with the execution of the erase print command If a card is not inserted after this command is issued or to cancel the command issue the card insertion wait status cancel command 54h The processing time can vary depending on the card type ambient temperature and head heat Command Transfer Formats STX 46h Discharge meth...

Page 40: ...d rasterized image register buffer are not cleared with the execution of the print command If a card is not inserted after this command is issued or to cancel the command issue the card insertion wait status cancel command 54h The processing time can vary depending on the card type ambient temperature and head heat Command Transfer Formats STX 47h Discharge method specification ETX BCC Response Tr...

Page 41: ...STX 48h Status ETX BCC Parameter Explanation Discharge method specification parameter 0 Card after erase print is stopped at front idling position and held Card becomes a process target card 1 Card after erase print is discharged Card waits to be pulled out and is not a process target card 2 Card after print is discharged to back side Cannot be used with case accessory parts Reject response is iss...

Page 42: ...how to write Comma Required to separate parameters Data arrangement X coordinate parameter Specifies the X coordinate on the upper left edge of the image to expand When the data arrangement specification is 0 2 0 to 319 When the data arrangement specification is 1 3 0 to 479 Data arrangement Y coordinate parameter Specifies the Y coordinate on the upper left edge of the image to expand When the da...

Page 43: ...ess bar two images that extend the progress in the Y direction as shown below for the BMP file to register with the command 4Bh must be registered As an example the following will register three empty progress bars and four full progress bars The height of the BMP is 100 dots 1 4Ah 1 100 25 3 0 99 This arranges an empty progress bar from the 0 dot to the 99th dot on a horizontally arranged card 2 ...

Page 44: ...registered Using Microsoft Windows Paintbrush program canvas colors and sizes Attributes Must not exceed 320 for width and height simultaneously Must not exceed 480 for width and height Units are pixels Color is black and white 42 ...

Page 45: ...llowing shows the expansion direction and actual printing results BMP F ILE BMP F ILE BMP F ILE BMP F ILE Landscape Pr in t Por tra i t Pr in t X ax is Y ax is 0 0 X ax is Y ax is 0 0 X ax is Y ax is 0 0 X ax is Y ax is 0 0 X ax is 0 0 Y ax is X ax is 0 0 Y ax is X ax is 0 0 Y ax is X ax is 0 0 Y ax is 43 ...

Page 46: ... 0 10 Registers image as image number 10 15 Registers image as image number 15 When the text of the BMP data exceeds 1024 a large BMP file can be registered by specifying a mark instead of a register specification number There is no restriction to the number of continued registrations of BMP files using the mark on the reader writer so you can continue registering as long as the print area is not ...

Page 47: ...45 Space Page ...

Page 48: ...Example Image Sample Contents of File 46 ...

Page 49: ...11400110108090212012FF8001C000000000000001 0FFFFF07FE002000001002021001000480BFF803F800000000000003FFFFFFFFF49200451100008 004882420042FFFFFFF00000000000007FFFFFFFFE000090000044004400001044107FFFFFFC00 003F0000007FF003FFF8000400000401000112448001021FFFFFFE0001FF8000007F84089FE0222 0249240004410001008904895FFF8FFC01FFFC000007840800110000000000110010490812204000 051243FFFFFFFC000007D0000100200024000...

Page 50: ... method specification parameter 0 Discharge card to reuse position Discharged cards wait to be pulled out and are no longer process target cards When either the command to take the discharged card into the device the card rear side idle command or the card front side idle command or the removal wait status cancel command is executed the card becomes a process targeted card If there is a card waiti...

Page 51: ...e card insertion wait status cancel command 54h Command Transfer Formats STX 53h ETX 50h Response Transfer Formats STX 53h Status ETX BCC 3 Card rear side idle command This command transports and waits 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...

Page 52: ...n this command is executed the prior executing command is cancelled Command Transfer Formats STX 54h ETX 57h Response Transfer Formats STX 54h Status ETX BCC 5 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 waiti...

Page 53: ...ect response is issued Also if a card waiting for removal is at the inlet the device waits for that card to be removed and then starts the ticketing operation after its removal If there is no card in the ticketing device a no card status 22h is responded Command Transfer Formats STX 5Ch ETX 56h Response Transfer Formats STX 5Ch Status ETX BCC ...

Page 54: ...tatus data string ETX BCC The following shows the response block sensor status data string Sensor status data string First Sensor 1 status 0 No card in card inlet 1 Process targeted card in card inlet 2 Card waiting for removal Second Sensor 2 status 0 No Card 1 Card present Third Sensor 3 status 0 No Card 1 Card present Fourth Sensor 4 status 0 No Card 1 Card present Fifth Cover status 0 Cover cl...

Page 55: ... 1 00 X 1 2 3 4 5 6 1 Series name Six characters Mechanism part and TCP 2 Specifications code Two characters 3 Blank 4 Fixed at V 5 Version number integer field 1 decimal points two decimal points 6 Expansion code 3 LED buzzer control command This controls the STATUS LED and buzzer This does not control the CLEANING LED This command is enabled even when there is a command inserted between paramete...

Page 56: ...e the following codes for LED operation and buzzer setting data Code Function 20h Continues current operation 30h 0 Turns it off 31h 1 Turns it on 32h 2 Starts blinking 33h 3 Blinks once 34h 4 Blinks three times 4 Card transport count request command This command request the number of times cards have been transported in the device as a reference The transport count data string reads out the count...

Page 57: ... 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 STX 96h Data String ETX BCC Response Transfer Formats STX 96h Status Print count data ETX BCC ...

Page 58: ...d inside of the device the device will discharge it and wait for the cleaning card to be inserted After it is inserted the device will clean the magnetic head erase head and thermal head the set number of times then discharge the cleaning card and idle If the head is hot delay the cleaning until it has cooled Remarks Use of the cleaning card Idle the reader writer using the cleaning command Apply ...

Page 59: ...57 Command Transfer Formats STX 52h ETX 51h Response Transfer Formats STX 52h Status ETX BCC ...

Page 60: ...uses the device to discharge cards residing therein 2 Communication setting command This command makes the default settings relating to communications The setting is stored internally with the non volatile memory even when the power is cut When the power is turned on again the stored contents are handled as the default parameters Important Be careful that settings are not different from the system...

Page 61: ...serial number is a value between 1 and 127 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 1 to 3 digit parameters ETX BCC Parameters are described in three digit decimal values 0 can be omitted The ex factory default serial number is 0 Baud rate setting This command sets the baud rate when using a CMOS inter...

Page 62: ... is turned on again the stored contents are handled as the default parameters Important There is a limit to the number of times the non volatile memory can be used Issuing this command is limited to when starting up the system and frequent use should be avoided Command Transfer Formats ETX 91h Setting type Setting parameter ETX BCC Response Transfer Formats STX 91h Status ETX BCC ...

Page 63: ...Character space dot count 2 Line space M m 0 to F Line space dot count 2 Speed to take card in from rear S s 1 to F See explanation D LED control L l 0 to 3 LED control method specification 0 Initialize O o 0 Returns device to ex factory default settings 10 to 13 First track writing data format setting 11 20 to 23 Second track writing data format setting 22 Magnetic stripe format E e 30 to 33 Thir...

Page 64: ...he ESC sequence ESC B b in the print text data string are enabled only in the command but settings using this command function as default settings STX 91h B b character width setting ETX BCC Character width setting parameter 0 Sets ANK characters to narrow gothic 1 Sets ANK fonts to enhanced gothic 2 Disable or double enhanced gothic fonts are not possible with default settings Ex factory default ...

Page 65: ...g on cards STX 91h P p card arrangement direction setting ETX BCC Card arrangement direction setting parameter 0 Sets vertical card direction as the initial direction 1 Sets horizontal card direction as the initial direction The card arrangement direction when the device is shipped from the factory is set to the vertical position Magnetic stripe read retry count setting This command sets the numbe...

Page 66: ... ex factory magnetic write retry count setting is 2 times Cleaning operation repeat count setting This command sets the number of times to repeat the cleaning of the thermal head STX 91h U u cleaning count setting ETX BCC Cleaning count setting parameters 1 Sets cleaning count to 1 time 2 Sets cleaning count to 2 times 3 Sets cleaning count to 3 times 4 Sets cleaning count to 4 times 5 Sets cleani...

Page 67: ...g This command sets the single byte characters gap dot space Settings using the ESC sequence ESC d in the print text data string are enabled only in the command but settings using this command function as default settings STX 91h d single byte character gap dot space setting ETX BCC Single byte character gap dot space setting parameters 0 Sets the singe byte character gap dot space setting to 0 1 ...

Page 68: ...Sets the line gap dot space setting to 13 dots E Sets the line gap dot space setting to 14 dots F Sets the line gap dot space setting to 15 dots The ex factory line gap dot space setting is 2 dots Rear side card handling transport speed setting mechanism part This command sets the transport speed when handling cards from the rear side In the system it is possible to synchronize the transport speed...

Page 69: ... L l operation setting ETX BCC Operation setting parameters 0 LED does not light and buzzer does not ring when there is a card inserting request or removal request 1 Buzzer rings when there is a card removal request LED displays an insertion request 2 LED lights to display there is a card removal request LED displays an insertion request 3 LED lights and buzzer rings to display that there is a car...

Page 70: ...ne track of a magnetic head 20 Sets track 2 to JISX6302 recording method 21 Sets track 2 to ISO781 1 2 first track recording method 22 Sets track 2 to ISO781 1 2 second track recording method 23 Sets track 2 to ISO781 1 2 third track recording method The ex factory default setting for track 2 is 21 Also for a 1 track version TCP300 the first and third tracks cannot be set 4 Media setting command T...

Page 71: ...ecimal 0 to 3F can be specified for media codes including those for conventional extensions Refer to the TCP300 series media specifications manual for details relating to the media codes for use Commas Required to separate parameters Non magnetic force Sets the non magnetic force of the magnetic stripe to 0 to 3 0 300 Oe 23 9 KA m 1 650 Oe 51 7 KA m 2 1750 Oe 139 KA m 3 2750 Oe 219 KA m ...

Page 72: ...e then turn the power on again 6 The LEDs will flash alternately several times and STATUS will light The buzzer will beep twice 7 Startup the flash memory loading program Use PORT to set the communication conditions When using a LAN interface set the IP address When settings are completed click OK 8 Use flash memory loading program WRITE to select the firmware 9 Loading starts Do not turn the powe...

Page 73: ...d buzzer flash two times while CLEANING lights EEPROM error STATUS and buzzer flash three times while CLEANING lights Print head lifter motor error STATUS and buzzer flash four times while CLEANING lights Erase head thermistor error CLEANING and buzzer flash two times while STATUS lights Print head thermistor error CLEANING and buzzer flash three times while STATUS lights Other errors CLEANING and...

Page 74: ...k on the CLEANING switch again to cause the LED to flash in orange This will enter the self test mode In the self test mode the device waits for a card to be inserted then writes test data to the magnetic stripe after the card is inserted The results of the test data of the internal EEPROM setting status and the device version are printed onto the card and then the card is discharged When using a ...

Reviews: