Sei sulla pagina 1di 56

iPMESC2R01A

Date:05/01/2017
Time:16:00

User's Manual

iPMESC2R01A
Impact Dot-matrix/Thermal
Printer

Copyright © Softland India Ltd

Specifications subject to change without notice

www.softlandindia.co.in
-1-
iPMESC2R01A

Table of Contents

1. GENERAL INFORMATION................................................................................................ 4

1.1 Models

1.2 Features

1.3 Accessories

2. iPrint Marvel AT A GLANCE.............................................................................. 6

2.1 Overview
2.2 Part Description

3. CONFIGURING THE iPrint Marvel ................................................................. 9

3.1 Connection Confuguration

3.1.1 Printer Self Test


3.1.2 Bluetooth Connectivity
3.1.3 RS-232 Connectivity
3.1.4 USB Connectivity
3.1.5 WiFi Connectivity.

3.2 Printing Configuration

3.2.1 Printing Method


3.2.2 Font Settings Commands
3.2.3 Other Settings Commands

4. USER INTERFACE TOOLS FOR


WINDOWS ......................................................................................................................20

www.softlandindia.co.in
-2-
iPMESC2R01A

4.1) Blue-tooth Printing


4.1.1 Configuring iPrint Marvel for Windows XP
4.1.2 Configuring iPrint Marvel for Windows 7
4.2) USB File Transfer

5.USER INTERFACE TOOLS FOR ANDROID .........................................................25

5.1) Blue-tooth Printing

6. FIRMWARE UPDATE.................................................................................................30

7. SAFETY AND MAINTENANCE................................................................................30

7.1) Safety Information


7.2) Preventing Paper Jams
8. COMMAND LIST IN DETAIL.................................................................................. 31

www.softlandindia.co.in
-3-
iPMESC2R01A

1. GENERAL INFORMATION.

This device runs with a powerful 32-bit Cortex-M3(ARM ) Micro controller, that
has the ability to process with speeds up to 100MHz. With its 512 kB on-chip Flash ROM
and 64 kB RAM, it can be programmed efficiently. The device performs printing in Blue-
tooth, USB ,Serial Communication (RS-232) and WIFI modes.

1.1 Models.

◦ 24 column Impact Printer


The 24 column Impact Printer is a Dot Matrix Printer able to print 24
characters per line.

◦ 32 column Thermal Printer


The 32 column Thermal Printer is a Thermal printer able to print 32
characters per line.

1.2 Features.

◦ 32-bit Cortex-M3(ARM ) Micro controller.


◦ 24 column Impact Printer.
◦ 32 column Thermal Printer.
◦ 4MB Flash Memory.
◦ Blue-tooth Printing.
◦ RS-232 Printing.
◦ USB Printing.
◦ WIFI Printing.
◦ Excellent Battery Backup.

www.softlandindia.co.in
-4-
iPMESC2R01A

1.3 Accessories.
The following accessories come along with your iPrint Marvel.

• High-speed USB 2.0 connector cable.

To connect the iPrint Marvel to your computer.

• 10V DC charger.

To charge the iPrint Marvel.

www.softlandindia.co.in
-5-
iPMESC2R01A

2. iPrint Marvel AT A GLANCE.


2.1 Overview.

24 COLUMN IMPACT PRINTER

www.softlandindia.co.in
-6-
iPMESC2R01A

32 COLUMN THERMAL PRINTER

www.softlandindia.co.in
-7-
iPMESC2R01A

2.2 Part Description.

(1). Power On Indicator


This indicates that the device is in ON-State.

(2). Charger Plug-In Socket


To charge the device, plug in the charger in this socket.

(3). USB Cable Socket


For printing via USB, for data transfer and for Firmware Updating,
connect the High Speed USB cable to this Socket.

(4). Paper Feed Key


For automatic paper feed.

(5). Power ON-OFF Key


To Turn On or Turn-Off the device, use this button.

(6). Device Status Indication LED


Indicates the current status of the device. The On state of this LED
indicates that the device is processing.

(7). Paper Roll


The paper roll to be used is to be inserted into this slot.

www.softlandindia.co.in
-8-
iPMESC2R01A

3. CONFIGURING THE iPrint Marvel.

3.1 Connection Configuration

3.1.1 Printer Self-Test

To test the device, press and hold the Paper feed key along with the switch-
On Button.
If the Printer is working properly, manufacturers name, the device name ,the
firmware version and alphabets A to Z will be printed.

3.1.2 Bluetooth Connectivity

Baud Rate : 115200bps


Data Bits :8
Parity : none
Stop Bit :1
Flow Control : none
Protocol used : BTSPP (Blue tooth serial port profile).

Pass key for Blue tooth device is 1234.


Device name is SILBT-XX (XX – 01 to 99).

www.softlandindia.co.in
-9-
iPMESC2R01A

www.softlandindia.co.in
-10-
iPMESC2R01A

www.softlandindia.co.in
-11-
iPMESC2R01A

3.1.3 RS232 Connectivity

Baud Rate : 115200bps


Data Bits :8
Parity : none
Stop Bit :1
Flow Control : none
Protocol used : RS232

3.1.4 USB Connectivity

