Star Micronics Printer TCP300II Series User Manual

TCP300II Series  
Product Specifications Manual  
Commands  
First Release: October 21, 2005  
Star Micronics Co., Ltd.  
Special Products Operating Division  
 
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. Therefore, only use the model set command (91h) and the cleanin  
g yes/no command (5Bh) when starting up the system.  
Note that the parameters that can be set by the model setting command (91h), des  
cribe the font size and character spacing with the escape sequence in the print dat  
a setting command (41h).  
The print head and erase head are hot. To prevent a dangerous situation, do not  
carelessly open the transport path.  
A warning buzzer is installed to ring when the cover is opened. It is possible to send and  
receive commands, and to process cards in this state, but to prevent a dangerous situation,  
close the cover quickly.  
The buzzer will ring and the LED will flash when the transport path is opened. In this state,  
commands cannot be received and cards cannot be processed.  
Closing the transport path after opening it will reset the device. Always reset the  
magnetic data and print data because the memory expanded on the memory is destroyed.  
Magnetic reading and writing can experience errors by damaged magnetic data caused  
by dirty magnetic cards and external magnetic fields. Carefully handle those errors.  
Particularly, you should develop a system for recovering erroneous cards when writing errors  
occur.  
Printing times can vary depending on the ambient temperature and temperature of the  
thermal head. In particularly low temperature locations, processing of cards may take more  
time than usual, but this is not a system failure. Rewriting to magnetic cards will be repeated  
several times (when the device is set to rewrite several times) when they are dirty from  
repeated magnetic reading and writing, or if magnetic data is damaged by an external  
magnetic field. Therefore, the timeout setting to the response after sending a command  
should be set to a value higher than the one recommended.  
Turn off the power before switching the interface cartridge or changing settings.  
To maintain print quality and magnetic reading and writing performance, clean the device  
once a day. If possible, consider such a warning system to operate when starting up the  
device every day.  
Dirt adhering to the magnetic card will cause the magnetic head and transport rollers to wear  
out. Avoid using dirty cards.  
Magnetic reading and writing performance will drop if the magnetic head and magnetic card  
cannot be brought close together. Do not place adhesive tape on or bend magnetic  
cards.  
When the cleaning lamp flashes, clean the device. (This is when the cleaning warning  
setting is enabled.)  
1
 
 
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).  
If the reader/writer responds with the ACK characters, the device will execute the command  
that was sent by the host.  
When the command has been executed, the reader/writer returns a response block to the  
host.  
The host needs to respond either the ACK or NAK characters in response to the returned  
response block.  
If the host responds with the ACK characters, the command is completed, and it is ready to  
send the next command.  
When the reader/writer receives a command block, it calculates the command block BCC,  
and compares it with 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 the results that are compared, the  
host must respond with the NAK characters.  
When the host responds with the NAK characters, the reader/writer resends the response  
block.  
There is no limit to the number of times to resend requests or sequences. Therefore, the host  
side must be controlled.  
If the reader/writer detects an error in the command block sent by the host, it will respond with  
the DLE characters. When the reader/writer responds to the command block sent by the host  
with the DLE characters, the command that was sent becomes invalid and no response block  
is subsequently sent.  
Normal sequence  
Host  
Command Sent  
ACK received  
Reader/writer  
Command received  
ACK sent  
Command processed  
Response sent  
ACK received  
Response received  
ACK sent  
Sequence resent  
Host  
Command Sent  
NAK received  
Command resent  
ACK received  
Reader/writer  
Command received  
NAK sent  
Command received  
ACK sent  
Command processed  
Response sent  
NAK received  
Response received  
NAK sent  
Response received  
ACK sent  
Response resent  
ACK received  
2
 
 
DLE Sequence  
Host  
Command sent  
DLE received  
Reader/writer  
Command received  
DLE sent  
See section 2-5. Transmission Control Characters for details regarding ACK, NAK and  
DLE character codes.  
3
 
3-2.  
Event  
Host status  
Idling  
Transmission Control Matrix  
ACK received  
NAK received  
DLE received  
Response received  
Read and discarded  
No response  
Read and discarded  
Read and discarded  
Read and discarded  
Nothing occurs  
After command is  
sent  
waiting to receive  
ACK  
Resend  
block or process as  
communication error  
command  
If  
timeout  
error,  
process timeout error  
ACK received  
Command withdrawn  
Reset TCP  
Receive  
response Do nothing or process  
After ACK received  
waiting to receive  
response  
Reset TCP  
Reset TCP  
Reset TCP  
Reset TCP  
Reset TCP  
Reset TCP  
Reset TCP  
Reset TCP  
Reset TCP  
block, respond with timeout error  
ACK or NAK  
After  
response  
Send next command  
Reset TCP  
received ACK  
Receive response If  
block, send ACK or process timeout error  
NAK  
timeout  
error,  
After  
response  
received NAK  
Notes:  
1. There is no time limit to send 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, execute the  
command after inserting the card. Therefore, when not inserting a card, the execution of the command stops, and the response block transmission  
stops. Commands can be deleted using the reset command (5Fh), or the card insertion wait status cancel command (54h).  
4. The reset command (5Fh) can be executed even while another command is being executed. If the reset command (5Fh) is issued while another  
command is being executed, that command will be terminated. Therefore, there is no response block for that command that was executed before  
the reset command (5Fh). To execute the reset command (5Fh), wait approximately 3 seconds for the visual card reader/writer to initialize.  
4
 
 
3-3.  
Transmission Control Matrix (Reader Type)  
Event  
STX received  
ETX received  
Other receptions  
ACK received  
NAK received  
No response  
TCP status  
1 Idling  
Read and  
discarded1  
Read and  
discarded1  
If data error  
DLE sent 1  
If data normal  
buffering 2  
Read and  
discarded1  
Read and  
discarded1  
2  
1  
If data error  
DLE sent 1  
If data normal  
buffering 2  
If data error  
DLE sent 1  
If data normal  
Buffering 2  
2 Command received  
3 BCC received  
Buffering 2  
Buffering 3  
2  
If BCC matched  
If BCC matched If BCC matched If BCC matched If BCC matched  
4 4 4  
4  
If BCC does not If BCC does not If BCC does not If BCC does not If BCC does not  
4  
3  
match  
match  
match  
match  
match  
NAK sent1  
NAK sent1  
NAK sent1  
NAK sent1  
NAK sent1  
4 Wait for ACK after  
response sent  
Read and  
discarded4  
Read and  
discarded4  
Read and  
discarded4  
Response  
resend 4  
1  
4  
When a priority command, such as Reset command, is sent while another command is being executed, that command is canceled, and a priority  
command response is returned.  
5
 
 
3-4.  
Command and Response Transfer Formats  
Command Transfer Formats  
STX  
Commands Data String  
ETX  
BCC  
Response Transfer Formats  
Commands  
STX  
Status  
Data String  
ETX  
BCC  
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  
02h  
Function  
Text start symbol  
STX  
ETX  
ACK  
NAK  
DLE  
LF  
03h  
06h  
15h  
10h  
0Ah  
1Bh  
-
Text end symbol  
Normal response  
Resent request  
Reject response  
Line feed of printed line  
Start escape sequence  
Block check character  
ESC  
BCC  
BCC is an exclusive logic sum from the command to ETX.  
6
 
 
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.  
Cards discharged from the device are removal waiting cards and are no longer process  
target cards.  
To process these cards, they must be removed from the device once, and then reinserted, or  
they can be processed by employing the removal wait cancel command (55h).  
3-7.  
Retrying and Verifying  
The visual card reader/writer will retry to read or to write to a card when it fails to read or write  
data to the magnetic stripe. (This is when a retry count is set.)  
When the set number of failures to read or to write is reached, reading or writing is canceled.  
The device rereads the magnetic stripe after writing thereto. If the data that it reads does not  
match the data that was written, it detects a writing error.  
This reading of the data is called ‘verifying' and is performed automatically.  
The default value for retries is set to two times (total of three).  
7
 
 
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. The result is high speed reading of the card.  
The card will be transported and read if the card is not idling or by using the buffer read  
commands (29h, 2Ah, 2Bh) when the read/write operation has not been performed before  
executing the buffer read commands (29h, 2Ah, 2Bh).  
This buffer read commands (29h, 2Ah, 2Bh) is a similar operation to the read cache.  
8
 
 
3-9.  
Commands and Status Lists  
(1)  
Command List  
Applicable  
Models  
Code  
Content of Command  
Class  
21h First track read command  
22h Second track read command  
23h Third track read command  
310  
300/310  
310  
25h First track read (status with no card) command  
26h Second track read (status with no card) command  
27h Third track read (status with no card) command  
29h First track buffer read command  
310  
300/310  
310  
310  
2Ah Second track buffer read command  
300/310  
310  
2Bh Third track buffer read command  
Magnetic stripe  
commands  
35h Reverse 7 bit format first track data setting command  
36h Reverse 7 bit format second track data setting command  
37h Reverse 7 bit format third track data setting command  
38h 7 bit format first track data setting command  
39h 7 bit format second track data setting command  
3Ah 7 bit format third track data setting command  
3Bh First track data setting command  
310  
300/310  
310  
310  
300/310  
310  
310  
*1  
3Ch Second track data setting command  
3Dh Third track data setting command  
31h Magnetic strip write idle command  
300/310  
310  
Data format set by EEPROM.  
300/310  
300/310  
32h Magnetic strip write idle (status with no card) command  
40h Print expansion buffer clear command  
49h Buffer clear command  
41h Print data setting command  
42h Embedded image data 1 expand command  
43h External image data expand command (line mode)  
44h Two-byte external character font register command  
45h Single-byte external character font register command  
46h Delete + print discharge command  
47h Print discharge command  
Print, delete  
commands  
*3  
*3  
48h Delete discharge command  
4Dh External data expand command (block mode)  
4Eh Bar code data setting command  
50h Card discharge command  
53h Card front idle command  
Card  
51h Card back idle command  
commands  
54h Card insertion wait status cancel command  
55h Card removal wait status cancel command  
9
 
 
Code  
Content of Command  
Class  
59h Status Request Command  
58h ROM version request command  
5Ah LED, buzzer control command  
Information  
display  
commands  
95h Card transport count request command  
96h Print count request command  
5Bh Cleaning button enable/disable command  
52h Cleaning command  
Cleaning  
commands  
5Fh Reset command  
Other  
90h Communication setting command  
91h Model setting command  
commands  
Model Details  
300: 1 Track magnetic head model (TCP300**)  
310: 3 Track magnetic head model (TCP310**)  
* 1 EEPROM default values are listed below.  
3 Track magnetic head model (TCP310**)  
3Bh:  
3Ch:  
3Dh:  
6 bit + 1 parity ISO7811/2 First track recording model  
4 bit + 1 parity ISO7811/2 Second track recording model  
4 bit + 1 parity ISO7811/2 Third track recording model  
1 Track magnetic head model (TCP300**)  
3Bh:  
3Ch:  
3Dh:  
Not supported  
6 bit + 1 parity ISO7811/2 Second track recording model  
Not supported  
* 3:The same operations can be attained by setting the parameter to the 46h command.  
Please use this.  
10  
 
