3-1. Communication Procedures -------------------------------------------------------------------------2
3-2. Transmission Control Matrix-------------------------------------------------------------------------4
3-3. Transmission Control Matrix (Reader Type)----------------------------------------------------5
3-4. Command and Response Transfer Formats ---------------------------------------------------6
3-5. Transfer Control Characters -------------------------------------------------------------------------6
3-6. Cards for Processing ----------------------------------------------------------------------------------7
3-7. Retrying and Verifying---------------------------------------------------------------------------------7
3-8. Reading the Buffer -------------------------------------------------------------------------------------8
3-9. Commands and Status Lists ------------------------------------------------------------------------9
4. COMMAND DETAILS 12
4-1. Magnetic Stripe Commands ------------------------------------------------------------------------ 12
4-2. Print and Erase Commands ------------------------------------------------------------------------ 24
4-3. Card Commands ---------------------------------------------------------------------------------------45
4-4. Information Display Commands ------------------------------------------------------------------- 48
4-5. Cleaning Command ----------------------------------------------------------------------------------- 52
4-6. Other Commands -------------------------------------------------------------------------------------- 53
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 Reader/writer
Command Sent → Command received
ACK received ← ACK sent
Command processed
Response received ← Response sent
ACK sent → ACK received
Sequence resent
Host Reader/writer
Command Sent → Command received
NAK received ← NAK sent
Command resent → Command received
ACK received ← ACK sent
Command processed
Response received ← Response sent
NAK sent → NAK received
Response received ← Response resent
ACK sent → ACK received
2
DLE Sequence
Host Reader/writer
Command sent → Command received
DLE received ← DLE sent
See section 2-5. Transmission Control Characters for details regarding ACK, NAK and
DLE character codes.
3
3-2. Transmission Control Matrix
Event
Host status
ACK received NAK received DLE received Response received No response
Idling Read and discarded Read and discarded Read and discarded Read and discarded Nothing occurs
After command is
sent
waiting to receive
ACK received
Resend command
block or process as
communication error
Command withdrawn Reset TCP
If timeout error,
process timeout error
ACK
After ACK received
waiting to receive
response
After response
received ACK
After response
received NAK
Receive response
Reset TCP Reset TCP Reset TCP
block, respond with
ACK or NAK
Reset TCP Reset TCP Reset TCP Reset TCP
Receive response
Reset TCP Reset TCP Reset TCP
block, send ACK or
NAK
Do nothing or process
timeout error
Send next command
If timeout error,
process timeout error
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
TCP status
1 Idling
2 Command received Buffering → 2 Buffering → 3
3 BCC received
4 Wait for ACK after
response sent
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.
STX received ETX received Other receptionsACK received NAK received No response
→2
If BCC matched
→ 4
If BCC does not
match
NAK sent→ 1
Read and
discarded→ 4
Read and
discarded→1
If BCC matched
→ 4
If BCC does not
match
NAK sent→ 1
Read and
discarded→ 4
Read and
discarded→1
If data error
DLE sent → 1
If data normal
buffering → 2
If BCC matched
→ 4
If BCC does not
match
NAK sent→ 1
Read and
discarded→ 4
Read and
discarded→1
If data error
DLE sent → 1
If data normal
buffering → 2
If BCC matched
→ 4
If BCC does not
match
NAK sent→ 1
→1
Read and
discarded→1
If data error
DLE sent → 1
If data normal
Buffering → 2
If BCC matched
→ 4
If BCC does not
match
NAK sent→ 1
Response
resend → 4
→1
→2
→3
→4
5
3-4. Command and Response Transfer Formats
Command Transfer Formats
STX Commands Data String ETX BCC
Response Transfer Formats
STX
Commands
Status Data String ETX BCC
Data string must be within 1024 bytes.
BCC is an exclusive logic sum from the command to ETX.
3-5. Transfer Control Characters
The following shows the transmission control character codes and functions.
Character Code Function
STX 02h Text start symbol
ETX 03h Text end symbol
ACK 06h Normal response
NAK 15h Resent request
DLE 10h Reject response
LF 0Ah Line feed of printed line
ESC 1Bh Start escape sequence
BCC - Block check character
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
CodeContent of Command
21hFirst track read command310
22hSecond track read command300/310
23hThird track read command310
25hFirst track read (status with no card) command 310
26hSecond track read (status with no card) command 300/310
27hThird track read (status with no card) command 310
29hFirst track buffer read command310
2AhSecond track buffer read command300/310
2BhThird track buffer read command310
35hReverse 7 bit format first track data setting command310
36hReverse 7 bit format second track data setting command300/310
37hReverse 7 bit format third track data setting command310
38h7 bit format first track data setting command310
39h7 bit format second track data setting command300/310
3Ah7 bit format third track data setting command310
3BhFirst track data setting command310
3ChSecond track data setting command300/310
3DhThird track data setting command
31hMagnetic strip write → idle command300/310
32hMagnetic strip write → idle (status with no card) command300/310
40hPrint expansion buffer clear command
49hBuffer clear command
41hPrint data setting command
42hEmbedded image data 1 expand command
43hExternal image data expand command (line mode)
44hTwo-byte external character font register command
45hSingle-byte external character font register command
46hDelete + print → discharge command
47hPrint → discharge command*3
48hDelete → discharge command*3
4DhExternal data expand command (block mode)
4EhBar code data setting command
50hCard discharge command
53hCard front idle command
51hCard back idle command
54hCard insertion wait status cancel command
55hCard removal wait status cancel command
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: 6 bit + 1 parity ISO7811/2 First track recording model
3Ch: 4 bit + 1 parity ISO7811/2 Second track recording model
3Dh: 4 bit + 1 parity ISO7811/2 Third track recording model
1 Track magnetic head model (TCP300**)
3Bh: Not supported
3Ch: 6 bit + 1 parity ISO7811/2 Second track recording model
3Dh: 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 Status Content Rank
20h Normal
22h No target card (only when using a no card status command) C
23h No magnetic stripe (when inserted backward) or other error C
31h Parity Error B
32h No start code/end code B
33h LRC Error B
34h Erroneous character B
37h Magnetic stripe writing error B
38h Card jam B
40h Cover open B
41h Invalid command C
42h Cam motor error A
43h Erase head temperature error A
45h EEPROM error A
4Ch Non-compatible BMP file data C
51h Expand buffer overflow C
Rank A: Reader/writer hard error; inspection and repair are required.
Rank B: Device cleaning and card reissuing requiring operator. Depending on the frequency
Rank C: Minor error or errors that can be easily recovered from that do not occur except
These ranks have been established based upon their potential to occur under
of the error, it may be necessary to inspect and repair the reader/writer.
when debugging software. If these repeatedly occur, it may be necessary to inspect
and repair the reader/writer.
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 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.
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
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
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
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
rasterized image data transmitted from the host is expanded in the rasterized image register
. The reader/writer prints the contents of the rasterized image register buffer with the
buffer
print expansion buffer
so if the erase + print command (46h) is executed again, the same print results will be
attained.
The rasterized image register buffer
or by turning the power off and on again.
Command Transfer Formats
STX 49h ETX 4Ah
Response Transfer Formats
STX 49h Status ETX BCC
with the print expansion buffer by the erase + print command (46h), but data
is cleared only by executing the print expansion buffer clear
by the erase + print command (46h), but data remains in both buffers,
by the character (including external
.
and print expansion buffer. The
is cleared only by executing buffer clear command (49h)
24
g
(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
string.
The print control header string
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 strin
Response Transfer Formats
STX 41h Status ETX BCC
is composed of the card arrangement direction parameter, the
ETX BCC
and the print text data
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
expand to each print expansion buffer.
When the card arrangement direction specification is ‘0,’ ‘2’: ‘0’ to ‘319’
When the card arrangement direction specification is ‘1,’ ‘3’: ‘0’ to ‘479’
• Y coordinate specification parameter
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,’ ‘2’: ‘0’ to ‘479’
When the card arrangement direction specification is ‘1,’ ‘3’: ‘0’ to ‘319’
.
of the text data to
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,
• 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 0
ESC “G1” Expands the 1
th
24 dot two-byte external character font
st
24 dot two-byte external character font
:
:
ESC “G9” Expands the 9
ESC “GA” Expands the 10
:
ESC “GE” Expands the 14
ESC “GF” Expands the 15
th
24 dot two-byte external character font
th
24 dot two-byte external character font
th
24 dot two-byte external character font
th
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” 3 digit configuration
For horizontal cards: “000” to “479” 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” 3 digit configuration
For horizontal cards: “000” to “319” 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: ‘1’ to ‘2’ 1 digit configuration
ESC “W1” Specifies normal width fonts.
ESC “W2” Specifies double width fonts.
• ESC V/v
Sets the vertical size of characters to expand.
ESC ‘V’/’v’ next parameter range: ‘1’ to ‘2’ 1 digit configuration
ESC “V1” Specifies normal height fonts.
ESC “V2” Specifies double tall fonts.
• ESC B/b
Specifies the line width of ANK characters.
ESC ‘B’/’b’ next parameter range: ‘0’ to ‘2’ 1 digit configuration
ESC “B0” Specifies normal narrow gothic fonts.
ESC “B1” Specifies enhanced gothic fonts.
ESC “B2” Specifies double-enhanced 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” Specifies 24 dot fonts.
ESC “F1” 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
STX 42h
arrangement
specification
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
When the card arrangement specification is ‘0,’ ‘2’: ‘0’ to “319”
When the card arrangement specification is ‘1,’ ‘3’: ‘0’ to “479”
• Data arrangement Y coordinate parameter
Specifies the Y coordinate on the upper left edge
When the card arrangement specification is ‘0,’ ‘2’: ‘0’ to “479”
When the card arrangement specification is ‘1,’ ‘3’: ‘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.
Data
‘,’
Data
arrangement X
coordinate
arrangement Y
‘,’
coordinate
‘,’
Expansion
image
specification
number
Data
of the image to expand.
of the image to expand.
ETX BCC
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
Y address
Response Transfer Formats
STX 43h Status 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’ – “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
. Becomes 0 when omitted.
buffer
’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 ‘3’ (33h)
● bit 1
○ bit 2
○bit 3
○bit 4 ‘A’ (41h)
● bit 5
○bit 6
● bit 7
‘,’Expansion image
data
ETX BCC
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
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.
start X
coordinate
.
‘,’
Expansion
start Y
coordinate
Image data
‘,’
length
‘,’
Expansion
image data
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 ‘3’ (33h)
● bit 1
Ο bit 2
Ο bit 3
Οbt 4 ‘A’ (41h)
● bit 5
Ο bit 6
● bit 7
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
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
Response Transfer Formats
STX 44h Status ETX BCC
Parameter Explanation
• Font size specification data
This specifies the font size to register.
‘0’: Vertical/horizontal: 24 dot x 24 dot fonts
‘1’: Vertical/horizontal: 16 dot x 16 dot fonts
• ‘,’ (Commas)
Required to separate parameters.
• External character registration number parameter
This specifies the external character number to register. To set print data, any external print
font can be printed by specifying this external character register number.
‘0’ to ‘F’ can be specified.
• External character font data parameter
Specifies external 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.
‘,’External
character
registration
number
‘,’External font
data
(the
ETX BCC
34
Example Setting
A B C DEF G H IJKLMNOPQRSTUVW X
1
2 ●
3 ●
4 ●●●
5 ●●●
6 ●●
7 ●●●●●
8 ●●●●●●●
9 ●●●●●●●●●
Data:
“0” Font number
“001000001000081020101010” A to D string
“20000840380400FE0000FF01” E to H string
“80FF0380FF03C0FF07DEFFF7” I to L string
“C0FF0780FF0380FF0300FF01” M to P string
“00FE00003100400004201008” Q to T string
“101010081020001000000000” U – X string
35
r
(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)
Command Transfer Formats
STX 45h Font size
specification
Response Transfer Formats
STX 45h Status ETX BCC
Parameter Explanation
• Font size specification data
This specifies the font size to register.
‘0’: Vertical/horizontal: 24 dot x 12 dot fonts
‘1’: Vertical/horizontal: 16 dot x 8 dot fonts
• ‘,’ (Commas)
Required to separate parameters.
• External character registration number parameter
This specifies the external character number to register. To set print data, any external print
font can be printed by specifying this external character register number.
‘0’ to ‘F’ can be specified.
• External character font data 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.
as external fonts. Along with sizes, 16 fonts can be registered.
‘,’ External characte
registration
number
‘,’External font
ETX BCC
data
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
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’ (30h): Does not erase
‘1’ (31h): Erases
• Separating characters
‘,’ (2Ch): Used to separate parameters.
• Print control method
‘0’ (30h): Does not print
‘1’ (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
,Erasing control
method
,Print control
method
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
After printing, the card is discharged to front.
For example, this applies to one-time media.
• Parameter specification example 5
STX 46h 31h
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
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
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.
30h ETX BCC
,
31h
,
and rasterized image register buffer are not cleared with the
ETX BCC
30h ETX BCC
,
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
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.
ETX BCC
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
.
string
Command Transfer Formats
STX 4Eh Bar Code Control Header
String
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
.
and the bar code data
Bar Code Data String ETX BCC
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’, ‘AC’, ‘AD’, ‘BA’, ‘BB’, ‘BC’, ‘BD’
‘CA’, ‘CB’, ‘CC’, ‘CD’, ‘DA’, ‘DB’, ‘DC’, ‘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.
• 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
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’
.
in the device and the cover open
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)
(3) LED, buzzer control command
Command Transfer Formats
STX 5Ah Control data string ETX BCC
Response Transfer Formats
STX 5Ah Status ETX BCC
Parameter Explanation
V 1.00 X”
(2) (3) (4) (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”)
This controls the STATUS LED and buzzer.
This does not control the CLEANING LED.
• 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.
Either of 47h (‘G’)/67h (‘g’)/31h (‘1’) Sets to green.
Either of 4Fh (‘O’)/6Fh (‘o’)/33h (‘3’) Sets to orange.
Either of 52h (‘R’)/72h (‘r’)/32h (‘2’) Sets to red.
Use the following codes for LED operation and buzzer setting data.
Code Function
20h ‘ ’ Continues current operation
30h ‘0’ Turns OFF
31h ‘1’ Turns ON
32h ‘2’ Starts blinking
33h ‘3’ Blinks once
34h ‘4’ Blinks three times
(4) Card transport count request command
This command request the number of times cards have been transported in the device, as a
reference.
The transport count data string reads out the count 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
Response Transfer Formats
STX 95h Status Transport count data ETX BCC
Code Function
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
Response Transfer Formats
STX 96h Status Print count data ETX BCC
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
r
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 paramete
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 Type Parameters Functions Initial Value
USB Serial Number ‘U’
‘0’ to ‘9’ Serial number for USB interface ‘1’
‘u’
ETX BCC
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
‘J’/‘j’
‘F’/‘f’
thickness
Enable magnetic
writing track
Enable magnetic
reading track
Magnetic stripe retry
count
Cleaning ‘U’/‘u’ ‘0’ to ‘7’ Print head cleaning count ‘3’
Two-byte character
space
Single-byte
character space
Character space ‘M’/‘m’ ‘0’ to ‘F’ Line space dot count ‘2’
LED control ‘L’/‘l’ ‘0’ to ‘3’ LED control method specification ‘0’
Initialize
Magnetic format
reading direction
conforming to
JISX6302
Magnetic stripe
format
• 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.
‘B’/‘b’
‘C’/‘c’ ‘0’ to ‘7’
‘R’/‘r’
‘P’/‘p’
‘W’/‘w’ ‘0’ to ‘7’ Specifies number of retries. ‘2’
‘D’ ‘0’ to ‘F’
‘d’ ‘0’ to ‘F’
‘Z’/’z’ ‘0’
‘K’/‘k’
‘10’ to ‘14’
‘E’/’e’
‘20’ to ‘24’
‘30’ to ‘34’ Third track writing data format
‘0’ Two-byte font specification ANK fonts sizes
‘1’ Single-byte font specification
‘0’ 24 dot font specification 24/16 dot font types
‘1’ 16 dot font specification
‘0’ Narrow gothic specification ANK character
‘1’ Enhanced gothic specification
See explanation
‘0’ to ‘7’ See explanation
‘0’ Vertical Card arrangement
‘1’ Horizontal
Character space dot count
Character space dot count
Returns device to ex-factory
default settings.
‘0’ Reading direction conforming to
JISX6302
‘1’ Opposite direction conforming to
JISX6302
First track writing data format
setting
Second track writing data format
setting
setting
Value
‘1’
‘0’
‘0’
‘2’
‘2’
‘0’
‘2’
‘2’
―
‘0’
‘11’
‘22’
‘33’
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’: Prints as 24 dot fonts
‘1’: 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.
• 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’
Alphabet
, ‘0’, ETX, BCC
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 Display Remarks
Normal STATUS and buzzer flash one time
SRAM error STATUS and buzzer flash two times while
CLEANING lights.
EEPROM error STATUS and buzzer flash three times while
CLEANING lights.
Print head lifter motor
error
Erase head/thermistor
error
Other errors CLEANING and buzzer flash four times while
Cover open Buzzer intermittent ringing
Transport path open Buzzer intermittent ringing and STATUS
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.
Card insertion wait, executes additional print without
10000+α
erasi ng
48
Erase → dischar
e com mand
Erase operation10000+α
49Buffer clear commandClear of external image data2000
4DExternal image data expansion command (block)External image data setting (block)α
4EBar code data setting comm and1000
50Card discharge commandCard discharge2000
51Card backside idle commandCard backside idling2000
52Cleaning commandMagnetic head, thermal head, erase head cleaning60000
53Card front side idle commandCard frontside idle2000
54Card insertion wait status cancel commandCard insertion wait status cancel1000
55Card pull-out wait status cancel commandCard pull-out wait status cancel1000
58ROM version request commandROM version request1000
59Status request commandDetects status of each sensor1000
5ALED, buzzer control commandLED, buzzer control1000
5BCleaning button enable/disable commandCleaning button enable/disable1000
5FReset command
Sets to initial status, performs initialize operation
3000
90Communication setting commandCommunication setting (details in separate table)1000
91Various settings commandVarious settings (details in separate table)1000