Protocol used : USB Device class.


Usage : Data Transfer Mode & Printing Mode.

www.softlandindia.co.in
-12-
iPMESC2R01A

3.1.5 WiFi Connectivity


For WiFi Connectivity , a file called WIFISETUP.DAT is maintained.

The file structure is defined as ,

__packed typedef struct


{
char connection;
char cSsid[30]; //service set identifier
char cPassword[30];
char cHostIp[20];
char cRemotePort[10];
char cDeviceIp[20];
char cGateway[20];
char cNetmask[20];
char cWifiURL[65];
char cWifiDestination[30];
char Reserved[10];
}WI_FI; //256 bytes.

You can change the WiFi Settings either by ,


1. Command Method
command details : <0x1F><0x77><256 Bytes of Data Structure>
2. USB Transfer Method
Use USB transfer utility to update WIFISETUP.DAT.

Note:- All the fields of structure should contain specified number of bytes for
at particular field. So that the offset of each field is correctly maintained.

www.softlandindia.co.in
-13-
iPMESC2R01A

WIFISETUP.DAT example file

3.2 Printing Configuration


Loading the Paper Roll:Thermal Printer

www.softlandindia.co.in
-14-
iPMESC2R01A

www.softlandindia.co.in
-15-
iPMESC2R01A

www.softlandindia.co.in
-16-
iPMESC2R01A

Loading the Paper Roll:Dot-matrix Printer


Step 1: Open the door.

Step 2: Lead paper into the slot.

www.softlandindia.co.in
-17-
iPMESC2R01A

Step 3: Turn ON Printer & Press the paper-feed button.

Step 4: Put paper in the gap.

www.softlandindia.co.in
-18-
iPMESC2R01A

Step 5: Close the door. Completed.

www.softlandindia.co.in
-19-
iPMESC2R01A

3.2.1 Printing Method

For normal data , Printer will print all bytes between 0x19 and 0x7F, after all
bytes are received, the printer will wait for 500millisec to check if further
data is available or not. If timeout occurrs, then the printer will print all the
data available in the internal memory. The printer will send an
acknowledgment byte (0x06) after completing the print job in case of Blue-
tooth or RS-232 mode of printing. However, in USB printing this
acknowledgment is not sent.

• Printing Format for default text font styels: <command>Data<0x0A>


• Maximum size of data that can be printed is 8192 bytes(8KB).
• If the data length exceeds the maximum limit, printer will reject all data
from master device.
• Only 24 characters per line is possible for Dot matrix Printer.
• Only 32 characters per line is possible for Thermal Printer.

NOTE : Bar Code should be printed only using Thermal Printer as the Bar Code
printed by the Dot Matrix Printer will not be able to be read by Bar Code Scanner.

3.2.2 Font Settings Commands


1. Normal Font – <0x1B,0x21,0x00>
2. Double Height – <0x1B,0x21,0x10>
3. Double Width – <0x1B,0x21,0x20>
4. Double – <0x1B,0x21,0x30>

NOTE: Detailed Command set is added in Section 8.

www.softlandindia.co.in
-20-
iPMESC2R01A

Normal Font:

<0x1B,0x21,0x00>ABCDEFGHIJKLMNOPQRSTUVWXYZ<0x0A>

Double Height:

<0x1B,0x21,0x10>ABCDEFGHIJKLMNOPQRSTUVWXYZ<0x0A>

Double Width:

<0x1B,0x21,0x20>ABCDEFGHIJKLMNOPQRSTUVWXYZ<0x0A>

www.softlandindia.co.in
-21-
iPMESC2R01A

Double:

<0x1B,0x21,0x30>ABCDEFGHIJKLMNOPQRSTUVWXYZ<0x0D>

Bar-Code:

<0x1D,0x6B,0x49,0x0D>iPrint Marvel

Graphics:

• All values mentioned above are in Hexadecimal format.

www.softlandindia.co.in
-22-
iPMESC2R01A

4. USER INTERFACE TOOLS FOR WINDOWS.


4.1 Blue-tooth Printing

4.1.1. Configuring iPrint Marvel for Windows XP


• Switch ON the iPrint Marvel.
• Make sure that the Blue-tooth device driver you are using is
properly installed.
• Search for Blue-tooth devices.
• Connect with the Device named SILBT-XX (XX – 01 to 99)
using appropriate COMPort.
• For pairing, Pass key for Blue tooth device is 1234.
• Once connection is established, the status LED in the iPrint
Marvel will be turned ON.

4.1.2. Configuring iPrint Marvel for Windows 7


• Switch ON the iPrint Marvel.
• The Blue-tooth device driver is configured automatically in
Windows 7 OS.*
• Search for Blue-tooth devices.
• Connect with the Device named SILBT-XX (XX – 01 to 99)
using appropriate COMPort .
• For pairing, Pass key for Blue tooth device is 1234.
• Once connection is established, the status LED in the iPrint
Marvel will be turned ON.
• Restart the iPrint Marvel and connect the device again via Blue-
tooth.

www.softlandindia.co.in
-23-
iPMESC2R01A

4.2. USB File Transfer. (OPTIONAL)

USB File Transfer Utility

