Star MicronicsメーカーTCP300II Seriesの使用説明書/サービス説明書
ページ先へ移動 of 67
TCP300II Series Product Specifications Manual Commands First Release: October 21, 2005 Star Micronics Co., Ltd. Special Products Operating Division.
-ii- Table of Contents 1. APPLICATION 1 2. PRECAUTIONS FOR PROGRAMMI NG AND FOR HANDLING 1 3. COMMUNICATION SPECIFICATIONS 2 3-1. Communication Procedures ------------------------------------------------------------------------- 2 3-2. Transmission C ontrol Matrix ------------------------------------------------------------------------- 4 3-3.
1 1. APPLICA TION This manual describes the commands rela ting to the TCP300II series printers. 2. PRECAUTIONS FOR PROGR AMMING AND FOR HANDLING • The volatile memory writing life is approximatel y one million times. The expect ed life will be reached by frequent use, wh ich can cause problems in the operation of the printer.
2 3. COMMUNICA TION SPECIFICA TIONS 3-1. Communication Procedures This device communicates with its host us ing block transmission s of resend requests. When communications are started from the host, the host will transmit a command block to the reader/writer.
3 DLE Sequence Host Reader/writer Command sent → Command received DLE received ← DLE sent See section 2-5. Transmission Control Characters for details regarding ACK, NAK and DLE character codes.
4 3-2. Transmission Control Matrix Event Host status ACK received NAK receiv ed DLE received Response received No response Idling Read and discarded Read and discarded Read and discarded Read and disc.
5 3-3. Transmission Control Matrix (Reader Type) Event TCP status STX received ETX received Other receptions ACK received NAK received No response 1 Idling → 2 Read and discarded → 1 Read and disc.
6 3-4. Command and Response Transfer Formats Command Transfer Formats STX Commands Data String ETX BCC Response Transfer Formats STX Commands Status Data String ETX BCC Data string must be within 1024 bytes. BCC is an exclusive logic sum from the command to ETX.
7 3-6. Cards for Processing The cards that can be processed are called readable and writable cards . When the card is inserted into the in let, it is a process targeted card. When the process is completed, the card idles in the machine, and is a process targeted card.
8 3-8. Reading the Buffer It is possible to read the buffer when a card that has been read/written is idling. The b uffer read commands (29h, 2Ah, 2Bh) obtains the read data stored in the read buffer on the visual card reader/writer.
9 3-9. Commands and Status Lists (1) Command List Code Content of Command Applicable Models Class 21h First track read command 310 22h Second track read command 300/310 23h Third track read command 31.
10 Code Content of Command Class 59h Status Request Command 58h ROM version request command 5Ah LED, buzzer control command 95h Card transport count request command 96h Print count request command Inf.
11 (2) Status List The following shows t he content of status. When there is the status code 20h there is no e rror. Anything other t han 20h, it is recommended to branch the error and processing. Error notification codes may change or be added to without prior notice.
12 4. COMMAND DET AIL S 4-1. Magnetic Stripe Commands (1) Third track read command (Model: 310) General Description This command idles the first track read of a m agnetic strip encoded in t he following formats.
13 (2) 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.
14 (4) First track read (sta tus with no card) command (Model: 310) General Description This command idles the first track read of a m agnetic strip encoded in t he following formats.
15 (5) 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.
16 (7) First track b uffer 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 Rever.
17 (9) 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 Revers.
18 (11) Reverse 7 b it 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.
19 (12) Rever se 7 bit format third track data setting command (Model: 310) This command sets the write data to the th ird 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.
20 (15) 7 bit format third track data setting command (Model: 310) This command sets the write data to t he 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.
21 (17) Second track data set ting command (Models: 300/310) This command sets the second track write data. The magnetic format of the writ e data corresponds to the following formats, but the format that is set abides by the content of the preset memory switc hes.
22 (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 onl y when normal write data is set for all specified write tracks.
23 (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 .
24 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 val ue according to the environment of use. (1) Print expansion buffer clear command This command clears the print expansion buffer only.
25 (3) Print character data setting command This command expands character data to be print ed (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.
26 Parameter Explanation Print control header string The print control header string is composed of t he card arrangement direction parameter, the X coordinate specificati on parameter string, the Y coordinate specification parameter string, and a comma for separating each parameter.
27 Notes: The Y coordinate specification para meter 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 mini mum value of the Y coordinate specification value is 15.
28 • ESC I This expands a specified 16 dot 2-byte external characters FONT in the print expansion buffer memory. ESC ‘I’ next parameter range: ‘0’ to ‘F’ 1 digit configuration ESC “I0.
29 • ESC d Sets the dot space for gaps in si ngle-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.
30 Command Transfer Formats ST X 42h Data arrangement specificati on ‘,’ Data arrangement X coordinate ‘,’ Data arrangement Y coordinate ‘,’ Expansio n image specification number ETX BCC R.
31 (5) External image data expand command This command sets the image data to the raster ized image register buffer (volatile memory). Assuming that the card is horiz ontally oriented, this registers a maximum of 320 vertical dot image expansion data to the posit ion specified with the X c oordinate on the buffer for one page.
32 (6) External image data expand command This command sets the image data to the raster ized image register buffer (volatile memory). Image data is expanded f rom the expansion starting X coordinat e and the expansion starting Y coordinate (byte: 8 dot units ) with the range specified by the image data length.
33 • 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 by tes (8 dot u nits). When making minute adjustments to the image print position in the Y direction, adjust the top and bottom margins on the image data.
34 (7) Tw o-byte external character font register command This command registers 24 dot or 16 dot two-by te fonts to the external character buffer (the volatile memory) as external fonts. Along with sizes, 16 f onts can be registered. Reregistering set fonts over writes the existing ones.
35 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 1 2 ● 3 ● 4 ● ● ● 5 ● ● ● 6 ● ● 7 ● ● ● ● ● 8 ●●●●●●● 9 ● ●●●●●●●● 10 .
36 (8) Single-byte external character font r egister command This command registers 24 dot or 16 dot single-by te fonts to th e external character buffer to the (volatile memory) as external fonts.
37 (9) Erase + print → discharge command This command performs the operatio ns specifying the c ontrol methods for deleting, printing and discharging.
38 Cards after discharged to the front after eras ing/ printing in the same way as parameter specification 1. This parameter specificati on method (specifying only the di scharge control method) is completely compatible with the conv entional erase + discharge command (46h).
39 (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 th e device, then starts erasing.
40 (12) Bar Code Data Setting Commands These commands expand bar code strip patterns and subscript to the print ex pansion buffer . The print data string is composed of the bar code control header string and t he bar code data string .
41 • ‘,' (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.
42 Bar Code Data String Suffixes by Code Set Bar Code Data ASCII CODESE T A CODESET B CODESE T C chr(&H10) "1 0" → 0 0 16 chr(&H11) "1 1" → 1 1 17 chr(&H12) "1.
43 Bar Code Data String Suffix es by Code Set Bar Code Data ASCII CODESET A CODESET B CODESET C chr(&H40) "4 0" → (NUL) ’ 64 chr(&H41) "4 1" → (SOH) a 65 chr(&H42.
44 • 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.
45 4-3. Card Commands (1) 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 specif ication parameter and is either discharged to a position where it can be reused, or completely discharged.
46 (3) 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.
47 (5) Card removal w ait status cancel command This command makes a card in the device that is waiting removal a process targeted card. A card that is executing t he erase + print command, the er ase command or the discharge command becomes a card waiting removal by the user.
48 4-4. Information Display Commands (1) 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 characte r composed of six characters.
49 (2) ROM version request command This command acquires the ROM version info rmation (model name and version) of the reader/writer. Command Transfer Formats STX 58h ETX 5Bh Response Transfer Formats STX 58h Status ROM information ETX BCC The following shows the response bl ock ROM information data string.
50 Use the following codes for the LED color setting data. Use the following codes for LED operation and buzzer setting data. Code Function 20h ‘ ’ Continues current operation 30h ‘0’ Turns OF.
51 (5) Print count request command This command requests the numbe r printings, as a reference. The print count data stri ng is 10 digits long. When the power is cut, the transport count less than 10 times is rounded down.
52 4-5. Cleaning Command (1) 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.
53 4-6. Other Commands (1) 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 co mmand is received while executing another command, the device quits the execution of that command.
54 Specifying USB Serial Number This command sets the terminal individual number when using a U SB interface. If the serial number is a value between 0 and 9, the hos t COM number can be value unique to that terminal. The COM port varies with the port to use when the serial number is 0.
55 Setting Type and Parameter List (Types are set alphabetic char acters and parameter are set by numerical values) Contents Type Parameters Functions Initial Value ‘0’ Two-byte font specification.
56 • 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 pr int text data string.
57 • 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 prin ting control header string.
58 • Magnetic stripe write retry count setting This command sets the number of times the devic e will retry to write to the magnetic stripe. Settings using this command function as def ault settings in the magnetic stripe write → idle command 31h and magnetic stripe write → idle (status with no card) command 32h.
59 • Two-byte characters gap dot space setting (JP/GP2312 or GB180 30, BIG5, KR) This command sets the two-byte characters gap dot space. Settings using the ESC sequence (ESC, D) in the print text d.
60 • Line gap dot space setting This command sets the line gap dot space. Se ttings using the ESC s equence (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.
61 • Magnetic format reading dir ection conforming to JISX6302 This command sets the magnetic format readi ng direction conforming to JISX6302 Settings using this command function as default setting.
62 5. MA TERIALS 5-1. Switching Firmware Use the following steps to switch the firmware of the device. 1. Install the flash memory loading program into your PC. 2. Copy the firmware to any folder. 3. Turn off the power to the devic e, then mount either of the applicable interfac es of serial, USB, or LAN.
63 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, wi thout lighting the LED when recovering fro m a transport path open state, when t he reset command is executed.
64 5-5. Recommended Timeout 21 Fi rst tr ack read comm and After card insertion, t rack 1 read, data re quest (form at autom atic j udgment) 6000+ α *1 22 Second track read comm and Aft er card inse .
REV. 1 . 0 0 200 6 .0 1 .2 7 Printed in Japan, 808747 05 OVERSEAS SUBSIDIARY COMPANIES STAR MICRONICS AMERICA, INC. 1150 King Georges Post Road, Edison, NJ 08837-3729 U.S.A. Tel : 732-623-5555 Fax : 732-623-5590 http://www.starmicronics.com ELECTRONIC PRODUCTS DIVISION STAR MICRONICS CO.
デバイスStar Micronics TCP300II Seriesの購入後に(又は購入する前であっても)重要なポイントは、説明書をよく読むことです。その単純な理由はいくつかあります:
Star Micronics TCP300II Seriesをまだ購入していないなら、この製品の基本情報を理解する良い機会です。まずは上にある説明書の最初のページをご覧ください。そこにはStar Micronics TCP300II Seriesの技術情報の概要が記載されているはずです。デバイスがあなたのニーズを満たすかどうかは、ここで確認しましょう。Star Micronics TCP300II Seriesの取扱説明書の次のページをよく読むことにより、製品の全機能やその取り扱いに関する情報を知ることができます。Star Micronics TCP300II Seriesで得られた情報は、きっとあなたの購入の決断を手助けしてくれることでしょう。
Star Micronics TCP300II Seriesを既にお持ちだが、まだ読んでいない場合は、上記の理由によりそれを行うべきです。そうすることにより機能を適切に使用しているか、又はStar Micronics TCP300II Seriesの不適切な取り扱いによりその寿命を短くする危険を犯していないかどうかを知ることができます。
ですが、ユーザガイドが果たす重要な役割の一つは、Star Micronics TCP300II Seriesに関する問題の解決を支援することです。そこにはほとんどの場合、トラブルシューティング、すなわちStar Micronics TCP300II Seriesデバイスで最もよく起こりうる故障・不良とそれらの対処法についてのアドバイスを見つけることができるはずです。たとえ問題を解決できなかった場合でも、説明書にはカスタマー・サービスセンター又は最寄りのサービスセンターへの問い合わせ先等、次の対処法についての指示があるはずです。