You are on page 1of 10

SM ELECTRONIC TECHONLOGIES Pvt. Ltd.

LCTP INTERFACE CARD


PRODUCT SPECIFICATION

Ver.1.0 1
SM ELECTRONIC TECHONLOGIES Pvt. Ltd.

Table of Contents

1. System Specifications………………………………………………….......3

2. Thermal printer interface board…………………………………………4

2.1 Connector Details……………………………………………….….4

2.2 Serial Interface Specification………………………………….…..4

2.3 Description of Signals…………………………………………..…5

3. Command Specifications……………………………………………..…..6

4. Test Print………………………………………………………………….10

5. Error Detection……………………………………………………………10

Ver.1.0 2
SM ELECTRONIC TECHONLOGIES Pvt. Ltd.

1. System Specifications

The features of the printer unit using this Control board and printer Mechanism (384 dots/line)
are as follows.

1. Maximum 15mm / second high- speed printing.

2. 32 bytes of buffer. (Extendable to 1KB).

3. Compact and light weight.

4. RS-232C full duplex and with handshaking.

5. Paper out detection.

6. Selectable fonts size: 12x8, 12x16, 12x24, 24x16, 24x24, 24x32, 24x40 and 24 x 48 dots.
Characters can be selected by commands.

7. Prints bitmap image.

8. Paper cut function by auto-cutter is optional.(Provision is there on the PCB. In current


Board components are not loaded.)

9. UPC-A fixed 12 Barcode Standard. (Other standards are optional.)

10. Head Over voltage detection.

11. Self test and Test print functionality available.

Ver.1.0 3
SM ELECTRONIC TECHONLOGIES Pvt. Ltd.

2. THERMAL PRINTER INTERFACE BOARD

2.1 Connector Details


Parts number and the pin assignment of each connector are shown below. The direction is
assumed to be the one seen from the control board side.

• J3 (Power supply)

Pin no Signal Description

1 Vcc Logic power supply terminal. 7.5 to 8V DC.


Min current 3A.
2 GND Logic power supply ground terminal.

• J2 (Cutter Connector)
Pin no Signal Description

1 CHPS Home Position Sensor.


2 GND Logic power supply ground terminal.
3 MT+
Auto Cutter Motor Driver Signals.
4 MT-

• J6 (Serial Interface connector)

Pin no Signal I/O Description


1 TXD Output Transmit
2 RTS Output Request to Send
3 RXD Input Receive
4 CTS Input Clear to Send
5 GND Signal ground.

Note: The direction of I/O is the one having seen from the printer side.

2.2 Serial Interface Specification

1. General Specification
a. System : Serial Interface
b. Data receiving speed : 9600 bps
c. Synchronous system : Start-stop synchronous system
d. Input/Output level : RS-232 level

2. Electrical Characteristics of Input / Output Signals


Signal level (for Output)
a) Space (logic = 0): + 5 V ~ + 12 V
b) Mark (logic = 1): - 5 V ~ - 12 V

Ver.1.0 4
SM ELECTRONIC TECHONLOGIES Pvt. Ltd.

2.3 Description of Signals


Signal Name Function
RXD 1. Serial data input signal. Data signal to be transferred
from host to printer.
2. “Space” indicates no data (=), “Mark” indicates that
data exists (= 1)
3. The data format is as follows

Start Bo B1 B2 B3 B4 B5 B6 B7 stop

Note *1) Length of stop bit is 1 bit fixed


Note *2) Data length is 8bits fixed
4. Start bit is “Space” and stop bit is “Mark”
TXD 1) Serial data output signal. Data signal to be
transferred from printer to host.
2) Other functions are the same as RXD
RTS 1) Output signal to indicate that printer is in data
receive enable status.
2) “Space” indicates data receive enable
status, ”Mark”, an error occurs and data is ignored.
3) If data is sent from host when this signal is “Mark”,
an error occurs and data is ignored.
4) “Mark” is output during initialization, receive buffer
full status and when an abnormality is detected.
CTS 1) Input signal to indicate that printer is in data
transmission enable status.
2) When this signal is “Space”, printer judges the
status as data transmission enable, and sends data to
host. When this signal is “Mark”, printer does not
send data.

Ver.1.0 5
SM ELECTRONIC TECHONLOGIES Pvt. Ltd.

3. Command Specification
Each command is explained using the following conventions.
[Name] Command Name
[Function] Function of Command
[Code] Control code represented in hexadecimal or decimal notation.

(1) HT

[Name] Horizontal tab