For transferring files into the internal Flash storage of the device, use
the File Transfer Utility. It includes file Download and Upload ( that is
Receive and Send respectively) options.

There are ten predefined files as described below.

Serial File Name File Size


Number
1 FILE1.DAT 1 MB
2 FILE2.DAT 512 KB
3 FILE3.DAT 512 KB
4 FILE4.DAT 256 KB
5 FILE5.DAT 256 KB
6 FILE6.DAT 256 KB
7 FILE7.DAT 128 KB
8 FILE8.DAT 128 KB
9 FILE9.DAT 128 KB
10 FILE10.DAT 128 KB

www.softlandindia.co.in
-24-
iPMESC2R01A

For uploading files from the PC to the device, select upload (Send) mode and click
browse button and choose the file to be downloaded and click the Transfer button .

www.softlandindia.co.in
-25-
iPMESC2R01A

www.softlandindia.co.in
-26-
iPMESC2R01A

For downloading files into the PC from the device, select download (Receive)
mode and type the name of the file to be downloaded and click the Transfer button.

www.softlandindia.co.in
-27-
iPMESC2R01A

After completion of usage of the utility, click on Disconnect to exit the application.

5. USER INTERFACE TOOLS FOR ANDROID.

5.1 Blue-tooth Printing


Configuring iPrint Marvel for phones with Android Operating Systems.

• Switch ON the iPrint Marvel.


• Switch on Blue-tooth in the mobile phone.
• Search for Blue-tooth devices.
• Connect with the Device named SILBT-XX (XX – 01 to 99).
• For pairing, Pass key for Blue tooth device is 1234.
• Once connection is established, the status LED in the iPrint
Marvel will be turned ON.

After connection establishment, use the application software provided


for your phone. While receiving the data to be printed, the status LED will
blink continuously.

www.softlandindia.co.in
-28-
iPMESC2R01A

• Run the iPrint Marvel Blue-tooth printing application.

www.softlandindia.co.in
-29-
iPMESC2R01A

• Click TEXT button.


• Enter the text to print.
• Add any styles in text.
• Click Set button.
• Continue adding texts with different styles and Set them.
• Finally click Send button.

www.softlandindia.co.in
-30-
iPMESC2R01A

• Click on Connect.It will search for other Blue-tooth active devices and
list them.
• Select and pair .

www.softlandindia.co.in
-31-
iPMESC2R01A

• Now click OK to print.


• You can also use Image/ Barcode / Hex file Selections in the above
manner.

www.softlandindia.co.in
-32-
iPMESC2R01A

6. Firmware Upgrade.
To change the firmware of Printer, please follow the steps given below:

• Make sure that the printer is switched off.


• Connect USB cable to the printer and to the PC.
• Press paper feed key and Switch ON the printer and wait for the printer to
be detected by the PC as a drive.
• Open the drive named “PrintMarvel”.
• Delete “Firmware.bin” from the drive.
• Copy new firmware to the drive.
• Safely remove the device from the PC.
• Remove the USB cable and restart the iPrintMarvel.

7. Safety and Maintenance.

7.1 Safety Information.

• Do not touch the HEAD of the Printer with anything


• Only use the charger and USB cable that comes along with the printer.
• Use only approved accessories and do not try to disassemble, repair or
remodel it for yourself.
• Do not let water or other foreign objects in the printer.

7.2 Preventing Paper Jams.


The paper should not be touched during printing.
Shifting the paper during paper feed may cause a feed failure or paper jam.

www.softlandindia.co.in
-33-
iPMESC2R01A

8. Command List

ESC COMMANDS FOR iPRINT MARVEL

1.To Change Baud rate

[Name] Baudrate Settings.


[Format] ASCII ESC 1 n
Hex 1B 31 n
Decimal 27 49 n
[Range] 0≤n≤4
[Default] n=4
[Description]
n Baud rate
0 9600
1 19200
2 38400
3 57600
4 115200

[Notes]
• Bluetooth Port baudrate is fixed as 115200. This cannot be changed using this command.
• The changed setting stands upto a software/hardware reset or upto next restart.

www.softlandindia.co.in
-34-
iPMESC2R01A

