Intermec EasyCoder C4 Reference guide

Category
Label printers
Type
Reference guide
Programmers
Reference Manual
ESim v4.00 for
EasyCoder C4
Bar Code Label
Printer
Intermec Printer AB
Idrottsvägen 10
P.O. Box 123
S-431 22 Mölndal
Sweden
Service support: +46 31 869500
The information contained herein is proprietary and is provided solely
for the purpose of allowing customers to operate and/or service Intermec
manufactured equipment and is not to be released, reproduced, or used
for any other purpose without written permission of Intermec.
Information and specifi cations in this manual are subject to change
without notice.
© 2003 by Intermec Printer AB
All Rights Reserved
EasyCoder, EasyLAN, Fingerprint, and LabelShop are registered
trademarks of Intermec Technologies Corp. The word Intermec, the
Intermec logo, InterDriver, PrintSet, and Duratherm are trademarks of
Intermec Technologies Corp.
The name Centronics is wholly owned by GENICOM Corporation.
Kimdura is a registered trademark of Kimberly Clark.
Microsoft is a registered trademark of Microsoft Corporation.
Windows is a trademark of Microsoft Corporation.
Throughout this manual, trademarked names may be used. Rather than
put a trademark (™) symbol in every occurrence of a trademarked name,
we state that we are using the names only in an editorial fashion, and to
the benefi t of the trademark owner, with no intention of infringement.
Intermec EasyCoder ESim v4.00—Programmer’s Reference Manual iii
Preface
Contents
Preface ..........................................................................................iii
Table of Contents..........................................................................iii
Introduction ................................................................................. vi
1
General Information
Dump Mode..................................................................................2
Memory.........................................................................................3
Direct Mode ..................................................................................3
Form Edit Mode ............................................................................4
Form..............................................................................................4
Text Editor.....................................................................................4
Commands ....................................................................................4
Field...............................................................................................5
Field Positioning ............................................................................6
2
Commands List
Direct Mode ................................................................................10
Form Edit Mode ..........................................................................12
3
Setting Up the Printer
Default Setup ..............................................................................14
Example.......................................................................................15
4
Editing in Direct Mode
Example........................................................................................18
5
Editing in Form Edit Mode
Example........................................................................................20
6
Retrieving and Printing a Form
Example.......................................................................................26
iv Intermec EasyCoder ESim v4.00—Programmer’s Reference Manual
Preface
7
Commands
Syntax.......................................................................................... 30
A Print Text ..........................................................................31
B Standard Bar Codes............................................................36
b Two-Dimensional Bar Codes, General Part ........................40
MaxiCode......................................................................41
PDF417 ........................................................................42
Datamatrix ....................................................................44
C Counter..............................................................................45
C Cut Immediate...................................................................48
D Density...............................................................................49
EI List Soft Fonts ....................................................................52
EK Delete Soft Font .................................................................53
ES Store Soft Font ...................................................................54
eR User-Defi ned Error/Status Character Control.....................57
f Cut Position .......................................................................59
FE End Store Command..........................................................60
FI Print Form Information......................................................61
FK Delete Form .......................................................................62
FR Retrieve Form.....................................................................63
FS Form Store .........................................................................64
GG Print Graphics ....................................................................65
GI Print Graphics Information ................................................66
GK Delete Graphics..................................................................67
GM Store Graphics in Memory .................................................68
GW Store Graphics in Image Buffer...........................................70
I Character Set Selection.......................................................71
i Asian Character Spacing .....................................................72
JB Disable Top of Form Backup..............................................73
JF Enable Top of Form Backup...............................................74
j Media Feed Adjustment......................................................75
LE Line Draw Exclusive...........................................................76
LO Line Draw Black.................................................................77
LS Line Draw Diagonal ...........................................................78
LW Line Draw White ...............................................................79
M Memory Allocation ............................................................80
N Clear Image Buffer .............................................................83
O Options Select....................................................................84
oR Character Substitution........................................................86
P Print...................................................................................87
Intermec EasyCoder ESim v4.00—Programmer’s Reference Manual v
Preface
PA Print Automatic..................................................................88
Q Set Form Length.................................................................89
q Set Label Width .................................................................93
R Set Reference Point.............................................................94
S Speed Select........................................................................95
U Print Confi guration (General) ............................................96
UC Command Reply Accept Character Control .......................97
UDC Memory Cartridge Information..........................................98
UE Soft Font Information Inquiry............................................99
UF Form Information Inquiry................................................100
UG Graphics Information Inquiry ..........................................101
UI Enable Prompts/Code Page Inquiry..................................102
UM Code Page & Memory Inquiry .........................................103
UN Disable Error Reporting ...................................................104
UP Code Page & Memory Inquiry/Print................................105
US Enable Error Reporting ....................................................106
UV Product Identity and Asian Font Types .............................107
V Defi ne Variable.................................................................108
W Windows Mode................................................................110
X Draw Box.........................................................................111
Y Serial Port Setup...............................................................112
Z Print Direction .................................................................113
? Download Variables..........................................................114
^@ Reset Printer.....................................................................115
^ee Immediate Error Report ...................................................116
8
Fonts
Resident Fonts ...........................................................................120
Font Sizes 1-5 ............................................................................121
9
Code Pages and Character Sets
Printout samples ........................................................................124
A
Error-Handling
Error-Handling Principles..........................................................140
Error Types ................................................................................142
Error Replies ..............................................................................143
Error Replies Table.....................................................................144
vi Intermec EasyCoder ESim v4.00—Programmer’s Reference Manual
Preface
Introduction
The EasyCoder C4 printers from Intermec are provided with a built-in
protocol (ESim) by which you can use any computer, terminal, scanner
or keyboard, that can produce ASCII characters, to control the printer.
This is a useful alternative to the Intermec InterDriver, which requires a
PC operating under Microsoft Windows.
With the ESim protocol, you can use any editor to control the printer,
either by means of the serial RS-232 channel or the parallel Centronics
channel.
The EasyCoder C4 ESim protocol is compatible with the corresponding
protocol for EasyCoder 91, even if some commands or command
parameters have no meaning in EasyCoder C4, and some commands are
new.
Note that EasyCoder C4 has a fl ash memory for forms and graphics,
which requires special consideration. Avoid storing frequently changing
data in fl ash (see GM and GW commands in Chapter 7) and use printer
drivers developed for EasyCoder C4 rather than EasyCoder 91 drivers.
This manual will assist you in designing labels using the ESim protocol.
It has been organized to provide you with an under-standing of the
printers functions and command structure.
The manual describes version 4.00 of the ESim protocol.
If you have any questions regarding the protocol or this manual, please
contact your Intermec distributor for technical assistance.
Intermec EasyCoder ESim v4.00—Programmer’s Reference Manual 1
1
General Information
This chapter explains the basic functions and modes of
the ESim protocol and helps understanding the more
comprehensive explanations in the other chapters in
this manual.
2 Intermec EasyCoder ESim v4.00—Programmers Reference Manual
Chapter 1—General Information
Dump Mode
The printer has the capability to perform in dump mode, which means
that the printer will print out the echo of the received ASCII. Use this
capability to debug your software when the printer does not perform as
you expect.
To enter Dump Mode:
Turn off the power to the printer.
For best result, load the printer with full width labels or tags.
Hold down the Feed key and turn on the power again.
• Release the Feed key when the indicator lamp fl ashes green.
This procedure adjusts the label stop sensor and media feed and
produces a test label, see below.
After the test label has been printed, the printer enters the Dump
Mode, as indicated by the last line on the test label.
Part No , ESim version, & checksum
Serial RS-232 port setup (see Y cmd)
USB port
Test pattern
Number of SRAMs installed
Image buffer size (see M cmd)
Form memory size (see M cmd)
Graphic memory size (see M cmd)
Font memory size (see M cmd)
Character set (see I command)
Speed – Density – Ref. point – Dir – Errors
(see S, D, R, Z & UN/US cmds)
Label width –Form length
(see q & Q cmds)
Options (see O & C cmd)
LSS (liner+label – detection level – liner)
Dump Mode On
Example of a test label from an 203.2 dpi (8 dots/mm) EasyCoder C4 without any
memory cartridge installed.
Do not use continuous stock in Dump Mode. An error will
occur since there are no gaps or slots to detect.
Intermec EasyCoder ESim v4.00—Programmer’s Reference Manual 3
Chapter 1—General Information
In the Dump Mode, the output is the same label as produced by means
of a U command, but an extra line will be appended saying “now in
DUMP”. Then the printer waits for ASCII dump printing.
Send a string of characters or a label form to the printer and tap the Feed
key to produce a printout. Dump mode will also print control characters,
see character set table on page 137.
To return to normal mode, briefl y tap the Feed key. A label with the
message “out of DUMP” will be printed.
Memory
The fi rmware has memory allocation for print image buffer, form,
graphic, and external font memory. The fi rst time the printer is used, it is
automatically initialized to default settings, see page 14.
The M memory command sets the image buffer, the form memory,
and graphic memory area. The remaining memory space, if any, is
allocated to the external font memory, which is intended for bitmap fonts
downloaded using external software.
Direct Mode
You can print a label without using a predefi ned format by sending write
commands (text, bar codes, graphics, lines and boxes) to the printer
after having cleared the image buffer using an N command. The label
remains stored in the image buffer and can be printed over and over again
by sending new P print commands, until the buffer is cleared by an N
command, or by retrieving and printing a Form (see FR command).
The Direct Mode is also used for retrieving and printing preprogrammed
label formats, for the issuing of global setup commands, for deleting
forms and graphics from memory, and to make the printer produce a
number of different reports.
4 Intermec EasyCoder ESim v4.00—Programmers Reference Manual
Chapter 1—General Information
Form Edit Mode
This mode is used to permanently store label forms and graphics in the
printer memory. In addition to plain text, bar codes, graphics, lines,
and boxes, form edit mode also allows the use of variables and counters,
which are not available in the Direct Mode. The individual label forms
can be retrieved and printed in the Direct Mode.
Some setup parameters can be included in forms in order to adapt the
printer for different applications. However, such setup parameters will
affect the global setup after the form has been retrieved and printed.
Form
Every label is made up of various fi elds. A form is the complete set of
commands that defi ne the content and the design of the label. A form
can be saved in memory and retrieved when required.
Text Editor
Use any ASCII output device with a parallel or serial port and a text
editor to design the form and programming the printer. Communication
is based on the ASCII characters 10 dec. and 32-255 dec.
Commands
The command syntax is based on upper and lower case characters,
numeric characters, commas (as separators), quotation marks and line
feeds (LF; ASCII 10 dec.). The LF in this manual is listed as in the
command descriptions. Line Feeds (LF) are required to be sent at the
end of most command lines! Some commands require to be appended by
both a carriage return and a line feed (<CR/LF>).
Note that all programming examples start with LF (depicted as ). It is
strongly recommended to start any sequence of command lines with a
Line Feed (LF).
Most PC based systems send CR/LF when pressing the <Enter> key. The
CR (carriage return) sent in a CR/LF sequence will be ignored. CR alone
will not work.
Refer to page 10 for a list showing for which purposes the various
commands can be used.
Intermec EasyCoder ESim v4.00—Programmer’s Reference Manual 5
Chapter 1—General Information
Field
Each command line of printable data will create a fi eld, which is defi ned
in regard of start position, rotation, magnifi cation, etc.
X Axis
Y Axis
Feed
Direction
Variable
Text V00
Graphic
Rotated
text
Fixed Text
Line
Counter C0
Counter C1
Box
EASYCODER C4
FRAGILE
PACKED BY: SAM
SERIAL NO. 654
76532
Bar Code
The illustration shows how a label is printed and fed out
when using the default direction.
6 Intermec EasyCoder ESim v4.00—Programmers Reference Manual
Chapter 1—General Information
Field Positioning
The printable area of the label forms a grid, where the X-axis runs across
the media and the Y-axis runs along the media path. Dots are used as
the unit for establishing position of the upper left corner of each fi eld in
relation to a specifi ed reference point.
The printer is available with two different printhead densities (the 203.2
dpi printer and the 300 dpi printer have different fi rmware versions):
Density Medium High
X-axis 203.2 dpi (8 dots/mm) 300 dpi (11.81 dots/mm)
Y-axis 203.2 dpi (8 dots/mm) 304.8 dpi (12 dots/mm)
Number of active dots: 832 1208
Max. print width: 104 mm 102.2 mm
Dot line to tear bar: 136 dots 204 dots
Dot line to cutter blade: 256 dots 384 dots
Text and bar code fi elds can be rotated around their insertion points,
whereas lines, boxes and graphics cannot be rotated. However, the
entire print image can be rotated 180°. The illustration below shows
coordinates for the default print direction (ZT).
Intermec EasyCoder ESim v4.00—Programmer’s Reference Manual 7
Chapter 1—General Information
Example of fi eld positioning when using an 203.2 dpi (8 dots per mm) printhead.
800832 750 700 650 600 550 500 450 400 350 300 250 200 150 100 50
50
100
150
200
250
300
350
400
450
500
550
X-axis
Y-axis
Reference Point
at direction ZT
X000;Y000
Feed
Direction
TEXT
TEXT
CODE 39
Rotated Text Field
X500;Y400
Bar Code Field
X150;Y300
Text Field
X100;Y100
Graphic Field
X650;Y050
Print Width 104 mm (832 dots)
8 Intermec EasyCoder ESim v4.00—Programmers Reference Manual
Chapter 1—General Information
Intermec EasyCoder ESim v4.00—Programmer’s Reference Manual 9
2
Commands List
This chapters lists which commands can be used in the
Direct Mode and the Form Edit Mode respectively.
10 Intermec EasyCoder ESim v4.00—Programmer’s Reference Manual
Chapter 2—Commands List
Direct Mode
Setup Commands
Used to set up the printer globally, that is, affect both the Direct Mode
and Forms.
D Density ...............................................................................................49
eR User-Defi ned Error/Status Character Control...................................57
f Cut Position........................................................................................59
I Character Set Selection.......................................................................71
i Asian Character Spacing.....................................................................72
JB Disable Top of Form Backup .............................................................73
JF Enable Top of Form Backup ..............................................................74
j Media Feed Adjustment.....................................................................75
M Memory Allocation ............................................................................80
O Options Select ....................................................................................84
oR Character Substitution .......................................................................86
Q Set Form Length.................................................................................89
q Set Label Width..................................................................................93
R Set Reference Point.............................................................................94
S Speed Select ........................................................................................95
UC Command Reply Accept Character Control .....................................97
UN Disable Error Reporting.................................................................. 104
US Enable Error Reporting................................................................... 106
W Windows Mode............................................................................... 110
Y Serial Port Setup .............................................................................. 112
Z Print Direction ................................................................................ 113
Store Commands
Used to store graphic fi les.
GM Store Graphics in Memory.................................................................68
GW Store Graphics in Image Buffer..........................................................70
Used to store soft fonts.
ES Store Soft Font....................................................................................54
Clear and Delete Commands
Used to erase data from the printer's memory.
EK Delete Soft Font .................................................................................53
FK Delete Form .......................................................................................62
GK Delete Graphics..................................................................................67
N Clear Image Buffer .............................................................................83
^@ Reset Printer .................................................................................... 115
Intermec EasyCoder ESim v4.00—Programmer’s Reference Manual 11
Chapter 2—Commands List
Editing Commands
Used to edit labels in the Direct Mode.
A Print Text ............................................................................................31
B Print Standard Bar Codes...................................................................36
b Print Two-Dimensional Codes...........................................................40
GG Print Graphics ....................................................................................65
LE Line Draw Exclusive...........................................................................76
LO Line Draw Black.................................................................................77
LS Line Draw Diagonal...........................................................................78
LW Line Draw White ...............................................................................79
X Draw Box ........................................................................................ 111
Print Commands
Used to produce printouts of labels edited in the Direct or retrieved form
edited in the Form Edit Mode.
C Cut Immediate ...................................................................................48
FR Retrieve Form.....................................................................................63
P Print....................................................................................................87
? Download Variables ........................................................................ 114
Report Commands
Return information on serial channel and/or produce printed
information.
EI List Soft Fonts ....................................................................................52
FI Print Form Information .....................................................................61
GI Print Graphics Information................................................................66
U Print Confi guration............................................................................96
UDC Memory Cartridge Information.........................................................98
UE Soft Fonts Information Inquiry..........................................................99
UF Form Information Inquiry .............................................................. 100
UG Graphics Information Inquiry ........................................................ 101
UI Enable Prompts/Code Page Inquiry ............................................... 102
UM Code Page & Memory Inquiry....................................................... 103
UP Code Page & Memory Inquiry/Print ............................................. 105
UV Product Identity and Asian Font Types........................................... 107
^ee Immediate Error Report.................................................................. 116
12 Intermec EasyCoder ESim v4.00—Programmer’s Reference Manual
Chapter 2—Commands List
Form Edit Mode
Setup Commands in Forms
Will affect the global setup after printing a form including such a com-
mand.
D Density ...............................................................................................49
Q Set Form Length.................................................................................90
R Set Reference Point.............................................................................94
S Speed Select........................................................................................95
Z Print Direction ................................................................................ 113
Editing Commands
Used to edit forms.
A Print Text ............................................................................................31
B Print Standard Bar Codes...................................................................36
b Print Two-Dimensional Codes...........................................................40
C Counter ..............................................................................................45
FE End Form Store..................................................................................60
FS Form Store..........................................................................................64
GG Print Graphics ....................................................................................65
LE Line Draw Exclusive...........................................................................76
LO Line Draw Black.................................................................................77
LS Line Draw Diagonal...........................................................................78
LW Line Draw White ...............................................................................79
PA Print Automatic..................................................................................88
V Defi ne Variable................................................................................ 108
X Draw Box ........................................................................................ 111
Intermec EasyCoder ESim v4.00—Programmer’s Reference Manual 13
3
Setting Up the Printer
This chapter shows the default setup of the printer and
gives an example of how to change the setup.
14 Intermec EasyCoder ESim v4.00—Programmer’s Reference Manual
Chapter 3—Setting Up the Printer
Default Setup
Parameter Command Default Setting
Error/Status Char.
eR
eR0,0 XOFF/XON-handling
Density
D
10
Character Set
I
8 bits, code page 0, country code 001
Top of Form backup
JB/JF Disabled/Enabled
Media feed adjust
j
136 dots (at 203.2 dpi)
204 dots (at 300 dpi)
Label Gap Sensor
O
Normal (blockage of light = label)
Label Taken Sensor
O
Enabled
Ribbon End Sensor
O
Enabled (not in pure DT printers)
Cutter (option)
O
Disabled
Char. substitution
oR
No substitution
Form Length
Q
Length 1200 dots, gap 24 dots at 203.2 dpi
Length 1200 dots, gap 24 dots at 300 dpi
Label Width
q
832 dots (at 203.2 dpi)
1208 dots (at 300 dpi)
Reference Point
R
X:000;Y000
Reply Character
UC
none
Print Speed
S
50 mm/sec. (2 inches/sec.)
Error Handling
UN/US
Disabled
Windows Mode
W
Disabled
Serial Port
Y
9600 baud, no parity, 8 data bits, 1 stop bit
Print Direction
Z
ZT (Start printing at top of image buffer)
Printhead Resolution Measures
203.2 dpi printheads 203.2 dpi (8 dots/mm) in both directions
300 dpi printheads 300 dpi (11.81 dots/mm) across the media path
304.8 dpi (12 dots/mm) along the media path
The setup will be reset to default values if...
the printer's fi rmware is upgraded using a fi rmware cartridge,
• or the Feed key is pressed more than 3 seconds in the Dump Mode.
  • Page 1 1
  • Page 2 2
  • Page 3 3
  • Page 4 4
  • Page 5 5
  • Page 6 6
  • Page 7 7
  • Page 8 8
  • Page 9 9
  • Page 10 10
  • Page 11 11
  • Page 12 12
  • Page 13 13
  • Page 14 14
  • Page 15 15
  • Page 16 16
  • Page 17 17
  • Page 18 18
  • Page 19 19
  • Page 20 20
  • Page 21 21
  • Page 22 22
  • Page 23 23
  • Page 24 24
  • Page 25 25
  • Page 26 26
  • Page 27 27
  • Page 28 28
  • Page 29 29
  • Page 30 30
  • Page 31 31
  • Page 32 32
  • Page 33 33
  • Page 34 34
  • Page 35 35
  • Page 36 36
  • Page 37 37
  • Page 38 38
  • Page 39 39
  • Page 40 40
  • Page 41 41
  • Page 42 42
  • Page 43 43
  • Page 44 44
  • Page 45 45
  • Page 46 46
  • Page 47 47
  • Page 48 48
  • Page 49 49
  • Page 50 50
  • Page 51 51
  • Page 52 52
  • Page 53 53
  • Page 54 54
  • Page 55 55
  • Page 56 56
  • Page 57 57
  • Page 58 58
  • Page 59 59
  • Page 60 60
  • Page 61 61
  • Page 62 62
  • Page 63 63
  • Page 64 64
  • Page 65 65
  • Page 66 66
  • Page 67 67
  • Page 68 68
  • Page 69 69
  • Page 70 70
  • Page 71 71
  • Page 72 72
  • Page 73 73
  • Page 74 74
  • Page 75 75
  • Page 76 76
  • Page 77 77
  • Page 78 78
  • Page 79 79
  • Page 80 80
  • Page 81 81
  • Page 82 82
  • Page 83 83
  • Page 84 84
  • Page 85 85
  • Page 86 86
  • Page 87 87
  • Page 88 88
  • Page 89 89
  • Page 90 90
  • Page 91 91
  • Page 92 92
  • Page 93 93
  • Page 94 94
  • Page 95 95
  • Page 96 96
  • Page 97 97
  • Page 98 98
  • Page 99 99
  • Page 100 100
  • Page 101 101
  • Page 102 102
  • Page 103 103
  • Page 104 104
  • Page 105 105
  • Page 106 106
  • Page 107 107
  • Page 108 108
  • Page 109 109
  • Page 110 110
  • Page 111 111
  • Page 112 112
  • Page 113 113
  • Page 114 114
  • Page 115 115
  • Page 116 116
  • Page 117 117
  • Page 118 118
  • Page 119 119
  • Page 120 120
  • Page 121 121
  • Page 122 122
  • Page 123 123
  • Page 124 124
  • Page 125 125
  • Page 126 126
  • Page 127 127
  • Page 128 128
  • Page 129 129
  • Page 130 130
  • Page 131 131
  • Page 132 132
  • Page 133 133
  • Page 134 134
  • Page 135 135
  • Page 136 136
  • Page 137 137
  • Page 138 138
  • Page 139 139
  • Page 140 140
  • Page 141 141
  • Page 142 142
  • Page 143 143
  • Page 144 144
  • Page 145 145
  • Page 146 146
  • Page 147 147
  • Page 148 148
  • Page 149 149
  • Page 150 150
  • Page 151 151
  • Page 152 152

Intermec EasyCoder C4 Reference guide

Category
Label printers
Type
Reference guide

Ask a question and I''ll find the answer in the document

Finding information in a document is now easier with AI