[Function] The HT command moves the printing position to the next horizontal tab position.

[Code] [09]16
[09]10

(2) LF

[Name] Line feed

[Function] The LF command prints the data already contained in the print buffer, then sets
the next-data receive at the leftmost column on the next line.

[Code] [0A]16
[10]10

3) FF

[Name] Forms feed (new page)

[Function] The FF command prints the data already contained in the print buffer, then sets
the next-data receive position at the leftmost column on the next page.

[Code] [0C]16
[12]10

(4) CAN

[Name] Buffer Clear

[Function] Clear character data in the buffer.

[Code] [18]16
[24]10

Ver.1.0 6
SM ELECTRONIC TECHONLOGIES Pvt. Ltd.

(5) ESC RS

[Name] BLACK-White reversed printing specification.

[Function] This Command specifies black-white reversed printing.

[Code] [1B]16 [1E]16


[27]10 [27]10

(6) ESC US

[Name] BLACK-White reversed printing cancellation.

[Function] This Command cancels black-white reversed printing

[Code] [1B]16 [1F]16


[27]10 [31]10

(7) ESC ! + n

[Name] Printing mode specification.

[Function] This command specifies the printing mode.

[Code] [1B]16 [21]16 [n]


[27]10 [33]10 [n]

n Font
0X11 12X8
0X12 12X16
0X13 12X24
0X01 24X16
0X02 24X24
0X03 24X32
0X04 24X40
0X05 24X48

Ver.1.0 7
SM ELECTRONIC TECHONLOGIES Pvt. Ltd.

(8) ESC A + n

[Name] Line Spacing setting.

[Function] This Command sets the line spacing to “n” dot lines.

[Code] [1B]16 [41]16 [n]


[27]10 [65]10 [n]

(9) ESC D + n

[Name] n-line feed.

[Function] This command prints the data and feeds a line, then feeds the paper by “n” lines.

[Code] [1B]16 [64]16 [n]


[27]10 [100]10 [n]

(10) ESC J + n

[Name] Forward Paper feed.

[Function] This command feeds the paper in the forward direction.

[Code] [1B]16 [4A]16 [n]


[27]10 [74]10 [n]

(11) ESC K + n

[Name] Backward Paper feed.

[Function] This command feeds the paper in the backward direction.

[Code] [1B]16 [4B]16 [n]


[27]10 [75]10 [n]

(12) FS E + n

[Name] Correction of impressed energy.

[Function] Impressed energy is corrected.

[Code] [1B]16 [45]16 [n]


[28]10 [69]10 [n]

Ver.1.0 8
SM ELECTRONIC TECHONLOGIES Pvt. Ltd.

(13) ESC*+m+n +data

[Name] Bitmap Image printing.

[Function] This command prints the Bitmap data.

[Code] [1B]16 [2a]16 [m] [n] [data]


[27]10 [42]10 [m] [n] [data]

Maximum bitmap printing is 65536 dot lines (0xFFFF)


[m] Specifies the first byte of the number of bitmap lines to be printed
[n] Specifies the last byte of the number of bitmap lines to be printed
Number of bytes to be sent for printing Bitmap is {([m]16 [n]16 ) X 48}.
Example:
If the bit map is having 100 dot lines then [m] = 0X00 and [n] = 0X64. The
number of bytes to be sent is 100 * 48.

[100]10 = [00]16 [64] 16 So the bytes to be send (48 * 100) = 4800 bytes.

(14) Fs k +m+code

[Name] UPC-A fixes 12 barcode standard.

[Function] This command prints UPC-A fixes 12 barcode standard.

[Code] [1D]10 [6B]10 [m] [ code]


[29]10 [107]10 [m] [code]

[m] is always fixed to value 12.(0x0C)


[code] is 12 digit code (‘0’ ~ ‘9’)

(14) GS+O

[Name] Cutting

[Function] This command is used for cutting the paper.

[Code] [1D]16 [4F]16

Ver.1.0 9
SM ELECTRONIC TECHONLOGIES Pvt. Ltd.

4. TEST PRINT.
Test print can be printed by keeping the switch pressed while powering the board. The default
configuration of interface card and a sample print is printed. It aslo performs an auto paper cut
after the sample print provided the printer mechanism has the cutter.

5. ERROR DETECTION.
In normal operation LED glows continuously.
On paper out detection the LED starts blinking and an error message – Paper out error, is sent
through serial port.
On Over head voltage detection the LED starts blinking and an error message – Over voltage
error is sent through serial port.

Ver.1.0
10

You might also like