2. Initialize Printer
[Purpose] Initialize printer
[Format] ASCII ESC @
Hex 1B 40
Decimal 27 64
[Range] None
[Default] None
[Description] Clears the data in the print buffer and resets the printer modes to the modes that were
in effect when the power was turned on.
Keeps the following data:
• Offline response setting.
• Contents defined for the NV graphics (NV bit image).
• Contents stored in the NV user memory.
• Setting value specified with GS ( E.
• Maintenance counter value .
• Customizing assignment for the ASB status bit.
• Macro definition data.
• The image scanning results in the NV memory for image data storage.
[Notes]
■ When this command is processed in page mode, the printer deletes the data in the printing areas,
initializes all settings, and selects standard mode.
■ After this command is executed, the printing position moves to left edge of printing area and
printer’s state becomes “beginning of the line” and “no data in print buffer.”
■ The data in the receive buffer is not cleared.
■ This command can cancel all settings, such as print mode and line feed, at the same time.

3. Print
[Name] Print and line feed
[Format] ASCII LF
Hex 0A
Decimal 10
[Range] None
[Default] None

www.softlandindia.co.in
-35-
iPMESC2R01A

[Description] Prints the data in the print buffer and feeds one line, based on the current line
spacing.
[Notes]
■ The amount of paper fed per line is based on the value set using the line spacing command (ESC
2 or ESC 3).
■ After printing, the print position moves to the beginning of the line, and the state of the printer
becomes
“beginning of the line” and “no data in print buffer.”

4. Print and Feed n Lines


[Name] Print and feed n lines
[Format] ASCII ESC d n
Hex 1B 64 n
Decimal 27 100 n
[Range] 0 ≤ n ≤ 255
[Default] None

[Description] Prints the data in the print buffer and feeds the paper [n × (current line spacing)].
[Notes]
■ The amount of paper fed per line is based on the value set using the line spacing command (ESC
2 or ESC 3).
■ The maximum paper feed amount is 1016 mm {40 inches}. If the specified amount exceeds 1016
mm {40 inches}, the paper feed amount is automatically set to 1016 mm {40 inches}.
■ After printing, the print position moves to the beginning of the line, and the state of the printer
becomes
“beginning of the line” and “no data in print buffer.”
■ This command is used to temporarily feed a specific line without changing the line spacing set by
other commands.

www.softlandindia.co.in
-36-
iPMESC2R01A

5. Print and Reverse feed n lines


[Name] Print and reverse feed n lines
[Format] ASCII ESC e n
Hex 1B 65 n
Decimal 27 101 n
[Range] 0 ≤ n ≤ 255
[Default] None
[Description] Prints the data in the print buffer and feeds the paper [n × (current line spacing)] in
the reverse direction.
[Notes]
■ The amount of paper fed per line is based on the value set using the line spacing command (ESC
2 or ESC 3).
■ The maximum paper feed amount depends on the printer model.
■ After printing, the print position moves to the beginning of the line, and the state of the printer
becomes
“beginning of the line” and “no data in print buffer.”
■ This command is used to temporarily feed a specific line without changing the line spacing set by
other commands.
■ For Dot-matrix Printer only printing, no reverse feed afterwards.
6. Line spacing Commads
(a) Default line spacing
[Purpose] Select default line spacing
[Format] ASCII ESC 2
Hex 1B 32
Decimal 27 50
[Range] None
[Default] None
[Description] Sets the line spacing to “default line spacing” for the paper type selected by ESC c 1.
[Notes]
■ Selected line spacing is effective until ESC 3 is executed, ESC @ is executed, the printer is reset,
or the power is turned off.

www.softlandindia.co.in
-37-
iPMESC2R01A

(b) Set line spacing


[Purpose] Set line spacing
[Format] ASCII ESC 3 n
Hex 1B 33 n
Decimal 27 51 n
[Range] 0 ≤ n ≤ 255
[Default] “default line spacing” (See ESC 2 for “default line spacing”)
[Description] Sets the line spacing to [n × (vertical or horizontal motion unit)] for the paper type
selected by ESC c 1.
[Notes]
■ If the vertical motion unit is changed after this command is performed, the amount of line spacing
is not changed.
■ Selected line spacing is effective until ESC 2 is executed, ESC @ is executed, the printer is reset,
or the power is turned off.

7. Change Language
[Purpose] To change language
[Format] ASCII ESC t n
Hex 1B 74 n
Decimal 27 116 n
[Range] 0 ≤ n ≤ 255
[Default] n=0
[Description] In standard mode, using n according to EPSON code table as follows:
n Language Default Alignment
0 Default LEFT
1 English LEFT
2 English Stylish LEFT
32 Arabic RIGHT
66 Hindi LEFT
68 Tamil LEFT
73 Malayalam LEFT
74 Gujrati LEFT

www.softlandindia.co.in
-38-
iPMESC2R01A

82 Marathi LEFT
83 Sinhala LEFT

[Notes]
■ When changing the language, it will also adjust the alignment without considering the current
alignment. But the alignment can be changed manually using <ESC a n> command.

8. Justification
[Purpose] Select justification
[Format] ASCII ESC a n
Hex 1B 61 n
Decimal 27 97 n
[Range] 0 ≤ n ≤ 2, 48 ≤ n ≤ 50
[Default] n=0
[Description] In standard mode, aligns all the data in one line to the selected layout, using n as
follows:
n Justification
0,48 LEFT
1,49 CENTER
2,50 RIGHT

[Notes]
■ When standard mode is selected, this command is enabled only when processed at the beginning
of the line in standard mode.
■ The justification has no effect in page mode.
■ This command justifies printing data (such as characters, various graphics, bit images, bar codes,
and two-dimension bar codes) and space area set by HT, ESC $, and ESC \.
■ Settings of this command are effective until Language change,ESC @ is executed, the printer is
reset, or the power is turned off.

9.Print Styles
[Name] Print Styles
[Format] ASCII ESC ! n
Hex 1B 21 n
Decimal 27 33 n

www.softlandindia.co.in
-39-
iPMESC2R01A

[Range] 0 ≤ n ≤ 255
[Default] n=0

[Description]
n: Bit OFF/ON Hex Decimal Function
0 OFF 0 0 Reserved
1 OFF 0 0 Double Strike Mode is
turned OFF.
ON 2 2 Double Strike Mode is
turned ON.
2 OFF 0 0 Negative Mode is turned
OFF.
ON 4 4 Negative Mode is turned
ON.
3 OFF 0 0 Emphasis Mode (Bold
Font) is turned OFF.
ON 8 8 Emphasis Mode (Bold
Font) is turned ON.
4 OFF 0 0 Double Height Mode is
turned OFF.
ON 10 16 Double Height Mode is
turned ON.
5 OFF 0 0 Double Width Mode is
turned OFF.
ON 20 32 Double Width Mode is
turned ON.
6 OFF 0 0 Reserved
7 OFF 0 0 Underline Mode is turned
OFF.
ON 80 128 Underline Mode is turned
ON.
[Notes]
■ Double Strike & Emphasis Mode are applicable only for Thermal Printer.
10. Right Side Character Spacing
[Name] Right Side Character Spacing
[Format] ASCII ESC SP n
Hex 1B 20 n

www.softlandindia.co.in
-40-
iPMESC2R01A

Decimal 27 32 n
[Range] 0 ≤ n ≤ 255
[Default] n=0
[Description] Sets the right-side character spacing to [n × (horizontal or vertical motion unit)].
[Notes]
■ When changing the language, it will also adjust the alignment without considering the current

11. Reverse Feed


[Name] Reverse Feed
[Format] ASCII ESC K n
Hex 1B 4B n
Decimal 27 75 n
[Range] 0≤n≤1
[Default] n=0
[Description]
• If n = 0, Pressing Paperfeed button results Forward feed.
• If n = 1, Pressing Paperfeed button results Reverse feed.
[Notes]

■ Reverse feed works only for Thermal Printer.

12. Rotation
[Name] Turn 90° clockwise rotation mode on/off
[Format] ASCII ESC V n
Hex 1B 56 n
Decimal 27 86 n
[Range] 0 ≤ n ≤ 1 , 48 ≤ n ≤ 49
[Default] n=0
[Description]
In standard mode, turns 90° clockwise rotation mode on or off for characters, using n as follows:
n Function
0,48 Turns off 90° clockwise rotation mode.
1,49 Turns on 90° clockwise rotation mode with 1-dot horizontal spacing.

www.softlandindia.co.in
-41-
iPMESC2R01A

[Notes]

13. Bit Images - Raster


[Name] Print raster bit image
[Format] ASCII GS v 0 m xL xH yL yH d1...dk
Hex 1D 76 30 m xL xH yL yH d1...dk
Decimal 29 118 48 m xL xH yL yH d1...dk
[Range] 0 ≤ m ≤ 3, 48 ≤ m ≤ 51
1≤ xL + xH × 256 ≤ 255 (0 ≤ xL ≤ 255, xH = 0)
1≤ yL + yH × 256 ≤ 4607 (0 ≤ yL ≤ 255, 0 ≤ yH ≤ 17)
0 ≤ d ≤ 255
k = (xL + xH × 256) × (yL + yH × 256)
[Default] None
[Description]
Prints a raster bit image using the mode specified by m, as follows:
m Mode Scale of width Scale of height
0 , 48 Normal x1 x1
1 , 49 Double-width x2 x1
2 , 50 Double-height x1 x2
3 , 51 Quadruple x2 x2

[Notes]

14. Bit Images – Column


[Name] Select bit-image mode
[Format] ASCII ESC ✻ m nL nH d1 ... dk
Hex 1B 2A m nL nH d1 ... dk
Decimal 27 42 m nL nH d1 ... dk
[Range] 0 ≤ nL ≤ 255
0 ≤ nH ≤ 3, where 1 ≤ (nL + nH × 256) ≤ 1023

www.softlandindia.co.in
-42-
iPMESC2R01A

0 ≤ d ≤ 255
k = nL + nH × 256 (when m = 0, 1)
k = (nL + nH × 256) × 3 (when m = 32, 33)
[Default]
[Description]
m Bit image mode Number of Dot density Amount of data (k)
bits for in horizontal
vertical data
0 8-dot single-density 8 single nL + nH × 256
1 8-dot double-density 8 double nL + nH × 256
32 24-dot single-density 24 single (nL +nH × 256) × 3
33 24-dot double-density 24 double (nL +nH × 256) × 3

[Notes]
• Relation between bit image data and print result is as follows.

8 dot mode
d1 d2 d3 ------------------ dk

24 dot mode
d1 d4 d7 ------------------ dk-2

d2 d5 d8 dk-1

d3 d6 d9 dk

5. Bit Images– Non Volatile


(a) Define NV Bit image

www.softlandindia.co.in
-43-
iPMESC2R01A

[Name] Define NV Bit image


[Format] ASCII FS q n[xL xH yL yH d1...dk]1...[xL xH yL yH d1...dk] n
Hex 1C 71 n[xL xH yL yH d1...dk]1...[xL xH yL yH d1...dk] n
Decimal 28 113 n[xL xH yL yH d1...dk]1...[xL xH yL yH d1...dk] n
[Range] 1 ≤ n ≤ 255
1 ≤ (xL + xH × 256) ≤ 1023 (0 ≤ xL ≤ 255, 0 ≤ xH ≤ 3)
1 ≤ (yL + yH × 256) ≤ 288 (0 ≤ yL ≤ 1, 0 ≤ yH ≤ 1)
0 ≤ d ≤ 255
k = (xL + xH × 256) × (yL + yH × 256) × 8
Total defined data area is 384 KB

[Default] None
[Description] Defines the NV bit image in the NV graphics area.
• n specifies the number of defined NV bit images.
• xL, xH specifies the NV image in the horizontal direction as (xL + xH ×
256) bytes.
• yL, yH specifies the NV image in the vertical direction as (yL + yH × 256)
bytes.
• d specifies the definition data (column format).
• k indicates the number of the definition data. k is an explanation parameter;
therefore it does not need to be transmitted
[Notes] ■ Bit image data and print result are as follows:
d1 dY+1 ... .
.
d2 dY+2 ... dk-2

. . ... dk-1
. .
dY dYx2 ... dk

(b) Print NV Bit image


[Name] Print NV Bit image
[Format] ASCII FS p n m
Hex 1C 70 n m

www.softlandindia.co.in
-44-
iPMESC2R01A

Decimal 28 112 n m
[Range] 1 ≤ n ≤ 255
0 ≤ m ≤ 3, 48 ≤ m ≤ 51
[Default] None
[Description] Prints NV bit image n using the process of FS q and using the mode specified by m.
m Mode Scale of width Scale of height
0 , 48 Normal x1 x1
1 , 49 Double-width x2 x1
2 , 50 Double-height x1 x2
3 , 51 Quadruple x2 x2

[Notes]

16. Horizontal Tab


[Purpose] Horizontal tab
[Format] ASCII HT
Hex 09
Decimal 9
[Range] None
[Default] None
[Description] Moves the print position to the next horizontal tab position.
[Notes]

17. Set HT Positions


[Name] Set horizontal tab positions
[Format] ASCII ESC D n1 ... nk NUL
Hex 1B 44 n1 ... nk 00
Decimal 27 68 n1 ... nk 0
[Range] 1 ≤ n ≤ 255
0 ≤ k ≤ 32
[Default] n = 8, 16, 24, 32, ... (Every eight characters for the default font)

www.softlandindia.co.in
-45-
iPMESC2R01A

[Description] Sets horizontal tab positions.


• n specifies the number of digits from the setting position to the left edge of the print area.
• k indicates the number of horizontal tab positions to be set. k is an explanation parameter;
therefore it does not need to be transmitted.

18. Upside Down Print


[Purpose] Turn upside-down print mode on/off
[Format] ASCII ESC { n
Hex 1B 7B n
Decimal 27 123 n
[Range] 0 ≤ n ≤ 255
[Default] n=0
[Description] In standard mode, turns upside-down print mode on or off.
• When the LSB of n is 0, upside-down print mode is turned off.
• When the LSB of n is 1, upside-down print mode is turned on.
[Notes]
■ When standard mode is selected, this command is enabled only when processed at the beginning
of the line.
■ Upside-down print mode is effective for all data in standard mode except for the following.
• Graphics from GS ( L <Function 112> or <Function 113>.
• Raster bit image from GS v 0.
• Variable vertical size bit image from GS Q 0.
■ The upside-down print mode has no effect in page mode.
■ When upside-down print mode is turned on, the printer prints 180°-rotated characters from right
to left. The line printing order is not reversed; therefore, be careful of the order of the data
transmitted.
■ Settings of this command are effective until ESC @ is executed, the printer is reset, or the power
is turned off.

19. Barcode
[Note] Recommended only for Thermal Printer.

(a) Print position of HRI characters


[Purpose] Select print position of HRI characters
[Format] ASCII GS H n

www.softlandindia.co.in
-46-
iPMESC2R01A

Hex 1D 48 n
Decimal 29 72 n
[Range] 0≤n≤3
48 ≤ n ≤ 51
[Default] n=0

[Description] Selects the print position of Human Readable Interpretation (HRI) characters when
printing a bar code, usinn as follows:
n Justification
0,48 Not printed
1,49 Above the bar code
2,50 Below the bar code
3,51 Both above and below the bar code

[Notes]
■ Settings of this command are effective until ESC @ is executed, the printer is reset, or the power
is turned off.
■ Human Readable Interpretation (HRI) is indicating the contents of bar code, it is printed with bar
code.
(b) Barcode Height
[Purpose] Set bar code height
[Format] ASCII GS h n
Hex 1D 68 n
Decimal 29 104 n
[Range] 1 ≤ n ≤ 255
[Default] n = 162
[Description] Sets the height of the bar code to n dots.
[Notes]
■ The settings of this command are effective until ESC @ is executed, the printer is reset, or the
power is turned off.

(c) Barcode width


[Purpose] Set bar code width
[Format] ASCII GS w n

www.softlandindia.co.in
-47-
iPMESC2R01A

Hex 1D 77 n
Decimal 29 119 n
[Range] 2≤n≤6
[Default] n=3
[Description] Sets the horizontal size of the bar code.
• n specifies the width of module.
[Notes]
■ The settings of this command are effective until ESC @ is executed, the printer is reset, or the
power is turned off.

(d) Print Barcode


[Purpose] Print bar code
[Format] ASCII GS k m n d1 ... dn
Hex 1D 6B m n d1 ... dn
Decimal 29 107 m n d1 ... dn
[Range] 65 ≤ m ≤ 73
[Default] None
[Description] Prints the bar code using the bar code system specified by m.
m Barcode Amount of The range of Characters Character
System Data n code
(decimal)
69 CODE39 Can be 1 ≤ n ≤ 255 0~9, A~Z 48 ≤ d ≤ 57, 65
changed SP, $, %, *, +, ≤ d ≤ 90,
-, ., / d = 32, 36, 37,
42, 43, 45, 46,
47
73 CODE128 Can be 2 ≤ n ≤ 255 00H~7FH 0 ≤ d ≤ 127 (d1
changed = 123, 65 ≤ d2
≤ 67)
• n specifies the number of bytes of bar code data.
• d specifies the character code data of the bar code data to be printed.
[Notes]
[CODE39 (m = 4, 69)]
■ Start (character) (ASCII=”*”/Hex=2AH/Decimal=42) is processed as follows:
• When the first bar code byte (d1) is “*,” the printer processes the data as a start

www.softlandindia.co.in
-48-
iPMESC2R01A

(character).
• If the first bar code byte (d1) is not “*,” the printer adds a start character automatically.
■ Stop character (ASCII=”*”/Hex=2AH/Decimal=42) is processed as follows:
• When the last code (dk or dn) is “*,” the printer processes the data as a stop character.
• When the last code (dk or dn) is not “*,” the printer adds a stop character automatically.
• If the printer encounters “*” in the bar code, the printer processes the data as a stop
character. In this case, the bar code followed by “*” is printed and the processing is ended.
■ A check digit is not calculated and added.

[CODE 128 (m = 73)]


■ Always specify a start character (CODE A, CODE B, CODE C) as the first 2 bytes (d1,
d2) of the data.
■ Check digit (1 character) is calculated and added automatically.
■ The stop character is added automatically.
■ When HRI characters are designated to be added, special character HRI characters are
processed as follows.
■ The HRI characters for shift character (SHIFT) and code set selection character (CODE A,
CODE B,
CODE C) are not printed.
■ Space is printed for the HRI function characters (FNC1, FNC2, FNC3, FNC4) and control
characters (in Hexadecimal: 00H to 1FH, 7FH / in Decimal: 0 to 31, 127).

20. Print Single Dotline


[Purpose] Print a single dotline
[Format]
Hex IF 10 n d1.........dn
Decimal 29 104 n d1.........dn
[Range] 1 ≤ n ≤ 48
[Default] None
[Description] Prints the raster single line data defined by d1.....dn.
'n' defines number of bytes.
[Notes]

www.softlandindia.co.in
-49-
iPMESC2R01A

21. Real Time Settings


[Purpose] To Get/Print/Set real time .
[Format]
ASCII FS t n [date,time(Only for n=2)]
Hex 1C 74 n [date,time(Only for n=2)]
Decimal 28 116 n [date,time(Only for n=2)]
[Range] 0≤n≤2
[Default] None
[Description]
n Function
0 To get current time,date via
Serial/Bluetooth .
1 To print current time,date.
2 To set time,date.

[Notes]
 For n = 0, response will be given as "date-dd/mm/yyyy,time-hh:mm:ss".
For example , 12 Aug 2014, 10:55:32 will be responded as,
"date-12:08:2014,time-10:55:32"
 For n = 1, print will be given as "date-dd/mm/yyyy,time-hh:mm:ss".
 For n = 2, command should be given as ,
ASCII FS t n 1 2 0 8 2 0 1 4 , 1 0 5 5 3 2
HEX 1c 74 02 31 32 30 38 32 30 31 34 2c 31 30 35 35 33 32

22. Multi Print


[Purpose] To Print Multiple Languages in a single line .
[Format]

www.softlandindia.co.in
-50-
iPMESC2R01A

Hex 1F 6D n
Decimal 31 109 n
[Range] 0≤n≤1
[Default] 0
[Description]

n Function
0 Turn OFF Multiprint and print the
image.
1 Turn ON Multiprint.

[Notes]
 The purpose of this function is to create an image of size 384x32 (width x height) with any
language and any alignment .
 The term 'Current image' is defined as the image from the current print buffer .
 The term 'Final image' is defined as the combined image result of the already written
'Current images' up to there . To write a 'Current image' to the 'Final image' ,use the print
command ( 0x0a ).
 If Multiprint is turned ON ,the print command ( 0x0a) works differently. It will not perform
an actual print at this stage. For each print command , it writes the 'Current image' to the
'Final image' . When turns OFF the Multiprint ,it also does an actual print of the 'Final image
' without the print command.

23. Page Mode


[Purpose] Page mode command.
[Format]
ASCII ESC L
Hex 1B 4C
Decimal 27 76
[Range] None
[Default] None
[Description] This will switch the printer mode to Page Mode.
[Notes]

www.softlandindia.co.in
-51-
iPMESC2R01A

 The printer returns to standard mode with ESC S, FF, and ESC @. When it returns to
standard mode .Using ESC @, all settings are initialized.
 Standard mode is selected as the default.
 In page mode, the printer prints the data in the print buffer for the printing area specified by
ESC W collectively with FF or ESC FF. When executing print and paper feed commands ,
such as LF, CR, ESC and ESC d, only the printing position moves, and the printer does not
perform actual printing.
 Print area can be defined using the command ESC W. Default printing area is set to 384x960
(Width x Height) dots.
 Print direction can be set using the command ESC T. Default direction is Left to Right.

24. Standard Mode


[Purpose] Standard mode command.
[Format]
ASCII ESC S
Hex 1B 53
Decimal 27 83
[Range] None
[Default] None
[Description] This will switch the printer mode to Standard Mode.
[Notes]
 Standard mode is selected as the default.
 When executing print and paper feed commands , such as LF, CR, ESC and ESC d it
performs actual printing.

25. Print Direction


[Purpose] Select print direction in page mode
[Format] ASCII ESC T n
Hex 1B 54 n
Decimal 27 84 n

www.softlandindia.co.in
-52-
iPMESC2R01A

[Range] 0 ≤ n ≤ 3, 48 ≤ n ≤ 51
[Default] n = 0
[Description] In page mode, selects the print direction and starting position using n as follows:
n Print Direction A==>

B==>
0,48 Left to Right.(A in Image)
1,49 Not Defined.
2,50 Not Defined.
3,51 Top to Bottom.(B in Image)
[Notes]
 The print direction set by this command is effective only in page mode. Page mode is
selected by ESC L.
 Settings of this command are effective until ESC @ is executed, the printer is reset, or the
power is turned off.

26. WiFi Setup Command


[Purpose] Select print direction in page mode
[Format]
Hex 1F 77 (256 Bytes of WIFISETUP.DAT )
Decimal 31 119 (256 Bytes of WIFISETUP.DAT )
[Notes]
 Once the file updated, it will keep the file until next change.
 You can also use USB file transfer utility to update WIFISETUP.DAT file.

27. Battery Charge Functions


[Purpose] Battery Charge Functions
[Format] ASCII FS b n
Hex 1C 62 n
Decimal 28 98 n
[Range] 0 ≤ n ≤ 2
[Description]
n Function
0 To get battery charge via

www.softlandindia.co.in
-53-
iPMESC2R01A

Serial/Bluetooth .
1 To print battery charge.
2 Serial/Bluetooth response and Print

[Notes]
 For n = 0, response will be given as "BL=x".
Where 'x' ranges from 0 to 6.
For example , A full charged printer will be responded as,
"BL=6"
 For n = 1, print will be given as a graphic representation as follows.
For Battery level zero.
*
*
For Battery level 3.
*
*
*
upto
For Battery level 6.
 For n = 2, Serial/Bluetooth responses and Print will be given.

28. Device Serial Number Function


[Purpose] To read Device Serial Number.
[Format] ASCII FS n
Hex 1C 6E
Decimal 28 98
[Notes]
 The response will be given as "DSN=<16 BYTE SERIAL NUMBER>".
For example ,
"DSN=201607IPM022333B"

www.softlandindia.co.in
-54-
iPMESC2R01A

29. Login Commands


[Purpose] Login Command Functions for file sytem access.
[Format]
Hex 1F 4C n <data>
Decimal 31 76 n <data>
[Description]
n Function
0 Login Request.
1 Login PW Change

[Notes]
 The file system will be accessible only if there is a login occurs. That means all the file
operations over USB utility and Other commands are protected. The login session will last
upto next reboot/reset operation.The default password is “sil123”.
 For n=0 , Normal Login Request
<data> should be like <8 BYTE PASSWORD>
So the total number of bytes in <data> will be 8.
 For n=1,Login Password Change Request.
<data> should be like
<8 BYTE CURRENT PASSWORD , 8 BYTE NEW PASSWORD>
(Note the COMMA seperation between Current & New Passwords.)
So the total number of bytes in <data> will be 17
 If the password length is less than 8 ,please fill the remaining bytes as zero.
For example ,”sil123” can be set as follows
<0x73,0x69,0x6c,0x31,0x32,0x33,0x00,0x00>
 If there is a Password mismatch in either case , operation will be terminated and a response
message will be given in Serial/Bluetooth port.

www.softlandindia.co.in
-55-
iPMESC2R01A

Copyright © Softland India Ltd. All rights reserved.

Softland India Ltd reserves the right to make corrections, modifications, and other changes
to its products, documentation and services at any time. Customers should obtain the latest relevant
information before placing orders and should verify that such information is current and complete.

CONTACT US
No.14A, Kinfra Small Industries Park,
Menamkulam, Trivandrum-695586,
Kerala, INDIA
CIN NO : U72200KL1995PLC009122
Phone : +91-471-2704090, 6454257, 6454258
Fax : +91-471-2706350
website :www.softlandindia.co.in

www.softlandindia.co.in
-56-

Potrebbero piacerti anche