Home

Thermo Desktop Programmer`s Manual `EPL2`

image

Contents

1. Fonts 1 8 x 12 dots Font 8 24 x 24 dots With the A command s horizontal multiplier ps set to 2 the inter character spacing will look like the following example 2 times 2 times le 2 times 2 times gt 980009 001 Rev E C 7 Appendix C Asian Character Printer Programming A Command ASCII Text C 8 The Asian fonts can print character strings ori ented from top to bottom p values 4 7 as well as the standard English word orientation from left to right p values 0 3 The characters will print in the sequence that they are entered into the A command s data field i Point of Origin for Origin for Text Object v Text Object p 74 e Rotated 90 P 5 Origin for p 4 L P 2x Vertical Multiplier Origin for Text Object p 74 Direction Of Feed Point of Origin for Text Object Rotated 270 p 7 The printer automatically recognizes single byte characters and double byte characters nuro VOa The single byte font characters are mapped to hexadecimal address range 00 to 7F hex 0 127 decimal Font 8 are ASCII code page 850 sin gle byte characters The double byte font characters are mapped to hexadecimal address range AOAO to F7FF hex First byte 160 AOh and second byte 160 AOh to first byte 247 F7h and second byte 255 FFh is
2. text Reverse text with leading spaces Code 39 bar code with human readable and check digit Simple line 10 dots thick Normal text with spaces separating text Loads stored PCX graphic CE 5M Label Form Completion P100 Prints 100 labels 980009 001 Rev E Appendix H Programming Examples Example 9 Creating A Form Example 9 Will Produce when printed This example demonstrates form creation and downloading to printer s nonvolatile memory The form has simple text bar code and graphic elements The label uses a preloaded PCX graphic from printer memory See Example 6 for graphic downloading FK EXAM 09 FS EXAM 09 D8 2 1 Q609 24 9 84 6690 80 WORLD A180 5 0 4 3 3 N WORLDWIDE A130 250 0 4 2 2 N Bar Code Printer B65 350 0 3 4 12 120 B BCP 1234 FE 1 WORLDWIDE q Bar Code Printer BCP 12 34 980009 001 Rev E Appendix H Programming Examples Programming Breakdown Programming Description FK EXAM 09 1 Queue form to save to memory FS EXAM 09 Start form store sequence Set Printer Control Parameters and Options DB Set Density 2 1 Set Speed Set Label Parameters Q609 24 Label Length and Gap q 64 1 Buffer Width center aligned Label Elements Text Lines Bar Codes and Graphics 6690 80 WORLD A180 5 0 4
3. 980009 001 Rev E 2 13 COMMAND REFERENCE D Command Density Description Use this command to select the print density Syntax Dp Parameters p4 Density setting Acceptable values are Model Acceptable Values Default Value 20X2 0 7 2 21X2 0 7 2 2622 0 15 7 2242 0 15 7 2642 0 15 7 3642 0 15 7 2122 0 15 7 2742 0 15 7 Orion 0 15 10 Eclipse 0 15 5 2046 2044 0 15 5 2746 0 15 7 Strata 0 15 10 P2222 0 15 8 P2242 0 15 6 Note 1 0 is the lightest print and 7 or 15 is the darkest The density command controls the amount of heat produced by the print head More heat will produce a darker image Too much heat can cause the printed image to distort The P2222 set to O density DO will automatically enable a 2 0ips speed if the battery power level will support the 2 0ips speed The density and speed commands can dramatically affect print quality Changes in the speed setting typi cally require a change to the print density Example D5 selects density 5 980009 001 Rev E COMMAND REFERENCE El Command Print Soft Font Information Description This command will cause the printer to print a list of all soft fonts that are stored in memory Syntax ElL Soft fonts can be downloaded to and deleted from IN the printer from the Soft Font Downloader Utility CAL Tools or CAL3 See Appendix G Advanc
4. Appendix E Real Time Clock Option Programming A Command ASCII Text with RTC Examples 980009 001 Rev E The Data field can be replaced by or com bined with the following variables TT Prints the current time at this position in the predefined format See the TT command for format selection This variable is available only if the printer Time amp Date option is in stalled TD Prints the current date at this position in the predefined format See the TD command for format selection This variable is available only if the printer Time amp Date option is in stalled Vnn Prints the contents of variable nn at this position where nn is a 2 digit number from 00 to 99 Cn Prints the contents of counter n at this po sition where n is a one digit number from 0 to 9 A50 0 0 1 1 1 N DATA Writes Text 450 50 0 2 1 1 N V01 Writes contents of variable 01 A50 100 0 3 1 1 N C1 3 Writes contents of counter 1 A50 150 0 4 1 1 N TT Writes current time 450 200 0 5 1 1 N TD Writes current date or a combination of several options 450 300 0 2 2 2 R Deluxe O1 C2 Combo TDVOITT Writes the text Deluxe followed by the contents of variable 01 fol lowed by the contents of counter 2 followed by the text Combo fol lowed by the current date followed by the contents of variable 01 followed by the current time E 3 Appendix E Real Time Clock Option Programming B C
5. Code Pages and Character Sets 7 bit German e Sizes 1 4 1g 16 32 98 28 x 48 123456789 lt 2 gt 7 64 SABCDEFGHIJKLMNO 80 PORSTUVMXYZAOU 9 abecdefghijkimne 112 parstuvuxvyzaoup Size 5 UN HS 48 01 eS E 64 DEFGHI JKLMNO 80 STUVWXYZAOU 980009 001 Rev E Appendix A Standard Character Sets Code Pages and Character Sets 7 bit Italian Q Sizes 1 4 16 TS 32 48 x t 48 01234567893 eta 2 64 SABCDEFGHIJKLMNO 88 POQORSTUVNWXYZ g _ 96 uabedefghijklmno 112 pqarstuvuxyzacdcei Size 5 desc 9 2 Ame pee ERY 64 HI JKLMNO s PQRSTUVWXYZ 96 112 980009 001 Rev E A 11 Appendix A Standard Character Sets Code Pages and Character Sets 7 bit Spanish e Sizes 1 4 16 15 32 I Z amp 48 123456789 lt 2 gt 7 564 ABCDEFGHIJKLMNO BC PQRSTUVWXYZNACUL_ G aabcdefghijkimnea 112 parstuvuxyze i u Size 5 ae 0 158 8 EE 48 64 ABCE 189 i wo s PQRSTUVWXYZN 96 112 Code Pages and Character Sets 7 bit Swedish 0 Sizes 1 4 16 1 32 HSZ r 48 0123456789 lt gt 64 E ABCDEFGHIJKLMNO 80 PQRSTUVWXYZAGAU CG eabcdefgqghijkimno 112 pqrstuvuxyza6gau Size 5 3c ES 48 Oh eat S 64 D GHIJKLMNO PQRSTUVWXYZAOAU 980009 001 Rev E Appendix A Standard Character Sets Code Pages and Character Sets 7 bit Swiss Sizes 1 4 9 16 Ts 32 8
6. SIS SIS IS ISIN NIN SS S sS Examples 0 disables all options 0D enables direct thermal mode on thermal transfer printers disables all other options 2 40 980009 001 Rev E COMMAND REFERENCE oM Command Disable Initial Esc Sequence Feed Description This command disables the initial label form 980009 001 Rev E Syntax feed upon receiving the first escape esc se quence command issued to the printer The printer normally measures a single label and sets the top of form prior to printing the first label after a power up reset The Zebra Eltron brand Windows printer driver issues escape se quences when printing This command s primary use is to save preprinted forms such as serialized labels tags or tickets oM This command must be issued prior to printing with the Windows driver s or any other Escape esc mode printing operation 2 41 COMMAND REFERENCE P Command Print Description Use this command to print the contents of the image buffer Syntax Pp4 P2 Parameters p Number of label sets Range 1 to 65535 p2 Number of copies of each label used in combination with counters to print multiple copies of the same label Range 1 to 65535 The P command cannot be used inside of a stored IN form sequence For automatic printing of stored forms use the PA command Examples Pl prints one label set P2 1 1 sprints 2 label sets of one label each P52 s
7. e The reset command can be sent to the printer during all other printing operations e The printer will ignore all commands sent while the reset command is executing up to 2 seconds Example 10 The printer will reset G 32 980009 001 Rev E Appendix G Advanced Programming AUTOFR Automatic Form Printing Feature Description Using AUTOFR Example 980009 001 Rev E This special form process allows you to detach the printer from the computer and print in a standalone mode The EPL2 printer reserves the form name AUTOFR to allow the printer to automatically start a form when the printer is in itialized power up This feature can be used in many ways e Feed asingle in peel mode and printing multi ple labels set to the number of labels on the roll e Have a form with a variable and enter the variable with a scanner terminal weight scale circuit analyzer or any other device ca pable of sending ASCII character data Download a form to the printer with the name AUTOFR ES Line Feed to initialize the printer FICAUTOFR Form Kill delete any existing AUTOFR FS AUTOFR Form Save save file from here to FE at the bottom V00 8 1 Variable field definition Q254 20 1 Label height followed by gap width 2 1 Speed Zips D7 Density setting ZB Print direcion ZT flips it 180 degrees A340 20 0 4 1 2 N QUANTITY Fixed text line B26575 0 3 2 4 101 8 V00 3 Bar code definition
8. 1020 280 750 30 1 B750 200 2 3 2 6 80 B CODE 39 H R B20 400 0 3C 2 6 80 B CODE 39 H R 10400 20 50 550 1 LES00 20 50 550 1W600 20 50 550 1 PI CODE 3 H 980009 001 Rev E Appendix H Programming Examples Programming Breakdown Programming Description al Initialize printer 0 1 Reset printer defaults set thermal transfer mode No Clear the image buffer Set Printer Control Parameter s and Options D5 Density Adjust to match printing method 1 1 Speed Adjust to match printing method Set Label Parameters Q609 4 1 Label and Gap Lengths and selects Transmissive Gap sensor q784 1 Buffer Width center aligned Label Elements Text Lines Bar Codes and Graphics B750 200 2 3 2 6 80 B CODE 39 HR B20 400 0 3C 2 6 80 B CODE 39 HR L050 20 50 550 Simple Line Graphic Vertical Left LE150 20 50 550 Exclusive OR Line Vertical Left LW250 20 50 550 White Line Graphic Vertical Left 1020 280 750 30 3 Simple Line Graphic Horizontal Bar Code Rotation 180 Bottom Left Bar Code w Check Digit Top Right L0400 20 50 550 Simple Line Graphic Vertical Right LE500 20 50 550 Exclusive OR Line Vertical Right LW600 20 50 550 White Line Graphic Vertical Right Label Form Completion PIJ Print one label 980009 001 Rev E H 9 Appendix H Programming Examples Exampl
9. 236 252 D ele MM m Y 1 13 29 45 61 TT 93 109 125 141 157 173 189 205 221 237 253 E J Ni In l R 3E e E 14 30 46 62 78 94 110 126 142 158 174 190 206 222 238 254 F vi 2 0 o Q f 4 25 W ns 15 31 47 63 79 35 111 127 143 159 175 191 207 223 239 255 Dump Mode Character Map Reference 980009 001 Rev E Appendix A Standard Character Sets TS 0 16 Sizes 1 4 Code Pages and Character Sets 8 bit Code Page 437 P O IO WI 9 uO O 10 d te Ac E X Ac lt C lt Art Xr E a INE E a 40 Vd un e w Mod SE V al Ar we Oo E t M La Xx Y YN nx m QA X NON 00 03 k SN gt N OD 0 H c gt OO OH 5 5 49 0 00 TEC X Ud co gt 0 IE OX LC XV oJ o FOoOBwas vaa PF OwaAasaoaras ls o5 O iL gt gt Du 2 03 tO IL gt gt d I2 vw Ww d X 3 US 020 0 eX MWo 992 tO a oq 7 OF U2 w o Feet OF DU 6 30 c 4 30 7E 0 O s U wv w o 3 SE 0 O 0 v 0 3 uo Norra amp L v uw 36 NOCO L ee 6 dl O il TIO 6 U 23 N Qu TIO ODIJA tu 8 2 a C ul 000 QC uu O E 34d 0d 3 3d Pd d 36 d Pg 4 0 Fd E PE d Po 3 d d Pd d P 9Uu 4 0 TO DON 00 Fr C D C94 DT D Sun ore on oo OD Nota f 6 00 O0 c 4 TO OON gs v 0 F 40 00 O0 3 04 5f SS gt Su e v4 E ANN C4 oc o o NL OL OS eS ot vg RUN a YN E O A 3 980009 001 Rev E Sizes 1 4 Code Page 852 Code Pages and C
10. 66 to image buffer 2 23 GK Delete Graphic 2 25 GM Store Graphics 2 26 M Memory Allocation Clear data 2 34 printer memory and format Memory management may be different from printer model to model Zebra has been adding features and creating new products that have required minor functional differences in mem ory management Some EPL2 printers include a removable memory cartridge Some printers have on board memory only While some printers have flash nonvolatile memory for storing data graphics forms and soft fonts Other printers use a battery to maintain stored data 980009 001 Rev E PROGRAMMING CONSIDERATIONS Printer memory is divided into three basic groups SRAM for image buffer generation nonvolatile storage memory and firmware in ternal printer control programming All EPL2 printers have SRAM for image generation Printers with nonvolatile data storage main tained by battery share the SRAM memory with the image buffer and have EPROM for firmware Printers with flash memory share nonvolatile data storage with firmware Printers with SRAM for nonvolatile mem ory storage require the programmer to manage the memory by partitioning separate areas for image buffer forms graphics and soft font storage to maximize printer performance Printers with Flash Memory for nonvola tile memory manage the storage of forms graphics and soft fonts as well as printer firm ware within
11. The R command interacts with image buffer set ting as follows e The R command forces the printer to use the full width of the print head as the width of the image buffer The R command overrides the q commands print width setting e Rotate the image buffer with the Z command to establish top and left margins ZT or the bottom and right margins ZB e When positioned correctly prevents printing off two 2 edges of the label opposite the 0 0 reference point Use the Q and R commands together for the easiest method of positioning form elements in the print im age in left aligned printers TLP2046 and Eclipse Repeated printing off the edge of the label can cause excessive print head wear 2 49 COMMAND REFERENCE R Command Set Reference Point Example of X and Y Positioning 7B Reference X Feed Direction y RDP ZT Reterence Example of Print Head Left Aligned Printing 3 Alignment Edge Example l E Q609 24 Sets label length ZB Sets image buffer to the bottom right corner and left side of the print head R15 10 Sets the margin See Left Aligned Example above Note the 0 0 reference points 2 50 980009 001 Rev E COMMAND REFERENCE S Command Speed Select Description Use this command to select the print speed Syntax Spi Parameters p4 Speed select value Model Value Speed LP2122 LP2142 LP TLP2622 LP TLP2
12. VOI 15 Text Field 2 V02 15 C Text Field 3 V03 15 N Text Field 4 V04 15 L Text Field 5 V05 15 R Text Field 6 06 15 C Text Field 7 VOZ 15 N Text Field 8 DE 0609 24 q784 1 450 250 1 2 2 R V0O A50 100 0 1 2 2 R VOI 450 1750 12 2 R V02 A50 250 0 1 2 2 R V03 A50 325 0 1 2 2 R Field 5 04 1 A50 400 0 1 2 2 R Field 6 05 A50 475 0 1 2 2 R Field 7 Y06 A50 550 0 1 2 2 R Field 8 07 FE l FR EXAM 13 21 01 1 02 1 3 1 4 05 1 06 1 07 08 1 PI H 25 Appendix H Programming Examples Will Produce Field 8 08 H 26 980009 001 Rev E Appendix H Programming Examples Example 14 This example demonstrates counter data fields Creating a Form with The counter data fields must be loaded immedi Basic Counters ately following the FS command and all vari ables if any are used Counter data fields are entered at the time of printing the label The counter starting values are entered by oper ator via a terminal device or EPL2 program with the Download Variables command The ter minal printer operator enters the data in after each prompt Example 14 FK EXAM 14 3 FS EXAM 14 C0 4 1 1 Starting Registration Number D8 2 1 060924 q784 A50 50 0 1 3 3 N Registration No CO FEL xi FR EXAM 14 1 2 I P3 e AN 01 1 P3 980009 001 Rev E H 27 Appendix H Programming Examples Will Produ
13. p3 KDU Country code 8 bit data only 032 Belgium 049 Germany 027 S Africa 002 Canada 031 Netherl ds 034 Spain 045 Denmark 039 Italy 046 Sweden 358 Finland 003 Latin Am 041 Swizerl d 033 France 047 Norway 044 U K 351 Portugal 001 U S A The default setting is 18 0 001 See Appendix A for EPL2 standard font character maps 2 28 980009 001 Rev E COMMAND REFERENCE JB Command Disable Top Of Form Backup Description This command disables the Top Of Form Backup feature when printing multiple labels At power up Top Of Form Backup will be en abled Syntax JB Example Bl With the JB command enabled the first label will backup to the Top Of Form before printing This pre serves the first label which has stopped approxi mately one half inch from the print head This is the label s tear away point as set by the previous print operation JF Command Enable Top Of Form Backup Description This command enables the Top Of Form Backup feature and presents the last label of a batch print operation Upon request initiating the printing of the next form or batch the last label backs up the Top Of Form before printing the next label Syntax JF Example 980009 001 Rev E JF 2 29 COMMAND REFERENCE LE Command Line Draw Exclusive Description Use this command to draw lines with an Exclu sive OR function Any ar
14. 05 Memory Configuration Error 06 RS 232 Interface Error 07 Paper or Ribbon Empty 08 Duplicate Name Form Graphic or Soft Font 09 Name Not Found Form Graphic or Soft Font 10 Not in Data Entry Mode 11 Print Head Up Open 12 Pause Mode or Paused in Peel mode 50 Does not fit in area specified 51 Data length to long 93 PDF 417 coded data to large to fit in bar code 980009 001 Rev E Appendix G Advanced Programming W Command Windows Mode Description This command is used to disable re enable the Windows command mode Syntax Wp Parameters p4 Windows Mode Enabled Values Y for enabled default N for disabled When enabled the printer will accept Windows mode escape sequences to print data When disabled escape sequences will be ignored The Windows mode escape sequences are only used by the optional Windows printer driver When working with a main frame or other non Windows host this mode can be disabled to prevent erratic operation 980009 001 Rev E G 31 Appendix G Advanced Programming Command Reset Printer Description This command is used to reset the printer Syntax where is 94 decimal This command emulates Power Off and then Power On thus reinitializing the printer e The reset command is unavailable during the operation of storing PCX graphics soft fonts or while the printer is in dump mode e The reset command cannot be used in a stored form
15. 17 dec 11 hex on Error XOFF 19 dec 13 hex on Recovery Character Only 1 Reports the selected error status character followed by a Carriage Return and Line Feed Character amp Error Status Code 9 Reports the selected error status character er ror status code see page G 9 for codes and then by a Carriage Return and Line Feed For Mode 2 Error and Status Reporting eS 21 Sets Error Character to S and Sets Error Mode to 2 User operates and prints with printer User opens print head SHA Reports Print Head Open User closes print head 00 1 Reports No Error Printer Ready for next command Status report for Print Head Closed 980009 001 Rev E Appendix G Advanced Programming O Command Options Select Description Use this command to select various printer op tions Options available vary by printer model Syntax O C p 4 D d P S Parameters Examples 980009 001 Rev E d Disable Diagnostic Dump Mode P2242 only Disables the printer s AutoSense Dump Mode Printout The set ting is stored in nonvolatile memory Sending a 0 command without the d will re set the Dump Mode operation S Reverse the Transmissive Gap Sensor Operation This option is designed to allow use of trans parent media and liner with a opaque mark between labels The transmissive gap sensor is used to detect this mark which can be on the top or back si
16. 3 3 N WORLDWIDE A130 250 0 4 2 2 N Bar Code Printer B65 350 0 3 4 12 120 B BCP 1234 Loads stored PCX araphic WORLD Normal text Normal Text Code 39 bar code with human readable Label Form Completion FEL End form store sequence 980009 001 Rev E Appendix H Programming Examples Example 10 Steps for Downloading a Form Step 1 Step 2 Example Step 3 Step 4 H 20 Use the following steps for downloading a Form file to printer memory with DOS operating sys tem commands This procedure may also be done from within a MSDOS window from a Windows operating system See the M FI GI amp U commandsto manage the printer memory Generate the Form ASCII text file See Example 9 Use the DOS COPY command to download the Form file to the printer memory COPY EXAM 09 TXT LPT1 b Continue printer operations or downloading more graphics or forms Repeat process for each Form to be down loaded 980009 001 Rev E Appendix H Programming Examples Example 11 This example demonstrates variable data fields Creating a Form with Basic Variables Example 11 Will Produce when the form is recalled and printed 980009 001 Rev E The variable data fields must be loaded imme diately following the FS command and prior to any counter variables Variable data fields are entered when printing the label The variables are entered by operator
17. 9812450000 Package Weight 4 3 LBS ISO 9000 Made In USR C H 35 Appendix H Programming Examples Example 18 Using a The Keyboard Display Unit KDU is a terminal KDU Terminal unit that interfaces with a printer in a stand alone capacity The KDU has sixty two 62 keys and a 2 line 20 character LCD display The KDU is powered by and communicates with the printer through an RS232 serial port with a DB 9 standard printers or RJ 11 portable printers The power is enabled by jumper on the printers main PCBA The KDU has an auxiliary RS232C serial port for input only e g from a scanning device magnetic stripe reader scale The KDU pro vides 5 volts to the auxiliary port The KDU is strictly a terminal and does not have the capability to store data or set up parameters The KDU is used for the following functions e List label forms stored in printer e Retrieve label forms stored in printer e Input variable data e Printing labels KDU Use Example Use the following steps to retrieve label form and produce labels with the printer and KDU Start Up At power ON the Main Menu reads FORM retrieve form F2 list forms vx x List of Saved Press the F2 key to print a list of saved forms Forms Retrieve a Form Press the FORM key The top line in the display will prompt Enter Form Name H 36 980009 001 Rev E Printing Forms without Variables Printing Forms with Variables
18. As an object rotates the point of origin rotates with the object These image buffer properties are depicted graphically in the following illustration PROGRAMMING CONSIDERATIONS Sample Format Point of Origin for Text Object Point of Origin for BarCode Object Point of Origin for Text Object Rotated 90 Point of Origin for Direction Of Feed Text Object Rotated 270 The minimum non printing margin on all edges of the label is 1mm Printing closer than 1mm to the top or bottom edge of the label may cause the printer to advance unwanted labels or cause the printer to go into error condition Installed Memory vs The maximum size of an image buffer is de Form Length pendent upon the amount of SRAM available to create a single image buffer Increasing SRAM memory increases the total memory available for image buffer creation Most EPL2 printers have memory expansion options The recom mended minimum amount of available image buffer memory is two 2 times the size of the largest label form image to be printed plus 10 Kbytes for internal printer operation Printers that have SRAM memory only share memory with the storage of form graphic and soft font data Printers with flash memory use the SRAM for image creation and store data in flash memory 980009 001 Rev E PROGRAMMING CONSIDERATIONS erate and temporarily store variables counters text variables control parameters etc needed to
19. Asian character printers Asian Character Sets The EPL2 programming language supports up Fonts 8 amp 9 to two 2 font sets of a single Asian language as well as the standard Latin Multilingual fonts 1 5 and downloadable soft fonts A Z and a z J All Asian character fonts 8 amp 9 can be ex panded both horizontally and vertically 1 Asian fonts can print from top to bottom or in the Latin character orientation from left to right 2 The Asian printers support the standard Latin fonts with a single character map code page 850 for all five 5 fonts The Asian character fonts 8 amp 9 are 16 bit or double byte mapped characters The printed Asian character is dependent on the double byte ASCII values 1 Latin font sets are 8 bits per or single byte ASCII character 980009 001 Rev E C 1 Appendix C Asian Character Printer Programming Only One 1 Asian lanquage is supported bya printer Each Asian language character set is a separate printer firmware version Asian printers with flash firmware can be repro grammed for a different Asian language but we do not recommend this for normal use Asian Print Memory The Asian printer has a different memory con Configuration figuration than the standard EPL2 printer of the same model type See the M command page 2 34 in the Command Reference section Printers that support Asian languages and use a memory cartridge can be re
20. Memory Printers Use this command to clear and partition flash memory into two 2 storage areas one for forms and another area for graphics and soft fonts The image buffer utilizes the SRAM memory and the M command does not have any effect on image buffer size See the memory tables on the following pages Mp1 P2 P3 p1 Image buffer size in whole KBytes P2 Forms memory size in whole KBytes p3 Graphics memory size in whole Kbytes EPL2 printers Memory partition parameters P1 P2 and p3 are required to process the command but may be ignored by some models SRAM Nonvolatile All remaining memory not allocated to py p2 and p3 will be allo cated as soft font memory SRAM with flash memory p and ps val ues are ignored However adjustment of pg forms sizes inversely affects the size of the graphics soft fonts memory in earlier models 980009 001 Rev Dx1 COMMAND REFERENCE M Command Memory Allocation Sending the M command will reformat all memory erasing ALL forms graphics and soft fonts SRAM Nonvolatile Memory Printers New memory cartridges or a SRAM upgrade require partitioning before the printer can use the memory for printing or storage of forms graphics or soft fonts Standard Max Config Default Usage SRAM 3 Non Volatile E R 2 pl AAA A E E ACE LP2122 128 0 128 512
21. Spanish BID S ave BOG SEES St alt XxTE BN AES A 12 Swedish 7 Die od pa P eo irre Dad bd es A 12 Swiss TDI 4 A ode qus ra MEC uns A 13 USA DIE ue secs end eei URL OR Se es da o PER D ce ED A 14 Appendix B Optional amp Extended Character Sets B 1 Fixed verses Flashed Program Firmware B 1 Fixed Firmware Optional Character Set Differences B 2 Flash Firmware Character Sets B 2 Extended Character Set Map Reference B 2 Character Maps B 3 Asian Language Character Maps B 3 Appendix C Asian Character Printer Programming C 1 Asian Character Sets Fonts 8829 C 1 Asian Print Memory Configuration C 2 A Command ASCII Text C 3 i Command Asian Character Spacing C 9 Appendix D Bar Code Information D 1 Frequently Asked Questions About bar Codes a d ptos ero T OR ar Cod D 1 Using AIM Specified MaxiCode Data Formatting D 19 b Command 2D Bar Code PDF417 Specific Options D 20 oH Command Macro PDF Offset D 27 Appendix E Real Time Clock Option Programming E 1 RTC Option Configurations E 1 RTC Commands llle E 2 Checking for Time Date E 2 Printing the Time amp Date E 2 A Command ASCII Text with RTC E 3 B Command Bar Code with RTC E 4 TD Command Define Date Layout E 5 TS Command Set Real
22. The code page 850 Latin1 Multilingual set is replaced with an other language code page set and acts like a fixed firmware printer The FLASH architecture printers and the P2222 printer support all of the extended EPL2 character sets shown in this section Appendix B Optional amp Extended Character Sets Fixed Firmware The EPL2 optional language character set Optional Character replace the EPL2 standard character set for Set Differences code page 850 Latin Multilingual This group includes the P2242 printer The optional character set physically replaces the firmware s memory location for code page 850 8 bit font and access the character maps by using the following command string 18 1 Flash Firmware The FLASH architecture printer supports 20 Character Sets character sets The flash printer character sets are complete code page sets listed below Extended Character Code Page Description Flash PROM Set Map Reference posa37 Engish US 180 18 0 DOS 850 Latin 1 18 1 18 1 DOS 652 Cae 18 2 18 1 DOS 860 Portuguese 18 3 DOS 863 French Canadian 18 4 DOS 865 Nordic 18 5 DOS 857 Turkish 18 6 18 1 DOS 861 Icelandic 18 7 18 1 DOS 862 Hebrew 18 8 18 1 DOS 855 Cyrillic 18 9 DOS 866 Cyrillic CIS 1 18 10 18 1 DOS 737 Greek 18 11 DOS 851 Greek 1 18 12 18 1 DOS 869 Greek 2 18 13 Windows 1252 Latin 1 18 A Windows 1250 Latin 2 18 B Windows 1251 Cyril
23. Vertical end position Y in dots Example NJ clear image buffer 1 10 10 20 200 200 drawa diagonal line PI sprint one label Will Produce 2 32 980009 001 Rev E COMMAND REFERENCE LW Command Line Draw White Description Use this command to draw white lines effec tively erasing previous information Syntax LWp1 P2 P3 P4 Parameters p4 Horizontal start position X in dots P2 Vertical start position Y in dots P3 Horizontal length in dots Pq Vertical length in dots Example N clear image buffer 050 100 400 20 draw black line 1050 200 400 201 draw another black line 1050 300 400 201 draw another black line 1W200 50 20 400_ draw a white line over all 3 black lines PJ sprint 1 labe Will Produce 980009 001 Rev E 2 33 COMMAND REFERENCE M Command Memory Allocation 2 34 Description Syntax Parameters Use this command to reformat clear the nonvola tile memory used to store forms graphics and soft fonts See the Programming Considerations sec tion starting at page 1 11 Printer Memory Organi zation for more information on printer memory The M command manipulates allocates mem ory differently depending on the hardware configuration of the printer SRAM Nonvolatile Memory Printers Use this command to clear allocate partition the printer memory into separate areas for image buffer forms graphics and soft fonts storage Flash Nonvolatile
24. are three different forms when stored into the printer or when retrieved by the user By including an wild card ALL forms will be deleted from memory Example FICAFORM deletes form AFORM FK deletes all forms 980009 001 Rev E 2 19 COMMAND REFERENCE FR Command Retrieve Form Description Use this command to retrieve a form that was previously stored in memory Syntax FR FORMNAME Parameters FORMNAME This is the form name used when the form was stored e Thename may be up to 8 characters long e Form names stored by the printer are case sensitive and will be stored exactly as entered on the FS command line i e FORM1 form1 and FoRm1 are three different forms when stored into the printer or when re trieved by the user Example ERTESTI retrieves the form named TESTI To print a list of the forms currently stored in memory use the Fl command 2 20 980009 001 Rev E COMMAND REFERENCE FS Command Store Form Description This command begins a form store sequence Syntax FS FORMNAME Parameters FORMNAME This is the form name that will 980009 001 Rev E be used when retrieving the stored form e The name may be upto 8 characters long e Form names stored by the printer are case sensitive and will be stored exactly as entered on the FS command line i e FORM1 form1 and FoRm1 are three different forms when stored
25. buffer command by com mand as processed by the printer The printer must have enough image buffer memory available to hold the largest label form image to be printed This depends on the label size length and width The image buffer length and width are set by the Q and q commands respectively 980009 001 Rev E PROGRAMMING CONSIDERATIONS Image Buffer The printer allocates image buffer memory us Addressing ing the stored values for length and width The 980009 001 Rev E default length of the image buffer is set by the EPL2 printer s AutoSense feature The default image buffer width is the print head width in dots The width of the print head is measured in dots per inch dpi or dot per millimeter dot mm 2 2 inch printers the maximum print width is 2 20 inches 54 mm at 203 dpi 8 dot mm resolution 1 4 inch printers the maximum print width is 4 09 inches 104 mm at 203 dpi 8 dot mm resolution 1 4 inch printers 3642 models the maximum print width is 4 16 inches 106 mm at 300 dpi 11 8 dot mm resolution J Strata the maximum print width is 8 5 inches 216 mm at 203 dpi 8 dot mm reso lution When placing objects in the image buffer for printing the address locations are expressed in dots on an X Y grid The X value represents the width and the Y value represents the height of the grid The point of origin the starting point for a non rotated object is the upper left corner
26. six explicitly encoded but eight illustrated human readable digits with UPC E Appendix D Bar Code Information Y Human Readable UPC A all twelve digits required UPC E six digits required the Number System Character and the Check Digit are implied but the UCC promotes printing all eight digits 13 Check Digit Required modulus 10 calcu lation 3 Encoded Information e Number System Character one digit e Manufacturer Identification Number five dig its e Product Identification Number five digits e Check Digit one digit 1 Allowable Sizes Sizes for the UPC E are determined by a magnification factor which is based on the X dimension size These magnifications range from 80 to 200 of the nominal size or 100 size 1 46 inches in width 1 020 inches in height X Dimension 13 mils However as low as 75 10 mil X dimension has been allowed with ther mal transfer print technologies ODD PARITY EVEN PARITY LEFT GUARD R Bm RIGHT GUARD REM de ae T e arc Wc SEE XUL MEE S d NUABER SYSTEA i CHECK DIGIT MANUFACTURER S PRODUCT DIGIT CODE CODE D 4 980009 001 Rev E Appendix D Bar Code Information Interleaved 2 of 5 I 2 of 5 Interleaved 2 of 5 or I 2 of 5 is a bar code sym bology used in industrial and retail applications This symbol was invented by Dr David Allais and the Uniform Symbology Specifications for this symbology were developed by AI
27. x 48 08123456789 lt gt 64 SABCDEFGHIJKLMNO 80 PARSTUVUXYZage _ 96 abcdefahijkimno 112 pqrstuvuxyz isou Size 5 32 ES 48 01835 E 64 D HIJKLMNO so PQRSTUVWXYZ 96 112 980009 001 Rev E A 13 Appendix A Standard Character Sets Code Pages and Character Sets 7 bit USA Sizes 1 4 16 Ts 32 2 48 0123456789 64 cABCDEFGHI 80 PORSTUVHMXY 96 abcdefshi 112 parstuvuxy Size 5 32 BS 48 01625 Bg 64 CDEFGH PQRSTUVWXY N c NG r TA a m Z l I JIrzv on NN XX e 0 980009 001 Rev E Appendix B Optional amp Extended Character Sets Appendix B Optional amp Extended Character Sets This section contains information on printer optional language character sets for EPL2 printers Fixed verses Flashed The EPL2 printers have two different basic Program Firmware printer firmware configurations the Fixed 980009 001 Rev E program PROM or the Flash programmed NOVRAM non volatile RAM memory See the table on the following page The fixed firmware printers support an optional Character set by replacing the EPL2 standard character set code page 850 Latin1 Multilin gual with another language code page The printer s firmware can be changed in 4 ELP2 printer with a language specific memory car tridge or in 2 printer by changing the firmware in the printer The P2242 printer can be changed by re flashing firmware
28. 0 512 45 5 1 10 58 LP2142 128 0 128 512 0 512 106 5 10 3 LP2242 128 128 0 512 128 384 106 5 1 5 3 LP2622 128 128 0 256 256 0 106 54 5 3 LP2642 128 128 0 512 128 384 106 5 10 3 LP3642 256 128 128 512 128 384 188 5 1 5 59 TLP 2242 128 128 0 512 128 384 106 51 5 3 TLP2622 128 128 0 256 256 0 106 54 5 3 TLP2642 128 128 0 512 128 384 106 5 10 3 TLP3642 256 128 128 512 128 384 188 541 5 59 TLP2046 128 0 128 512 0 512 106 51 5 3 980009 001 Rev E 2 35 COMMAND REFERENCE M Command Memory Allocation Standard Max Config Flash Usage Flash i a Memory S EJ Models m e a 5 52 la e de i8 18 7 D Ht n 2 rs cs On 2722 512 128 1 MB 256 KB 384 128 2742 512 256 1 MB 512 KB 384 128 Orion 512 256 1 MB 512 KB 384 128 Strata 512 512 1 MB 1 MB 384 128 Eclipse 512 256 1 5 MB 384 KB 256 20 236 P2242 512 160 512 KB 160 KB 256 20 236 P2222 512 128 512 KB 128 KB 384 128 The early versions of the P2242 and Eclipse printer IN firmware required the pg parameter to modify avail able form memory 2 36 980009 001 Rev E COMMAND REFERENCE M Command Memory Allocation Examples 980009 001 Rev E Available memory and the current allocation of mem ory can be displayed with the U command or an AutoSense procedure see the printer user s manual The M
29. 1 as bar code or a combination of several options B50 300 0 3 1 2 50 B Deluxe V0 1 C2 Combo V01 Writes the text Deluxe followed by the contents of variable 01 fol lowed by the contents of counter 2 followed by the text Combo fol lowed by the contents of variable 01 all as a code 39 bar code 1 Version 2 23 and above 980009 001 Rev E 2 9 COMMAND REFERENCE b Command 2D Bar Code Description Syntax Parameters 2 10 Print 2D Bar Code This command will direct a printer equipped with the 2D bar code feature to print a two 2 dimensional bar code type This command is listed here for reference only See Appendix D 15 for details about two dimensional 2D bar codes and command structure supported by most Eltron printers bp1 P2 P3 code specific options p1 Horizontal start position X in dots P2 Vertical start position Y in dots p3 2 dimensional bar code type Value Code Type M MaxiCode P PDF417 Note 1 The MaxiCode specification has been released The following table outlines printer support of the b command for the 2D bar codes Model MaxiCode PDF417 2622 2642 3642 2722 2742 Eclipse 2046 2746 Strata P2242 2122 2142 Orion S O Option S Standard U o 1M 0 o A 0 0 0 UN N W WM O QO o W XQ O W W UN JN X 980009 001 Rev E COMMAND REFERE
30. 18 Using a KDU Terminal H 36 Appendix J Interface Connection J 1 Serial Interface Cable Connections J 2 P2242 Serial Interface Cable Connections J 3 Parallel Interface Cable Connections J 4 980009 001 Rev E Appendix H Programming Examples H 1 980009 001 Rev E PROGRAMMING CONSIDERATIONS PROGRAMMING CONSIDERATIONS This section contains information about the ba sic features command syntax and terminology of the Eltron Programming Language 2 EPL2 Features The Eltron Programming Language 2 EPL2 is 980009 001 Rev E a robust text ASCII based command language used to control most Eltron brand Zebra printer models EPL2 takes advantage of the intelligent features built into the printer to reduce pro gramming overhead and minimize data trans mission time The command set includes features for printing labels directly or storing them as forms in non volatile memory Counters can be incorporated e g for serialization as well as variables that are supplied at print time Graphics such as lo gos can be permanently downloaded into memory for fast recall Soft fonts can also be permanently downloaded to memory for later recall The printer includes 2D bar codes PDF417 and MaxiCode PDF417 is an option in the TLP2046 printer EPL2 provides extensive controls over the height width and other as pects of 2D bar codes 1 1 PROGRAMMING CONS
31. 2 N Example 6 Example 1 Example 2 Example 3 Example 4 EXAMPLE 5 Example 6 Example 7 AREA Note As shown in the example above font 5 example 5 only support the upper case char acters 980009 001 Rev E Appendix C Asian Character Printer Programming A Command ASCII Text Examples 980009 001 Rev E The data field can be replaced by or combined with the following commands Vnn Prints the contents of variable nn at this position where nn is a 2 digit number from 00 to 99 Cn Prints the contents of counter n at this po sition where n is a one digit number from 0 to 9 TT Prints the current time at this position in the predefined format See the TT command for format selection and is only available if the printer has the RTC Time amp Date op tion installed See Appendix E TD Prints the current date at this position in the predefined format See the TD command for format selection and is only available if the printer has the RTC Time amp Date op tion installed See Appendix E 450 0 0 1 1 1 N DATA Prints quoted strin 1500 2 1 1 NV01 1 Insert variable and print 450 100 0 2 1 1 N C1 1 Insert counter and print A50 150 0 4 1 1 N TT 3 Insert current time and print 450 200 0 5 1 1 N TD 1 Insert current date and print or a combination of several options 450 300 0 2 2 2 R Deluxe O1 C2 Combo TDVOITT Writes the text Del
32. 25 of the symbol The data format and symbol were de signed to support sorting and tracking of unit loads and transport packges Q What is PDF417 PDF417 is a stacked multi row bar code symbology that includes support for ASCII and ASCII extended character sets data compression and data error correction ECC PDF417 symbols are made from 4 bars and 4 spaces over 17 narrow bar widths the X di mension to make a codeword Codewords are encoded by row with three mutually exclusive data encoding schemes for codewords The symbol includes full length start and stop bar groups row identifiers and error correction The columns codewords range from 5 to 34 col umns in width The symbol height is from 3 to 90 rows with the row height adjustable Error correction codewords per symbol range from 2 to 512 980009 001 Rev E Appendix D Bar Code Information b Command 2D Bar Code Overview Description This command will direct a printer equipped with the 2D feature to print a bar code using a 2 dimensional code type Most Eltron printers support two 2 two dimensional 2D bar code formats see the table below for details Syntax bp1 p2 p3 code specific options Parameters p4 Horizontal start position X in dots P2 Vertical start position Y in dots p3 2 dimensional bar code type Value Code Type M MaxiCode P PDF417 Macro PDF The following table outlines printer support of the b command for
33. 4 8x 4 2 5 ABCDEFGHI JKLMNOPQRST 0123456789 H amp ASCII to Hexadecimal Reference Table Hexidecimal Least Significant Digit Hexidecimal Most Significant Digit 0 gt Oe Pl o lp E a Lllal 0 16 32 48 64 80 96 112 128 144 160 208 224 240 1 O 4 11 A 0 a q lel T B 1 2t 33 49 65 81 97 113 129 145 161 209 225 241 29 t 2 B R b r E T T Tr 2 2 18 34 50 66 82 98 114 130 146 162 178 194 210 226 242 gjy 5 3 C S c sja 5 a Lon lt 3 19 35 51 67 83 99 115 131 147 163 179 195 211 221 243 4 1 Sl4lpn T d ti l l Rf 4 2 36 52 68 84 100 116 132 148 164 180 196 212 228 244 5 S 5 E U e ulalo olj 5 21 37 53 69 85 101 117 133 149 165 181 197 213 229 245 6l4la elelFi Vi v aya T 6 22 38 54 70 86 102 118 134 150 166 182 198 214 230 246 7 EAEI 7 5 wc u q ib ES d 23 39 55 TA 87 103 119 135 151 167 183 199 215 231 247 8 Bit 8 H X hlx 8 y L ol 8 24 40 56 72 88 104 120 136 152 168 184 200 216 232 248 gio I Yi amp l0 ciJ mpiHi e 9 25 41 57 72 89 105 121 137 153 169 185 201 217 244 249 A Bi gt x J z z e UU a l r e 10 26 42 58 74 90 106 122 138 154 170 186 202 218 234 250 BS lt l xk 1 x 1 2 9 7 5 v 11 27 43 59 75 91 107 123 139 155 171 187 203 219 235 251 CES lt JJ IJI i z u3 ba 12 28 44 60 76 92 108 124 140 156 172 188 204 220
34. 5 N V00 A0 290 0 1 4 4 N VOI B70 370 0 3 4 12 120 B V02 1 Loads PCX graphic Inserts variable data V00 when printing label Inserts variable data VO1 when printing label Inserts variable data V02 when printing label Label Form Completion FE End form store sequence A form can print without a called GM graphic be ing present in printer memory The form will print less any graphics not loaded in memory H 22 980009 001 Rev E Appendix H Programming Examples Example 12 This example demonstrates access and control Printing Forms with of individual forms by programming The Variables Download Variables command is used to di rectly fill in data fields Example 12 0D FR EXAMI 1 9 WORLDWIDE Bar Code Printer BCP 1234 1 PIJ J 9 World Wide Direct Thermal Media 444 4321 PIJ Will Produce WORLDWIDE i pE 3 Bar Code Printer BCP 1234 World Wide 9 V E Thermal Labels A 980009 001 Rev E H 23 Appendix H Programming Examples Programming Breakdown Programming Description Initialize printer OD Set direct thermal print mode Do not place an O command inside forms FR EXAM 11 3 Reca
35. 980009 001 Rev E Appendix H Programming Examples Enter the form name using the keys on the key board Upper and lower case letters must match exactly as the form name was saved If a scan ner is connected to the KDU you may enter the form name by scanning When the form name is entered press ENTER to continue The form is now retrieved and ac tive in the printer If the form does not contain variables the dis play line will prompt Number of Label Sets 1 The default number of labels is always one 1 Single Label If one 1 label is desired press ENTER to print that label Multiple Labels If multiple labels are de sired enter the new quantity and press ENTER to print labels Exit a Form Press EXIT at any time to return to the Main Menu or press FORM to select an other form If the form contains variables the display line will display the 1st variable prompt i e Enter data at each variable prompt and press ENTER The final prompt is Number of Label Sets The default number of labels is always one 1 H 37 Appendix H Programming Examples Printing Forms with Consecutive Number H 38 Fields Edit a Form Single Label If one 1 label is desired press ENTER to print that label Multiple Labels If multiple labels are de sired enter the new quantity and press ENTER to print labels Exit a Form Press EXIT at any time to return to the Main Menu or press FORM to sel
36. D7 2 1 Q609 24 q784 1 110 150 0 3 2 6 80 N CODE 39 Bl 0 300 0 3C 2 6 80 B CODE 39 HUMANREADABLE I B10 450 0 3 2 6 80 B Code 39 PI Will Produce TTTTTTT TTE 0 0 N JEUNE H 6 980009 001 Rev E Appendix H Programming Examples Programming Description Programming Description a Initialize printer 0D Set direct thermal mode No Clear the image buffer Set Printer Control Parameters and Options DB Density 2 1 Speed Set Label Parameters 060924 Label and Gap Lengths and se lects Transmissive Gap sensor 9784 Buffer Width center aligned Label Elements Text Lines Bar Codes and Graphics B10 150 0 3 2 6 80 N CODE 39 Bar Code No human readable text B10 300 0 3C 2 6 80 B CODE 39 HUMAN READABLE Bar Code with human readable text below bar code and check digit The Code 39 check digit does not display in human read able text B10 450 0 3 2 6 80 B Code 39 Code 39 Extended set is applied automatically to lower case char acters Label Form Completion Pla Print one label 980009 001 Rev E Appendix H Programming Examples Example 4 Bar This label demonstrates bar code and line Code and Line graphic interaction Graphics Interaction Example 4 Will Produce El 0 1 N D5 1 1 Q609 24 q784 1 1050 20 50 550 1 E150 20 50 550 1 10 250 20 50 550 1
37. Euro currency character for any ASCII character in printer resident fonts 1 5 The original character can be restored by send ing the oR command without a parameter Ex ample of Euro Currency Symbol is shown below oR p p2 p1 E 1 If the pg parameter is not provided then the Euro character will map to code page posi tion 213 decimal D5 hexadecimal for all code pages p2 Decimal number Range 0 to 255 The active code page s ASCII character map position to be replaced by the Euro charac ter The Euro character will be active in this map position for all code pages See the I command for details on code page selection None No Parameters p1 p2 resets to all code pages to original default character mapping The oR commandisa global printer command LI It can not be issued inside of a form 1 It must be issued prior to issuing a text com mand and printing 1 Effects a single character on a single code page Changing the character position will restore the original character L4 The character substitution is saved like printer configuration parameters Density Serial Port Data Rate Options etc 980009 001 Rev E Appendix G Advanced Programming oR Command Character Substitution Euro Example 980009 001 Rev E 2 Flash memory printer parameter data is pre served until it is changed by the oR com mand or reprogramming of the printer 1 SRAM memory storage printer paramete
38. Inquiry G 24 UM Command Codepage amp Memory Inquiry G 25 UP Command amp Memory Inquiry Print G 27 UQ Command Configuration Inquiry G 28 US Command Enable Error Reporting G 29 US Command Enable Error Reporting G 30 W Command Windows Mode G 31 2 0 Command Reset Printer G 32 AUTOFR Automatic Form Printing Feature G 33 Disabling AUTOFR G 34 dump Command Enable Dump Mode G 35 vili 980009 001 Rev E Example 1 Text and Line Graphics H 2 Example 2 Text and Line Graphic Interactions H 4 Example 3 Bar Code Variables H 6 Example 4 Bar Code and Line Graphics Interaction H 8 Example 5 Sequencing Graphic Elements H 10 Example 6 Steps for Downloading a PCX Graphic H 12 Example 7 Printing A PCX Graphic H 14 Example 8 Printing Immediately Putting It All Together H 16 Example 9 Creating AForm H 18 Example 10 Steps for Downloading a Form H 20 Example 11 Creating a Form with Basic Variables H 21 Example 12 Printing Forms with Variables H 23 Example 13 Variable Justification H 25 Example 14 Creating a Form with Basic Counters H 27 Example 15 Numeric Counting and Printing H 30 Example 16 Counter Justification H 32 Example 17 Printing with Forms Putting It All Together H 34 Example
39. Qp1 P2 P3 Parameters p4 Label length measured in dots Default Set by the AutoSense of media e Distance between edges of the label or black line marks e For continuous mode the p4 parameter sets the feed distance between the end of one form and beginning of the next P2 Gap length or thickness of black line Gap Mode By default the printer is in Gap mode and parameters are set with the media AutoSense Range 12 dots or more for 203 dpi printers 18 dots or more for 300dpi printers Black Line Mode Set p to B plus black line thickness in dots See Gap mode range Continuous Media Mode Set pa to O zero The transmissive gap sensor will be used to detect the end of media p3 Offset length measured in dots Required for black line mode operation e Optional for Gap detect or continuous media modes Use only positive offset values AutoSense routine does not detect black line or A continuous media 2 44 980009 001 Rev E COMMAND REFERENCE Q Command Set Form Length 980009 001 Rev E All EPL2 printers have a transmissive gap sen sor designed to detect the top of each label or tag It does this in one of two ways e Sensing through the label liner at the gap be tween labels e Looking through a hole notch in the tag Printers equipped with a black line sensor can determine the top of each label or tag by sensing a blackline preprinted on the media backing Sensor
40. Range 00 to 59 Example 7 01 01 95 01 00 00 sels the date to Jan 1 1995 and the time to 1 00 a m 112 31 01 15 31 00 sets the date to Dec 31 2001 and the time to 3 31 p m E 6 980009 001 Rev E Appendix E Real Time Clock Option Programming TT Command Define Time Layout Description Use this command to define the time format when printing Syntax TTp P2 P3 Parameters P1 P5 P3 h m or s These parameters describe the format of the time display e At lease one parameter must be supplied e Each parameter can be any of the values h m or s and are described below Value Description h Hours displayed as 2 digits e g 01 m Minutes displayed as 2 digits e g 15 s Seconds displayed as 2 digits e g 00 Enable 12 Hour clock format Appending a to the end of the command string selects 12 hour clock mode The times will display with an AM or PM indicator Default no 24 hour clock mode Separator character The separator may be any ASCII character value between 032 and 063 The separator character is printed between the results of each of the supplied parameters This command works only in printers equipped with IN the Real Time Clock time and date option Examples If the current time is 1 25 p m Th m s 01 25 00 hm 13 25 Th 01 PM 980009 001 Rev E E 7 Appendix E Real Time Clock Option Programming E 8 9800
41. The form can be accessed via a KDU or other re mote terminal device J FK EXAM17 FS EXAM17 1 00 18 N Enter Product Name V01 10 N Enter Product Code V02 6 N Enter Date Code YYMMDD V03 10 N Enter Carton Weight C0 4 N 1 Enter starting Serial No 1 0001 4digits D6 1 1 0609 24 1 q 64 1 5 55770 5941 10150 10 5 584 1 L0250 10 5 584 A170 510 3 4 3 3 N WORLDWIDE A300 70 0 3 2 2 N V00 1 4295 148 04 1 1 N Product Code KJ 01 B295 1720 3 2 5 120 N K VOT 4295 350 4 1 1 N Serial No S VO2CO 8295373 0 3 2 5 120 N SVOZCU 4295 510 04 1 1 N Package Weight V03 1 A295 570 0 2 1 1 N IS0 9000 Made In USA 66685 540 CE 5M 1 6615 45 WORIDR FE 1 J FR EXAM1 7 9 Bar Code Printer BCP 12341 981205 4 3 LBS 0000 P3 11 980009 001 Rev E Will Produce Text amp Bar Code Data Fields made of Fixed Data and Variable Data Text amp Bar Code Data Fields made of Fixed Variable and Counter Data PCX graphic rotated by external graphics editing software and downloaded as WORLDR First Label Starting Counter Number 980009 001 Rev E Appendix H Programming Examples Bar Code Printer Mitt a Package Weight 4 3 LBS Iso 9000 Made In USA CE Bar Code Printer iii p iii Il i i Package Weight 4 3 LBS ISO 9000 Made In USA Bar Code Printer ii I Serial No S
42. amp 3 o x 5 O Y o O Options Select Viv 2 39 oB Cancel Customize Bar Code v G 12 oH Macro PDF Offset v D 27 oM Disable Initial Esc Sequence Feed Y 2 41 oW Customize Bar Code Parameters Y G 12 P Print v 2 42 PA Print Automatic v 2 43 Set Form Length Transmissive Gap Sensor v Q Black Line Sensor v 241 Continuous Stock v q_ Set Form Width v 2 48 r Buffer Mode v G 17 R Set Reference Point v 2 49 S Speed Select Viv 2 51 TD Define Date Layout v 2022 2042 E 5 TS Set Real Time Clock v 2622 E 6 P2222 TT Define Time Layout v Eclipse E 7 U Print Configuration v 2 52 Status Debug amp Inquiry Serial En Ux Port Only UA UB UE UF Viv ASS G 18 UG UI UM UN UP US ppe V_ Define Variable vv 2 57 W Windows Mode v G 31 X Box Draw v 2 58 Y Serial Port Setup vv 2 59 Z Print Direction v 2 61 Download Variables v 2 62 Reset Printer v 6 32 ee Status Report Immediate v See G 9 eR User Definable Error Response v Appendix G G 10 ALL Commands that function the same for all models Specific Commands that require special programming considerations other than print width for printer model variations such as dot per inch printing speed or memory partitioning Exception Model s listed are the exceptions to standard EPL2 command operation Not Supported Are commands that are ignored by the model s listed 980009 001 Rev E 2 3 COMMAND REFERENCE A Com
43. disadvantages are listed below 1 Programmer can design and generate unique font sets that are licence free fonts 1 Generate small graphics that can be recalled as font Graphics less than 256 dots high and 2048 dots wide 255 bytes x 8 1 Graphics as fonts can be enlarged in horizon tal and vertical multiples just like fonts L1 Increase printer s flexibility 1 Minimize memory requirements for uses that require only partial font sets Y Utilities available to download third party fonts Soft fonts can be downloaded to and deleted from the printer from the Soft Font Downloader Utility CAL Tools or CAL3 I Soft fonts are slower to image than resident fonts Soft fonts are processed by the printer in a manner similar graphics 1 Licencing issues with downloaded soft fonts L1 Requires programming tools to implement some fonts Typical text editors are not capa ble of programming raw data code Downloading some third party soft fonts may require a vendor s licence Zebra actively discourages copy right infringement and strongly suggests that all user s obtain required copyright licenses 980009 001 Rev E Appendix G Advanced Programming EK Command Delete Soft Font Description This command is used to delete soft fonts from memory Soft fonts can be downloaded to and deleted from IN the printer from the Soft Font Downloader Utility CAL Tools or CAL3 Syntax EK FONTNAME Parameter
44. gt BUSY red 8 9 Female DB 9 to RJ 11 Cable P N 300065 001 6 5 volts 200 mA max Pin 3 green Pin 4 red Pin 2 yellow Pin 5 black Pin 1 blue Pin 6 white Front View of RJ 11 Modular Connector Appendix J Interface Connection Parallel Interface Cable Connections DB 25 Centronics HOST Pin No Pin No PRINTER STROBE 1 STROBE DATA 0 2 2 DATA 0 DATA 1 3 95 3 DATA 1 DATA 2 4 4 DATA 2 DATA 3 5 5 DATA 3 DATA 4 6 gt 6 DATA 4 DATA 5 7 l O 7 DATA 5 DATA 6 8 gt 8 DATA 6 DATA 7 9 gt 9 DATA 7 ACK 10 10 ACK BUSY 114 1411 BUSY PAPER ERR 12 12 PAPER ERR READY 13 13 READY INIT 14 gt 14 INIT ERROR 15 4 15 ERROR N A 16 16 N A 17 17 N A 18 18 lt 5V D 19 lt gt 19 SIG GND D 20 lt gt 20 SIG GND D 21 lt gt 21 SIG GND D 22 lt gt 22 SIG GND D 23 23 SIG GND D 24 lt gt 24 SIG GND D 25 lt 25 Female DB 25 to Male Centronics Cable The 5 volt at pin 18 of the printer s parallel port provides power to Eltron PrintServers a 10base T Ethernet network adapter The maximum current for this adapter power feed is limited to 600ma Flash printer models exceptthe Eclipse supportthe Eltron PrintServer as of Septem
45. is done in both vertical and horizontal directions Some two dimensional bar codes are stacked one dimensional bar code lines and others are matrix bar codes Many two dimensional bar codes support error correction This allows data to be read and recov ered with less than optimal conditions even with some damage to the bar code with some symbologies Typically the error correction level can be adjusted to favor the amount of data stored per symbol verses the ability to recover data Q What two dimensional bar codes are included with Eltron Printers A Eltron printers support MaxiCode a matrix bar code and PDF 417 a stacked bar code with Macro PDF also included Appendix D Bar Code Information Q What is MaxiCode MaxiCode is a two dimensional symbology that can encode approximately 100 characters of data in a single one square inch symbol and up to eight symbols per data record The MaxiCode bar code was developed by a major freight shipper in conjunction with AIM Automatic Identification Manufacturers orga nization to provide a portable database record The format allows for multiple data field entries into a single ship record name date address etc Each MaxiCode bar code when properly formatted is a record with a defined format of separate data groups The symbol includes er ror correction code ECC a targeting pattern orientation independent format and can have some symbol damage as high as
46. page back to the host in the following format Ulp1 P2P3 p1 Number of data bits P2 Code page p3 Country code The KDU automatically sends this command each IN time power is applied The Ul command is disabled by removing power from the printer for 60 seconds Example Ul See Also l and U commands G 24 980009 001 Rev E Appendix G Advanced Programming UM Command Codepage amp Memory Inquiry Description This command will cause the printer to send to the host of the currently selected codepage and memory status through the RS 232 port Syntax UM The printer will send information about the cur rently selected code page and memory status back to the host in the following format UMp1 p2 P3 P4 P5 P6 P7 Pa P9 p1 Image buffer size in KBytes P2 Form memory allocation size in KBytes p3 From memory free in KBytes p4 Graphic memory allocation size in KBytes p5 Graphic memory free in KBytes pe External font memory allocation size in KBytes p7 External font memory free in KBytes Pg Number of data bits p9 Code page P19 Country code Example UM See Also 1 M U Ul and UP commands 980009 001 Rev E G 25 Appendix G Advanced Programming UN Command Disable Error Reporting Description Cancels US command Syntax UN G 26 980009 001 Rev E Appendix G Advanced Programming UP Command amp Memory Inquiry Print Description This command w
47. preloaded PCX graphics from Example 8 Will Produce printer memory for fast label download M 0D Na D5 2 1 Q609 24 1 9784 66100 70 WORLD A170 5 0 1 5 5 N WORLDWIDE 105 230 765 10 A10 265 0 1 3 5 R MODEL 1 A280 265 0 1 3 3 N Bar Code Printer A10 340 0 1 3 3 R CODE 1 B280 340 0 3C 2 6 120 B BCP 1234 105 520 765 10 A100 550 0 1 2 2 N 150 9000 Made In USA 66650 535 CE 5M 1 P100 WORLDWIDE T4 Bar Code Printer B 234 ISO 9000 Made In usa CE CP 1 980009 001 Rev E Appendix H Programming Examples Programming Breakdown Programming Description d Initialize printer 0D Set direct thermal mode No Clear the image buffer Set Printer Control Parameters and Options DB Set Density 2 1 Set Speed Set Label Parameters Q609 4 1 Label Length and Gap q 84 1 Buffer Width center aligned Label Elements Text Lines Bar Codes and Graphics 66100 70 WORLD Loads stored PCX graphic WORLD A170 5 0 1 5 5 N WORLDWIDE Normal text 105 230 765 10 Simple line 10 dots thick A10 265 0 1 3 3 R MODEL A280 265 0 1 3 3 N Bar Code Printer A10 340 0 1 3 3 R CODE B280 340 0 3C 2 6 120 B BCP 1234 1 105 520 765 10 A100 550 0 1 2 2 N 1SO 9000 Made In USA 66650 535 CE 5M 1 Reverse text Normal text in line with MODEL
48. print See the formulas on page which ac count for this additional SRAM requirement A small amount of SRAM memory is used to op The following tables outline the memory required to print two 2 images of various sizes 203 dpi Printers Image Buffer Size Kbytes in inches in dots in inches in dots Single Double 125 254 100 20 7 225 457 300 609 4 00 812 1 00 203 400 812 300 609 400 812 600 1218 300 dpi Printers Image Buffer Size Kbytes Width Height Qvalue in inches in inches in dots 225 675 200 600 225 675 300 90 675 400 120 300 900 400 1200 5 00 1500 224 448 400 1200 600 1800 269 980009 001 Rev E 1 15 PROGRAMMING CONSIDERATIONS Double Buffering EPL2 printers with firmware version 3 0 and higher except TLP2046 support double buff ering of print images to speed the printing pro cess The printer can print the image out of one buffer while loading an image into a second im age buffer if sufficient memory is available to load the second image The printer will auto matically test and enable double buffering Double buffering allows the printer with most image formats to print continuously If a sufficient amount of image buffer memory is not available to double buffer print images then the printer will load a print image and then print per forming these functions one lab
49. the printer s internal flash memory The flash memory is partitioned into two areas forms and a shared area for graphics and soft fonts Printers with flash memory use SRAM memory for the image buffer only The following two tables help identify some of the basic printer memory related features and options SRAM tema Standard With Cartridge Nonvolatile Memory Configuration KB KB LP2122 0 128 128 512 LP2142 0 128 128 512 LP2242 128 128 256 512 LP2622 128 256 128 N A LP2642 128 128 256 512 LP3642 128 256 256 512 TLP2242 128 128 256 512 TLP2622 128 128 N A TLP2642 128 128 256 512 TLP3642 128 256 256 512 TLP2046 0 128 128 512 980009 001 Rev E 1 5 PROGRAMMING CONSIDERATIONS Flash Flash SRAM Nonvolatile Memory Standard Maximum Standard Maximum Orion 512 KB 1 MB 256 KB 512 KB Strata 512 KB 1 MB 512 KB 1 MB LP2722 TLP2722 512 KB 1 MB 128 KB 256 KB LP2742 TLP2742 512 KB 1 MB 256 KB 512 KB TLP 2746 512 KB 1 MB 512 KB 1 MB Eclipse 512 KB 1 5MB 256 KB 384 KB P2222 512 KB 128 KB P2242 512 KB 160 KB 1 6 Printers with flash memory have a limited number of write cycles Limiting the number memory writes is es sential to maximize flash memory life and is a good practice in general Some printers with flash memory chips have flash write cycles limited to 100 000 cycles before the storage of data ma
50. tit i A 6 980009 001 Rev E Appendix A Standard Character Sets Code Pages and Character Sets 8 bit Code Page 852 44 Size 5 nue 01 64 AS PQ 96 112 a MEE E 144 160 176 192 208 E II 24 OBO U 240 Code Pages and Character Sets 8 bit Code Page 860 Size5 32 980009 001 Rev E A 7 Appendix A Standard Character Sets Code Pages and Character Sets 8 bit Code Page 863 4 Size 5 48 0 240 Code Pages and Character Sets 8 bit Code Page 865 Size5 32 7 see A A 8 980009 001 Rev E Appendix A Standard Character Sets Code Pages and Character Sets 7 bit British 9 Sizes 1 4 16 32 48 64 80 96 112 Size 5 48 64 80 96 e pw oDn 3 Z I a gt gt ZV Code Pages and Character Sets 7 bit Danish e Sizes 1 4 16 32 48 64 80 96 112 Size 5 64 80 96 112 980009 001 Rev E o DS Y O D r 8 x 6789 lt FGHIJKLM VWXYZEBA f m v a Oo yo ghijkl C2 Cc 2 vo o uxyzreg Appendix A Standard Character Sets Code Pages and Character Sets 7 bit French 0 Sizes 1 4 18 15S 32 ESZA r 4 amp 8 0123456789 lt gt 64 aABCDEFGHIJKLMNO 8 PQARSTUVWXYZ SAL 96 abcdefghijkimno 112 parstuvuxyz ue Size5 32 Tom 48 01834 S 64 DEFGHIJKLMNO so PQRSTUVWXYZ 96 112
51. use the COPY command to send the file directly to the printer An example of the use of the COPY command is COPY FILENAME EXT LPTI lt or COPY FILENAME EXT COMI For more information on the use of the COPY command refer to your DOS software manual Configure the COM port to match the printer s serial port setting typically set to defaults See the Y command in section 2 for details See Examples in Appendix H for more information on downloading forms or graphics to an EPL2 printer 980009 001 Rev E PROGRAMMING CONSIDERATIONS Printer Memory Organization Forms Graphics 980009 001 Rev E The EPL2 printers feature nonvolatile memory for storage of label forms graphics and soft fonts This memory can be located in the printer in removable memory cartridges or both depending upon the printer model Many EPL2 printers require the use of the M command to specify the amount of memory al lotted to memory storage groups image buffer forms graphics and soft fonts See the M com mand in Section 2 Command Reference for memory management details by printer model Each time the memory allocation command M is used forms graphics and soft fonts stored in memory are erased Because previously stored forms graphics and fonts are deleted by the M command extra care should be used when for matting printer memory Printers with Flash Memory Printers with flash memory do not require memory par
52. via a termi nal device or EPL2 program with the Download Variables command The terminal printer op erator enters the data in after each prompt FICEXAM 1 1 FS EXAM 11 1 V00 15 C Enter company name V01 17 C Enter product name V02 8 N Enter product code D8 2 1 Q609 24 1 q 84 1 6680 100 WORLD A160 1 0 1 5 5 N V00 A0 290 0 1 44 N V01 B70 370 0 3 4 12 180 B V02 1 FE WORLDWIDE Bar Code Printer BCP 1234 User or Program supplied variables for VOO prompt Enter company name WORLDWIDE VO1 prompt Enter product name Bar Code Printer VO02 prompt Enter product code BCP 1234 H 21 Appendix H Programming Examples Programming Breakdown Programming Description FK EXAM 11 1 Queue form to save to printer memory FS EXAM 11 1 Start form store sequence Set Variables 00 99 V00 15 C Enter company name V01 17 C Enter product name V02 8 N Enter product code Set variable 00 max 15 characters centered Set variable 01 max 17 characters centered Set variable 02 max 8 characters no justification Set Printer Control Parameters and Options D8 Set Density 2 1 Set Speed Set Label Parameters Q609 24 1 Label Length and Gap q784 Buffer Width center aligned Label Elements Text Lines Bar Codes and Graphics 6680 100 WORLD A160 1 0 1 5
53. 0 L0100 400 200 200 4420 420 0 4 2 2 N Big Bor der i A120 410 0 4 2 2 N Special 120 500 0 4 2 2 N Effects 1 Simple Line Graphic Box for check pattern Simple Line Graphic Box for offset border Simple Line Graphic Box for check pattern Text inside the inverse image line box Text placed over line square Text placed over line square and inverted with LE line below LW100 150 200 50 White Line Bar of check pattern LW100 250 200 50 1 White Line Bar of check pattern 1W407 107 170 170 1 White Line box Offset border LE150 100 50 200 1 Exclusive OR Line Inverts bars for check pattern LE250 100 50 200 Exclusive OR Line Inverts bars for check pattern LE50 450 300 100 Exclusive OR Line Invert bar across line amp text Effects LE400 400 350 150 Exclusive OR Line Invert bar across text Big Border Label Form Completion Plo Print one label 980009 001 Rev E Appendix H Programming Examples Example 6 Steps Use the following steps for downloading a PCX for Downloading a graphic file to a printer with a flash nonvolatile PCX Graphic memory card installed with DOS operating sys Step 1 Step 2 tem commands This procedure may also be done from withina MSDOS window from a Windows operating system See the M EI FI GI amp U commands to manage the printer s memory Generate the PCX graphic file with the follow ing co
54. 0 00000080 000000C0 000000 000000 DO EO 000000F0 00000100 CR 1A A P3 00 83 amp LF 41 A ay EE 80 22 61 22 00 q Hj co LE 00 07 00 01 01 EO 38 00 eal 00 38 00 80 OF 00 00 1 01 1 7O 1C 00 FO 38 00 3 00 980009 001 Rev E FO 1F 00 03 TI FP JC FO 70 OD OA CR amp LF 00 e CO 1 00 TE 00 07 00 T 00 01 01 70 00 Cy QD 0 3C 0 TC 00 03 00 83 A Py EE A Pa 00 03 00 EO 78 38 FO 00 EO 00 lF FF 70 00 LC 1F 00 BB 70 CO 1C 00 OF 00 00 OF 00 1F 00 70 43 00 00 38 00 00 FE 38 LE 19 78 38 00 qe 00 00 07 OD OA CR 8 LF 1F 00 FF 38 CO E 1F 00 ET 38 1c Lip 70 1C 00 1c 00 38 FO 00 00 00 TG co 1F 7F 38 38 00 FF 00 1C 00 Oc 01 00 00 T 1F BE 3C 38 00 FF co co 03 00 00 3c lF EB 18 38 00 E y oO rj 3C 00 LE EB 38 00 01 00 00 F8 03 FF FO PE I 00 TE ee BRUE oa BO E dor a x rues 58s Biss 8 m T E Appendix G Advanced Programming ES Command Store Soft Font Font Bitmap Da
55. 09 001 Rev E Appendix F Cutter Option Programming Appendix F Cutter Option Programming This section applies to printers with the Cutter option installed 980009 001 Rev E F 1 Appendix F Cutter Option Programming Cutter Option Configurations Cutter Models Support for the Cutter option varies from printer model to model Model variations are as follows _1 Desktop printers Most desktop printer models can be ordered with the cutter installed The cutter circuit is integrated into the main circuit board and can not be field upgraded 1 Industrial Printers Most industrial printers can be ordered witha cutter installed preferred or field upgraded by a qualified service technician 1 Portable Printers No Cutter Option Desktop TLP2622 TLP2722 Thermal Transfer 2 203 dpi TLP2642 TLP2742 Thermal Transfer 4 203 dpi TLP3642 Thermal Transfer 4 300dpi Orion Direct Thermal 4 203 dpi Tabletop Industrial TLP2046 Thermal Transfer 4 203 dpi Eclipse LP Direct Thermal 4 203 dpi Eclipse TLP Thermal Transfer 4 203 dpi Wide Web Industrial Desktop Strata LP Direct Thermal 8 5 203 dpi Strata TLP Thermal Transfer 8 5 203 dpi 980009 001 Rev E Appendix F Cutter Option Programming C Command Cut Immediate Description Syntax Parameters Example 980009 001 Rev E This command allows the advanc
56. 2 Density Changed from default to 8 for optimum print quality with the selected transfer ribbon and media Speed Recommended interacts with density ZT Image Buffer Direction Optional Set Label Parameters 0609 24 1 q 84 1 1 Sets Label Image Buffer and Gap Lengths 2 Sets media detection to Transmissive Gap sensor Sets Image Buffer Width center aligned Label Elements Text Lines Bar Codes and Graphics Bottom group lines A10 100 0 2 3 3 N Normal Type 4330 200 2 3 3 N Normal Type A10 400 0 2 3 3 R Reverse Type L050 20 50 550 Simple Line Graphic Vertical Left LE150 20 50 550 1 Exclusive OR Line Vertical Left 1W250 20 50 550 White Line Graphic Vertical Left Middle group text amp lines 1020 280 750 30 3 Simple Line Graphic Horizontal A330 500 0 1 3 3 R Reverse Type Text Top Left Text Top Right Text Bottom Left Text Bottom Right Top group lines 10400 20 50 550 3 Simple Line Graphic Vertical Right LE500 20 50 550 Exclusive OR Line Vertical Right LW600 20 50 550 White Line Graphic Vertical Right Label Form Completion Plo Print one label 980009 001 Rev E H 5 Appendix H Programming Examples Example 3 Bar This label demonstrates bar code implementa Code Variables tions using Code 39 with automatic extended character set Example 3 J OD NA
57. 2 times the width of a narrow ele ment The six digit symbol does not require the bearer bar if printed on a label it does re quire a bearer bar if printed directly on the packaging material using conventional print ing techniques 980009 001 Rev E 980009 001 Rev E Appendix D Bar Code Information UCC EAN 128 Serial Shipping Container Symbol The SSCC 18 is a popular format of the UCC EAN 128 specification and is meaningful only when used in association with EDI and the Advance Shipping Notice ASN The UCC ad ministers the specifications for this symbology L Character Set The full ASCII set 128 char acters 1 Encodation Three bars and three spaces are used to encode a character 1 Code Type Modular fixed length 21 dig its 11 Human Readable Required _1 Check Character Required a modulus 10 check digit in human readable form a modulus 103 check digit encoded but not represented in human readable form _J Encoded Information e Start Code C not represented in hu man readable form Function 1 Character not represented in human readable form e 00 Application Identifier Packaging Level Indicator one digit Number System Character two digits Manufacturer Identification Number five dig its Serial Number nine digits Allowable Sizes X Dimension ranging from 010 inches to 035 inches Allowable Symbol Height Minimum of 1 25 inches Ap
58. 242 0 1 0 ips 25 mmps LP TLP2642 1 1 5 ips 37 mmps TLP3642 2 2 0 ips 50 mmps LP TLP2722 LP TLP2742 P2222 P2242 2 2 0 ips 50 mmps TLP2044 3 3 0 ips 75 mmps 4 4 0 ips 100 mmps 2 2 0 ips 50 mmps 3 3 0 ips 75 mmps TLP2046 4 4 0 ips 100 mmps 5 5 0 ips 125 mmps 6 6 0 ips 150 mmps 1 1 0 ips 25 mm s 2 2 0 ips 50 mm s Strata 3 3 0 ips 75 mmps 4 4 0 ips 100 mmps 0 1 0ips 25 mm s 1 1 5 ips 37 mm s Orion 2 2 0ips 50 mm s 3 2 5 ips 63 mm s 2 2 0 ips 50 mm s Eclipse 3 3 0 ips 75 mm s 4 40 ips 100 mm s Portable printers will automatically adjust the speed to maximize battery usage and print quality Example 2 selects 2 ips 50 mmps 980009 001 Rev E 2 51 COMMAND REFERENCE U Command Print Configuration General Description Use this command to print the current printer configuration Syntax U The one page printout produced by this com mand includes the following Example U Printer Model Image Buffer Size Firmware Version Serial Port Settings Print Head Test Pattern Amount of RAM Installed Memory Configuration Character Set Selected amp Double Buffer Status Speed Density Reference Point Print Direc tion and Error Status Label Size Options Current Sensor Values Will Produce 4UKQ1733JPN V Serial p co ii nn 4 SRAM installe Image buffer size 106K Fmem 005 1K 005 1K avl Gmem 005K 001K avl Emem 396K 3
59. 5 2 980009 001 Rev E 980009 001 Rev E Appendix D Bar Code Information Q What are the most common bar codes in use today A Listed below are seven bar codes that are in very common use The Universal Product Code UPC The Universal Product Code or UPC symbol is a standardized numbering system which pro vides unique identification of an item and is used widely in the retail community The Uni form Code Council UCC is the administrator of the UPC and publishes the specifications for this symbology Presently there are two ver sions of the UPC symbol Version A UPC A and Version E UPC E Both versions are de signed for item level identification The UPC A is the more widely used EAN 13 is the Euro pean version The second version UPC E is a suppressed version of UPC A and is mostly used for packaging that is too small for the UPC A bar code i e package of chewing gum Version E requires a Number System Character of Zero EAN 8 is the European version of UPCE but has a major difference an additional digit found in the first two digits being the country code designator The rest of the data layout is the same between UPC and EAN codes 11 Character Set 0 9 1 Encodation Two bars and two spaces are required to encode a character L1 Start Stop Pattern Always starts and stop with 3 elements a narrow bar narrow space and narrow bar 1 Code Type Modular fixed length twelve digits with UPC A
60. 96K avl 18 0 001 rN S2 D07 ROOO 000 ZT UN q832 00613 028 Option 04 10 17 Date 05 22 00 Time 09 02 02 nou in DUMP 3 14 ort 96 N 8 1 2 52 980009 001 Rev E COMMAND REFERENCE U Command Print Configuration General Explanation Of Printout SRAM Printers e n Ss 0 Serial port 96 N 8 1 3 SRAM installed O E JP Image buffer size 106K O Gmem 010K 010K avl P Emem 265K 265K avl 9 18 0001 rY 84 D00 R128 000 ZT UN P Fmem 005 1K 005 1K avl oe e 0o v Q1022 029 9 gt option D N C S Q 16 23 31 Y M pate 10 05 94 O JTime 01 00 00 o0 A Wd J3J now in DUMP MODE Dump Mode Print Sample TLP2044 ver 2 00 N A Printer model or code number and firmware version number B Serial port configuration C Print head test pattern D Amount of SRAM installed E Amount of memory allocated to the Image buffer F Amount of memory allocated to the Form buffer and the amount available G Amount of memory allocated to the Graphic buffer and the amount available H Amount of memory allocated to the Soft Font buffer and the amount available I Currently selected Character Set I and Image Buffer mode setting r rY Double Buffer Enabled rN Double Buffering Disabled J Currently selected Print Speed S Heat Density D Reference Point R
61. CE C Command Counter The command is used in forms that require se quential numbering When initializing counters they must be defined in order e g CO first C1 second Field justification p3 affects the printing of counter data When L R or C are selected the counter field is the width of pg value Data will justify within the counter p2 field per the se lected p3 The N parameter will print the mini mum number of characters See programming example 13 in Appendix H To print the contents of the counter the counter number is referenced in the DATA field of the A ASCII text or B Bar Code commands If the starting value of a counter is 1 then no lead ing zero padding will be added If the starting value is 01 then the counter will be padded up to the maximum number of digits pg with zeros Count ers must be defined after variables Saving and This feature is useful when the counter field rep Protecting resents a serial number or others types of num Consecutive bers that should never be repeated This Numbers in feature allows for automatic retrieval and incre Nonvolatile Memory menting or decrementing of the previous counter value used every time a form is re trieved and printed By placing one minus sign as the first character of the prompt the prompt will appear only once after the form is retrieved thereby protecting the integrity of the data For the Orion Stra
62. EPL2 Programmer s Manual Itron Manual No 980009 001 Rev E 01999 Zebra Technologies Corporation 980009 001 Rev E FOREWORD This manual provides programming information for the Eltron brand printers featuring Zebra s Eltron Programming Language EPL2 command language which are manufactured by Zebra Technologies Corporation Camarillo California COPYRIGHT NOTICE This document contains information proprietary to Zebra Technologies Corporation This docu ment and the information contained within is copyrighted by Zebra Technologies Corporation and may not be duplicated in full or in part by any person without written approval from Zebra While every effort has been made to keep the information contained within current and accurate as of the date of publication no guarantee is given or implied that the document is error free or that it is accurate with regard to any specification Zebra reserves the right to make changes for the purpose of product improvement at any time TRADEMARKS Zebra Eltron EPL2 Strata Orion Xport and Eclipse are trademarks of Zebra Technologies Corporation All other marks are trademarks or registered trademarks of their respective holders REVISION HISTORY Rev B This version of the manual was for firmware version 2 23 and is available from Eltron in electronic form Rev C This version of the manual was for firmware version 3 18 and is available from Eltron in electronic form
63. ERENCE EPL2 Command Set 0 A Command ASCII Text B Command Bar Code b Command 2D Bar Code C Command Counter D Command Density El Command Print Soft Font Information EK Command Delete Soft Font ES Command Store Soft Fonts FE Command End Form Store Fl Command Print Form Information FK Command Delete Form FR Command Retrieve Form FS Command Store Form 980009 001 Rev E GG Command Print Graphics 2 23 GI Command Print Graphics Information 2 24 GK Command Delete Graphics 2 25 GM Command Store Graphics 2 26 I Command Character Set Selection 2 28 JB Command Disable Top Of Form Backup 2 29 JF Command Enable Top Of Form Backup 2 29 LE Command Line Draw Exclusive 2 30 LO Command Line Draw Black 2 31 LS Command Line Draw Diagonal 2 32 LW Command Line Draw White 2 33 M Command Memory Allocation 2 34 N Command Clear Image Buffer 2 38 O Command Options Select 2 39 oM Command Disable Initial Esc Sequence Feed 2 41 PCommand Print 2 42 PA Command Print Automatic 2 43 Q Command Set Form Length 2 44 q Command Set
64. IDERATIONS If the printer includes the time amp date option EPL2 includes commands for setting as well as formatting the appearance of the time and date onto printed labels See Appendix E for details Command Functions The EPL2 printer has four 4 basic command 1 2 Image Control Commands functions L1 Image Control 1 Print Control 1 Memory Control 1 Status Reporting Image control commands directly affect the memory used by the printer for storing the print image prior to printing The image commands assemble each of the individual elements of the print image i e text bar codes lines graphics B amp W PCX bitmaps etc with small compact data strings The printer creates a bitmap from each command string element without the need to transfer a large amount of image data between the host and the printer Command Description Page A ASCII Text 2 4 B Bar Code 2 7 b 2D Bar Code 4 15 LE Line Draw Exclusive 2 30 LO Line Draw Black 2 31 LS Line Draw Diagonal 2 32 LW Line Draw White 2 33 N Clear Image Buffer Note 1 2 38 X Box Draw 2 58 Note 1 A Line Feed LF issued prior to any commands will initialize the printer for commands The N command should be the first command issued to erase clear all available image buffer space in the printer 980009 001 Rev E PROGRAMMING CONSIDERATIONS Printer Control Printer control commands set the ima
65. Label Width 2 48 R Command Set Reference Point 2 49 S Command Speed Select 2 51 U Command Print Configuration General 2 52 V Command Define Variable 2 55 X Command Box Draw 2 58 Y Command Serial Port Setup 2 59 Z Command Print Direction 2 2 61 Command Download Variables 2 62 Appendix A Standard Character Sets A 1 Resident Fonts 212 Cu aoe eer Sh o ROSA ida A 1 Fonts 1 954 X6 Sua B ER ae TY Do dicis e I E A 2 ASCII to Hexadecimal Reference Table A 2 Code Page 437 Sizes 1 4 ls A 3 Code Page 850 Sizes 1 4 A 3 Code Page 852 Sizes 1 4 A 4 Code Page 860 Sizes 1 4 A 4 Code Page 863 Sizes 1 4 A 5 Code Page 865Sizes1 4 A 5 CodePage437Sizeb o s A 6 Code Page 850 Size 5 145 9x zu 9499 euvo A 6 CodePage852Sizeb a a aa a les A 7 Code Page 860 Sizeb A 7 Code Page 863 Sizeb A 8 Code Page 865 Sizeb A 8 vi 980009 001 Rev E British 7 Dile c ae ae He gee eaa ctae ae ot A 9 980009 001 Rev E Danish 7 bit vs ai ds Ook a e RC AC ire Se A 9 French 7 DID O oe eua ale ee ne ads A 10 German ADIOS aimes Siu aes d bur dr le Wee doe A 10 Italian 7 bit 8 So Pe Bote vor oh Bo HM Pt aod a BS A 11
66. M USA The UCC recognizes this symbology for ship ping container marking in the Application Stan dard for Shipping Container Codes 11 Character Set 0 9 1 Encodation 2 of 5 pairs characters and encodes the first digit of the pair on five bars and the second digit of the pair on the five in terleaving spaces Two of the five spaces or bars used to encode a character are always wide Below is an illustration of the inter leaved encodation 1 Start Stop Pattern Starts with four nar row elements beginning with a bar and stops with a wide bar followed by two narrow ele ments 1 CodeType Binary varying length I 2 of 5 requires an even number of digits to encode information J Human Readable Optional although it is typically used 1 Check Digit Optional however Modulus 10 required when using the SCC 14 specifi cation J Encoded Information Contingent upon data requirements although an even number of digits is required A leading zero is used if there is an odd number of digits available 980009 001 Rev E D 5 Appendix D Bar Code Information 1 Allowable Sizes e Minimum X Dimension 0075 inches L1 Wide to Narrow Ratio e 2 1 to 3 1 for X Dimension greater than 020 inches e 2 2 1 to 3 1 for X Dimension less than 020 inches e The SSC 14 specifications outline magnifi cations that are allowable 1 Allowable Symbol Height e The greater of 25 inches or 15 of th
67. NCE C Command Counter Description Syntax Parameters KDU Options 980009 001 Rev E The command defines one of 10 automatic counters used in consecutive numbering applications i e serial numbers For Numeric Serialization Only The counter function does not support Alpha or Alpha Numeric Serialization Cp P2 P3 P4 PROMPT p1 Counter number Range 0 to 9 P2 Maximum number of digits for the counter Range 1 to 29 p3 Field Justification L Left R Right C Center N No Justification Pq Step Value or sign followed by a single digit of 1 9 Using a step value of 0 allows the counter to be used as an additional variable data field PROMPT An ASCII text field that will be trans mitted to the KDU or host via the serial inter face each time the command is executed This prompt usually requests the operator to enter the starting value for the counter A single minus sign as the first character of the prompt field will cause the prompt to be displayed only one time after the form is re trieved Two minus signs with no space between as the first two characters of the prompt field will cause the prompt to be suppressed The prompt option is not supported by printer with nonvolatile flash memory See Saving and Protecting Consecutive Numbers in Nonvolatile Memory for additional usage of the and PROMPT options COMMAND REFEREN
68. NCE X Command Box Draw Description Use this command to draw a box shape Syntax Xp1 P2 P3 P4 P5 Parameters p Horizontal start position X in dots P2 Vertical start position Y in dots P3 Line thickness in dots P4 Horizontal end position X in dots p5 Vertical end position Y in dots Example N X50 200 5 400 20 X200 50 10 20 400 PI Will Produce 2 58 980009 001 Rev E COMMAND REFERENCE Y Command Serial Port Setup Description Use this command to establish the serial port communication parameters Syntax Yp1 P2 P3 P4 Parameters p Baud rate 980009 001 Rev E P1 Description 11 115 000 baud 115k 57 57 600 baud 57K 38 38 400 baud 38K 19 19 200 baud 96 9 600 baud 48 4 800 baud 24 2 400 baud 12 1 200 baud P2 Parity Values O Odd parity E Even parity N No parity p3 Data bits Values 7 Seven data bits 8 Eight data bits P4 Stop bits Values 1 One stop bit 2 Two stop bits After receiving this command the printer will automatically reset enabling the new rate This command is not used for the TLP2044 46 print ers The serial port setup on these printers is per formed by configuration switches on the rear of the printer 2 59 COMMAND REFERENCE Y Command Serial Port Setup Printer Serial Port Data Transfer Ranges 2 60 Transfer Rat
69. PAI Print 1 label Automatically FEJ Form End Line Feed f using the CAL TOOLS CAL WIN etc programs to gener ate label files files with ejf extensions then the PA command must be added manually by editing the ejf file G 33 Appendix G Advanced Programming AUTOFR Automatic Form Printing Feature Isolating Data From the Input Device Disabling AUTOFR G 34 AUTOFR treats any incoming data as a variable in tended for printing This means if you send the printer a memory partition command the label will print if you send a delete command the label will print So while you are testing AUTOFR it is best to use another name for the form Once you are satis fied with the form rename it AUTOFR before you download it There is no need to specify a file exten sion Place the printer in the diagnostic dump mode and send from your data input device All charac ters the device sends will be printed on the label e If nothing prints nothing is arriving check pin outs and serial settings Serial Port Send a XOFF data character 19 hex or ASCII 13 to the printer The form may now be deleted from the printer 980009 001 Rev E dump Command Appendix G Advanced Programming Enable Dump Mode Description Syntax Parameters gt S DP Example 980009 001 Rev E This command allows the advanced program mer to force a user diagnostic data dump mode Sending the dump
70. Print Orientation Z and Error Status U Currently selected Form Length Q Current Options Select status Current AutoSense Through Gap Sensor values The three numbers represent 1 Backing Transparent point 2 Set point 3 Label Transparent point N Current time set in Real Time Clock This value will only be displayed if your printer is equipped with the Real Time Clock feature O Current date set in Real Time Clock This value will only be displayed if your printer is equipped with the Real Time Clock feature P Current Dump Mode Status TE Note TLP2046 printers The serial port and double buffer sta tus are not supported by this printer Serial port configuration is a hardware setting The double buffer mode is not supported 980009 001 Rev E 2 53 COMMAND REFERENCE U Command Print Configuration General Explanation Of Printout Flash Printers A 4M03351F 16 V3 18 A Serial port 96 N 8 1 D3 SRAM installed O E Image buffer size 106K E 7 Fmem 005 1K 005 1K avl Gmem 010K 010K avl Emem 265K 265K avi O 18 0 001 rY O 34 D00 R128 000 ZT UN 832 Q1022 029 O Option D N C S Q 160331 9 e 0 Q 9 pate 10 05 94 O Time 01 00 00 P gt now in DUMP MODE Me E Dump Mode Print Sample 2 54 A Printer LD code number and firmware
71. Rev D This version of the manual was for firmware version 3 20 and is available from Eltron in electronic form Rev E This manual version coincides with EPL2 firmware version 3 99 and is available from Eltron in electronic form See the Eltron web site at www eltron com for an Adobe Acrobat file or call Zebra Eltron Prod ucts Group customer service 980009 001 Rev E lii 980009 001 Rev E Table of Contents PROGRAMMING CONSIDERATIONS Feat res sasse dea able oh Bi ca bots hicks ob Se alot ee al A Command Functions Image ControlCommands Printer Control Commands Memory Control So e cn reci o erant a Status Reporting sucer RO VR E ESPERA rS Command Conventions Basic Command Syntax aa Command Editor Printer Memory Organization sio 411 O MORE CREER URS E ae He aa RE Graphics ar uw an RUP wy bg Se arma b Nee TER Bes SO OMS gf ir a ea eh abt soia ENR acc veut e dcn e Aca do pos Image Buffers o v Scd we ob EC WA us Image Buffer Addressing Sample Format x urs ERR E GARS ake RAUS dus Installed Memory vs Form Length Double Buffering 040 Text Fonts cux doe aO de de OS Bar Codes adas ia es Bid te ae a a Programming Sequences Affect Graphic Results Media Detection 048 Determining Printer Firmware Version COMMAND REF
72. Time Clock E 6 TT Command Define Time Layout E 7 vii Appendix F Cutter Option Programming F 1 Cutter Option Configurations F 2 Cutter Models ee s ter De o ar teat rm b ep F 2 C Command Cut Immediate F 3 f Command Cut Position F 4 OC Command Cutter Option Select F 5 Appendix G Advanced Programming G 1 Introduction 0d o ed be det weak A G 1 Soft Fonts Overview 00048 G 2 EK Command Delete Soft Font G 3 ES Command Store Soft Font G 4 Example of Measuring Soft Font Size G 6 Soft Fonts Programming Code Example G 7 Font Bitmap Data Format 32 26 vu ow G 8 ee Command Error Report Immediate G 9 eR Command User Defined Error Status Character G 10 O Command Options Select G 11 oW Command Customize Bar Code Parameters oB Command Cancel Customized Bar Code G 12 oR Command Character Substitution Euro G 14 p Command Reset Top of Form Sensing G 16 r Command Buffer Mode G 17 U Commands Advanced Status Commands G 18 UA Command Enable Clear Label Counter Mode G 19 UB Command Reset Label Counter Mode 6 20 UE Command External Font Information Inquiry G 21 UF Command Form Information Inquiry G 22 UG Command Graphics Information Inquiry G 23 UI Command Host Prompts Codepage
73. ar code and is only recommended for troubleshooting purposes Additional variables UP p p parameter identifer xxx horizontal start location yyy vertical start location mm maximum characters per line 980009 001 Rev E D 21 Appendix D Bar Code Information b Command 2D Bar Code PDF417 Specific Options D 22 Po f Bar code origin point Values O or 1 default is 1 f1 Center of bar code as defined by the automatically adjusted symbol size i e width and height Parmaters pg and p5 values are maximum values only f0 Upper left corner of barcode P10 X module width in dots Values 2 9 i e x2 x9 Default Auto selects 6 dots Tests data with maximum size limit with the pg and p5 values then the other optional parameters that are specified The printer will then auto matically reduce the module width by one dot increment until the data fits within the symbol s maximum dimensions and other applied parameters or until 3 dots has failed in which case the printer then will re port an error P11 Y set bar height in dots Range 4 99 i e y4 y99 Default 4 times module width p10 p12 r maximum row count Sets a maximum limit for the number of rows to be used for auto selecting symbol features p13 D maximum column count Sets a maximum limit for the number of columns to be used for auto selecting sym bol features P14 t truncated flag legal values are 0 not t
74. ber 1999 Contact your Eltron product representive for more details J 4 980009 001 Rev E
75. ce Registration No 1 Registration No 2 Registration No 3 Registration No 0001 Registration No 0002 Registration No 0003 H 28 980009 001 Rev E Appendix H Programming Examples Programming Breakdown Programming Description FK EXAM 14 1 Queue form to save to printer memory FS EXAM 14 1 Start form store sequence Set Counters 0 9 0 4 L 1 Starting Registration Number Set counter O max 4 numbers left justified Set Printer Control Parameters and Options D8 Set Density 2 1 Set Speed Set Label Parameters 060924 Label Length and Gap q 64 1 Buffer Width center aligned Label Elements Text Lines Bar Codes and Graphics 450 50 0 1 3 3 N Registration No C0 Inserts counter data CO when printing label Label Form Completion FE I End form and save Load Form Label FR EXAM 14 1 Recall form from printer memory Insert Variables 00 99 and Counters 0 9 9 Initiates Variable and Counter download in sequence 1 Insert counter 0 CO Print Label P314 Print 3 Labels Wait for next command Form Break al Required to separate multiple form variable and counter entry processes for programming compatibility between all EPL2 printers Insert Variables 00 99 and Counters 0 9 9 Initiates Variab
76. command should be sent whenever 1 The memory requirement for a label size is larger than the current image buffer memory area 1 You need to change the size of the form graphic or soft font memory area to accom modate more or less forms graphics or soft fonts 1 You have added additional SRAM replaced the firmware EPROM or battery 1 SRAM nonvolatile memory printers have the image buffer partition set to small to fit the label length Q and width q If the image buffer length is less than the label length the printer s AutoSense label routine will not work properly Repartition the image buffer size and or increase SRAM memory in the printer M104 5 101 104KB for image 5KB for forms 10KB for graphics 0KB for fonts Note 1 These are the memory default values for the 2142 2044 and 2046 printers 2 37 COMMAND REFERENCE N Command Clear Image Buffer Description This command clears the image buffer prior to building a new label image Syntax N Do not use the N command within stored forms Example NJ dears the image buffer Always send a Line Feed LF prior to the N com IN mand to ensure that the printer is initialized 2 38 980009 001 Rev E COMMAND REFERENCE O Command Options Select Description Use this command to select various printer op tions Options available vary by printer model Syntax O C p 4 D d P S Parameters D 980009 001 Rev E Enable Direct T
77. command to the printer allows the programmer to compare ac tual data sentto printer with the hostprogram Send data to the printer after the dump com mand has been issued to evaluate program and printer control data The printer will process all data bytes into ASCII character data range 0 255 decimal 00 FF hexadecimal Press the printer s Feed button until Out of Dump is printed or power cycle the printer to terminate the dump mode dump None Use the Dump Mode character map in Appendix A of the EPL2 programmer s manual to interpret the dump mode data characters printed on the labels back into ASCII data Graphics data dump may be large and require multi ple labels to print Set the image buffer width with the q command to match the media width prior to issuing the dump command Flash based printer models require that the Feed button to be pressed to view dump data that exceeds a single label s print area Press the Feed button again to view more dump data Pressing the Feed button after the dump data is finished printing will cause the printer to exit the dump mode dump G 35 Appendix G Advanced Programming G 36 980009 001 Rev E Appendix H Programming Examples Appendix H Programming Examples 980009 001 Rev E This section has examples that outline the basic steps needed to program various form label ele ments The examples cover three areas print ing immediately storing forms
78. configured by changing to a different Asian language memory cartridge Asian Configuration Default Usage SRAM E Non Volatile S di 2 gt pee O 9 e Memory i s Ro S E dz i Models Ta sE fa en en Ce TA ge ee RES Be Ud Nd LP2642 512 128 384 106 5 1 5 3 TLP2642 512 128 384 106 5 1 5 3 TLP2046 512 0 512 106 5 1 5 3 Configuration Flash Usage z E Flash T Y 5 ES el E Memory E BS 0 a Models FE z TE ES ca 6 o i 7 PO es Ons 2722 512 KB 256 KB 1 MB 128 Ignore 2742 512 KB 512 KB 2 MB 128 Ignore Orion 512 KB 512 KB 2 MB 128 Ignore Strata 512 KB 1 MB 2 MB 128 Ignore Edipse 512 KB 384 KB 1 MB 20 236 p2 C 2 980009 001 Rev E Appendix C Asian Character Printer Programming A Command ASCII Text Description Prints a character string Syntax Ap 1 P2 P3 P4 P5 P6 P7 DATA Parameters p4 Horizontal start position X in dots P2 Vertical start position Y in dots p3 Rotation Orientation Value Description 0 No rotation Left to Right 1 90 degrees Left to Right 2 180 degrees Left to Right 3 270 degrees Left to Right 4 No rotation Top to bottom 5 90 degrees Top to bottom 6 7 180 degrees Top to bottom 270 dearees Top to bottom Fonts 8 amp 9 only Pq Font selection Value Descr
79. d files to printer memory COPY STOREITI TXT WORLD PCX LPT b Repeat process for each PCX graphic Appendix H Programming Examples Example 7 Printing A PCX Graphic Example 7 Will Produce This example demonstrates printing a label with a graphic immediately by importing a preloaded PCX graphic from memory This is the easiest method to layout and test a label prior to downloading it as a form The PCX graphic should be pre sized for the printer reso lution orientation and print dimensions e OD No DB 2 1 0609 24 q784 1 6650 50 WORLD PIJ 980009 001 Rev E Appendix H Programming Examples Programming Breakdown Programming Description a Initialize the printer 0D Set direct thermal mode No Clear the image buffer Set Printer Control Parameters and Options DB Set Density 2 1 Set Speed Set Label Parameters Q609 24 Label Length and Gap q 84 1 Buffer Width center aligned Label Elements Text Lines Bar Codes and Graphics 6650 50 WORLD Loads PCX graphic stored as WORLD directly into image buffer from the printer memory Label Form Completion PI Print one label 980009 001 Rev E Appendix H Programming Examples Example 8 Printing This example demonstrates printing a complete Immediately Putting label with text bar code and graphic elements It All Together The label uses
80. d With Orientation Set To gal PIJ NJ ZB 6610 10 WORLD A10 200 0 3 1 1 N This Graphic Was Printed With Orientation Set To ZB T d Pla 2 c Q This Graphic Was Printed With Orientation Set To ZT _ imd Q a EZ OL 95 UOT 3e3U8TJO0 Y TM pasuTJud sem 27ydeso SFUL i c py a r 2 61 COMMAND REFERENCE Command Download Variables 2 62 Description Syntax Example This command signals the printer to fill in variable or counter prompt data field The host system can send data representing variables and or counters to the printer after a stored form containing variables and or counters has been retrieved DATA The amount of data following the question mark line must match exactly the order and total number of variables and or counters for that specific form Data must be entered as follows e Each DATA line represents a variable or counter data field fill in e Variables in ascending order e g VOO first VO1 second e Counters in ascending order following Variables e g CO first C1 second FK form 1 delete form forml FS forml begins the form store V00 15 N Enter Part Name V01 5 N Enter Quantity A50 10 0 3 1 1 N V00 450 400 0 3 1 1 N Quantity VOI FEJ ends form store sequence FR forml retrieve for forml 2 1 variables follow Screws first variable 235 1 sec
81. data field size parameter The example uses the A Text command s re versed text data field to show how the printer treats the different justification options Example 16 1 FK EXAM 16 FS EXAM 16 3 0 15 L 1 Counter 1 1 15 R 1 Counter 2 2 15 C1 Counter 3 3 15 N 1 Counter 4 1 4 15 L 4 1 Counter 5 5 15 R 1 Counter 6 6 15 C 1 Counter 7 7 15 N 1 Counter 8 D8 0609 24 1 9784 A50 25 0 1 22 R C0 3 A50 100 0 1 22R C1 A50 175 0 1 22R 21 A50 250 0 1 22R 33 450 325 0 1 2 2 R Field 5 C4 3 450 400 0 1 2 2 R Field 6 C5 1 450 475 0 1 2 2 R Field 7 C6 450 550 0 1 2 2 R Field 8 C7 FEL J al FR EXAM 16 AN 980009 001 Rev E Will Produce 980009 001 Rev E Appendix H Programming Examples PII 000000000000001 000000000000002 000000000000003 000000000000004 Field 5 000000000000005 Field 6 000000000000006 Field 7 000000000000007 Field 8 000000000000008 ARES AZ A 4 Field 5 5 Field 6 3 Field 7 7 Field 8 8 Appendix H Programming Examples Example 17 This example demonstrates creating and recall Printing with Forms ing for use a form and printing a complete label H 34 Putting It All Together Example 17 set with variables counter text bar code and graphic elements The form uses preloaded PCX graphics from printer memory This pro vides the fastest label download process for EPL2 printers
82. de of the transparent liner C Enable optional Label Liner Cutter See Appendix F page F E for more details See Section 2 page 2 39 for more details on the following D Enable Direct Thermal Mode P Enable Label Dispense Mode Standard L Enable Label Dispense Mode Tap to Feed 0 disables all options 0C enables cutter only labels are cut after each label is printed disables all other options 0D enables direct thermal mode on thermal transfer printers disables all other options 0d disables diagnostic dump mode and disables all other options 0Cb labels are cut after a batch of five has printed disables all other options P5 Sets the number of labels to print before the cut Appendix G Advanced Programming oW Command Customize Bar Code Parameters oB Command Cancel Customized Bar Code Description Syntax Parameters This command allows the advanced program mer to modify specific bar code parameters to exceed the specified bar code s design toler ances i e reduce the bar code size Using the oW command may cause bar codes to be come unreadable by some or all bar code scanners oWp1 P2 P3 P4 P5 oB p1 Initial width narrow white bar Default value is 2 P2 Initial width narrow black bar Default value is 2 p3 Initial width wide white bar Default value is 4 Pq Initial width wide black bar Default value is 4 p5 Initial bar code gap Default value is 3 The oW and oB commands a
83. deword width 2 Symbol width p4 3 Symbol column maximum p13 4 Module height p11 5 Symbol height ps5 6 Symbol row maximum p12 The printer will start with the maximum value default or explicit for these parameters The printer reduces these values to get the module width and height to maximize readability D 25 Appendix D Bar Code Information b Command 2D Bar Code PDF417 Specific Options Example N b80 100 P 700 600 x2 y7 1100 r100 10 55 V lt Fourscore and seven years ago our fathers brought forth on this conti nent a new nation conceived in liberty and dedicated to the proposi tion that all men are created equal Now we are engaged in a great civil war testing whether that nation or any nation so conceived and so dedicated can long endure nad J b80 200 P 400 300 p40 440 20 F1 x3 y10 r60 15 ABCDEFGHIJK123 45678900bcdefghijk PJ Will Produce Al ABCDEFGHIJK123456789 Oabcdef ghi jk D 26 980009 001 Rev E Appendix D Bar Code Information oH Command Macro PDF Offset Description Use this command to place addition secondary associated Macro PDF symbols for the continu ation of data greater than a single PDF 417 bar code can store This command must preceed any PDF 417 bar code IN commands inorder to print Macro PDF multiple bar code symbols from a single b command s data field Syntax oHp1 p2 Parameters p4 Horizontal offset position X in dots of the n
84. e Model Maximum Minimum 2622 2642 2242 3642 2046 Orion 2722 2742 38 400 baud 4 800 baud Strata Eclipse P2222 P2242 2122 2142 19 200 baud 1 200 baud 115 000 baud 4 800 baud 19 200 baud 1 200 baud To send commands and data to the printer the host s serial port parameters must match the printer s serial port parameters Verify the printer s configuration set tings with the AutoSense Dump Mode Printout see the printer s user s manual for details The typical EPL2 printer s default serial port parameters are 9600 baud No Parity 8 Data Bits 1 Stop Bit Change the printer s serial port parameters with the Y command after communication has been estab lished with the host The host parameters must then be changed to resume communication Example Y19 0 7 1 1 sets 19 200 baud odd parity 7 data bits and 1 stop bit 980009 001 Rev E COMMAND REFERENCE Z Command Print Direction Description Use this command to select the print orienta tion Syntax Zp Parameters p4 Print orientation Example Will Produce 980009 001 Rev E T Printing from top of image buffer B Printing from bottom of image buffer Default Orientation T The top of the image buffer prints first and is viewed by the operator as printing up side down No ZI 6610 10 WORLD e l 0 200 0 3 1 1 N This Graphic Was Printe
85. e 5 The order that graphic elements get placed in Sequencing Graphic the image buffer effect the print results Elements e Standard black graphics text lines boxes PCX graphics etc should be placed first e LW command White lines rectangles ele ments should be placed next e LE command Exclusive ORed reverse im age color should be placed last Example 5 N D8 2 1 0609 24 1 q784 1 0100 100 200 200 0400 100 200 200 10100 400 200 200 4420 430 0 4 2 2 N Big Border A120 475 0 4 2 2 N Effects A120 410 0 4 2 2 N Special LW100 150 200 50 LW100 250 200 50 LW407 107 170 170 LE150 100 50 200 LE250 100 50 200 LE50 450 300 100 LE400 400 350 150 Pla Will Produce H 10 980009 001 Rev E Appendix H Programming Examples Using the LE line element for creating Reversed Text is the most versatile and recommend method of generating this type of text Programming Breakdown Programming Description del Initialize printer Na Clear the image buffer Set Printer Control Parameters and Options D8 Density Adjust to match printing media amp speed 2 1 Speed Adjusted to match print quality amp density Set Label Parameters Q609 24 1 q784 Label and Gap Lengths and selects Transmissive Gap sensor Buffer Width center aligned Label Elements Text Lines Bar Codes and Graphics 10100 100 200 200 10400 100 200 20
86. e following rules to format the Data param eter e In Mode 2 If a non numeric character is en tered in the Postal Code Data parameter field then the MaxiCode barcode will not print e n Mode 3 If the Postal Code Data field exceed 6 characters then the additional char acters will be truncated from the bar code field 980009 001 Rev E Appendix D Bar Code Information b Command 2D Bar Code MaxiCode Specific Options 980009 001 Rev E P5 Xy Associated MaxiCode symbol numbering where x Symbol Number of y Total Number of Associated Symbols Default Not used Range 1 8 for both x or y DATA Mode Dependent Data Format Mode dependent data is bounded by quotation marks Maximum of 2 Kbytes of data Mode Data Format 2 amp 3 cl co pc lpm 4 amp 6 Ipm cl Class Code 3 digits required co Country Code 3 digits required Mode 2 Numeric Characters Mode 3 International Characters up to 6 characters pc Postal Code Mode 2 5 or 9 characters All Numeric including USA Postal ZIP 5 or 9 char For less than 9 characters the printer will pad the field with O s Mode 3 International Any alphanumeric character up to 6 characters lpm Low priority message data ASCII printable characters up to 84 characters per symbol any 256 character map The programmer should rely on the symbology s specification
87. e liner only with the Transmissive Gap sensor The Notch method uses the Transmissive sensor to detecta hole in the media gap less labels or tag stock The Black line method uses the Reflective sen sor to detect a preprinted black line on the me dia back for gap less labels or tag stock 1 21 PROGRAMMING CONSIDERATIONS Printing on continuous media requires pro gramming to control media positioning EPL2 printers also support a Label Dispense mode as a printer configuration option for most models The printers use a Label Taken sen sor to detect the removal of a label One or more of these sensors may require user adjustment or configuration for proper opera tion All EPL2 printers have an AutoSense fea ture to optimize label and label gap detection by the transimissive gap sensor See the printer s user s manual for printer specific sensor adjust ment control Determining Printer The printer version numbers are a code used to Firmware Version document product function and the feature 1 22 support level of the printer To check the firm ware version installed in your printer perform the AutoSense procedure described in the printer s user s manual or via the printer inter face by issuing a programming U command 980009 001 Rev E 980009 001 Rev E COMMAND REFERENCE COMMAND REFERENCE This section contains a complete listing of printer commands in alphabetical order and de scribes the ba
88. e sym bol length I2 of5 symbol encoding the data 1991 D 6 980009 001 Rev E 980009 001 Rev E Appendix D Bar Code Information Code 3 of 9 Code 39 Code 3 of 9 or Code 39 is a symbology used widely in industrial applications This symbol was invented by Dr David Allais and the Uni form Symbology Specification was developed by AIM USA The Department of Defense the health industry and the automotive industry have also adopted Code 39 as their industry standard Character Set 0 9 A Z space Encodation Five bars and four spaces are re quired to encode a character Three of the nine bars and spaces are wide while the other six are narrow Start Stop Pattern Always the character Code Type Binary varying length Human Readable Optional although it is typically used Check Character Optional modulus 43 cal culation Encoded Information Contingent upon data requirements Allowable Sizes e Minimum X Dimension 0075 inches e Wide to Narrow Ratio e 2 1 to 3 1 for X Dimension greater than 020 inches e 2 2 1 to 3 1 for X Dimension less than 020 inches Allowable Symbol Height The greater of 25 inch or 15 of the symbol length START STOP E 0 D E Appendix D Bar Code Information D 8 Code 128 Code 128 is frequently used in industrial retail and shipping applications This symbology was invented by Ted Williams and the U
89. ea line image or field that this line intersects or overlays will be reversed out or inverted In other words all black will be reversed to white and all white will be reversed to black within the line s area width and length Syntax LEp1 P2 P5 P4 Parameters pl Horizontal start position X in dots p2 Vertical start position Y in dots p3 Horizontal length in dots p4 Vertical length in dots Example N clear image buffer LE50 200 400 20 draw a line LE200 50 20 400 draw another line PI sprint one label Will Produce 2 30 980009 001 Rev E COMMAND REFERENCE LO Command Line Draw Black Description Use this command to draw black lines overwrit ing previous information Syntax LOp1 P2 P3 P4 Parameters p4 Horizontal start position X in dots P2 Vertical start position Y in dots P3 Horizontal length in dots Pq Vertical length in dots Example NU dear image buffer 1050 200 400 20 draw a line L0200 50 20 400 draw another line PI sprint one label Will Produce 980009 001 Rev E 2 31 COMMAND REFERENCE LS Command Line Draw Diagonal Description Use this command to draw diagonal black lines overwriting previous information Syntax LSp1 P2 P3 P4 P5 Parameters p4 Horizontal start position X in dots P2 Vertical start position Y in dots p3 Line thickness in dots p4 Horizontal end position X in dots p5
90. ect an other form If the form contains a consecutive number field the system will automatically keep track of the next number sequence If you do not need to in terfere with this predetermined sequence press ENTER at this prompt The final prompt is Copies of Each Label 4 The default number of copies is always one 1 If one 1 copy is desired press ENTER to print that label Note Change the quantity if you desire multi ple labels with the same consecutive number Once a form has been activated it will automat ically indicate the last information keyed in If you want to retain that information press ENTER To Enter Data 1 Enter the new data thereby overriding the old data or 2 Press ENTER if the old data is correct or 3 Use the orange backspace key or the CLEAR key to modify data When you have finished editing and have printed the label you will automatically return to the first variable prompt 980009 001 Rev E Protecting Data 980009 001 Rev E Appendix H Programming Examples Exit a Form Press EXIT at any time to return to the Main Menu or press FORM to select an other form If the label form has been designed to hide a variable prompt i e Store No that data will be protected and this prompt will appear only when the form is initially retrieved Another label design command will prevent a prompt from ever showing and may be desir able for applications where data
91. ectangle bordering the reversed text 980009 001 Rev E COMMAND REFERENCE B Command Bar Code Description This command is used to print standard bar Syntax Parameters 980009 001 Rev E codes Bp1 P2 P3 P4 P5 P6 P7 Pg DATA p Horizontal start position X in dots P2 Vertical start position Y in dots p3 Rotation Value Description 0 No rotation 1 90 degrees 2 180 degrees 3 270 degrees Pq Bar Code selection see Table 2 1 on next page p5 Narrow bar width in dots see Table 2 1 on next page Pe Wide bar width in dots Acceptable values are 2 30 p7 Bar code height in dots Pg Print human readable code Values B yes or N no DATA Represents a fixed data field The data in this field must comply with the selected bar code s specified format See Appendix D for more information on bar codes The backslash character designates the following character is a literal and will encode into the data field Refer to the following exam ples To Print Enter into data field Company V Company V code code 2 7 COMMAND REFERENCE B Command Bar Code Bar Codes Description a eB z Code 39 std or extended 3 1 10 Code 39 with check digit 3C 1 10 Code 93 9 1 10 Code 128 UCC E Serial Shipping Container C
92. ed Programming for de tails on the programming and commands to directly format download and delete soft fonts Example El prints soft font list Will Produce Ext font information amp 096char 022dots dir Ext font memory left 050K 980009 001 Rev E 2 15 COMMAND REFERENCE EK Command Delete Soft Font See Appendix G ES Command Store Soft Fonts See Appendix G 2 16 980009 001 Rev E COMMAND REFERENCE FE Command End Form Store Description This command is used to end a form store se quence Syntax FE Example FS FORMNAME FE The form store sequence is started with the FS command 980009 001 Rev E 2 17 COMMAND REFERENCE Fl Command Print Form Information Description This command will cause the printer to print a Syntax Fl Example FI Will Produce 2 18 prints forms list list of all forms stored in memory Form information 1 TESTFORM Form memory left 004 9K 980009 001 Rev E COMMAND REFERENCE FK Command Delete Form Description This command is used to delete forms from memory Syntax FK FORMNAME Parameters FORMNAME By entering the name of a form that form will be deleted from mem ory e The name may be upto 8 characters long e Form names stored by the printer are case sensitive and will be stored exactly as entered on the FS command line i e FORM1 form1 and FoRm1
93. ed program mer to initiate an immediate media cut without a form print operation The printer must have the cutter option installed L1 The C command Cut Immediate can not be used inside of a form LJ The initial character C in a command string is used for both the Counter function Cp which can only be used within a form and for the Cut Immediate function C this com mand which can not be used in a form 1 The C command Cut Immediate can not be used with the KDU None Only cut label liner backing or tag stock Label ad hesive will built up on the cutter blade and cause the cutter to operate poorly or jam if the labels are cut along with the label liner Use the C command Cut Immediate 5 times without media loaded to perform a self cleaning of the cutter blade Appendix F Cutter Option Programming f Command Cut Position Description Syntax Parameters Use this command on an individual printer to provide precision cut placement e Compensate sensor to cutter position differ ences on a printer by printer basis e Fine tune cut position to compensate for dif ferences in media fp p1 cut position index measured in dots Acceptable values 070 to 130 The default value is 100 When using the label liner cutter option the printer will advance each printed label to the appropriate programmed offset cut position between labels before cutting Due to media differences the printer ma
94. eight in dots E y direction 0 0 1 90 2 both A xxx y last font 980009 001 Rev E G 21 Appendix G Advanced Programming UF Command Form Information Inquiry Description This command will cause the printer to send in formation about forms currently stored in the printer back to the host Syntax UF The printer will send the number of forms stored and each form s name to the host through the RS 232 port Example UF Will Produce number of forms FORMNAME first form name FORMNAME2 second form name FORMNAMEn last form name G 22 980009 001 Rev E Appendix G Advanced Programming UG Command Graphics Information Inquiry Description This command will cause the printer to send in formation about graphics currently stored in the printer back to the host Syntax UG The printer will send the number of graphics stored and each graphic s name to the host through the RS 232 port Example UG Will Produce 777 number of graphics GRAPHICNAMET first graphic name GRAPHICNAME2 second graphic name GRAPHICNAMEn last graphic name 980009 001 Rev E G 23 Appendix G Advanced Programming UI Command Host Prompts Codepage Inquiry Description This command will cause the printer to enable prompts to be sent to the host and it will send the currently selected codepage to the host through the RS 232 port Syntax UI The printer will send information about the cur rently selected code
95. el at a time While operation of the Double Buffering feature is automatic the following are requirements to enable the feature The Q command must be used to establish the height of each label and initiate double buffering L1 The q command must be used to match the width of the image buffer to the width of the label The q command will maximize and test the image buffer if sufficient memory is avail able to enable double buffering 1 The amount of SRAM memory allocated with the M command for the image buffer must be large enough to hold the two label images Using the formulas below calculate the memory requirements for each label Add the memory requirements for each label to determine the total image buffer memory requirements Flash Memory Printers The M command does not affect the image buffer size in flash memory based printers The image buffer is a fixed size 980009 001 Rev E PROGRAMMING CONSIDERATIONS The q value affects the available print width Mini mizing the q value will maximize the print length and print speed double buffering Use the appropriate dot measurement conver sion to determine the image buffer size with the following formulas For 203 dots per inch 8 dots per mm printers OR For 300 dots per inch 11 8 dots per mm printers Single Buffer Height in dots Q 10 x Width in dots q 8096 KBytes required Double Buffer Single Buffer Kbytes Required x 2 0 5 KBytes
96. er will vary from printer to printer depending upon the type of printer and options installed Example UQ G 28 980009 001 Rev E US Command Enable Appendix G Advanced Programming Error Reporting Description Use this command to enable the printer s status reporting feature Serial Port If an error occurs the printer will send a NACK 0x15 followed by the er ror number to the computer If no errors oc cur the printer will echo ACK 0x6 after each P command Parallel Port If an error occurs the printer will print the error number and the printer s indicator s LED will indicate an error condi tion See the individual printer user s manual for details If paper or ribbon empty occurs the printer will send through the serial port a 07 and Pnnn where nnn is the number of labels re maining to print Syntax US p1 The printer s default setting is off Parameters p4 Optional If no errors occur the printer will echo ACK 0x6 after each label that is suc cessfully printed Error codes on following page 980009 001 Rev E G 29 Appendix G Advanced Programming US Command Enable Error Reporting G 30 Code Error Status Description 00 No Error O01 Syntax Error 02 Object Exceeded Label Border 03 Bar Code Data Length Error l eg ENA 13 is a 12 or 13 digit only 04 Insufficant Memory to Store Data
97. ers 0609 24 1 Sets Label Image Buffer and Gap Lengths 2 Sets media detection to Transmissive Gap sensor 9 84 Sets Image Buffer Width center aligned Label Elements Text Lines Bar Codes and Graphics X30 30 20 750 400 Box Graphic A60 100 0 2 3 3 N Normal Type A60 200 0 2 3 5 R Reverse Type Normal Text No Rotation Reverse Text No Rotation Label Form Completion PI Print one label 980009 001 Rev E H 3 Appendix H Programming Examples Example 2 Text and This label demonstrates text and line graphic in Line Graphic teraction The print mode has been reset to the Interactions default thermal transfer mode with the O command to guarantee thermal transfer opera Example 2 Will Produce tion J 0 1 NJ D8 2 1 Q609 24 9 84 050 20 50 550 1 LE150 20 50 550 1W250 20 50 550 L020 280 750 30 A10 100 0 2 3 3 N Normal Type 4330 200 2 3 3 N Normal Type A10 400 0 2 3 3 R Reverse Type 4330 500 0 1 3 3 R Reverse Type 10400 20 50 550 LE500 20 50 550 1 LW600 20 50 550 Pla p m n a Typ N 980009 001 Rev E Appendix H Programming Examples Programming Breakdown Programming Description J Initialize Printer 0 1 Resets print method to thermal transfer No Clear the image buffer Set Printer Control Paramet ers and Options D8
98. es 32 03 mm 300 dpi printers 00 to FF hex 256 dots 0 85 inches 21 67 mm 980009 001 Rev E Appendix G Advanced Programming ES Command Store Soft Font 980009 001 Rev E aq 1 Download Character map position Range 00 to FF hex bi 1 Spacing To Next Print Character Downloaded character s next printed character position in dots i e Character tracking the space between characters Must be greater than or equal to the character width see parameter c4 Dots in a decimal number converted to a hexadecimal number Range 00 to FF hex C1 1 Downloaded Character s Width Dots in a decimal number converted to a hexadecimal number Range 00 to FF hex DATA 1 Character Bitmap p3 X 1 bit map data in bytes Data is received in bytes on a line by line basis The font character s 0 0 cell map posi tion is in the top left corner of the map as viewed in the O degree rotation See the ex amples on the following pages az 2 9 Download Character map position bo 2nd Spacing To Next Print Character C2 2 9 Downloaded Character s Width DATA 2 9 Character Bitmap P3 X Cg bytes bit map data Repeat for each character until the last char acter in the set is downloaded An Last Download Character map position bn Last Spacing To Next Print Character Cn Last Downloaded Character s Width DATA Character Bitmap P3 X Cp bytes bit map data G 5 Ap
99. ext Macro PDF bar code symbol P2 Vertical offset position Y in dots of the next Macro PDF bar code symbol See the following page for an example 980009 001 Rev E D 27 Appendix D Bar Code Information oH Command Macro PDF Offset Example N 9784 0121524 R0 0 oH0 500 J No 580 100 P 700 600 x2 y7 1100 r100 f0 s5 Fourscore and seven years ago our fathers lt lt lt the rest of Lincoln s Gettyberg Address HERE gt gt gt and that government of the people by the people for the people shall not perish from the earth PA Will Produce 5 D 28 980009 001 Rev E Appendix E Real Time Clock Option Programming Appendix E Real Time Clock Option Programming This section applies to printers with the RTC Real Time Clock option installed RTC Option Support for the RTC option varies from printer Configurations mode to model Model variations are as fol OWS 11 Memory Cartridge with RTC Most EPL2 printers support the RTC with the SRAM memory cartridge The printer can easily be field upgraded to a memory car tridge with a RTC J Internal RTC Some EPL2 printers only support the RTC option with an RTC integrated into the main circuit board and can not be field upgraded 1 RTC Not Supported Some basic EPL2 printers do not support RTC option in any configuration Memory Cartridge w RTC All EPL2 printers not listed below Internal RTC Strata Or
100. for mation yet provides data redundancy so that the scanner is not limited to a single scan path 1 Character Set Each bar code symbology has its own defined character set In some cases these sets are alphanumeric with addi tional special characters while other symbo logies only allow encoding digits O through 9 980009 001 Rev E D 1 Appendix D Bar Code Information D 2 1 Human Readable Information The in formation encoded in a bar code may be rep resented in human readable form below the printed bar code symbol This human readable representation is optional with some bar codes while mandatory with oth ers m Fixed vs Variable Length Some bar code symbologies vary in length contingent upon the amount of information that needs to be represented Other symbologies have a fixed length and always contain the same amount of encoded information 1 X Dimension Each bar code symbol has a defined X Dimension or narrow bar This bar is measured in thousandths of an inch or mils and directly affects the physi cal size of bar code 1 Modular vs Binary With a modular bar code information is encoded using bars and spaces which vary from one to four Q How can I find more information about bar codes A A good resource of bar code information is The Bar Code Book by Roger C Palmer 1989 1991 by Helmers Publishing Inc Pe terborough New Hampshire U S A ISBN 0 1911261 0
101. ge label Commands size position of print area speed density heat setting control and positioning of label for cut peel or presentation and printer interface and 980009 001 Rev E control Command Description Page D Density 2 14 l Character Set 2 28 JB Disable Top of Form Backup 2 29 JF Enable Top of Form Backup 2 29 Options Select Thermal Transfer O Direct Thermal 2 39 Cut Peel Present Label P Print 2 42 PA Print Automatic 2 43 Q Set Form Label Length 2 44 q Set Form Width 2 48 R Set Reference Point 2 49 S Speed Select 2 51 w Ka Mode Enable Disable for G 31 indows printer driver Z Print Direction ZB amp ZT 2 61 1 3 PROGRAMMING CONSIDERATIONS 1 4 Memory Control Memory control commands provide access to volatile temporary and nonvolatile permanent memory in the printer Volatile memory is for storing variable data and counters Nonvolatile memory is for storing form graphic data PCX and soft fonts Volatile Memory Commands Command Description Page C Counters 2 11 v Define Variable 2 57 rN Disable Double Buffer H 17 Download Variables 2 62 Nonvolatile Memory Commands Command Description Page FE End Form Store 2 17 FK Delete Form 2 19 Retrieve Form PR and run commands within form 2 20 FS Begin Store Form 2 21 Retrieve PCX Graphic
102. haracter Sets 8 bit Code Page 860 Appendix A Standard Character Sets O 10 ao AZ EC 1 nx etE 25 VI O el Y Mo Li mi ot HN N OD D m gt c HO O OTC XUA FOS AB ado w D L gt e gt Io 4 x DWoO 8 3 8 oz For Ue 06 0 TONo nwo J z NOX AL 9 i o TO TOA cC oua GQGhu e 112 128 144 169 Sizes 1 4 980009 001 Rev E 176 192 208 224 240 A 4 Appendix A Standard Character Sets Code Pages and Character Sets 8 bit ro i O 69 t CAZ trc 4 ner Ss iow VI it el oF M hd E m amp n S N N OD Ore cw 0 orm cf ox uw a Fox oz3ux3 DIL gt e gt El a Nu 3 tH t Or UU 9 o e O D U M uw A 3 c c O va 9 TS 578 0 16 Code Page 863 Sizes 1 4 Oo 10 I gt AZ lt C a n x em E a gt V Zu w a SE o Mo umi Mx TOR S amp No NC D QU om et Dc 00 tx d XUD o OZXO503063Jo0 own gt gt wd Ju a ex NWO 83 8 o E 4 f oO E OCU 9 O 0 7E O0 O 0 U w 9 3 Nr cc n L v we so Code Page 865 Sizes 1 4 A 5 980009 001 Rev E Appendix A Standard Character Sets Code Pages and Character Sets 8 bit Code iiid M S28 w 0123456789 AN n m ER Suez 4 160 VNA m8 Code Pages and Character Sets 8 bit Code Page 850 o Bie HS ve amp 01234 6 89 ABCDEFGHIJKLMNO PQRSTUVWXYZ m El oU g 4 1860 N 2 LA ABR 208 EEE
103. hermal Mode use this op tion when using direct thermal media in a thermal transfer TLP printer Enable Label Dispense Mode Standard The printer will present each label and wait for the label to be removed before continuing On the P2242 the Feed switch must be tapped to print the next label Enable Label Dispense Mode Tap to Feed The printer will present each label and wait for a tap of the feed switch before printing the next label Use this mode when printing multiple copies of liner free labels Enable optional Label Liner Cutter See Cutter Option Appendix F for details Disable Diagnostic Dump Mode See Advanced Programming Appendix G for details Reverse the Transmissive Gap Sensor Operation See Advanced Programming Appendix G for details 2 39 COMMAND REFERENCE O Command Options Select Options Command Availability Models Options C D d P L S LP2122 LP2142 L P2242 L P2622 LP2642 LP2722 LP2742 Eclipse LP Orion Strata LP P2222 P2242 v v v TLP2242 TLP2622 TLP2642 TLP3642 TLP2722 TLP2742 Eclipse TLP TLP2046 TLP2746 Strata TLP SIS IS IS INS SSIS IN IN IS INS gt N A A A A Label Dispense Mode is selected by Batch Peel mode switch located on the printer See the printer users manual for details and switch location NSS ISIS IS IN IN IN SN QS ISIS IS IN IN INS
104. his can be omitted by the programmer and the printer will auto select the mode per the rules on page D 16 3 The shipper has used the character to pad the symbol s data A scanner reads back all the Data within the quotation marks including the characters following the End Of Mes sage Marker EOT 4 All of the data fields in the Low Priority Message are not used in the example Some are left empty with the field delim iting Gg character used as a format field holder D 19 Appendix D Bar Code Information b Command 2D Bar Code PDF417 Specific Options D 20 Description Syntax Parameters Use this command to print PDF 417 and Macro PDF bar code symbols The printer will auto se lect to Macro PDF bar code mode and print print one or more symbols when used in con junction with the oH command to place addi tion symbols for continuation data bp1 P2 P3 P4 P5LPelL P7 LPalLPolLP101 P311L P12 L P3 31L P1341L 935 DATA The printer will automatically generate the PDF417 bar code using the following parameters p1 Horizontal start position X in dots P2 Vertical start position Y in dots p3 P Must be P for PDF 417 bar codes P4 www maximum print width in dots p5 hhh maximum print height in dots The programmer should rely on the symbology s specification to insure format compliance and proper implementation See the AIM web site for specifications at http www aimi org The p
105. ill cause the printer to print Syntax and send the currently selected codepage and memory status to the host through the RS 232 port UP The printer will send information about the cur rently selected code page and memory status back to the host followed by printing the current printer configuration For an example of the configuration printout see the U command The format of the data sent to the host is as fol lows UPp1 P2 P3 P4 P5 P6P7 P8 P9 p1 Image buffer size in KBytes P2 Form memory allocation size in KBytes p3 From memory free in KBytes p4 Graphic memory allocation size in KBytes p5 Graphic memory free in KBytes Pe External font memory allocation size in KBytes p7 External font memory free in KBytes Pg Number of data bits Po Code page P19 Country code Example UP See Also 1 M U Ul and UM commands 980009 001 Rev E G 27 Appendix G Advanced Programming UQ Command Configuration Inquiry Description Use this command to send the printer configu ration information back to the host via the serial port Syntax UQ The printer will send the printer configuration line by line in ASCII to the host through the RS 232 port The information matches the con figuration information printed in final phase of the printer s AutoSense routine the Dump Mode Printout or the U command printout The information and number of lines of data sent by the print
106. industry The UCC administers this standard 11 Character Set O 9 1 Encodation SCC 14 pairs characters and encodes the first of the pair on five bars and the second of the pair on the five interleaving spaces Two ofthe five spaces or bars used to encode a character are always wide same specification as I 2 of 5 11 Code Type Binary fixed length 14 digits 1 Human Readable Required 14 digits 1 Check Digit Required modulus 10 calcu lation 11 Encoded Information e Packaging Indicator one digit e Number System Character two digits e Manufacturer Identification Number five digits e Product Identification Number five digits e Check Digit one digit D 9 Appendix D Bar Code Information 1 Allowable Sizes Sizes for the SCC 14 are determined by magnifications based on the nominal size 100 X dimension equals 040 inches and height equals 1 25 inches These magnifications range from 62 5 to 120 although a size of 100 or greater should be used when printing directly on cor rugated substrates Results of a 1989 corru gated industry study by the Fibre Box Association on bar width variability showed that it is not currently feasible to print the 62 5 magnification factor of the shipping container bar code symbol directly on corru gated board within the dimensional specifi cation of 005 inches using conventional techniques Note The bearer bar should be a minimum of two
107. ing character is a literal and will encode into the data field Refer to the following exam ples To Print Enter into data field Company Company de code J No A50 0 0 1 1 1 N Example 1 450 50 0 2 1 1 N Example 2 450 100 03 1 1 N Example 3 A50 15004 1 1 N Example 4 A50 2000 51 1 N EXAMPLE 5 1 A50 300 0 2 2 R Example 6 PI Example 1 Example 2 Example 3 EXAMPLE 5 Example 6 As shown in example 5 above font 5 only supports upper case characters Refer to Appendix A for a complete listing of available fonts and character sets supported 2 5 COMMAND REFERENCE A Command ASCII Text 2 6 Examples The data field can be replaced by or combined with the following commands Vnn Prints the contents of variable nn at this position where nn is a 2 digit number from 00 to 99 Cn Prints the contents of counter n at this po sition where n is a one digit number from 0 to 9 See Appendix E for additional Data parameters for printers with the RTC real time clock option installed A50 0 0 1 1 1 N DATA Writes Text 450 50 0 2 1 1 N V01 1 Writes contents of variable 01 450 100 0 3 1 1 N CI 1 Writes contents of counter 1 Use the LE command to create reverse print text in stead of the R in the A command parameter py This is the recommend method because it provides the best size position and centering of the black line r
108. into the printer or when re trieved by the user Global commands such as El EK ES FI FK GI GK GM I M N P TS U UE UF UG Y W should notbe used in a form store sequence Form name AUTOFR is reserved for automatic single form recall see Appendix G Advanced Pro gramming for details on this programming feature All commands following FS will be stored in forms memory until the FE command is re ceived ending the form store process Delete a form prior to updating the form by using the FK command If aform with the same name is already stored in memory issuing the FS command will result in an error and the previously stored form is retained To print a list of the forms currently stored in memory use the Fl command 2 21 COMMAND REFERENCE FS Command Store Form 2 22 Example FICTESTFORM 1 delete form TESTFORM FSTESTFORM 1 begins the form store sequence of the form TESTFORM V0 15 N Enter Product Name 810 200 2 2 10 100 8 998152 001 450 200 0 3 1 1 N Example Form 450 400 0 3 1 1 N Model Name V00 FE ends form store sequence Fl prints list of stored forms A form will not store if sufficient memory is not allo cated to form memory See the M command for de tails on adjusting and configuring memory to store forms graphics and soft fonts 980009 001 Rev E COMMAND REFERENCE GG Command Print Graphics Description Use
109. ion P2242 TLP LP 2X22 RTC Not Supported Eclipse LP2022 LP2042 980009 001 Rev E E 1 Appendix E Real Time Clock Option Programming RTC Commands The following commands can use and control the RTC option features e TS Set Time amp Date e TT Define Time Layout as a command or Insert Time Function as a variable e TD Define Date Layout as a command or Insert Time Function as a variable e A ASCII Text Time amp Date variable within DATA e B Bar Code Time amp Date variable within DATA Checking for Use the EPL2 printer s AutoSense procedure Time amp Date to generate a Dump Mode prints status printout See the printer s user s manual for details A U command can also be used for printing a status printout RTC Dump Mode Information e Use it to check for the RTC option in printer When time and date are displayed it shows that the RTC is installed in the printer e Display presently set Time amp Date Printing the The Time and Date are DATA function vari Time amp Date ables that can be included as part of DATA parameter in a Text A command or Bar Code B command The format of the printed time or date must be set prior to calling the Time or Date function within a text or bar code DATA pa rameter field The Time and Date function variables can not be called from within a 2D dimensional bar code F 2 980009 001 Rev E
110. iption 1 20 3 cpi 6 pts 8 x 12 dots 16 9 cpi 7 pts 10 x 16 dots 14 5 cpi 10 pts 12 x 20 dots 12 7 cpi 12 pts 14 x 24 dots O1 4 Co ho 5 6 cpi 24 pts 32 x 48 dots 8 Asian Fonts 24 x 24 dots Chinese Gobi GB or Korean Hangul or Japanese Kanji 9 Japanese Font only 16 x 16 dots A Z a z Reserved for Soft Fonts Note 1 Fonts 1 5 are the standard EPL2 expandable fixed pitch size dot fonts Note 2 The Asian character sets use the i command to set the inter character space between printed characters of an A command text data string p5 Horizontal multiplier expands printed text horizontally Range 1 9 980009 001 Rev E C 3 Appendix C Asian Character Printer Programming A Command ASCII Text Examples Will Produce C 4 pe Vertical multiplier expands printed text ver tically Range 1 9 p7 N for normal or R for reverse image DATA Represents a fixed data field The backslash character designates the fol lowing character is a literal and will encode into the data field Refer to the following examples To Print Enter into data field Company Company code code d 1 1 D12 1 A50 0 0 1 1 1 N Example 1 A50 50 0 2 1 1 N Example 2 A50 100 0 3 1 1 N Example 3 A50 150 0 4 1 1 N Example 4 A50 200 0 3 2 2 R Example 5 A50 280 0 8 2
111. labels and recalling forms labels 1 Printing Immediately is primarily used to create and test label form formats prior to storage in the printer s nonvolatile memory or into the host s application program 2 Storing and Recalling Forms is used to minimize label download time and external programming requirements This also allows the user to operate the printer with the Eltron KDU Keyboard Display Unit The examples in this appendix have been created with a TLP2642 printer unless noted otherwise The TLP2642 is a thermal transfer direct thermal printer with a 203dpi print resolution and 4 inch print width The printer memory configuration is set to de fault and is SRAM memory Appendix H Programming Examples Example 1 Text and This label has basic text and line graphics Line Graphics Example 1 0D N D7 2 Zo 0609 24 9784 X30 30 20 750 400 1 A60 100 0 2 3 3 N Normal Type i 0 2 3 3 R Reverse Type al Will Produce Normal Type Reverse Type H 2 980009 001 Rev E Appendix H Programming Examples Programming Breakdown Programming Description il Initialize printer 0D Set option for direct thermal printing No Clear the image buffer Set Printer Control Parameters and Options D7 Density Recommended interacts with speed 2 1 Speed Recommended interacts with density ZT Image Buffer Direction Optional Set Label Paramet
112. le and Counter download in sequence 1 1 Insert counter 0 CO Print Label nid Print 3 Labels Wait for next command 980009 001 Rev E H 29 Appendix H Programming Examples Example 15 Numeric Counting and Printing Example 15 H 30 This example demonstrates variation of count ing with the printer counter variables The ex amples show number roll over the effect of non numeric characters in the counter field and printing multiples of a label zi FK EXAM 15 1 FS EXAM 15 1 C0 4 L 4 1 Counter 1 C1 4 N 1 Counter 2 1 D8 2 1 Q609 24 1 q784 1 A50 50 0 1 4 4 N CO C0 4600500 14 4M CI CI FE H 0D FR EXAM 15 1 d 2 1 08 1 01 1 P3 1 1 al 21 01 1 03 1 P3 2 1 Using non numeric characters in a counter field may result in invalid counter data Counting is unpredict able if a non numeric values are used 980009 001 Rev E Appendix H Programming Examples Will Produce COo 0002 pr COR 0002 CiH 0002 co 0001 C18 0003 Start Label Group 2 COS z 0001 E ES co 0010 OPERA CO 0009 CiR 0000 Start Label Group 1 Co a008 Ci 0001 980009 001 Rev E H 31 Appendix H Programming Examples Example 16 This example demonstrates the counter justifi Counter Justification cation setting p2 L R C and N for printing H 32 of the counter data field p3 variable
113. lic 18 C Windows 1253 Greek 18 D Windows 1254 Turkish 18 E Windows 1255 Hebrew 18 F B 2 980009 001 Rev E Appendix B Optional amp Extended Character Sets Character Maps Asian Language Character Maps 980009 001 Rev E The extended character maps can be found on the our Internet site or from CD ROM Click on the code page reference in the electronic man ual version to display the code page The files to print character maps for 2 4 and 8 5 printers are also on the Internet site or are provided on CD ROM The Eltron flash based printers support three Asian language sets Asian language support is an optional feature and requires a special ver sion of the printer PCBA to support the large Asian characters The Asian character maps can be found on the our Internet site or from CD ROM Click on the code page reference in the electronic manual version to display the Addendum and its code pages Chinese Addendum P N 980095 061 Japanses Addendum P N 980095 071 Korean Addendum P N 980095 081 Asian Character Printers can only support a sin gle Asian language at a time See Appendix C for programming information for Asian characters B 3 Appendix B Optional amp Extended Character Sets B 4 980009 001 Rev E Appendix C Asian Character Printer Programming Appendix C Asian Character Printer Programming This section contains information unique to the
114. ll form from the printer memory Variables 00 99 and C ounters 0 9 Label 1 PJ Initiates Variable and Counter Download in sequence WORLDWIDE Set variable 00 max 15 characters centered Bar Code Printer Set variable 01 max 20 characters centered BCP 1234 1 Set variable 02 max 8 characters no justification Print Label PIJ Print Label Wait for next label s download Form Break d Required to separate multiple form variable and counter entry processes for programming compatibility between all EPL2 printers Variables 00 99 and C ounters 0 9 Label 2 9 Initiates Variable and Counter Download in sequence World Wide Set variable 00 max 15 characters centered Direct Thermal Media Set variable 01 max 20 characters centered AAA 4321 Set variable 02 max 8 characters no justification Print Label Pla Print one label H 24 980009 001 Rev E Appendix H Programming Examples Example 13 Variable Justification Example 13 980009 001 Rev E This example demonstrates the variable data justification setting p2 L R C and N for printing of the data field p3 variable data field size parameter The example uses the A Text command s re versed text data field to show how the printer treats the different justification options el FICEXAM 13 FS EXAM 13 VOO 15 L Text Field 1
115. location is important when selecting the proper of label or tag type for printing See the printer user s manual for specific information on alignment adjustment and position of the transmis sive gap or reflective black line sensors If the label size is not set properly the printer may print off the edge of the label or tag and onto the backing or platen roller Repeated printing off the edge of the label can cause excessive print head wear Maintain a minimum margin of 0 04 inches 1 mm on all sides of the label Setting the label size to large can cause the printer to skip labels 2 45 COMMAND REFERENCE Q Command Set Form Length Examples Standard Label C TP Where p 20 0mm 160 dots p 3 0mm 24 dots The Q command would be Q160 24_ Butterfly Label J4 A Where p 125mm 100 dots p 3 0mm 24 dots p 3 0mm 24 dots The Q command would be Q100 24 24 2 46 980009 001 Rev E COMMAND REFERENCE Q Command Set Form Length Black Line On Perforation Perforation Where p 31 0 mm 248 dots p 7 0mm 56 dots p 0 5mm 4 dots The Q command would be 0248 B56 4 1 Black Line Between Perforation o Perforation dec Where p 31 0 mm 248 dots p 7 0mm 56 dots p 17 mm 136 dots The Q command would be 0248 856 136 980009 001 Rev E 2 47 COMMAND REFERENCE q Command Set Label Width Description Sy
116. mand ASCII Text Description Prints an ASCII text string Syntax Ap1 P2 P3 P4 P5 P6 P7 DATA Parameters p4 Horizontal start position X in dots P2 Vertical start position Y in dots p3 Rotation Value Description 0 No rotation 1 90 degrees 2 180 degrees 3 270 degrees p4 Font selection Val Description aue 203 dpi 300 dpi 1 20 3 cpi 6 pts 25 cpi 4 pts 8 x 12 dots 12 x 20 dots 2 16 9 cpi 7 pts 18 75 cpi 6 pts 10 x 16 dots 16 x 28 dots 3 14 5 cpi 10 pts 15 cpi 8 pts 12 x 20 dots 20 x 36 dots 4 12 7 cpi 12 pts 12 5 cpi 10 pts 14 x 24 dots 24 x 44 dots 5 5 6 cpi 24 pts 6 25 cpi 21 pts 32 x 48 dots 48 x 80 dots A Z Reserved for Reserved for Soft Fonts Soft Fonts Fonts 1 5 are fixed pitch See Appendix A for standard character maps and Appendix B for printers with extended character map support See Appendix C for Asian Character support p5 Horizontal multiplier expands the text hori zontally Values 1 2 3 4 5 6 amp 8 Pp6 Vertical multiplier expands the text verti cally Values 1 2 3 4 5 6 7 8 amp 9 p7 N for normal or R for reverse image DATA Represents a fixed data field JA 980009 001 Rev E COMMAND REFERENCE A Command ASCII Text Examples Will Produce 980009 001 Rev E The backslash 1 character designates the follow
117. n 928 codewords in the data region All combinations of rows and columns are not legal 90 rows times 30 columns would produce a data region of 2700 codewords which exceeds the 928 codeword maximum per symbol See the following table on the next page that shows the maximum number of rows and the resulting number of codewords in the data region for each column count D 23 Appendix D Bar Code Information b Command 2D Bar Code PDF417 Specific Options PDF417 Symbol Geometry D 24 Columns Maximum Rows Codewords 5 90 90 6 90 180 7 90 270 8 90 360 9 90 450 10 90 540 11 90 630 12 90 720 13 90 810 14 90 900 15 84 924 16 77 924 17 71 923 18 66 924 19 61 915 20 58 928 21 54 918 22 51 918 23 48 912 24 46 920 25 44 924 26 42 924 27 40 920 28 38 912 29 37 925 30 35 910 31 34 918 32 33 924 33 32 928 34 30 900 980009 001 Rev E Appendix D Bar Code Information b Command 2D Bar Code PDF417 Specific Options Automatic PDF 417 The printer automatically tests and changes the Bar Code Generation PDF 417 bar code geometry to maximize the 980009 001 Rev E readability of the bar code for a given maximum height and width specified by pg and ps The printer tests the PDF 417 parameters in this order for a given data string error correction and compression included 1 Module width p49 for co
118. n Tip To help ensure that generated bar codes are read able by the widest variety of bar code readers print bar codes in the Picket Fence orientation versus the Ladder orientation 980009 001 Rev E PROGRAMMING CONSIDERATIONS e Horizontal Dots gt X axis LL SS Picket Fence Orientation y axis Height of d Bar Code Ladder Orientation v Direction Of Feed MOUNN lt __ umo o esoc gt Programming Graphic elements can interact and the resultant Sequences Affect image can be affected by other commands Graphic Results Structure command sequences to reduce the chances of unexpected print results The printer will process lines text boxes and most bar codes in command sequence The printer then processes the printer control processes coun ters variable data Postnet and then graphics last See the programming examples in Appen dix H Media Detection Media detection in EPL2 printers is a combina 980009 001 Rev E tion of programming and printer media sensing The Q Set Form Length and O Option com mands program the media detection method The user must configure the printer for the me dia type and the programmed form in use The printer can detect the beginning and end of the printable area on the media by one of three methods Gap Notch hole or Black line The Gap method detects the difference in optical density of a label on a liner from th
119. nable Host Prompts Codepage H 24 Inquiry Host UN Disable Error Reporting H 26 US Enable Error Reporting H 30 Host 980009 001 Rev E PROGRAMMING CAUTION Parallel Port Configurations and the UF UG UI or US Commands The printer only communi cates a detailed status to the host via the printer s se rial port If the printer is only connected to the host via the parallel port DO NOT send a UF UG UI or US Host status reporting commands to the printer The printer may appear to hang The user may have to make a serial cable connection to the host or power cycle the printer to resume normal printing operations 1 7 PROGRAMMING CONSIDERATIONS Command The manual uses the following typographic Conventions conventions to describe commands Example Description A Commands Case Sensitive P1 P2 P3 Required parameters pi p2 p3 Optional parameters Indicates a mandatory choice be tween two or more items You Choice 1 Choice 2 must include one of the items un less all of the items are also en closed in square brackets The line continuation character This text should be gt indicates that code is contin on one line ued from one line to the next and should be typed all on one line zi Line feed character NAME The name of a form or graphic in double quote marks The text or bar code data in dou ble quote marks The Y character designates that the character follo
120. nd was used to correct printer operation the printer may need the printer s firmware reloaded to help en sure proper operation The printer s firmware may be corrupted 980009 001 Rev E Appendix G Advanced Programming r Command Buffer Mode Description Syntax Parameters 980009 001 Rev E Use this command to disable or reenable the double buffer image label printing The dou ble buffer feature is a automatically tested and set by the q command rP1 p1 N Disable Double Buffer Mode Y Re enable the Double Buffer Mode if the printer memory supports the image buffer size set by Q and q parameters The rN command must follow the q command in a form label program Verify the image buffer status with the U com mand s See the U command on page 2 52 for samples of the Dump Mode Printout Appendix G Advanced Programming U Commands Advanced Status Commands Description These commandsallow the advanced program mer to request and control specific printer status conditions print process controls and printer configuration Syntax Up x Description Enable Clear Label Counter Mode Reset Label Counter Mode External Font Information Inquiry Form Information Inquiry Graphics Information Inquiry Enable Host Prompts Codepage Inquiry Codepage amp Memory Inquiry Disable Error Reporting Codepage amp Memory Inquiry Print C
121. niform Sym bology Specification for this symbology was de veloped by AIM USA 1 Character Set The full ASCII set 128 characters One of the advantages of this symbology is the ability to encode all 128 characters of the standard ASCII code chart Encodation Three bars and three spaces are required to encode a character L1 Start Stop Pattern One of three start characters A B or C shall be used at the be ginning of the symbol to define initial code set The stop pattern is seven elements com prised of four bars and three spaces The Start Stop pattern shall not be used within the symbol nor shown in human readable in terpretation Code Type Modular varying length UCC EAN 128 has several formats de fined Y Human Readable Optional although it is typically used 13 Check Character Required modulus 103 calculation 1 Encoded Information Contingent upon data requirements L Allowable Sizes Minimum X Dimen sion 0075 inches _1 Allowable Symbol Height The greater of 25 inch or 15 of the symbol length 980009 001 Rev E 980009 001 Rev E Appendix D Bar Code Information PASS L E A A A A A A A A A D E 1 2 8 START A E O D E spece CHECK STOP MES VALUE OF 84 UPC Shipping Container Symbol SCC 14 The UPC Shipping Container Symbol or the SCC 14 utilizes the I 2 of 5 symbology and is designed specifically for shipping carton mark ing in the retail
122. nsiderations e Black and White Bitmap only e Set Dot Density Resolution of the bitmap to match the printer s print head resolution All EPL2 printers have a 203 dpi dots per inch resolution except the TLP3642 has a 300 dpi resolution e Crop the image as small as possible to speed printing and maximize memory usage e The file s name should be 1 to 7 characters long followed by the PCX DOS file extension Examples WORLD PCX Graphic file size can not exceed available printer memory Type DIR PCX atthe DOS prompt example A gt in the disk directory that the PCX graphic file is stored in Read and record the file size for the file s to be downloaded AENDRE BEX Directory of A WORLD PCX A 393 10 01 99 12909 Wordle joss CE 5M PCX 1 8379 10 02 99 10 24a CE 5MM pcx Record file size as 1837 980009 001 Rev E Example Example Example 980009 001 Rev E Step 3 Step 4 Step 5 Step 6 Appendix H Programming Examples Generate an program ASCII text file for each PCX graphic file to be downloaded GK WORLD GM WORLD 4398 Save the file as a 1 8 character file name and in clude a 1 3 character extension that the text edi tor can recognize Always save files in ASCII text format STOREITI TXT Verify that printer has memory available to download the graphics See the M FI Gl amp U commands to verify and manage the printer s memory Use the DOS COPY command to downloa
123. ntax Parameters gt S Example 2 48 Use this command to set the width of the print able area of the media qP1 p1 The width of the label measured in dots The q command will cause the image buffer to reformat and position to match the selected la bel width p Print Head q Center Alignment This command will automatically set the left margin according to the following rules print head width label width 2 The q value affects the available print width Mini mizing the q value will maximize the print length and print speed double buffering If the R Command Reference Point is sent after this command the image buffer will be automatically re formatted to match the width of the print head and is offset by the R command specified image buffer starting point nullifying the q command 9416 sets label width to 416 dots wide 980009 001 Rev E COMMAND REFERENCE R Command Set Reference Point Description Syntax Parameters 980009 001 Rev E Use this command to move the reference point for the X and Y axes All horizontal and vertical measurements in other commands use the setting for R as the origin for measurements Use the R command as an alternative to sending the q command to position center labels that are narrower than the print head RP1 P2 p Horizontal left margin measured in dots P2 Vertical top margin measured in dots
124. ode Code 128 auto A B C modes 1 1 10 Codabar K 1 10 EAN8 E80 2 4 EAN8 2 digit add on E82 2 4 EANS8 5 digit add on E85 2 4 EAN13 E30 2 4 EAN13 2 digit add on E32 2 4 EAN13 5 digit add on E35 2 4 German Post Code 2G 3 4 Interleaved 2 of 5 2 1 10 dede 2 of 5 with mod 10 2C 1 10 cu Eder Postnet 5 6 8 amp 9 digit P UCC EAN 128 1E 1 10 UPC A UAO 2 4 UPC A 2 digit add on UA2 2 4 UPC A 5 digit add on UA5 2 4 UPC E UEO 2 4 UPC E 2 digit add on UE2 2 4 UPC E 5 digit add on UE5 2 4 UPC Interleaved 2 of 5 2U 1 10 Plessey MSI 1 with mod 10 check digit L I MSI 3 with mod 10 check digit M Note 1 2242 2642 3642 Orion Strata 27XX only Note 2 P2242 amp P2222 only Note 3 Manual selection of A B or C modes is not supported 2 8 980009 001 Rev E COMMAND REFERENCE B Command Bar Code Example Nu B10 10 0 3 3 7 200 B 998152 001 Pl 998152 001 The data field can be replaced by or combined with the following commands Vnn Prints the contents of variable nn at this position Range of nn 00 to 99 Cn Prints the contents of counter n at this po sition Range of n 0 to 9 See Appendix E for additional Data parame ters for printers with the RTC real time clock option installed Examples B50 0 0 3 1 2 50 B DATA Writes bar code B50 50 0 3 1 2 50 N VO1 1 Writes contents of variable 01 as bar code B50 50 0 3 1 2 50 N C1 3 Writes contents of counter
125. oint o Origin for uro v 0 w a Origin for Text Object i Direction Of Feed Point of Origin for Text Object Rotated 270 The reference point of the first character in a text N string is not affected by the font size multiplier values First Character of Text String Reference Point 2 times 2 times 980009 001 Rev E 1 19 PROGRAMMING CONSIDERATIONS 1 20 Bar Codes All bar codes supported by the EPL2 language have associated industry specifications that the programmer should be aware of and adhere to The programmer needs to consider bar code features and requirements when choosing and using a bar code for different applications Some of the features and requirements that need consideration are listed below J Data used by the application are per the bar code specification numbers only alphanu meric alphanumeric and special characters etc Minimum and maximum number of charac ters allowed or required per bar code 1 Density or magnification of a given bar code type L1 White area required around bar codes the Quiet Zone L1 The bar code must print within the image buffer printable area of the label Bar Code Orientatio
126. ommand Bar Code with RTC Examples E 4 The data field can be replaced by or combined with the following commands Vnn Prints the contents of variable nn at this position where nn is a 2 digit number from 00 to 99 Cn Prints the contents of counter n at this po sition where n is a one digit number from 0 to 9 TT Prints the current time at this position in the predefined format See the TT command for format selection TD Prints the current date at this position in the predefined format See the TD command for date format selection B50 0 0 3 1 2 50 B DATA Writes bar code B50 50 0 3 1 2 50 N V01 iis contents of variable 01 as bar code t 03 1 2250N CL 1 Writes contents of counter 1 as bar code B50 50 0 3 1 2 50 N TT Writes current time as bar code B50 50 0 3 1 2 50 N TD Write current date as bar code or a combination of several options B50 300 0 3 1 2 50 B Deluxe V1 C2 Combo TDVOTTT Writes the text Deluxe followed by the contents of variable 01 fol lowed by the contents of counter 2 followed by the text Combo fol lowed by the current date followed by the contents of variable 01 followed by the current time all as a code 39 bar code 980009 001 Rev E Appendix E Real Time Clock Option Programming TD Command Define Date Layout Description Use this command to define the date format when printing Use the variable TD in a Tex
127. ond variable Pla sprint one label 980009 001 Rev E Appendix A Standard Character Sets Appendix A Standard Character Sets This section contains a listing of all standard EPL2 fonts code pages amp character sets sup ported by the EPL2 printers Resident Fonts The EPL2 programming language supports 5 different font sizes numbered 1 5 Each font can be expanded both horizontally and verti cally EPL2 also supports 160 different charac ters for font sizes 1 4 and 80 characters for font size 5 All fonts are non proportional mono spaced The ASCII value of each charac ter is dependent on the I command character set selection Font Sizes The following table displays the font sizes resi dent in the printer t Size of Characters characters per inch points 8x12 20 3 cpi 6 points 10 x 16 16 9 cpi 7 points 12 x 20 14 5 cpi 10 points 14 x 24 12 7 cpi 12 points 32 x 48 5 6 cpi 24 points Size in Dots 7 PR jw N e ARS 980009 001 Rev E A 1 Appendix A Standard Character Sets Fonts 1 5 i1 ABCDEFGHIJKLMNOPORSTUVHXTZebcdef ghi jKiamneparastavuxyz 0121456789 Gu gx amp ts s 2 RBCDEFGHI JKLMNOPGRSTUVWXYZabedef ghi jk 1mnoparstuvwxyz 0123456789 PH X Rx 1 3 ABCDEFGHIJKLMNOPQRSTUVUXYZabedef ghi jk Immopqrstuvuxyz 0123456789 G8H X amp 4 RBCDEFGHIJKLMNOPORSTUVWXYZabcdef ghi jk lmnopaqrst 0123456789 en
128. onfiguration Inquiry u oOo v Zzz qomnmmiuo x Enable Error Reporting 980009 001 Rev E Appendix G Advanced Programming UA Command Enable Clear Label Counter Mode Description Use this command to clear the label counter if a paper empty occurs The EPL2 printer by de fault will resume printing if the empty roll is re placed with new roll or ribbon and finish a batch print job Syntax UA A power cycle reset or UB command will clear this setting Example UA 980009 001 Rev E G 19 Appendix G Advanced Programming UB Command Reset Label Counter Mode Description Use this command to clear the UA command and restore the default setting to allow the printer to resume printing a batch job if a paper empty occurs The EPL2 printer by default will resume printing if the empty roll is replaced with new roll or ribbon and finish a batch print job Syntax UB Example UB G 20 980009 001 Rev E Appendix G Advanced Programming UE Command External Font Information Inquiry Description This command will cause the printer to send in formation about external fonts currently stored in the printer back to the host Syntax UE The printer will send the number of external fonts stored and each font s name height and direction to the host through the RS 232 port Example UE Will Produce 7 number of external fonts AXxx y Hirst font a A fontname xxx font h
129. pendix D Bar Code Information Codabar Codabar is a bar code symbology used often in libraries blood banks and preprinted airway bills The Codabar specification was invented by Monarch Marking Systems a Pitney Bowes Company and standardized in AIM USA LJ Character Set 0 9 L There are also four unique start stop charac ters designated A B C and D 3 Encodation Four bars and three spaces are required to encode a character J Allowable Sizes Minimum X Dimension 0075 inches Wide to Narrow Ration 2 1 to 3 1 for X Dimension greater than 020 inches 2 2 1 to 3 1 for X Dimension less than 020 inches 1 Symbol Height The greater of 25 inches or 15 of the symbol length D 12 980009 001 Rev E 980009 001 Rev E Appendix D Bar Code Information Q What are Two Dimensional 2D Bar Codes A Two Dimensional bar code symbologies have high data densities and typically include error correction Typically a standard one di mensional bar code only encodes a single data field e g a part number a name or P O no A two dimensional bar code can typically en code store all the fields in a data record up to the symbology s maximum character count many times greater than standard bar code symbologies Q What makes the two dimensional bar code different from standard one dimen sional bar code A Scanning machine reading of two dimen sional bar codes
130. pendix G Advanced Programming ES Command Store Soft Font Example of Measuring Soft Font Size G 6 For fonts with the rotation parameter set for both pz 02 hex Repeat the individual font character download for each 90 rotated character from the start of the character set until the last rotated character in the set is downloaded 01 90 b1 99 1 90 DATA 997 12 90 b2 90 2 90 _DATA2 90 a3 90 b3 90 3 90 DATA3 99 Gn 90 Last Download Character bn 90 Last Spacing To Next Print Character Cn 90 Last Downloaded Character s Width DATA 90 Character Bitmap P3 X Cp bytes bit map data The number of individual character maps downloaded will be double the characters in the font set px Reference Point 10 Dots 12 D O t S L 8 Dots gi cU Parameter Dots Data Entered as Hexadecimal P3 12 OC hex b 10 OA hex c 8 08 hex 980009 001 Rev E Appendix G Advanced Programming ES Command Store Soft Font Soft Fonts The typical soft font download command Programming Code strings to the printer The following example Example was generated with the CAL3WIN software 45 53 22 61 22 03 00 00000000 0D 0a 45 00000010 00000020 00000030 00000040 00000050 000000 60 00000070 00000080 00000090 000000A
131. printed If b is specified for p1 the batch print amp cut feature is enabled This feature uses the P command to control cutter operation The OCb command option is not sup ported by the TLP2046 printer When using direct thermal media in a TLP series printer the proper option command to enable the cutter is 0D C Appendix F Cutter Option Programming OC Command Cutter Option Select Examples 0 disables all options 0C enables cutter only labels are cut after each label is printed disables all other options 00125 labels are cut after the 125th label has printed disables all other options och labels are cut after a batch of five has printed disables all other options F 6 980009 001 Rev E Appendix G Advanced Programming Appendix G Advanced Programming This section applies to commands and proce dures that use atypical media various printer options and unique operating conditions by the advanced user and programmer Introduction The commands and sub commands in this 980009 001 Rev E section require the programmer to pay extra at tention to the printer s operational state and conditions prior to during and after issuing one or more of these commands Appendix G Advanced Programming Soft Fonts Overview Advantages Disadvantages G 2 Soft fonts allow the programmer and user to have a wide variety of font and small graphic re call Some of the advantages and
132. prints 5 label sets of 2 labels each 2 42 980009 001 Rev E PA Command Print Automatic COMMAND REFERENCE Description Use this command in a stored form sequence to automatically print the form as soon as all vari able data has been supplied Syntax Parameters Example 980009 001 Rev E PAp p2 p1 Number of label sets Can be variable data Range 1 to 9999 p2 Number of copies of the same label Can be variable data Range 1 to 9999 Sets the number of copies of each label used in combination with counters to print multiple copies of the same label This value is only set when using counters ETS FS n 1 tl V00 10 N prompt V01 1 N prompt V02 4 N prompt 424 24 0 4 1 1 N V00 V02 FE FR T This Is Text 3 2al delete form named 1 start form store sequence define variable 00 define variable 01 define variable 02 write a line of text including variable print 1 label automatically end form store sequence retrieve form 1 get variables data for VOO data for VO1 p4 number of sets data for V02 pa number of copies 2 43 COMMAND REFERENCE Q Command Set Form Length Description Use this command to set the form and gap length or black line thickness when using the transmissive gap sensor black line sensor or for setting the printer into the continuous media print mode Syntax
133. r data is lost when the memory cartridge is for matted or the battery power is removed The character substitution will remain until it is changed by the oR command or the memory cartridge is exchanged oRE I Places the Euro character into character map position 213 decimal D5 hexadecimal oRE 128 Places the Euro into character map position 128 decimal 80 hexadecimal oR Clears Character Substitution Restores default character maps Appendix G Advanced Programming p Command Reset Top of Form Sensing Description Syntax Parameters Example This command allows the advanced program mer to reset the default parameters for top of form sensing The command resets the tear peel gap black line and cut positions that are stored in the printer PP1 P2 P3 P4 P5 p1 0 Default Value Default Value P2 0 Default Value p3 0 p4 0 Default Value p5 0 Default Value The p command is a global printer command LJ It can not be issued inside of a form _ It must be issued prior to any other form con trol command 1 Used for troubleshooting purposes only 1 Issue all 5 command parameters p4 5 Use the default 0 parameter values only p0 0 0 0 0 Zebra does not support this feature other than the in formation supplied in document Do not use this command to change control printer control parame ters Flash Programmed Printers If this comma
134. re global printer commands 1 They can not be issued inside of a form _1 They must be issued prior to issuing a bar code command and printing 11 Use only one bar code format Using more than one bar code may cause unpredictable results or operation J Issue all 5 command parameters p1 5 Use the default parameter values as place holders L1 Bar code printed with this command should be printed in the picket fence orientation 0 amp 180 rotations to maximize scanning 980009 001 Rev E Appendix G Advanced Programming oW Command Customize Bar Code Parameters oB Command Cancel Customized Bar Code 980009 001 Rev E Reset the printer with a command with flash firmware printers or cycle printer power to clear the oW command and return the printer to normal operation The oW command has been tested for parameter functionality for Bar Code 39 only The oW com mand may also function with Codabar and Inter leaved 2 of 5 bar code but they have not been functionally verified for this command Zebra does not warrant support or endorse the use of bar codes generated by the printer after a oW command has been issued Zebra does not support this feature other than with the information supplied in this document Appendix G Advanced Programming oR Command Character Substitution Euro Description Syntax Parameters This command allows the advanced program mer to substitute the
135. required 980009 001 Rev E When receiving data for a new label the printer checks the size of each new label and the previ ous label size to determine if both images will fit into the image buffer If so processing of the second label will continue even if the first label is printed To determine the maximum memory required to print labels continuously with double buffering the programmer should add the print buffer require ments of the two 2 largest consecutive print images together PROGRAMMING CONSIDERATIONS Text Fonts The standard EPL2 printer has five 1 5 resi dent mono spaced dot fonts Fonts A Z and a z upper and lower case alpha characters are re served for downloading soft fonts First Character of Text String Reference Point 8 Dots Character Width Total Character Width Inter character Space actually white dots Control text height in horizontal dots and width in vertical dots with the horizontal and vertical multipliers The text is oriented first and then the A command s font multipliers are ap plied The text is then placed into the image buffer See the following example 1 18 980009 001 Rev E PROGRAMMING CONSIDERATIONS 1 Point of t Horizontal Dots 9 X axis Aa AAA Point o Origin for Origin for Text Object y Text Object e Rotated 90 P
136. rieved by the user By including an wild card ALL graph ics will be deleted from memory Example GK LOGO J deletes graphic LOGO GK deletes all graphics 980009 001 Rev E 2 25 COMMAND REFERENCE GM Command Store Graphics 2 26 Description Syntax Parameters Example Use this command to store PCX graphics files in memory GM NAME p DATA NAME This is the graphic name that will be used when retrieving the stored graphic e The name may be up to 8 characters long e Graphic names stored by the printer are case sensitive and will be stored exactly as entered with the GM command line i e LOGO1 logo1 and LoGo1 are three different graphics when stored into the printer or when retrieved by the user p1 This is the file size in bytes Use the DOS DIR command to determine the exact file size DATA Graphic data in 1 bit black amp white PCX binary data format file GK LOGO1 deletes graphic LOGO1 Required 6M L0G01 584 1 Prepares printer to receive graphic L0601 DATA Data string in PCX format If using a DOS system the PCX format file bi nary data portion can be sent to the printer us ing the DOS COPY command For example if you have a PCX file named LOGO1 PCX in your current directory the appropriate com mand would be COPY LOGO1 PCX PRN b After downloading the Gl command can be used to verify tha
137. rinter will automatically optimize the symbol for readabilty of data and use the minimum number of sysmbols when using Macro PDF The symbol s geometry is adjusted typically reducing the size of the symbol per the defined parameters The printer will use the largest module size bar width and height and minimize the number of rows and col umns 980009 001 Rev E Appendix D Bar Code Information b Command 2D Bar Code PDF417 Specific Options The following parameters may be omitted and de IN fault values will automatically be inserted Each pa rameter value data string must be proceeded by its associated command prefix character P6 S sets error correction level Error Correction EC codewords per symbol Values s1 s8 If level is not specified a level will automati cally be assigned as per the following table EC level EC Codewords Auto Select Level 0 2 1 4 0 31 2 8 32 63 3 16 64 127 4 32 128 255 5 64 256 511 6 128 512 928 7 256 8 512 p7 c selects data compression method Values O or 1 default is O c0 Auto encoding c1 Binary mode Data Type Compression Byte by Byte Text 2 Characters per codeword Numeric 2 93 Characters per codeword Binary 1 2 Bytes per codeword Pg pxxx yyy mm print human readable code This paramenter is a non standard implemention of the b
138. runcated 1 truncated See the PDF 417 specification for details P15 0 rotation Values 0 0 1 90 2 180 3 270 Setting this value to 90 and 270 will cause the symbols maximum height pq and width ps values to transpose when auto matically calculating and generating the symbol i e the height would affect column dimensions and width would affect row di mensions 980009 001 Rev E Appendix D Bar Code Information b Command 2D Bar Code PDF417 Specific Options PDF417 General Information 980009 001 Rev E DATA ASCII data or Binary data bytes Represents a fixed data field The backslash Y character designates the fol lowing character is a literal and will encode into the data field Refer to the following examples To Print Enter into data field Company V Company V code code a LOS A PDF417 symbol is organized into minimum of 3 to a maximum of 90 rows and a minimum of 5 to a maximum of 34 columns of codewords Each codeword is 17 modules wide There are 4 bars and 4 spaces per codeword Multiply the module width in dots p10 by 17 to get the codeword width Multiple the module height in dots p3 1 by the number of rows to get the symbol height Four of the codewords in each row are start stop and two row indicators The remaining codewords are referred to as the data region and contain symbol overhead and compacted data There can be no more tha
139. s FONTNAME By entering the name of a font that font will be deleted from memory By including an wild card ALL fonts will be deleted from memory Example EK A 1 deletes font A EX deletes all fonts 980009 001 Rev E G 3 Appendix G Advanced Programming ES Command Store Soft Font GA Description This command is used to download and store soft fonts in memory Syntax Parameters Soft fonts can be downloaded to and deleted from the printer from the Soft Font Downloader Utility CAL Tools or CAL3 ES FONTNAME pyp2p341b c DATA a 2b5c4 DATAS MG08 nb C4 DATA FONTNAME One letter font name P1 P2 P3 Range a z Lower Case Lower Case named fonts minimize soft font memory usage to only store fonts down loaded and have 256 character limit The following use hexadecimal coding for parameter values Number of characters to be downloaded Range 00 FF hex 0 255 decimal for 1 to 256 fonts per soft font set Character Rotation 00 hex 0 and 180 degrees 01 hex 90 and 270 degrees clockwise 02 hex Both 0 and 180 degree rotation pair and the 90 and 270 degree rotation pair Font Height Range 00 to FF hex Measured in dots and expressed as a hexa decimal number i e 1B hex 27 dots Font height includes accentors and dissent ers of characters and need to fit in the character cell 203 dpi printers 256 dots 1 26 inch
140. s counter date etc in text or bar code data fields Syntax Vp1 p2 P3 II PROMPT Parameters p4 P2 P3 Variable number Range 00 to 99 but not to exceed a total of 1500 bytes for all variables Variable reference numbers are sequential and must be input into a form in ascending order Maximum number of characters Range 1 to 99 but not to exceed a total of 1500 bytes for all variables This is the maxi mum number of characters allowed in the variable field Field Justification L Left R Right C Center N No Justification Note Right and center justification does not apply to soft fonts PROMPT An ASCII text field that will be KDU Options transmitted to the host via the serial inter face each time this command is executed This prompt requests the operator to enter the value for the variable A single minus sign as the first character of the prompt field will cause the prompt to be displayed only one time after the form is re trieved KDU Character The KDU allows a maximum of 40 characters Number Limit for entry into a variable data field and display 980009 001 Rev E KDU Range pg 1 to 40 but not to ex ceed a total of 1500 bytes for all variables 2 55 COMMAND REFERENCE V Command Define Variable 2 56 Use this command in forms that require unique data on each label When initializing variables e They must be defined in order e g VOO fir
141. should not be changed i e Serial Numbers This method is not supported by the portable printer For infor mation on designing accessing and modifying protected prompts see the programming man ual H 39 Appendix H Programming Examples H 40 980009 001 Rev E Appendix J Interface Connection This section has the interface connection dia grams for Serial and Parallel ports for EPL2 printers 980009 001 Rev E 1 Serial Interface Cable Connections Host 089 DE Printer Pin Pin 1 1 5 Volts gt 2 gt gt 2 TxD gt 3 gt gt 3 gt gt 4 gt gt 4 NC gt 5 gt gt 5 gt gt 6 gt gt 6 gt 7 gt gt 7 gt gt 8 gt gt 8 9 9 Female DB 9 to Male DB 9 Cable P N 30001 7 006 6 or 30001 7 010 10 Host DB 25 DB 2 Printer Pin Pin 8 1 5 Volts 3 gt 2 TxD gt 2 gt gt 3 RxD gt 20 gt gt 4 NC gt 7 gt gt 5 GND gt 6 gt gt 6 gt RDY gt 4 gt gt 7 gt NC gt 5 gt gt 8 gt RDY 22 9 NC Female DB 25 to Male DB 9 Cable P N 300018 006 6 5 volts at 150 mA for external device e g KDU or scanner A 2 980009 001 Rev E P2242 Serial Interface Cable Connections 980009 001 Rev E Host DB 9 B 11 Printer Pin Pin 1 1 N C blue gt 2 gt gt 5 gt TxD black gt 3 gt gt 6 gt RxD white 4 2 5V yellow gt 5 gt gt 3 GND green gt 6 gt gt 4
142. sic commands 2 1 COMMAND REFERENCE EPL2 Command Set The command language controls most printer functions Printer model differences have re quired minor functional differences to individ ual commands A table of commands and command interpretation differences are outlined in the following table gt 4 gt y y E sE s Description z g9 A e e E Q ky o A ASCII Text AA pcs 2 4 B Bar Code Viv 2 7 b 2D Bar Code v v TLP2046 D 15 Eclipse Orion C Counter Viv Strata 2 11 P2242 P2222 D Density Viv 2 14 El Print Soft Font Info v 2 15 EK Delete Soft Font v H 3 ES Store Soft Font v H 4 f Cut Peel Position v F 4 FE End Form Store v 2 17 Fl Print Form Info v 2 18 FK Delete Form v 2 19 FR Retrieve Form v 2 20 FS Store Form v 2 21 GG Retrieve Graphics v 2 23 GI Print Graphics Info v 2 24 GK Delete Graphic v 2 25 GM Store Graphic v 2 26 Character Set Selection v 2 28 JB Disable Top Of Form Backup v 2 29 JF Enable Top Of Form Backup v 2 29 LE Line Draw Exclusive v 2 30 LO Line Draw Black v 2 31 LS Line Draw Diagonal v 2 32 LW Line Draw White v 2 33 M Memory Allocation v 2 34 N Clear Image Buffer v 2 38 2 2 980009 001 Rev E COMMAND REFERENCE 9 v ES S S aE Description T
143. st VO1 second e They must be the next entries after the FS FORMNAME command e They must be located before any counter variables To print the contents of the variable the vari able number is referenced in the DATA field of the A ASCII text or B Bar Code com mands The field justification parameter affects the way the variable will be printed When L of R are se lected the variable value will be printed left or right justified in an area with a width defined by P2 parameter For Flash Memory Printers Storing variable data after power has cycled or a Re set has occurred is not supported by printers with flash nonvolatile memory 980009 001 Rev E COMMAND REFERENCE V Command Define Variable KDU Support The following table outlines the V command s variable data field option and printer support for the storage of data in nonvolatile memory Model Counter Data A beca 2622 S 5 S 2642 2242 S S S 3642 S S S Orion Note 1 Note 1 N A 2722 2742 Note 1 Note 1 N A Eclipse Note 1 Note 1 N A 2046 2044 S S S 2746 Note 1 Note 1 N A Strata Note 1 Note 1 N A P2242 P2222 Note 1 Note 1 N A 2122 S S S 2142 S S S O Option S Standard N A Not Supported Note 1 The counter values are reset after cycling printer power or sending a reset command Example V00 15 N Enter Product Name 980009 001 Rev E 2 57 COMMAND REFERE
144. t or Bar Code A amp B commands DATA parameter to print the date Syntax TDp p2 Pp3l Parameters p1 P2 p3 The parameters describe the format of the date display At lease one parameter must be supplied Each parameter can be any of the acceptable values listed below Value Description y2 Year displayed as 2 digits 95 y4 Year displayed as 4 digits 1995 na Month displayed as 3 letters JAN mn Month displayed as 2 digits 01 dd Day displayed as 2 digits 15 Separator character The separator may be any ASCII character value between 032 and 063 The separator character is printed be tween the results of each of the supplied pa rameters This command only works in printers equipped with IN the Real Time Clock time and date option Examples If the current date is January 15 1995 TDy2 me dd 95 AN 15 TDdd me y4 15 JAN 1995 TDdd mn y4 15 01 1995 980009 001 Rev E E 5 Appendix E Real Time Clock Option Programming TS Command Set Real Time Clock Description Use this command to set the time and date in printers equipped with the Real Time Clock op tion Syntax TSp1 P2 P3 P4 P5 P6 Parameters p4 Month Range 01 to 12 P2 Day Range 01 to 31 p3 Year Last two digits of Year e g 95 Range Years 1991 1999 90 99 Years 2000 2090 00 89 P4 Hour in 24 hour format Range 00 to 23 p5 Minutes Range 00 to 59 pe Seconds
145. t the graphic was successfully stored 980009 001 Rev E COMMAND REFERENCE GM Command Store Graphics Example First create a text file STOREIT TXT with an 980009 001 Rev E ASCII text editor as follows J GK WORLD GM WORLD 2004 Where WORLD is the name of the graphic and 2004 is the size in bytes of the PCX file Next at the DOS prompt type COPY STOREIT TXT WORLD PCX PRN b Verify the proper storage of the graphic with the GI command A graphic will not store if sufficient memory is not al located to graphic memory See the M command for details on adjusting and configuring memory to store graphics forms and soft fonts 2 27 COMMAND REFERENCE I Command Character Set Selection Description Use this command to select the appropriate character set for printing and display KDU Syntax lp1 P2 P3 Parameters p4 number of data bits Acceptable values are 8 for 8 bit data or 7 for 7 bit data P2 Printer Code page Printer Code Page If using 8 bits p 8 If using 7 bits p1 7 Code p2 Page Language p2 Country 437 English USA Multilingual a 1 850 Latin 1 1 British Slavic 2 852 Latin 2 2 German 3 860 Portugese 3 French Canadian 4 863 Frenchi 4 Danish 5 865 Nordic 5 Italian Printer Specific See 6 Spanish 6 F Appendix B for details 7 Swedish on optional or ex i tended code page sets 8 Swiss
146. ta Eclipse amp P2242 Stored counter values after power is cycled or a Re set and the prompt option are not supported by printers with Flash memory 980009 001 Rev E COMMAND REFERENCE C Command Counter Example 0 10 L 1 Enter Serial Number By placing two minus signs as the first two char acters of the prompt the prompt will never be displayed Example 0 10 L 1 Enter Serial Number To edit or restart a protected consecutive num ber the KDU s form edit function must be used From the FORM retrieve form prompt perform the following steps l Press Fl 2 Press 49 16 3 Press the FORM key 4 Key in the form name and press ENTER to retrieve 5 Enter or modify the consecutive number 6 When complete print the form to store the new number in memory KDU Support The following table outlines the C command counter data option of printer for support of stored data Model gt Counter Data sac ices 2622 S S S 2642 2242 S S S 3642 S S S Orion Note 1 Note 1 N A 2722 2742 Note 1 Note 1 N A Eclipse Note 1 Note 1 N A 2046 2044 S S S 2746 Note 1 Note 1 N A Strata Note 1 Note 1 N A P2242 P2222 Note 1 Note 1 N A 2122 S S S 2142 S S S O Option S Standard N A Not Supported Note 1 The counter values are reset after cycling printer power or sending a reset command or pressing the Cancel button
147. ta The black and white bitmap that represents the Format font must be converted into ASCII hexadecimal code The 0 font format has dot converted to data bytes reading from left to right and the last byte in a line is padded with zeros to complete the line and data byte Starting Point A Line 1 00000000 01111100 00000000 00 7C 00 Line 2 00000000 01111100 00000000 00 7C 00 HE Line 3 00000000 01111100 00000000 00 7C 00 EH Line 4 00000000 11111110 00000000 00 FE 00 MIHI The 0 and 90 font data is then sent to the printer in line order 0 Data 00 7C 00 OO 7C OO OO 7C OO OO FE OO Starting Point Line 1 01 10000000 00000000 00000000 01 80 00 00 HH Line 2 01 11100000 00000000 00000000 01 EO 00 00 Line 3 01 11111100 00000000 00000000 01 FC 00 00 aos aia 4 00 11111111 00000000 00000000 00 FF 00 00 ARM Ip 90 Data 01 80 00 OO 01 EO 00 00 01 FC 00 00 00 FF 00 OO G 8 980009 001 Rev Dx1 Appendix G Advanced Programming ee Command Error Report Immediate Description Use this command to get printer error and status report immediately The ee command must be sent via the RS 232 serial interface The printer will report 4 bytes back to host in the following format XX lt CR gt lt LF gt XX Error S
148. tatus code Syntax ee Parameters None CR Carriage Return ASCII 13 dec lt LF gt Lin Feed ASCII 10 dec Code Error Status Description 00 No Error 01 Syntax Error 02 Object Exceeded Label Border 03 Bar Code Data Length Error l eg ENA 13 is a 12 or 13 digit only 04 Insufficant Memory to Store Data 05 Memory Configuration Error 06 RS 232 Interface Error 07 Paper or Ribbon Empty 08 Duplicate Name Form Graphic or Soft Font 09 Name Not Found Form Graphic or Soft Font 10 Not in Data Entry Mode See Command 11 Print Head Up Open 12 Pause Mode or Paused in Peel mode 50 Printer Busy Processing Print Job 80 Unknown 81 Cutter Jammed or Not Installed 82 AutoSense or Sensor Failure 83 Illegal Interrupt occurred 84 Excessive Media Feeding Requires Intervention Press Feed or Reset command 980009 001 Rev Dx1 G 9 Appendix G Advanced Programming eR Command User Defined Error Status Character Description Syntax Parameters Example This command allows the advanced program mer to specify the printer s error status report character for error reporting via the RS 232 serial interface eRp1 P2 p1 Any single ASCII character Range 0 255 decimal 00 FF hexidecimal P2 Error Status Response Mode P2 Mode Descriptions Standard default O XON
149. the 2D bar codes Model MaxiCode PDF417 2622 9 2642 3642 2722 2742 Eclipse 2046 2746 Strata P2242 2122 2142 Orion O Optional S Standard DN MN MN JN MIN MN W WM NO NN X o Q MN MA MN M 980009 001 Rev E D 15 Appendix D Bar Code Information b Command 2D Bar Code MaxiCode Specific Options Description Syntax Parameters Use this commmand to generate one 1 to eight 8 MaxiCode bar code symbols with a sin gle command The printer will automatically in terpret and encode data into MaxiCode symbols for data modes 2 3 4 and 6 bp1 P2 P3 1P4 11P5 DATA P1 Horizontal start position X in dots P2 Vertical start position Y in dots p3 M Must be M for MaxiCode p4 Mode Selection Value Description Not Used Automatic Selection Mode 2 or 3 m2 Mode 2 m3 Mode 3 m4 Mode 4 m6 Mode 6 1 If p4 mX is not used the printer will use the following rules to automatically format the DATA parameter If the postal code third parameter PC in the DATA is e All numeric characters the printer will auto matically select Mode 2 e Alpha only or alpha numeric character com binations will set the printer to Mode 3 e Not used the printer automatically selects Mode 3 2 If pq value is m2 or m3 the printer will use th
150. the decimal grouped byte range 980009 001 Rev E Appendix C Asian Character Printer Programming i Command Asian Character Spacing Description Places an adjustable inter character space be tween Asian font characters fonts 8 and 9 only Inter character spacing is multiplied with the font An inter character spacing of 4 dots would become 12 dots when a font multiplier of 3 is applied to the text string Syntax ip Parameters p4 Space in dots between Asian characters Range 0 9 dots Default O dots or no space i Command Parameter Set to Default 0 dots 1 Character 1 Character 4 9 4 i Command Parameter Set to 8 8 dots 1 Character 8 1 Character e a 980009 001 Rev E C 9 Appendix C Asian Character Printer Programming C 10 980009 001 Rev E Appendix D Bar Code Information Appendix D Bar Code Information This section has answers to frequently asked questions about bar coding in general Frequently Asked Q What do I need to know about bar Questions About codes Bar Codes A Listed below are characteristics that most bar codes have in common L1 Bars and Spaces Each symbol has a de fined pattern of bars and spaces which can be read or scanned by a bar code reader The width of both bars and spaces vary and allow the representation of different characters The height of the bars has interpretive in
151. this command to print a PCX format graphic that has been previously stored in printer memory Syntax GGp1 p2 NAME Parameters p4 Horizontal start position X in dots P2 Vertical start position Y in dots NAME This is the graphic name used when the graphic was stored e Thename may be upto 8 characters long e Graphic names stored by the printer are case sensitive and will be stored exactly as entered with the GM command line i e GRAPHIC1 graphic1 and graPHic1 are three different graphics when stored into the printer or when retrieved by the user Example 6650 50 L0601 980009 001 Rev E 2 23 COMMAND REFERENCE GI Command Print Graphics Information Description This command will cause the printer to print a list of all graphics stored in memory Syntax Gl Example Gl prints graphics list Will Produce Graphics information ELTRON Graphics memory left 003K 2 24 980009 001 Rev E COMMAND REFERENCE GK Command Delete Graphics Description Use this command to delete graphics from memory Syntax GK NAME Parameters NAME By entering the name of a graphic that graphic will be deleted from memory e Graphic names stored by the printer are case sensitive and will be stored exactly as entered with the GM command line i e LOGO1 logol and LoGo1 are three different graphics when stored into the printer or when ret
152. titioning for storage of forms graphics soft fonts or the image buffer as required by other EPL2 print ers However the M command is required to for mat clear existing memory See the M command in Section 2 for details Form or command files can be downloaded to memory for storage and later recall A form can contain fixed text variable text entered at print time counters recalled or entered at print time and bar code symbols A form can call a graphic from memory and use the graphic as part of the form The number of stored forms allowed is depend ent on the amount of memory available in the nonvolatile printer memory Graphic image data and forms are stored in the nonvolatile memory The number of graphics that printer memory can hold is strictly depend ent upon print memory availability PROGRAMMING CONSIDERATIONS Soft Fonts Image Buffer Soft Font data is stored in nonvolatile memory Up to 52 soft fonts can be loaded into printer memory and recalled as A Z a z see Section 2 Command Reference The number of soft fonts that printer memory can hold is strictly de pendent upon print memory availability Easily download soft font data to the nonvolatile memory with programs such as Soft Font Downloader Utility CAL Tools and Create A Label 3 The Image Buffer is the assembly area for label elements text lines bar codes graphics etc prior to printing Each label element is added to the image label
153. to insure format compliance and proper implementation See the AIM web site for specifications at http www aimi org Appendix D Bar Code Information b Command 2D Bar Code MaxiCode Specific Options Example N 520 20 M 300 840 93065 1692 This is MaxiCode but not MaxiCode formatted data PIJ Will Produce 980009 001 Rev E Appendix D Bar Code Information Using AIM Specified MaxiCode Data Formatting Syntax Example 980009 001 Rev E The EPL2 printer can use and automatically de code the AIMITS International Technical Stan dards MaxiCode data format The printer detects the message start header gt Rg field separator Gs and the end of message marker Rs Eor data control strings The hexidecimal ASCII data control strings are in the following table See the EPL2 dump mode character map in Appendix A Control String Hexidecimal Code Message Start Header gt Rs 5B 29 3E IE Field Separator Gs 1D End Of Message Marker Rs For IE 04 bpi p2 M pa AIM MaxiCode Data b20 400 M m2 001 840 93065 1692 gt Rs 01G s 98XXXZZFDAAFG s SHIPG 5 309G SG s 1 1G 10G s Notes 1 This programming example represents actual data used to format a single AIM compliant MaxiCode symbol as programmed by a major international and domestic shipping company 2 The shipper has explicitly set the the MaxiCode symbol for Mode 2 T
154. uxe followed by the contents of variable 01 followed by the contents of counter 2 followed by the text Combo followed by the current date followed by the contents of variable 01 followed by the current time C 5 Appendix C Asian Character Printer Programming A Command ASCII Text The following table outlines the A command data field option of printer stored or supplied data Data Parameter Option Support Model RTC Counter TT TD Cn 2642 O O S Eclipse N A N A Note 1 TLP2046 O O S Strata N A N A Note 1 Orion N A N A Note 1 Flash Printers N A N A Note 1 O Option S Standard N A Not Available Note 1 See the C command in the EPL2 programmer s manual for details C 6 980009 001 Rev E Appendix C Asian Character Printer Programming A Command ASCII Text The English font 1 5 characters are dot mapped differently than the Asian font 8 amp 9 characters The Asian character does not havea built in inter character gap The English charac ters include a single dot boarder around each character Total Character Width Total Character Widt 24 Dots e pom Inter character Space actually white dots
155. version number Serial port configuration Print head test pattern Amount of SRAM installed Amount of memory allocated to the Image buffer Amount of memory allocated to the Form buffer and the amount available G Amount of memory allocated to the Graphic buffer and the amount available H Amount of memory allocated to the Soft Font buffer and the amount available I Currently selected Character Set I and Image Buffer mode setting r rY Double Buffer Enabled rN Double Buffering Disabled J Currently selected Print Speed S Heat Density D Reference Point R Print Orientation Z and Error Status U K Currently selected Form Width q and Length Q Current Options Select status Current AutoSense Through Gap Sensor values The three numbers represent 1 Backing Transparent point 2 Set point 3 Label Transparent point N Current time set in Real Time Clock This value will only be displayed if your printer is equipped with the Real Time Clock feature O Current date set in Real Time Clock This value will only be displayed if your printer is equipped with the Real Time Clock feature P Current Dump Mode Status moomw ar 980009 001 Rev E COMMAND REFERENCE V Command Define Variable Description Use this command to define variable data for the text and bar code data fields in stored forms Variable data can be combined with fixed data or other data type
156. wing is a literal and will encode into the data field Refer to the following exam DATA ples lo Print Enter into Data Field Company Company eel An ASCII text field that will be j E transmitted to the host via the se PROMPT ae R rial interface each time this com mand is executed Attention IN All commands and alpha character command parameters are case sensitive 1 8 980009 001 Rev E PROGRAMMING CONSIDERATIONS Basic Command Each command consists of one or two ASCII Syntax case sensitive alpha characters to identify the Figure 1 1 Basic Command Syntax 980009 001 Rev E specific command desired Some commands require one or more additional parameters to supply the printer with sufficient information to complete the command Refer to Figure 1 1 for the basic command syntax Command Name WRITE TEXT A PvPoPoPsPsPoPr DATA lt Command Parameters Command Specific Data Each command line must be terminated with a Line Feed LF character Dec 10 Most PC based systems send CR LF when the Enter key is pressed The Carriage Return CR character is ignored by the printer and cannot be used in place of LF 1 9 PROGRAMMING CONSIDERATIONS Command Editor One method to create command files is through an ASCII based text editor In the DOS environment MS DOS EDIT or BRIEF are good choices To execute the file use the editor s print command or from the DOS prompt
157. y become unreliable All new Eltron brand printer models have flash mem ory to allow field upgrade of printer firmware by downloading firmware directly into the printer The programmer should discriminately use commands that write to memory The following commands write to flash memory L1 M command Formats Erases Memory L1 FS FE FK commands The commands initiates and enables form data writes to flash memory or delete form from memory J ES EK commands The commands stores soft font data writes to flash memory or de letes a soft font from memory AQ GM GK commands Sets and initiates PCX graphic data writes into flash memory or deletes a graphic from memory 11D S O commands Sets printer control parameters will only write into flash memory if the parameter has changed 980009 001 Rev E PROGRAMMING CONSIDERATIONS Status Reporting Status reporting commands provide the user and programmer with printer operational status memory usage and listings of forms and graphics loaded into printer memory The status responses are for maintenance and pro gram debugging Command Description Page El Print Soft Font Information 2 15 FI Print Form Information 2 18 Gl Print Graphic Information 2 24 U Print Printer Configuration 2 52 Printer To Host Status Serial Interface UF Form Information Inquiry H 29 Host UG Graphics Information Inquiry H 23 Host UI E
158. y not accurately posi tion the labels before cutting causing the cutter to cut the label instead of the liner The printer s cutter is not designed to cut labels La bels have adhesive that may interfere with the proper operation of the cutter Only cut label liner and tag stock and do not exceed the specified media density and thickness of the cutter If the cut position causes the label just printed to be cut increase the cut position index value 7100 If the cut position causes the label fol lowing the one just printed to be cut decrease the cut position index value 100 980009 001 Rev E Appendix F Cutter Option Programming OC Command Cutter Option Select Description This sub command is used to enable the cutter Syntax option feature when installed This sub command set of the O command works with other O Option commands See the Command Reference Section 2 and the Advanced Programming Appendix G for additional O Option command parameters OCIp1 Enables the label liner cutter The cutter will cut at the end of each form as specified by the Q command Some options are model specific Refer to Options Availability Table on page 40 for option command availability for each printer model Parameters p4 Sets the number of labels to print prior to cut 980009 001 Rev E If a number between 1 255 is specified for pl the printer will cut after the specified number of labels have been

Download Pdf Manuals

image

Related Search

Related Contents

TECHNICAL SERVICE MANUAL  HP 3C509B ISA User's Manual  Toshiba L3433/40 User's Manual  アクティビティーノート アクティビティーノート〈第111    LED布シェードスタンドライト・タモ材・ナチュラル取扱説明書PDF  ActSafe ACC II Seilwinde  Simscript III Graphics Manual  Cobra XRS 9570  Parameter  

Copyright © All rights reserved.
Failed to retrieve file