(2)  
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.  
Code  
20h  
22h  
23h  
31h  
32h  
33h  
34h  
37h  
38h  
40h  
41h  
42h  
43h  
45h  
4Ch  
51h  
Status Content  
Rank  
Normal  
No target card (only when using a no card status command)  
No magnetic stripe (when inserted backward) or other error  
Parity Error  
C
C
B
B
B
B
B
B
B
C
A
A
A
C
C
No start code/end code  
LRC Error  
Erroneous character  
Magnetic stripe writing error  
Card jam  
Cover open  
Invalid command  
Cam motor error  
Erase head temperature error  
EEPROM error  
Non-compatible BMP file data  
Expand buffer overflow  
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 repair the reader/writer.  
Rank C: Minor error or errors that can be easily recovered from that do not occur except  
when debugging software. If these repeatedly occur, it may be necessary to inspect  
and repair the reader/writer.  
These ranks have been established based upon their potential to occur under  
normal operating conditions.  
11  
 
4. COMMAND DETAILS  
4-1.  
Magnetic Stripe Commands  
(1) 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*  
• Reverse 7-bit + 1 parity Reverse direction writing format of the format above*  
• 6-bit + 1 parity (called 6-bit format below) conforming to ISO 7811/2 first track  
• 4-bit + 1 parity (called 4-bit format below) conforming to ISO 7811/2 second/third tracks  
However, the second track is in 70 bpi format.  
The starting symbol in the magnetic stripe automatically determines what format to use to  
read the card.  
Note that this command cannot be used with on models with one magnetic stripe (TCP300).  
*: The reading direction of JISX6302 conforming magnetic formats follows the preset memory  
switch setting. See Model Setting Commands (91h) for details.  
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 idling card, it will wait until one is inserted into the device, the being to read 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 possible to read the buffer while the card is idling.  
The results of the command are stored in the response block status field.  
The following shows the read data string.  
Format  
7-bit format:  
Data Length  
0 to 69 bytes of variable length data  
Character Code  
(01h to 7Eh)  
Excluding 02h and 03h  
(01h to 7Eh)  
Reverse 7-bit format: 0 to 69 bytes of variable length data  
Excluding 02h and 03h  
6-bit format:  
4-bit format:  
0 to 76 bytes of variable length data  
0 to 104 bytes of variable length data (30h to 3Eh)  
(20h to 5Eh)  
The magnetic stripe starting and ending symbols, LRC and parity bit are not included in the  
read data string.  
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) after canceling the state of communication.  
Command Transfer Formats  
STX  
21h  
ETX  
BCC  
BCC = 22h  
Response Transfer Formats  
STX 21h Status  
Read Data String ETX  
BCC  
12  
 
 
(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.  
• 7-bit format conforming to JISX6302*  
• Reverse 7-bit + 1 parity Reverse direction writing format of the format above*  
• 6-bit format conforming to ISO 7811/2 first track  
• 4-bit format conforming to ISO 7811/2 second and third tracks  
However, the second track is in 70 bpi format.  
See the first track read command for details on other descriptions and operations.  
*: The reading direction of JISX6302 conforming magnetic formats follows the preset memory  
switch setting. See Model Setting Commands (91h) for details.  
Command Transfer Formats  
STX  
22h  
ETX  
BCC  
BCC = 21h  
Response Transfer Formats  
STX 22h Status  
Read Data String ETX  
BCC  
(3)  
Third track read command (Model: TCP310)  
General Description  
This command waits for the third 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*  
• 6-bit format conforming to ISO 7811/2 first track  
• 4-bit format conforming to ISO 7811/2 second and third tracks  
However, the second track is in 70 bpi format.  
Note that this command cannot be used with on models with one magnetic stripe (TCP300).  
See the first track read command for details on other descriptions and operations.  
*: The reading direction of JISX6302 conforming magnetic formats follows the preset memory  
switch setting. See Model Setting Commands (91h) for details.  
Command Transfer Formats  
STX  
23h  
ETX  
BCC  
BCC = 20h  
Response Transfer Formats  
STX 23h Status  
Read Data String ETX  
BCC  
13  
 
(4)  
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*  
• 6-bit format conforming to ISO 7811/2 first track  
• 4-bit format conforming to ISO 7811/2 second and third tracks  
However, the second track is in 70 bpi format.  
The starting symbol in the magnetic stripe automatically determines what format to use to  
read the card.  
Note that this command cannot be used with on models with one magnetic stripe (TCP300).  
*: The reading direction of JISX6302 conforming magnetic formats follows the preset memory  
switch setting. See Model Setting Commands (91h) for details.  
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 targeted card, set the no card status (22h) to the response block status field and  
quit the command. In that case, the read data string field does not exist. If there is a card  
waiting to be removed from the device when issuing this command, discharge it.  
The results of the command are stored in the response block status field.  
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.  
The following shows the read data string.  
Format  
Data Length  
Character Code  
7-bit format: 0 to 69 bytes of variable length data(01h to 7Eh)  
Excluding 02h and 03h  
Reverse 7-bit format: 0 to 69 bytes of variable length data(01h to 7Eh)  
Excluding 02h and 03h  
6-bit format: 0 to 76 bytes of variable length data(20h to 5Eh)  
4-bit format: 0 to 104 bytes of variable length data  
(30h to 3Eh)  
The magnetic stripe starting and ending symbols, LRC and parity bit are not included in the  
read data string.  
After this command is issued, it is possible to read the buffer while the card is idling.  
Command Transfer Formats  
STX  
25h  
ETX  
BCC  
Response Transfer Formats  
STX 25h Status  
Read Data String ETX  
BCC  
14  
 
(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.  
• 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  
• 4-bit format conforming to ISO 7811/2 second and third tracks  
However, the second track is in 70 bpi format.  
See the first track read (status with no card) command for details on other descriptions and  
operations  
*: The reading direction of JISX6302 conforming magnetic formats follows the preset memory  
switch setting. See Model Setting Commands (91h) for details.  
Command Transfer Formats  
STX  
26h  
ETX  
BCC  
Response Transfer Formats  
STX 26h Status  
Read Data String ETX  
BCC  
(6)  
Third track read (status with no card) command (Model: 310)  
General Description  
This command waits for the third 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*  
• 6-bit format conforming to ISO 7811/2 first track  
• 4-bit format conforming to ISO 7811/2 second and third tracks  
However, the second track is in 70 bpi format.  
Note that this command cannot be used with on models with one magnetic stripe (TCP300).  
See the first track read (status with no card) command for details on other descriptions and  
operations  
*: The reading direction of JISX6302 conforming magnetic formats follows the preset memory  
switch setting. See Model Setting Commands (91h) for details.  
Command Transfer Formats  
STX  
27h  
ETX  
BCC  
Response Transfer Formats  
STX 27h Status  
Read Data String ETX  
BCC  
15  
 
(7)  
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  
• 4-bit format conforming to ISO 7811/2 second and third tracks  
However, the second track is in 70 bpi format.  
See the first track read command for details.  
Note that this command cannot be used with on models with one magnetic stripe (TCP300).  
*: The reading direction of JISX6302 conforming magnetic formats follows the preset memory  
switch setting. See Model Setting Commands (91h) for details.  
Command Transfer Formats  
STX  
29h  
ETX  
BCC  
Response Transfer Formats  
STX 29h Status  
Read Data String ETX  
BCC  
(8)  
Second track buffer read command (Models: 300/310)  
This command acquires the second 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  
• 4-bit format conforming to ISO 7811/2 second and third tracks  
However, the second track is in 70 bpi format.  
See the second track read command for details.  
*: The reading direction of JISX6302 conforming magnetic formats follows the preset memory  
switch setting. See Model Setting Commands (91h) for details.  
Command Transfer Formats  
STX  
2Ah  
ETX  
29h  
Response Transfer Formats  
STX 2Ah Status  
Read Data String ETX  
BCC  
16  
 
(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 Reverse direction writing format of the format above*  
• 6-bit format conforming to ISO 7811/2 first track  
• 4-bit format conforming to ISO 7811/2 second and third tracks  
However, the second track is in 70 bpi format.  
See the third track read command for details.  
Note that this command cannot be used with on models with one magnetic stripe (TCP300).  
*: The reading direction of JISX6302 conforming magnetic formats follows the preset memory  
switch setting. See Model Setting Commands (91h) for details.  
Command Transfer Formats  
STX  
2Bh  
ETX  
BCC  
Response Transfer Formats  
STX 2Bh Status  
Read Data String ETX  
BCC  
(10) Reverse 7 bit format first track data setting command (Model: 310)  
This command sets the write data to the first 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.  
The starting and ending symbols, LRC and parity bit on the magnetic stripe are all  
automatically applied. A reject response is issued when an error is detected in the write data.  
Note that this command cannot be used with on models with one magnetic stripe (TCP300).  
* This command generates magnetic strip data that is in the direction opposite to the 7 bit  
format first track data setting command 38h.  
Command Transfer Formats  
STX  
35h  
Write data string ETX  
BCC  
Response Transfer Formats  
STX 35h Status  
ETX  
BCC  
17  
 
(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.  
The starting and ending symbols, LRC and parity bit on the magnetic stripe are all  
automatically applied. A reject response is issued when an error is detected in the write data.  
* This command generates magnetic strip data that is in the direction opposite to the 7 bit  
format second track data setting command 39h.  
Command Transfer Formats  
STX  
36h  
Write data string ETX  
BCC  
Response Transfer Formats  
STX 36h Status  
ETX  
BCC  
18  
 
(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.  
The starting and ending symbols, LRC and parity bit on the magnetic stripe are all  
automatically applied. A reject response is issued when an error is detected in the write data.  
Note that this command cannot be used with on models with one magnetic stripe (TCP300).  
* This command generates magnetic strip data that is in the direction opposite to the 7 bit  
format third track data setting command 3Ah.  
Command Transfer Formats  
STX  
37h  
Write data string ETX  
BCC  
Response Transfer Formats  
STX 37h Status  
ETX  
BCC  
(13) 7 bit format first track data setting command (Model: 310)  
This command sets the write data to the first 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 stripe are all  
automatically applied. A reject response is issued when an error is detected in the write data.  
Note that this command cannot be used with on models with one magnetic stripe (TCP300).  
Command Transfer Formats  
STX  
38h  
Write data string ETX  
BCC  
Response Transfer Formats  
STX 38h Status  
ETX  
BCC  
(14) 7 bit format second track data setting command (Models: 300/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 stripe are all  
automatically applied. A reject response is issued when an error is detected in the write data.  
Command Transfer Formats  
STX  
39h  
Write data string ETX  
BCC  
Response Transfer Formats  
STX 39h Status  
ETX  
BCC  
19  
 
(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.  
The starting and ending symbols, LRC and parity bit on the magnetic stripe are all  
automatically applied. A reject response is issued when an error is detected in the write data.  
Note that this command cannot be used with on models with one magnetic stripe (TCP300).  
Command Transfer Formats  
STX  
3Ah  
Write data string ETX  
BCC  
Response Transfer Formats  
STX 3Ah Status  
ETX  
BCC  
(16) First track data setting command (Model: 310)  
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  
• Reverse 7-bit format Reverse direction writing format of the format above  
• 6-bit format conforming to ISO 7811/2 first track  
• 4-bit format conforming to ISO 7811/2 second and third tracks  
However, the second track is in 70 bpi format.  
The starting and ending symbols, LRC and parity bit on the magnetic stripe are all  
automatically applied. A reject response is issued when an error is detected in the write data.  
Command Transfer Formats  
STX  
3Bh  
Write data string ETX  
BCC  
Response Transfer Formats  
STX 3Bh Status  
ETX  
BCC  
20  
 
(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.  
• 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  
• 4-bit format conforming to ISO 7811/2 second and third tracks  
However, the second track is in 70 bpi format.  
The starting and ending symbols, LRC and parity bit on the magnetic stripe are all  
automatically applied. A reject response is issued when an error is detected in the write data.  
Command Transfer Formats  
STX  
3Ch  
Write data string ETX BCC  
Response Transfer Formats  
STX 3Ch Status  
ETX BCC  
(18) Third track data setting command (Model: 310)  
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.  
• 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  
• 4-bit format conforming to ISO 7811/2 second and third tracks  
However, the second track is in 70 bpi format.  
The starting and ending symbols, LRC and parity bit on the magnetic stripe are all  
automatically applied. A reject response is issued when an error is detected in the write data.  
Command Transfer Formats  
STX  
3Dh  
Write data string ETX  
BCC  
Response Transfer Formats  
STX 3Dh Status  
ETX  
BCC  
21  
 
(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.  
If normal write 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 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’: Enable magnetic writing to tracks 2 and 3  
‘7’: Enable magnetic writing to tracks 1, 2 and 3  
Only parameter 2 is enabled with a 1-track model (TCP300**) for the number of tracks of  
magnetic stripes.  
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) after canceling the state of communication.  
Command Transfer Formats  
STX  
31h  
Write track specification ETX  
BCC  
Response Transfer Formats  
STX 31h Status  
ETX  
BCC  
22  
 
(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.  
Details of Operation  
This writes to the magnetic stripe of the targeted card only when normal data is set for all  
tracks specified as write tracks in the command parameters, 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. If normal write 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 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’: Enable magnetic writing to tracks 2 and 3  
‘7’: Enable magnetic writing to tracks 1, 2 and 3  
Only parameter ‘2’ is enabled with a 1-track model (TCP300) for the number of tracks of  
magnetic stripes.  
Command Transfer Formats  
STX  
32h  
Write track specification ETX  
BCC  
Response Transfer Formats  
STX 32h Status  
ETX  
BCC  
23  
 
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.  
(1) 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). The reader/writer prints the contents of the rasterized image  
register buffer with the print expansion buffer by the erase + print command (46h), but data  
remains in both buffers, so if the erase + print command (46h) is executed again, the same  
print results will be attained.  
The print expansion buffer is cleared only by executing the print expansion buffer clear  
command (40h), executing the buffer clear command (49h) or by turning the power off and on  
again. This command clears the rasterized image register buffer.  
Command Transfer Formats  
STX  
40h  
ETX  
43h  
Response Transfer Formats  
STX 40h Status  
ETX  
BCC  
(2) Buffer clear command  
This command clears the rasterized image register buffer and print expansion buffer. The  
rasterized image data transmitted from the host is expanded in the rasterized image register  
buffer. The reader/writer prints the contents of the rasterized image register buffer with the  
print expansion buffer by the erase + print command (46h), but data remains in both buffers,  
so if the erase + print command (46h) is executed again, the same print results will be  
attained.  
The rasterized image register buffer is cleared only by executing buffer clear command (49h)  
or by turning the power off and on again.  
Command Transfer Formats  
STX  
49h  
ETX  
4Ah  
Response Transfer Formats  
STX 49h Status  
ETX  
BCC  
24  
 
 
(3) 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.  
The print control header string can be omitted altogether.  
The print text data string is composed of the print text data, ESC control data and the line feed  
control data.  
This command is not limited to a number of transmissions. After clearing the print expansion  
buffer, data can be separated into a multiple of times for sending until the print command  
(46h) is executed.  
Expanded data is maintained in the reader/writer unless 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 electronic statements.  
Command Transfer Formats  
STX  
41h  
Print data stringETX  
BCC  
Response Transfer Formats  
STX 41h Status  
ETX  
BCC  
25  
 
Parameter Explanation  
Print control header 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.  
The print control header string can be omitted altogether.  
If omitted, the device expands the memory from the next character position after the previous  
electronic statement.  
Print control header string = card arrangement direction specification parameter ‘,' (comma) X  
coordinate specification parameter ‘,' (comma) Y coordinate specification parameter  
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).  
• Card arrangement direction specification parameter  
’0’: Vertical card + overwrite  
‘1’: Horizontal card + overwrite  
‘2’: Vertical card + added writing  
‘3’: Horizontal card + added writing  
These four parameters specify how to write.  
• ',’ (Commas)  
Required to separate parameters.  
• X coordinate specification parameter  
Specifies whether to expand the X 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,’  
When the card arrangement direction specification is ‘1,’  
• Y coordinate specification parameter  
‘2’: ‘0’ to ‘319’  
‘3’: ‘0’ to ‘479’  
Specifies whether to expand the Y coordinate of the upper left edge of the text data to expand  
to each print expansion buffer.  
When the card arrangement direction specification is ‘0,’  
When the card arrangement direction specification is ‘1,’  
‘2’: ‘0’ to ‘479’  
‘3’: ‘0’ to ‘319’  
26  
 
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.  
JP, GP2312 or GB18030, BIG5 and KR models do not use 16 dot fonts.  
Notes:  
If the print characters are set with overwriting settings of ‘0,’ ‘1’ with the card arrangement  
direction specification parameter, the device will write to the same print region. Therefore, the  
characters set first with this electronic statement will be invalid, and subsequent set data will  
become valid and printed. Spaces between characters are skipped, but when there is a  
background image, the image data remains between the characters.  
Text data string  
• Print text  
Print text prints 1-byte characters (single-byte characters) (prints two-byte characters even with 1 byte  
data when two-byte ANK characters are specified with the ESC control, only in Japanese  
specifications.) and two byte Chinese characters (Japanese specifications: Shift JIS code; Taiwanese  
specifications: BIG5; Chinese specifications: GB2312 or GB18030; and Korean specifications:  
Hangul).  
The two-byte code area of the GB18030 characters can be printed in the GB18030 mode, but USER  
AREAs 1, 2 and 3 cannot be printed.  
• Line feed control data  
This print line feed control LF (0Ah) command line feeds the print coordinate pointer 1 character  
space, including spaces between lines, in reverse. The reverse X coordinate is the X coordinate  
origin point.  
• ESC Sequence  
If there is an ESC (1Bh) in the print text data string, 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’  
ESC “E11” Normal size  
2 digit configuration  
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  
memory.  
ESC ‘G’ next parameter range: ‘0’ to ‘F’  
1 digit configuration  
ESC “G0” Expands the 0th 24 dot two-byte external character font  
ESC “G1” Expands the 1st 24 dot two-byte external character font  
:
:
ESC “G9” Expands the 9th 24 dot two-byte external character font  
ESC “GA” Expands the 10th 24 dot two-byte external character font  
:
ESC “GE” Expands the 14th 24 dot two-byte external character font  
ESC “GF” Expands the 15th 24 dot two-byte external character font  
27  
 
• 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”  
ESC “I1”  
:
:
ESC “I9”  
ESC “IA”  
:
ESC “IE”  
ESC “IF”  
• ESC  
g
This expands a specified 24 dot 1-byte external characters FONT in the print expansion buffer  
memory.  
ESC ‘g’ next parameter range: ‘0’ to ‘F’  
1 digit configuration  
• ESC  
i
This expands a specified 16 dot 1-byte external characters FONT in the print expansion buffer  
memory.  
ESC ‘i’ next parameter range:  
‘0’ to ‘F’  
1 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 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 single-byte  
characters) by calculating the position to expand the expansion buffer memory in single-byte.  
ESC ‘s’ next parameter range: “01” to “59” 2 digit configuration  
• ESC  
L/l  
Moves the next print character to below the n line (including line spaces) by calculating the position to  
expand the expansion buffer memory.  
ESC ‘L/l’ next parameter range: “01" to “19” 2 digit configuration  
• ESC  
M/m  
Sets the dot spaces between lines  
ESC ‘M’/’m’ next parameter range:  
“0” to “F”  
1 digit configuration  
• ESC  
X/x  
Sets the X coordinate to expand characters.  
ESC ‘X’/’x’ next parameter range:  
For vertical cards: “000” to “319”  
For horizontal cards: “000” to “479”  
3 digit configuration  
3 digit configuration  
• ESC  
Y/y  
Sets the Y coordinate to expand characters.  
ESC ‘Y’/’y’ next parameter range:  
For vertical cards: “000” to “479”  
For horizontal cards: “000” to “319”  
3 digit configuration  
3 digit configuration  
• ESC  
D
Sets the 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  
28  
 
• ESC  
d
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: ‘0’ to ‘F’  
1 digit configuration  
• ESC W/w  
Sets the width size of characters to expand.  
ESC ‘W’/’w’ next parameter range:  
ESC “W1” Specifies normal width fonts.  
ESC “W2” Specifies double width fonts.  
‘1’ to ‘2’  
‘1’ to ‘2’  
‘0’ to ‘2’  
1 digit configuration  
• ESC  
V/v  
Sets the vertical size of characters to expand.  
ESC ‘V’/’v’ next parameter range:  
ESC “V1” Specifies normal height fonts.  
ESC “V2” Specifies double tall fonts.  
1 digit configuration  
1 digit configuration  
• ESC  
B/b  
Specifies the line width of ANK characters.  
ESC ‘B’/’b’ next parameter range:  
ESC “B0” Specifies normal narrow gothic fonts.  
ESC “B1” Specifies enhanced gothic fonts.  
ESC “B2” Specifies double-enhanced gothic fonts.  
• ESC  
Sets double/single byte fonts as ANK characters.  
ESC ‘J’/’j’ next parameter range: ‘0’ to ‘1’ 1 digit configuration  
J/j  
ESC “J0”  
ESC “J1”  
Specifies two-byte gothic fonts.  
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 ANK characters.  
ESC ‘F’/’f’ next parameter range:  
‘0’ to ‘1’  
1 digit configuration  
ESC “F0”  
ESC “F1”  
Specifies 24 dot fonts.  
Specifies 16 dot fonts.  
JP, GP2312 or GB18030, BIG5 and KR models do not use 16 dot fonts.  
(4)  
Internal image data 1 expand command  
(Contact our sales representative for destination country.)  
This command expands images specified by an expansion image number from among the  
image data stored in the reader/writer flash ROM1, in the print expansion buffer.  
Image data is that which is expanded to the ROM1 image area. If within a capacity range, this  
is data of a BMP file (bit map file) on a Windows system, that stores up to 2000 types.  
A dedicated tool is required to store image data to the flash ROM1 memory. Contact our sales  
representative.  
29  
 
Command Transfer Formats  
Expansion  
image  
specification  
number  
Data  
arrangement  
specification  
Data  
arrangement X ‘,’ arrangement Y  
coordinate coordinate  
Data  
STX  
42h  
‘,’  
‘,’  
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.  
• ‘,' (Commas)  
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 card arrangement specification is ‘0,’  
When the card arrangement specification is ‘1,’  
‘2’:  
‘3’:  
‘0’ to “319”  
‘0’ to “479”  
• Data arrangement Y coordinate parameter  
Specifies the Y coordinate on the upper left edge of the image to expand.  
When the card arrangement specification is ‘0,’  
When the card arrangement specification is ‘1,’  
‘2’:  
‘3’:  
‘0’ to “479”  
‘0’ to “319”  
• Expanded image specification number parameter  
Data count can be set to a maximum of 2000 types, so specify with characters from ‘0’ to  
“1999.” However, a reject response is issued if an image data that corresponds to the  
reader/writer flash ROM1 cannot be found.  
30  
 
(5)  
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.  
Turns the image data on the host to text formats, and expands the 320 dot image data as 80  
character 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 ‘,’ Expansion image  
Y address data  
ETX  
BCC  
Response Transfer Formats  
STX  
Parameter Explanation  
• Expansion starting X coordinate parameter  
43h  
Status  
ETX  
BCC  
Specifies whether to expand the registered image X coordinate to the rasterized image  
register buffer.  
‘0’ – “479”  
• ‘,' (Commas)  
Required to separate parameters.  
• Expansion starting Y address parameter  
Specifies whether to expand the registered image Y address to the rasterized image register  
buffer. Becomes 0 when omitted.  
’0’ – ‘39’  
• Expansion image data parameter  
Expresses each 8 dots using two characters of text.  
Composed of 80 byte data over the entire vertical area. LSB specifies the upper side bits;  
MSB specifies the lower side bits. In the example below, this is “A3.”  
bit 0  
bit 1  
bit 2  
bit 3  
bit 4  
bit 5  
bit 6  
bit 7  
‘3’ (33h)  
‘A’ (41h)  
31  
 
(6)  
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. 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  
specified, execute the command a multiple of times.  
Command Transfer Formats  
Expansion  
start X  
coordinate  
Expansion  
start Y  
coordinate  
Image data  
length  
Expansion  
image data  
STX 4Dh  
ETX BCC  
‘,’  
‘,’  
‘,’  
Parameter Explanation  
• Expansion starting X coordinate parameter  
Specifies whether to expand the registered image X coordinate to the rasterized image  
register buffer.  
‘0’ to “479”  
• ‘,' (Commas)  
Required to separate parameters.  
32  
 
• 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.  
‘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  
bit 1  
bit 2  
bit 3  
bt 4  
bit 5  
bit 6  
bit 7  
‘3’ (33h)  
‘A’ (41h)  
Ο
Ο
Ο
Ο
If using a card in the vertical direction (portrait), you should rotate the original print data  
beforehand.  
Y Coordinate  
X Coordinate  
Data Length  
Repeat count*1  
*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  
 
(7)  
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  
size specification  
‘,’  
External  
character  
registration  
number  
‘,’ External font  
data  
ETX BCC  
Response Transfer Formats  
STX 44h Status  
ETX  
BCC  
Parameter Explanation  
• Font size specification data  
This specifies the font size to register.  
‘0’: Vertical/horizontal:  
‘1’: Vertical/horizontal:  
24 dot x 24 dot fonts  
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 font data in hexadecimal character strings of 144 bytes (64 bytes) because  
72 byte (32 byte) font data characters disintegrate.  
Specify data from the left to the right.  
Each string is shown as 6 bytes (4 bytes) and the top is the LSB.  
Data in parentheses is 16 dot by 16 dot fonts.  
Below is shown an example of setting the user font to the external character registration  
number 0.  
34  
 
Example Setting  
X  
1
2
3
4
5
6
7
8
9
10  
11  
12  
13
14  
15  
16  
17  
18  
19  
20  
21  
22  
23  
24  
Data:  
“0 ”  
Font number  
“001000001000081020101010”  
“20000840380400FE0000FF01”  
“80FF0380FF03C0FF07DEFFF7”  
“C0FF0780FF0380FF0300FF01”  
“00FE00003100400004201008”  
“101010081020001000000000”  
A to D string  
E to H string  
I to L string  
M to P string  
Q to T string  
U – X string  
35  
 
(8)  
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  
STX 45h Font size ‘,’ External character ‘,’ External font ETX BCC  
specification  
registration  
number  
data  
Response Transfer Formats  
STX  
45h  
Status  
ETX  
BCC  
Parameter Explanation  
• Font size specification data  
This specifies the font size to register.  
‘0’: Vertical/horizontal:  
‘1’: Vertical/horizontal:  
24 dot x 12 dot fonts  
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 parameter  
Specifies external font data in hexadecimal character strings of 72 bytes (32 bytes) because  
36 byte (16 byte) font data text disintegrates.  
Specify data from the left to the right.  
Each string is shown as 6 bytes (4 bytes) and the top is the LSB.  
Data in parentheses is 16 dot by 8 dot fonts.  
36  
 
(9)  
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.  
After the operation is completed, the print expansion buffer and rasterized image register  
buffer are not cleared.  
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) after canceling the state of communication.  
The processing time can vary depending on the card type, ambient temperature and head  
heat.  
Command Transfer Formats  
STX  
46h  
Discharge  
control method  
,
Erasing control  
method  
,
Print control  
method  
ETX  
BCC  
Response Transfer Formats  
STX 46h Status  
ETX  
BCC  
Parameter Explanation  
• Discharge control method  
‘0’ (30h): Cards after erase/print is stopped at front idling position and held  
Card becomes a process target card.  
‘1’ (31h): Cards after erase/print is discharged  
Card waits to be pulled out and is not a process target card.  
• Separating characters  
‘,’  
(2Ch): Used to separate parameters.  
• Erase control method  
‘0’  
‘1’  
(30h): Does not erase  
(31h): Erases  
• Separating characters  
‘,’ (2Ch): Used to separate parameters.  
• Print control method  
‘0’  
‘1’  
(30h): Does not print  
(31h): Print  
• Parameter specification example 1  
STX 46h ETX BCC  
Cards after discharged to the front after erasing/printing by omitting all parameters.  
• Parameter specification example 2  
STX  
46h  
31h  
ETX  
BCC  
37  
 
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  
STX  
46h  
31h  
30h  
ETX  
BCC  
,
After printing, the card is discharged to front.  
For example, this applies to one-time media.  
• Parameter specification example 5  
STX  
46h  
31h  
31h  
30h  
ETX  
BCC  
,
,
After erasing, the card is discharged to front.  
For example, this applies to invalidating the rewrite media surface (printing surface).  
(10) Print discharge command  
This command prints only to the print surface.  
If there is a card idling in the device, it prints to the card.  
If there is no targeted card, it will wait until one is inserted into the device, then starts printing.  
After printing, the device will either discharge the card according to the discharge method  
specification parameter or it will stop while idling and hold the card.  
Discharged cards wait to be pulled out and are no longer process target cards.  
The device stops at the front idling position, and the card being held is a process target card.  
The print expansion buffer and 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) after canceling the state of communication.  
The processing time can vary depending on the card type, ambient temperature and head  
heat.  
Command Transfer Formats  
STX  
47h  
Discharge  
method  
ETX  
BCC  
specification  
Response Transfer Formats  
STX 47h 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 to a position where it can be removed at the front.  
38  
 
(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.  
Discharged cards wait to be pulled out and are no longer process target cards.  
The device stops at the front idling position, and the card being held is a process target card.  
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) after canceling the state of communication.  
The processing time can vary depending on the card type, ambient temperature and head  
heat.  
Command Transfer Formats  
STX  
48h  
Discharge  
method  
ETX  
BCC  
specification  
Response Transfer Formats  
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 to a position where it can be removed at the front.  
Card waits to be pulled out and is not a process target card.  
39  
 
(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  
STX  
4Eh Bar Code Control Header Bar Code Data String  
String  
ETX  
BCC  
Response Transfer Formats  
STX 4Eh Status  
ETX  
BCC  
Parameter Explanation  
Bar Code Control Header String  
The bar code control header string is composed of the starting Y coordinate parameter string,  
the ending Y coordinate specification parameter string, the bar code type parameter, the bar  
code start stop code parameter string, and a comma for separating each parameter.  
The bar code control header string = starting Y coordinate parameter string ‘,’ (comma)  
ending Y coordinate specification parameter string ‘,’ (comma) bar code type parameter ‘,’  
(comma) the bar code start stop code parameter string ‘,’ (comma)  
Bar code control header string and bar code data string description example  
Visual Card1.Communication (&h4E,”100,170,1,A,111213141516”, 0, True);  
With the card stood vertically, this expands the Code 128 bar code data “123456” with  
subscript at the Y coordinates 100 to 170 positions.  
• Starting Y coordinate parameter example  
Specifies the starting Y coordinate for expansion of the bar code with the card stood  
vertically.  
‘0’ to “479”  
• Ending Y coordinate parameter example  
Specifies the ending Y coordinate for expansion of the bar code with the card stood  
vertically.  
‘0’ to “479”  
• Bar Code Type Parameter  
‘0’: CODE 128  
‘1’: CODE 128 With Subscript  
‘2’: CODE 39 (3 of 9)  
‘3’: CODE 39 (3 of 9) With Subscript  
‘4’: ITF (Interleaved 2 of 5)  
‘5’: ITF (Interleaved 2 of 5) With Subscript  
‘6’: CODABAR (NW-7)  
‘7’: CODABAR (NW-7) With Subscript  
40  
 
• ‘,' (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.  
‘B’: Sets CODE 128 bar code to code set B.  
‘C’: Sets CODE 128 bar code to code set C.  
When the bar code type parameters are ‘6,’ ‘7’  
‘AA’, ‘AB’,  
‘CA’, ‘CB’,  
‘AC’,  
‘CC’,  
‘AD’,  
‘CD’,  
‘BA’,  
‘DA’,  
‘BB’,  
‘DB’,  
‘BC’,  
‘DC’,  
‘BD’  
‘DD'  
Ex.  
‘AB’: Sets the CODABAR (NW-7) start and stop characters to ‘A’ and ‘B.’  
Notes:  
When bar codes have subscript, that subscript is arranged in a position 24 dots below the  
ending Y coordinate specified parameter. If the subscript exceeds the printable range of a card,  
it is rejected.  
Bar Code Data String  
When the bar code type parameters are ‘0’, ‘1’ (CODE 128):  
102 characters from chr (&H00) to chr (&H66) are expressed with bar code CODE128. The  
table below shows an example of the two characters of a bar code (ASCII).  
Ex.  
When VisualCard1.Communication ( &h4E, ”100, 170, 1, A, 111213141516”, 0, True );  
Expands bar codes of chr (&H11), chr (&H12), chr (&H13), chr (&H14), chr (&H15), chr  
(&H16) of the CODE128 code set A with subscript.  
Bar Code Data  
Suffixes by Code Set  
Bar Code  
Data  
String  
CODESET A  
CODESET B  
CODESET C  
ASCII  
"0 0"  
"0 1"  
"0 2"  
"0 3"  
"0 4"  
"0 5"  
"0 6"  
"0 7"  
"0 8"  
"0 9"  
"0 A"  
"0 B"  
"0 C"  
"0 D"  
"0 E"  
"0 F"  
chr(&H00)  
chr(&H01)  
chr(&H02)  
chr(&H03)  
chr(&H04)  
chr(&H05)  
chr(&H06)  
chr(&H07)  
chr(&H08)  
chr(&H09)  
chr(&H0A)  
chr(&H0B)  
chr(&H0C)  
chr(&H0D)  
chr(&H0E)  
chr(&H0F)  
"
"(SP)  
"
"(SP)  
00  
01  
02  
03  
04  
05  
06  
07  
08  
09  
10  
11  
12  
13  
14  
15  
!
!
#
$
%
&
#
$
%
&
(
(
)
)
*
*
+
,
+
,
.
.
/
/
41  
 
Bar Code Data  
String  
Suffixes by Code Set  
CODESET B  
Bar Code  
Data  
CODESET A  
CODESET C  
ASCII  
"1 0"  
"1 1"  
"1 2"  
"1 3"  
"1 4"  
"1 5"  
"1 6"  
"1 7"  
"1 8"  
"1 9"  
"1 A"  
"1 B"  
"1 C"  
"1 D"  
"1 E"  
"1 F"  
"2 0"  
"2 1"  
"2 2"  
"2 3"  
"2 4"  
"2 5"  
"2 6"  
"2 7"  
"2 8"  
"2 9"  
"2 A"  
"2 B"  
"2 C"  
"2 D"  
"2 E"  
"2 F"  
"3 0"  
"3 1"  
"3 2"  
"3 3"  
"3 4"  
"3 5"  
"3 6"  
"3 7"  
"3 8"  
"3 9"  
"3 A"  
"3 B"  
"3 C"  
"3 D"  
"3 D"  
"3 F"  
0
1
2
3
4
5
6
7
8
9
:
0
1
2
3
4
5
6
7
8
9
:
16  
17  
18  
19  
20  
21  
22  
23  
24  
25  
26  
27  
28  
29  
30  
31  
32  
33  
34  
35  
36  
37  
38  
39  
40  
41  
42  
43  
44  
45  
46  
47  
48  
49  
50  
51  
52  
53  
54  
55  
56  
57  
58  
59  
60  
61  
62  
63  
chr(&H10)  
chr(&H11)  
chr(&H12)  
chr(&H13)  
chr(&H14)  
chr(&H15)  
chr(&H16)  
chr(&H17)  
chr(&H18)  
chr(&H19)  
chr(&H1A)  
chr(&H1B)  
chr(&H1C)  
chr(&H1D)  
chr(&H1E)  
chr(&H1F)  
chr(&H20)  
chr(&H21)  
chr(&H22)  
chr(&H23)  
chr(&H24)  
chr(&H25)  
chr(&H26)  
chr(&H27)  
chr(&H28)  
chr(&H29)  
chr(&H2A)  
chr(&H2B)  
chr(&H2C)  
chr(&H2D)  
chr(&H2E)  
chr(&H2F)  
chr(&H30)  
chr(&H31)  
chr(&H32)  
chr(&H33)  
chr(&H34)  
chr(&H35)  
chr(&H36)  
chr(&H37)  
chr(&H38)  
chr(&H39)  
chr(&H3A)  
chr(&H3B)  
chr(&H3C)  
chr(&H3D)  
chr(&H3E)  
chr(&H3F)  
;
;
<
=
>
?
@
A
B
C
D
E
F
G
H
I
<
=
>
?
@
A
B
C
D
E
F
G
H
I
J
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
X
Y
Z
[
K
L
M
N
O
P
Q
R
S
T
U
V
W
X
Y
Z
[
\
\
]
]
^
^
_
_
42  
 
Bar Code Data  
String  
Suffixes by Code Set  
Bar Code  
Data  
CODESET A  
(NUL)  
CODESET B  
CODESET C  
64  
ASCII  
chr(&H40)  
"4 0"  
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)  
"4 1"  
"4 2"  
"4 3"  
"4 4"  
"4 5"  
"4 6"  
"4 7"  
"4 8"  
"4 9"  
"4 A"  
"4 B"  
"4 C"  
"4 D"  
"4 E"  
"4 F"  
"5 0"  
"5 1"  
"5 2"  
"5 3"  
"5 4"  
"5 5"  
"5 6"  
"5 7"  
"5 8"  
"5 9"  
"5 A"  
"5 B"  
"5 C"  
"5 D"  
"5 E"  
"5 F"  
"6 0"  
"6 1"  
"6 2"  
"6 3"  
"6 4"  
"6 5"  
"6 6"  
(SOH)  
(STX)  
(EXT)  
(EOT)  
(ENQ)  
(ACK)  
(BEL)  
(BS)  
a
65  
66  
b
c
67  
d
68  
e
69  
f
70  
g
71  
h
72  
(HT)  
i
73  
(LF)  
j
74  
(VT)  
k
75  
(FF)  
l
76  
(CR)  
m
77  
(SO)  
n
78  
(SI)  
o
79  
(DEL)  
(DC1)  
(DC2)  
(DC3)  
(DC4)  
(NAK)  
(SYN)  
(ETB)  
(CAN)  
(EM)  
p
80  
q
81  
r
82  
s
83  
t
84  
u
85  
v
86  
w
87  
x
88  
y
89  
(SUB)  
(ESC)  
(FS)  
z
90  
{
91  
|
92  
(GS)  
}
93  
(RS)  
~
94  
(US)  
(DEL)  
95  
"
"
" (FNC 3)  
" (FNC 2)  
(SHIFT)  
"
"
" (FNC 3)  
" (FNC 2)  
(SHIFT)  
96  
97  
98  
(CODE C)  
(CODE B)  
" (FNC 4)  
(CODE C)  
" (FNC 4)  
(CODE A)  
" (FNC 1)  
99  
"
"
(CODE B)  
(CODE A)  
"
"
" (FNC 1  
"
" (FNC 1)  
• Specifying the bar code start stop code parameters of ‘A’, ‘B’ and ‘C’ selects the code set in  
CODE128.  
• A stop code is automatically applied, to enable expansion of bar codes for a maximum of 11  
characters in one electronic statement.  
• When the bar code type parameters are ‘2’, ‘3’ (CODE 39)  
The symbols of “-“ , “.”, “ “, “$”, “/”, “+”, “%”, and numbers “0” to “9” and letters of the alphabet  
from “A” to “Z” are expressed with bar code CODE39. 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.  
An asterisk “*” which is the start and stop code is automatically applied. It is possible to  
expand bar codes for a maximum of 10 characters with one electronic statement.  
Ex.  
For VisualCard1.Communication ( &h4E, ”100, 170, 3, ABC123%+”, 0, True );  
Expands bar codes of “ABC123%+” the CODE39 with subscript.  
43  
 
• 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. It is possible to expand bar codes for a  
maximum of 20 characters with one electronic statement.  
Ex.  
For VisualCard1.Communication ( &h4E, ”100,170,5,125628”, 0, True );  
Expands bar codes of “125629” of the ITF with subscript.  
• When the bar code type parameters are ‘6’, ‘7’ (CODABAR NW-7)  
The symbols of “-“ , “.”, “:” , “$”, “/”, “+”, and numbers “0” to “9” are expressed with bar code  
CODABAR NW-7. 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. Specifying the bar code start stop  
code specifying parameters of “AA” to “DD” the start and stop code is specified. It is possible  
to expand bar codes for a maximum of 13 characters with one electronic statement.  
Ex.  
For VisualCard1.Communication ( &h4E, ”100,170,7,AD,125628” , 0, True );  
Expands bar codes of “A125629D” the CODABAR NW-7 with subscript.  
Bar code printing example  
For CODE128  
44  
 
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 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.  
When a discharge command is issued to discharge a card discharged to the reuse position,  
the card is completely discharged.  
Command Transfer Formats  
STX  
50h  
Discharge method specification  
ETX  
BCC  
Response Transfer Formats  
STX 50h Status  
ETX  
BCC  
Parameter Explanation  
• Discharge 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 waiting removal in the device, and the magnetic reading or printing command  
is received, this card is not a process target card, so the card discharge process is executed  
once to prompt the user to remove the card.  
Note that once the card discharge command is applied to a card discharged to the reuse  
position the card is completely discharged according to the discharge method that was  
specified.  
‘1’: Card is completely discharged.  
Card waits to be pulled out and is not a process target card.  
(2)  
Card front side idle command  
This command transports and idles cards to the idling position on the front 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 front 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  
front side where it is idled. Idled cards are process targeted card.  
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) after canceling the state of communication.  
Command Transfer Formats  
STX  
53h  
ETX  
50h  
Response Transfer Formats  
STX 53h Status  
ETX  
BCC  
45  
 
 
(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.  
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.  
Idled cards are process targeted card.  
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) after canceling the state of communication.  
Command Transfer Formats  
STX  
51h  
ETX  
52h  
Response Transfer Formats  
STX 51h Status  
ETX  
BCC  
(4)  
Card insertion wait status cancel command  
This command cancels the card insertion wait status.  
The state in which the device waits for a card to be inserted to the inlet, by the execution of the  
magnetic stripe read command, magnetic stripe write command, the erase + print command,  
the erase command or the card front/rear idle command is called the card insertion wait state,  
but this command cancels the card insertion wait status.  
This command can be executed while executing a command (special command). When 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  
46  
 
(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 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.  
Command Transfer Formats  
STX  
55h  
ETX  
56h  
Response Transfer Formats  
STX 55h Status  
ETX  
BCC  
47  
 
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 character composed of six characters.  
Command Transfer Formats  
STX  
59h  
ETX  
5Ah  
Response Transfer Formats  
STX 59h Status  
Sensor status data string  
ETX  
BCC  
The following shows the response block sensor status data string.  
• Sensor status data example  
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 closed  
‘1’: Cover open  
Sixth:Fixed at ‘0’  
48  
 
 
(2)  
ROM version request command  
This command acquires the ROM version information (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 block ROM information data string.  
“TCP3II  
(1)  
V
(2)  
1.00  
(3) (4)  
X”  
(5)  
(1) Series name (6 characters)  
(2) Blank  
(3) Fixed at v  
(4) Version number (integer field 1, decimal points, two decimal points)  
(5) Expanded Chinese characters (3 characters: Normally “.00”)  
(3)  
LED, buzzer control command  
This controls the STATUS LED and buzzer.  
This does not control the CLEANING LED.  
Command Transfer Formats  
STX  
5Ah  
Control data string  
ETX BCC  
Response Transfer Formats  
STX 5Ah Status  
ETX  
BCC  
Parameter Explanation  
• Control data string parameter  
The control data string is fixed to three bytes. The contents are outlined below.  
Data String  
Contents  
First byte  
Buzzer setting data  
Second byte LED color setting data  
Third byte  
LED operation setting data  
49  
 
Use the following codes for the LED color setting data.  
Code  
Function  
Either of 47h (‘G’)/67h (‘g’)/31h (‘1’)  
Either of 4Fh (‘O’)/6Fh (‘o’)/33h (‘3’)  
Either of 52h (‘R’)/72h (‘r’)/32h (‘2’)  
Sets to green.  
Sets to orange.  
Sets to red.  
Use the following codes for LED operation and buzzer setting data.  
Code  
Function  
Continues current operation  
Turns OFF  
Turns ON  
Starts blinking  
20h  
30h  
31h  
32h  
33h  
34h  
‘ ’  
‘0’  
‘1’  
‘2’  
‘3’  
‘4’  
Blinks once  
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 that cards have passed over the magnetic  
head up to 10 digits.  
Reciprocal transports are counted as two times.  
When the power is cut, the transport count less than 10 times is rounded down.  
Command Transfer Formats  
STX  
95h  
Data String  
ETX  
BCC  
BCC  
Response Transfer Formats  
STX 95h Status Transport count data ETX  
50  
 
(5)  
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  
STX  
96h  
Data String  
ETX  
BCC  
BCC  
Response Transfer Formats  
STX 96h Status  
Print count data ETX  
51  
 
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.  
Command Transfer Formats  
STX  
5Bh  
Enable/disable parameter  
ETX  
BCC  
Response Transfer Formats  
STX 5Bh Status  
ETX  
BCC  
Parameter Explanation  
• Enable/disable parameter  
‘0’: Disables the panel cleaning button.  
Device will not enter cleaning mode even when the button is pressed.  
‘1’: Enables the panel cleaning button.  
(2)  
Cleaning command  
This command uses a cleaning card to clean the magnetic head, thermal head and erase  
head.  
If there is a card 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.  
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).  
Remarks:  
Use of the cleaning card  
Idle the reader/writer using the cleaning command.  
Apply head cleaning solution to both sides of the cleaning card.  
Insert the cleaning card into the card inlet on the device.  
Allow the device to stand for one minute to allow it to dry.  
Precautions in using the cleaning card  
Do not use bent cleaning cards.  
They will jam in the device.  
Use only the accessory head cleaning solution, or head cleaning solutions regularly sold at  
audio/video dealers. Do not use any other solutions.  
Command Transfer Formats  
STX  
52h  
ETX  
51h  
Response Transfer Formats  
STX 52h Status  
ETX  
BCC  
52  
 
 
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 command is received while executing another  
command, the device quits the execution of that command.  
Command Transfer Formats  
STX  
5Fh  
ETX  
5Ch  
Response Transfer Formats  
STX 5Fh Status  
ETX  
BCC  
Resetting the device clears the print buffer area, and the magnetic read/write buffer and  
initializes the mechanism. Initializing the mechanism causes 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 side communication conditions.  
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  
90h  
Setting type  
Setting parameterETX BCC  
Response Transfer Formats  
STX 90h Status  
ETX  
BCC  
Setting Type and Parameter List (Types are set alphabetic characters and parameter are set  
by numerical values)  
Contents  
USB Serial Number ‘U’  
‘u’  
Type  
Parameters  
‘0’ to ‘9’  
Functions  
Serial number for USB interface ‘1’  
Initial Value  
53  
 
 
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.  
The default serial number is ‘1’.  
(3)  
Various setting commands  
This command sets each of the default settings.  
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  
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  
54  
 
Setting Type and Parameter List (Types are set alphabetic characters and parameter are set  
by numerical values)  
Contents  
Type  
Parameters  
Functions  
Initial  
Value  
ANK fonts sizes  
24/16 dot font types  
‘0’  
‘1’  
‘0’  
‘1’  
‘0’  
‘1’  
Two-byte font specification  
Single-byte font specification  
24 dot font specification  
16 dot font specification  
Narrow gothic specification  
Enhanced gothic specification  
See explanation  
‘J’/‘j’  
‘F’/‘f’  
‘1’  
‘0’  
ANK  
thickness  
Enable  
character  
magnetic  
‘B’/‘b’  
‘C’/‘c’  
‘R’/‘r’  
‘P’/‘p’  
‘0’  
‘2’  
‘2’  
‘0’  
‘0’ to ‘7’  
‘0’ to ‘7’  
writing track  
Enable  
magnetic  
See explanation  
reading track  
Card arrangement  
‘0’  
‘1’  
Vertical  
Horizontal  
Magnetic stripe retry  
count  
Cleaning  
Two-byte character  
space  
‘W’/‘w’  
‘U’/‘u’  
‘D’  
‘0’ to ‘7’  
‘0’ to ‘7’  
‘0’ to ‘F’  
Specifies number of retries.  
‘2’  
‘3’  
‘2’  
Print head cleaning count  
Character space dot count  
Single-byte  
Character space dot count  
‘d’  
‘0’ to ‘F’  
‘2’  
character space  
Character space  
LED control  
Initialize  
‘M’/‘m’  
‘L’/‘l’  
‘0’ to ‘F’  
‘0’ to ‘3’  
Line space dot count  
LED control method specification  
Returns device to ex-factory  
default settings.  
Reading direction conforming to  
JISX6302  
‘2’  
‘0’  
‘Z’/’z’  
‘0’  
‘0’  
Magnetic  
reading  
conforming  
JISX6302  
format  
direction  
to  
‘K’/‘k’  
‘0’  
‘1’  
Opposite direction conforming to  
JISX6302  
First track writing data format  
setting  
Second track writing data format  
setting  
Third track writing data format  
setting  
‘10’ to ‘14’  
‘11’  
‘22’  
‘33’  
Magnetic stripe  
format  
‘E’/’e’  
‘20’ to ‘24’  
‘30’ to ‘34’  
• ANK character font size specification (JP)  
This command sets the two-byte and single-byte fonts for ANK characters. Settings using the  
ESC sequence (ESC, J/j) 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, ‘J’/‘j’, ANK font settings, ETX, BCC  
ANK font setting parameter  
‘0’: Prints ANK characters as two-byte fonts.  
‘1’: Prints ANK characters as single-byte fonts.  
ANK fonts when the device is sent from the factory are set to be single-byte fonts.  
This setting does not function on models other than Japanese specifications.  
55  
 
• 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.  
STX, 91h, ‘F’/‘f’, 24/16 font settings, ETX, BCC  
24/16 font setting parameter  
‘0’:  
‘1’:  
Prints as 24 dot fonts  
Prints as 16 dot fonts  
Ex-factory default settings are for 24 dot fonts.  
This setting does not function on models other than Japanese specifications, GB2312 or  
GB18030, and KR models.  
• ANK character thickness specification  
This command sets the narrow gothic/thick gothic settings for ANK characters. Settings using  
the ESC sequence (ESC, B/b) 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, ‘B’/‘b’, character width setting, ETX, BCC  
Character width setting parameter  
‘0’: Sets ANK characters to narrow gothic.  
‘1’: Sets ANK characters to enhanced gothic.  
Default settings are for narrow gothic fonts.  
• Magnetic writing enabled track setting  
This command sets the track to write magnetically. 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, ‘C’/‘c’, magnetic writing enable track setting, ETX, BCC  
Magnetic write enable track setting parameter  
‘0’: Prohibits magnetic writing  
‘1’: Enables magnetic writing to track 1.  
‘2’: Enables magnetic writing to track 2.  
‘3’: Enables magnetic writing to track 1 and 2.  
‘4’: Enables magnetic writing to track 3.  
‘5’: Enables magnetic writing to track 1 and 3.  
‘6’: Enables magnetic writing to track 2 and 3.  
‘7’: Enables magnetic writing to track 1, 2 and 3.  
The ex-factory default setting is for ‘2’, to enable magnetic writing to track 2.  
56  
 
• 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. In the print character data setting  
command (41h), if the print control header string is not set, the subsequent print character  
data is enabled with card arrangement direction set by the printing control header string  
having priority. The card arrangement direction set by this command is enabled again for  
each printing 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 number of times the device will retry to read the magnetic stripe.  
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.  
STX, 91h, ‘R’/‘r’, magnetic read retry count setting, ETX, BCC  
Magnetic read retry count setting parameters  
‘0’: No retry  
‘1’: Sets the magnetic read retry count to 1 times.  
‘2’: Sets the magnetic read retry count to 2 times.  
‘3’: Sets the magnetic read retry count to 3 times.  
‘4’: Sets the magnetic read retry count to 4 times.  
‘5’: Sets the magnetic read retry count to 5 times.  
‘6’: Sets the magnetic read retry count to 6 times.  
‘7’: Sets the magnetic read retry count to 7 times.  
The ex-factory magnetic read retry count setting is 2 times.  
57  
 
• 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’: No retry  
‘1’: Sets the magnetic write retry count to 1 times.  
‘2’: Sets the magnetic write retry count to 2 times.  
‘3’: Sets the magnetic write retry count to 3 times.  
‘4’: Sets the magnetic write retry count to 4 times.  
‘5’: Sets the magnetic write retry count to 5 times.  
‘6’: Sets the magnetic write retry count to 6 times.  
‘7’: Sets the magnetic write retry count to 7 times.  
The 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. Settings  
using this command function as default settings in the cleaning operation by the command  
52h, and the cleaning operation by pressing the cleaning switch.  
STX, 91h, ‘U’/‘u’, cleaning count setting, ETX, BCC  
Cleaning count setting parameters  
‘1’: Sets cleaning count to 1 times.  
‘2’: Sets cleaning count to 2 times.  
‘3’: Sets cleaning count to 3 times.  
‘4’: Sets cleaning count to 4 times.  
‘5’: Sets cleaning count to 5 times.  
‘6’: Sets cleaning count to 6 times.  
‘7’: Sets cleaning count to 7 times.  
The ex-factory cleaning count setting is 3 times.  
58  
 
• 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.  
STX, 91h, ‘D’, two-byte character gap dot space setting, ETX, BCC  
Two-byte character gap dot space setting parameters  
‘0’: Sets the two-byte character gap dot space setting to 0.  
‘1’: Sets the two-byte character gap dot space setting to 1.  
:
:
‘9’: Sets the two-byte character gap dot space setting to 9.  
‘A’: Sets the two-byte character gap dot space setting to 10.  
‘B’: Sets the two-byte character gap dot space setting to 11.  
‘C’: Sets the two-byte character gap dot space setting to 12.  
‘D’: Sets the two-byte character gap dot space setting to 13.  
‘E’: Sets the two-byte character gap dot space setting to 14.  
‘F’: Sets the two-byte character gap dot space setting to 15.  
The ex-factory two-byte character gap dot space setting is 2 dots.  
This setting does not function on models other than JP, GB2312 or GB38030, BIG5, or KR.  
• Single-byte character gap dot space setting  
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 one electronic statement,  
but settings using this command function as default settings in the print character data setting  
command 41h.  
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’: Sets the singe-byte character gap dot space setting to 1.  
:
:
‘9’: Sets the singe-byte character gap dot space setting to 9.  
‘A’: Sets the singe-byte character gap dot space setting to 10.  
‘B’: Sets the singe-byte character gap dot space setting to 11.  
‘C’: Sets the singe-byte character gap dot space setting to 12.  
‘D’: Sets the singe-byte character gap dot space setting to 13.  
‘E’: Sets the singe-byte character gap dot space setting to 14.  
‘F’: Sets the singe-byte character gap dot space setting to 15.  
The ex-factory singe-byte character gap dot space setting is 2 dots.  
59  
 
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’: Sets the line gap dot space setting to 0 dots.  
‘1’: Sets the line gap dot space setting to 1 dots.  
:
:
‘9’: Sets the line gap dot space setting to 9 dots.  
‘A’: Sets the line gap dot space setting to 10 dots.  
‘B’: Sets the line gap dot space setting to 11 dots.  
‘C’: Sets the line gap dot space setting to 12 dots.  
‘D’: 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.  
• LED control method setting  
This command sets the method to control the LED.  
When setting the LED control method, the LED automatically lights and the buzzer rings when  
the device has entered a card insertion wait state or card removal wait state.  
STX, 91h, ‘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 card removal request.  
LED displays an insertion request.  
• Setting for the ex-factory defaults  
This command returns settings that users can make to their ex-factory, default status. This  
does not initialize TPH rank, EHD rank, country model, and manufacturer model.  
STX, 91h,  
‘Z’/’z’,  
‘0’,  
ETX, BCC  
Alphabet Number  
60  
 
• 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.  
STX, 91h, ‘K’/‘k’, reading direction setting, ETX, BCC  
Reading direction setting parameters  
‘0’: Sets to conform to JISX6302.  
‘1’: Sets to the opposite direction of JISX6302.  
Ex-factory default settings are the magnetic format setting conforming to JISX6302.  
• Magnetic format settings  
Users can use this command to freely set the magnetic stripe writing format. Settings using  
this command function as default settings in the first, second and third track data setting  
commands 3Bh, 3Ch, 3Dh.  
STX, 91h, ‘E’/‘e’, magnetic format settings, ETX, BCC  
Magnetic format setting parameters  
The following shows settings for a version (310) having three tracks of magnetic heads.  
‘10’: Sets track 1 to JISX6302 recording method.  
‘11’: Sets track 1 to ISO7811/2 first track recording method.  
‘12’: Sets track 1 to ISO7811/2 second track recording method.  
‘13’: Sets track 1 to ISO7811/2 third track recording method.  
‘14’: Sets track 1 to the opposite direction data format of the JISX6302 recording method.  
‘20’: Sets track 2 to JISX6302 recording method.  
‘21’: Sets track 2 to ISO7811/2 first track recording method.  
‘22’: Sets track 2 to ISO7811/2 second track recording method.  
‘23’: Sets track 2 to ISO7811/2 third track recording method.  
‘24’: Sets track 2 to the opposite direction data format of the JISX6302 recording method.  
‘30’: Sets track 3 to JISX6302 recording method.  
‘31’: Sets track 3 to ISO7811/2 first track recording method.  
‘32’: Sets track 3 to ISO7811/2 second track recording method.  
‘33’: Sets track 3 to ISO7811/2 third track recording method.  
‘34’: Sets track 3 to the opposite direction data format of the JISX6302 recording method.  
The ex-factory default setting for track 1 is ‘11.’  
The ex-factory default setting for track 2 is ‘22.’  
The ex-factory default setting for track 3 is ‘33.’  
The following shows settings for a version (300) having one track of a magnetic head.  
‘20’: Sets to the JISX6302 recording method.  
‘21’: Sets to ISO7811/2 first track recording method.  
‘22’: Sets to ISO7811/2 second track recording method.  
‘23’: Sets to ISO7811/2 third track recording method.  
‘24’: Sets to the opposite direction recording method of JISX6302.  
The ex-factory default setting for track 2 is ‘22.’  
Also, for a 1 track version (300), the first and third tracks cannot be set.  
61  
 
5. MATERIALS  
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 device, then mount either of the applicable interfaces of serial, USB,  
or LAN.  
4. Turn the device’s DIP switch #1 to OFF (right side).  
The #1 DIP switch is on the side of the me on the insertion side, when looking from the top fo the  
device.  
5. Connect the interface cable, then turn the power on again.  
6. The LEDs flash several times alternately and STATUS lights. The buzzer will beep three times.  
7. Startup the flash memory loading program. Use Port! to set the communication conditions.  
Set the IP address for the LAN interface. When settings are completed, click OK.  
8. Use Write! in the flash memory loading program to select the firmware.  
9. Loading of the files starts.  
Do not turn the power off or unplug the cable until completed.  
10. When completed, turn off the power and return the DIP switch #1 (left side) and interface to  
their normal status.  
62  
 
 
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.  
Test Results  
Normal  
Display  
Remarks  
STATUS and buzzer flash one time  
STATUS and buzzer flash two times while  
CLEANING lights.  
SRAM error  
EEPROM error  
STATUS and buzzer flash three times while  
CLEANING lights.  
Print head lifter motor STATUS and buzzer flash four times while  
error CLEANING lights.  
Erase head/thermistor CLEANING and buzzer flash two times while  
error  
STATUS lights.  
CLEANING and buzzer flash four times while Ambient  
Other errors  
STATUS lights.  
temperature  
sensor operation  
error, etc.  
Cover open  
Buzzer intermittent ringing  
Buzzer intermittent ringing and STATUS  
flashing  
Transport path open  
5-3.  
Loading Setting Cards  
The setting card loading operation is performed by turning on the power while holding down  
the cleaning switch.  
When the setting card is then inserted, the information on the card changes the operating  
mode of the device.  
If the changes are successful, success is printed at the bottom of the card. If an error occurs,  
unsuccessful is printed.  
Refer to the setting card application manual for details regarding the creation of a setting card.  
5-4.  
Self-test Operation  
After setting the setting card reading operation, click 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 print the internal  
EEPROM setting status and the device version onto two cards, and discharges the cards.  
(On LAN models, NIC REPORT plus the normal test print is printed to two cards.)  
If a setting card is inserted during a self-test, the card will be discharged and the self-test  
operation will be canceled.  
When performing a self-test, magnetic data for the test is written to the card. Use a card  
whose magnetic stripe can be overwritten without causing a problem.  
After setting the setting card reading operation, a print patter is printed one card that is  
different from the one above if you continue pressing the CLEANING switch until the buzzer  
stops ringing.  
63  
 
 
5-5.  
Recommended Timeout  
Recommended  
Timeout Value Setting  
Minimum Value in ms  
Units  
Command  
Name  
Function  
21  
22  
23  
25  
26  
27  
First track read command  
After card insertion, track 1 read, data request (format  
automatic judgment)  
6000+α *1  
6000+α *1  
6000+α *1  
6000+α *1  
6000+α *1  
6000+α *1  
Second track read command  
After card insertion, track 2 read, data request (format  
automatic judgment)  
Third track read command  
After card insertion, track 3 read, data request (format  
automatic judgment)  
First track read command (status with no card)  
Second track read command (status with no card)  
Third track read command (status with no card)  
After card presence check, track 1 read, data request  
(format automatic judgment)  
After card presence check, track 2 read, data request  
(format automatic judgment)  
After card presence check, track 3 read, data request  
(format automatic judgment)  
Track 1 read data request, if not read, read operation starts  
Track 2 read data request, if not read, read operation starts  
Track 3 read data request, if not read, read operation starts  
After waiting card insertion, executes magnetic write/read/verify  
29  
2A  
2B  
31  
First track buffer read command  
Second track buffer read command  
Third track buffer read command  
6000+α *1  
6000+α *1  
6000+α *1  
6000+α *1  
Magnetic stripe write Idle command  
Magnetic stripe write Idle command (status with no card)  
32  
35  
36  
37  
38  
39  
3A  
3B  
3C  
3D  
40  
41  
42  
After card check, executes magnetic write/read/verify  
JISII track 1 write data setting 210BPI  
6000+α *1  
1000  
Reverse 7 bit format first track data setting command  
Reverse 7 bit format second track data setting command  
JISII track 2 write data setting 210BPI  
1000  
Reverse 7 bit format third track data setting command JISII track 3 write data setting 210BPI  
1000  
7 bit format first track data setting command  
7 bit format second track data setting command  
7 bit format third track data setting command  
First track data setting command  
JISII track 1 write data setting 210BPI  
JISII track 2 write data setting 210BPI  
JISII track 3 write data setting 210BPI  
ISO track 1 write data setting AN 210BPI  
ISO track 2 write data setting BCD 70BPI  
ISO track 3 write data setting BCD 210BPI  
Print memory clear  
1000  
1000  
1000  
1000  
Second track data setting command  
1000  
Third track data setting command  
1000  
Print expansion buffer clear command  
Print character data setting command  
Built-in image data 1 expansion command  
1000  
Print data setting (details in separate table)  
3000+α  
3000  
Expansion to buffer of built-in image data 1  
Data settings downloaded from BMP file by separately provided  
program.  
43  
44  
External image data expansion command (line)  
Two-byte external character font register command  
External image data setting (for each one line)  
α
24 x 24 two-byte external character font registration 16 characters/16  
x 16 two-byte external character font registration 16 characters  
2000  
45  
Single-byte external character font register command  
Erase + print a discharge command  
24 x 12 single-byte external character font registration 16  
characters/16 x 8 single-byte external character font  
registration 16 characters  
1000  
46  
47  
Card insertion wait, parameter specification executes  
erase and print operations  
10000+α  
Card insertion wait, executes additional print without  
erasing  
10000+α  
Print discharge command  
48  
49  
4D  
4E  
50  
51  
52  
53  
54  
55  
58  
59  
5A  
5B  
Erase operation  
Clear of external image data  
External image data setting (block)  
10000+α  
2000  
α
Erase discharge command  
Buffer clear command  
External image data expansion command (block)  
Bar code data setting command  
Card discharge command  
Card backside idle command  
Cleaning command  
Card front side idle command  
Card insertion wait status cancel command  
Card pull-out wait status cancel command  
ROM version request command  
Status request command  
1000  
2000  
2000  
60000  
2000  
1000  
1000  
1000  
1000  
1000  
1000  
Card discharge  
Card backside idling  
Magnetic head, thermal head, erase head cleaning  
Card frontside idle  
Card insertion wait status cancel  
Card pull-out wait status cancel  
ROM version request  
Detects status of each sensor  
LED, buzzer control  
Cleaning button enable/disable  
Sets to initial status, performs initialize operation  
LED, buzzer control command  
Cleaning button enable/disable command  
5F  
90  
Reset command  
3000  
1000  
Communication setting command  
Communication setting (details in separate table)  
91  
95  
96  
Various settings command  
Card conveyance count request command  
Print count request command  
Various settings (details in separate table)  
Card reciprocation, path movement operation count  
1000  
1000  
1000  
TPH print operation count  
*1  
*2  
When magnetic read write command timeout value is to retry 3 times  
α: Set for operation on host system.  
64  
 
 
ELECTRONIC PRODUCTS DIVISION  
STAR MICRONICS CO., LTD.  
536 Nanatsushinya, Shimizu-ku,  
Shizuoka, 424-0066 Japan  
Tel : 0543-47-0122  
OVERSEAS SUBSIDIARY COMPANIES  
STAR MICRONICS AMERICA, INC.  
1150 King Georges Post Road, Edison,  
NJ 08837-3729 U.S.A.  
STAR MICRONICS U.K. LTD.  
Star House, Peregrine Business  
Park, Gomm Road, High Wycombe,  
Bucks, HP13 7DL, U.K.  
Tel : 732-623-5555  
Tel : 01494-471111  
Fax: 0543-48-5013  
Fax: 732-623-5590  
Fax: 01494-473333  
Please access the following URL  
http://www.star-m.jp/eng/dl/dl03.htm  
for the lastest revision of the manual.  
Distributed by  
REV. 1.00 2006.01.27  
Printed in Japan, 80874705  
 

Snapper Air Cleaner 10A900 User Manual
Snapper Snow Blower 1690088 User Manual
Sony Digital Camera DSC F77 User Manual
Sony Microcassette Recorder MZ RH10 User Manual
Sony MiniDisc Player MZ R3 User Manual
Sony Projector Accessories PAM 200 User Manual
Star Micronics Printer LC 6211 User Manual
Stovax Stove 7100 User Manual
Suunto Scuba Diving Equipment SS019098000 User Manual
Symphonic TV DVD Combo LCD TV DVD User Manual