Home

Legacy Kit Manual - The Barcode Software Center

image

Contents

1. N S Checksum MySum 43 US E 2 J x O DEL KT X WY YZ 22 23 PCL Barcode Font Kit for Legacy Systems User Manual Table of Code 39 Values for Modulo 43 Checksum Q g ar EE C D OANDOARWN AO Char ADDAOVOZETCAC TON Value 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 24 PCL Barcode Font Kit for Legacy Systems User Manual UPC A UPC A is used in the United States and Canada to identify retail products for checkout scanning The code is fixed length 12 digits numeric only The Uniform Code Council located in Dayton Ohio assigns identification numbers to manufacturers The barcode begins with a leading number system digit followed by the manufacturer s identification both are assigned by the UCC This is followed by digits assigned by the manufacturer which identify each of the manufacturer s products The final 12th digit is a check digit used to insure scanning accuracy The barcode also includes left center and right guard characters The length of the manufacturer identification number assigned by the UCC may vary from 5 to 8 digits depending on the anticipated number of products the manufacturer needs to identify The longer the manufactuer ID the fewer digits available for identifying products Position Function 1 left guard 2 number system digit 3 7 5 digits manufacturer ID 8 center guard 9 13 5 digits manufacturer ID pro
2. use the printer s control panel to print a configuration page and verify that the required fonts are installed check the data being sent to the printer and verify that the font selection escape sequence is correct Data which should appear as a barcode prints as plain text along with extra characters like s0p4 69h12 0vObOT check the data being sent to the printer and verify that the font selection escape sequence is correct if possible print the report to a file and use a text editor to verify that the escape code at the beginning of the font selection sequence has not been stripped off by the oper ating system The barcode prints but does not scan for Code 3 of 9 verify that the barcode data begins and ends with an asterisk for other types of barcodes verify that the start and stop characters are included and that the checksum calculation is correct Getting Help If you need further assistance with installation of these fonts on your laser printer contact the dealer from whom you purchased the product or The Barcode Software Center Telephone 847 866 7940 Email info makebarcode com 15 PCL Barcode Font Kit for Legacy Systems User Manual Technical Information If you will be using your laser printer with application software that already uses the Bar Codes amp More font cartridge SIMM DIMM no further steps are required The fonts in the PCL Font Kit for Legacy Systems respon
3. Code 39 Code 3 of 9 also known as Code 39 is a widely used alphanu meric barcode The character set includes the upper case letters A Z the digits 0 9 and several symbols hyphen period doffar sign forward slash plus sign and percent To print a barcode character that will be scanned as a space use the underscore _ to print a blank white space use the space charac ter ASCII 32 Code 39 barcodes are variable length and may include any number of characters In practice the number of characters in a single barcode is limited by the maximum physical space available on the document Also many barcode scanners in common use CCD scanners cannot read barcodes over a specific width typically about 3 inches Each Code 39 barcode must begin and end with a special start stop character which is represented by an asterisk Formatting of the data prior to printing requires only that you add an asterisk at the beginning and at the end of the data For example let s say that the data to be encoded is PN334958 The finished string ready for printing as a Code 39 barcode would be PN334958 Here is a complete set of escape sequences to print the data as a barcode and then print the information again as text using the printer s default font below the barcode lt esc gt 0Y lt esc gt s0p4 69h12 0v0b0T PN334958 lt esc gt 3 PN334958 The result AONDOA AROA VAN RUND UU MANTUAN PN334958 19
4. PCL Barcode Font Kit for Legacy Systems User Manual Here is a C function that illustrates how the escape sequences might be generated in code The caller passes the data partno and a pointer to the output file or device prn The code 033 in C represents Octal 33 which is the escape character int SendBC char partno FILE prn fprintf prn 033 0Y 033 sOp4 69h12 0v0b0T fprintf prn s partno fprintf prn 033 3 n default font fprintf prn s n partno text return 0 Here is Visual Basic code that will return a string with similar results Chr 27 is the escape code Function SendBC partno as String as String Dim ms as String ms Chr 27 amp O0Y ms ms amp Chr 27 amp sO0Op4 69h12 0v0b0T ms ms amp amp partno amp ms ms amp Chr 27 amp 3 amp vbcrlf ms ms amp partno SendBC ms End Function 20 PCL Barcode Font Kit for Legacy Systems User Manual Extended Code 39 In some applications it may be necessary to encode charac ters which are not part of the normal Code 39 character set Extended Code 39 also known as Full ASCII Code 39 is a method that allows encoding of all 128 ASCII characters These barcodes must be read using a scanner which has been configured for Extended Code 39 Use of Extended Code 39 is not recommended if there is a possibility the barcodes will be read and
5. A barcode is pro vided on the following pages Note The UPC A font supports all of the common retail barcode symbols UPC A UPC E EAN 13 EAN 8 2 digit supplemental and 5 digit supplemental 26 PCL Barcode Font Kit for Legacy Systems User Manual Format UPC A with C static char upc_string 20 char format_upc char instring char cpin cpout int check i memset upc_string 0 sizeof upc_string check upc_check instring check digit cpin instring point at instring cpout upc_string point at outstring cpoutt Ver insert left guard for i 1 i lt 6 i insert 6 digits cpout cpint 0 cpoutt t r center guard for i 1 i lt 5 i next 5 digits cpout A cpint 0 cpout right guard return upc_string return to caller int upc_check char instring int mysum 0 mycheck char rop cp instring point at start while cp 0 go until end mysum cp 0 add numeric value cp 2 next odd position mysum mysum 3 multiply sum by 3 cp instring 1 1st even position while cp 0 go until end mysum cp 0 add numeric value cp 2 next even position mycheck 10 mysum 10 calculate Mod 10 if mycheck 10 mycheck 0 force 10 to 0 return mycheck return the result 27 PCL Barcode Fon
6. of Windows For example this command should send the font to the printer under Windows 98 and Windows 2000 but may simply make a copy of the file on disk with Windows 95 C gt COPY B BC_30f9_ 4pitch dsf MAIN LASER You may first have to assign the printer to a local printer port with the NETUSE command The port does not have to physically exist and you should not use a port that actually has a local printer attached to it For example if you have local printers attached to LPT1 and LPT2 and a network printer named Main Laser you could assign LPT3 to the network printer C gt NETUSE LPT3 MAIN LASER C gt COPY B BC_30f9 4pitch dsf LPT3 PCL Barcode Font Kit for Legacy Systems User Manual cat In Unix or Linux you can use the cat command to copy the file to the printer raw device The raw device usually has the same name as the device you commonly use but with an r on the end Using the raw device avoids the possibility that a print driver will insert formatting codes as the font is sent to the printer cat usr myfiles BC_30f9 4pitch dsf dev lptlr Ipr The lpr command can be an effective method for downloading fonts Unix and Linux support lpr Windows NT 2000 and XP also support Ipr but it may not be installed by default lpr may be called Unix printing by the Windows setup process The general form of the lpr command is Ipr S lt server gt P lt printer gt C lt c
7. possibly misinterpreted by scanners which have not been appropriately configured The letters A Z the digits 0 through 9 space dash and period are encoded just like standard Code 39 All others are encoded with a pair of barcode characters beginning with the percent sign dollar slash or plus sign For example the pair M will be scanned as a carriage return code The scanner must be configured to read Extended Code 39 A complete chart of Extended Code 39 codes appears on the next page 21 PCL Barcode Font Kit for Legacy Systems User Manual PCL Barcode Font Kit for Legacy Systems User Manual Extended Code 39 Chart Code 39 Modulo 43 Checksum ASCII C39 ASCII C3 c39 c39 KO gt lo Q gt lo Q A checksum is an extra character which is added to the end of a NUL U SP V W barcode just before the stop character The value of the SOH A IA A A a A checksum is computed from the preceding characters in the STX B 1B B B b B barcode so it will change depending on the data contained in the ETX C IC c c c C barcode The software that creates the barcode is responsible for EOT D D D D d D performing the calculation and adding the checksum character ENQ E IE E E e E The scanner reads the barcode performs the same checksum ACK F amp IF F F f F calculation and compares the result of this calculation to the BEL G g IG G G g G checksum at the end of the barcode I
8. read by automatic sorting equipment A USPS ZIP barcode can include the 9 digit Zip 4 code or the 11 digit Delivery Point Code which is the same as Zip 4 with two extra digits to define the destination in more detail Each digit is represented by five bars two tall and three short and the complete barcode is constructed as follows Guard bar represented by asterisk or vertical pipe symbol Numeric data 5 9 or 11 digits Check Digit e Guard bar For example the following text string will produce a complete USPS ZIP barcode The data Zip 4 is 123456789 and the check digit is 5 Adding astereisks the text would be 1234567895 and it will look like this when printed The check digit is used to insure accuracy when the barcode is scanned The check digit is calculated using the 5 9 or 11 digits of Zip Code data and must be calculated USPS ZIP The check digit is used to insure accuracy when the barcode is scanned The check digit is calculated using the 5 9 or 11 digits of Zip Code data and must be calculated for each barcode When the barcode is read the scanning equipment performs the same calculation and compares its result with the check digit that was read from the barcode If the two do not match the scanner knows that there is something wrong with the data and can eject the letter for manual sorting Applications designed to use the Hewlett Packard Bar Codes amp More Font Product already perform the required for
9. 3 Transfer the complete font kit package to someone else only if you assign all of your rights under this license cease all use of the fonts remove all copies of the fonts from your printer and computers and if the person to whom the font kit package is transferred agrees to the terms of this license YOU MAY NOT 1 Use or make copies of the fonts except as permitted by this license 2 Rent sell lease assign or transfer the font kit package or any of its compo nents except as set out above 3 Modify the fonts or merge all or any part of the fonts into another software package This license shall continue for as long as you use the product However it will terminate if you fail to comply with any of its terms or conditions You agree upon termination to destroy all copies of the product We warrant that the storage media for the fonts will be free from defects in materials and workmanship for 90 days from the date you acquire it If such a defect occurs return the product to us and we will replace it for free This remedy is your exclusive remedy for breach of this warranty It gives you certain rights and you may have other legislated rights which vary from jurisdiction to jurisdiction LIMITATION OF WARRANTIES AND LIABILITY Except for the express warran ties of merchantable quality merchantability or fitness for a particular purpose or those arising by law statute usage of trade or course of dealing the entire risk as to
10. MEC Software PCL Barcode Font Kit for Legacy Systems User Manual Downloadable barcode fonts for laser printers Compatible with applications designed for Hewlett Packard s Bar Codes and More Font Product PCL Barcode Font Kit for Legacy Systems User Manual PCL Barcode Font Kit for Legacy Systems Downloadable barcode fonts for laser printers User Manual c Copyright 2003 2004 Measurement Equipment Corporation All rights reserved MEC Software Published by Measurement Equipment Corporation 1113 Hull Terrace Evanston IL 60202 USA Tel 847 866 7940 www mecsw usa com PCL Barcode Font Kit for Legacy Systems User Manual Contents End User License Agreement n se 4 Introduction 0 0 eeeceeeetenseeeeeeseeeeseenenseeeeneseenens 5 Installing the Fonts cccsssesseeseeeeseeeees 6 Loading Fonts using Command Line 7 Loading Fonts using FontLoader i Automating Font Loading 0 08 Technical Information ccesseseeeeee Adding Readable Text Formatting Barcode Strings Code 39 0 Extended Code 39 0 FIM Facing Identification Marks 10 ssee Business Reply Mail Horizontal Bars 05 PCL Barcode Font Kit for Legacy Systems User Manual End User License Agreement YOU MAY 1 Install and use each font kit on only one printer 2 Make one additional copy of the font kit for back up purposes
11. arcode fonts The specific control codes required to print barcodes using this cartridge were embedded in many data processing applications System administrators who want to upgrade to new printers must either restrict their choices to printers which can recognize the Bar Codes amp More control codes or change the control codes embedded in their software This PCL Barcode Font Kit includes downloadable barcode fonts that emulate the Bar Codes amp More font product The fonts can be downloaded to most laser printers multi function printers and PCL 5 compatible inkjet printers The fonts respond to the same control codes used by the Bar Codes amp More cartridge SIMM DIMM so no changes to existing applications are needed Each kit includes the following fonts Name of Font File Code 3 of 9 8 11 pitch BC_3o0f9_8pitch dsf Code 3 of 9 4 69 pitch BC_3o0f9_4pitch dsf UPC 10 mil UPC_10mil dsf UPC 13 mil UPC_13mil dsf USPS ZIP USPS_ZIP dsf PCL Barcode Font Kit for Legacy Systems User Manual Installing the Fonts Copy the fonts from the release CD to a convenient location on your computer s hard disk then store the release CD in a safe place If you are using Windows double click on My Computer browse to the C drive and create a new folder called BarcodeFonts this is an example you can name the folder anything you like Then browse to the CD and drag the fonts over to C BarcodeFonts The proce
12. d to the same control sequences so the output from your new laser printer should match the results from your previous printer The following pages include technical information and sample code to assist programmers who need to create new code or modify existing programs Selecting Fonts with Escape Sequences PCL compatible printers understand and respond to Hewlett Packard s Printer Command Language PCL The fonts in this kit are compatible with PCL Version 5 and higher higher being PCL 6 as of this writing PCL uses Escape Sequences to control the printer An escape sequence always begins with the ASCII Escape code which has a decimal numeric value of 27 33 in octal The Escape code shown in the samples below as lt esc gt is followed by a series of parameters which tell the printer what to do An escape sequence may include more than one parameter Each parameter generally consists of a value followed by a letter which identifies the type of parameter If the parameter letter is lower case it means that another parameter follows it If the parameter letter is upper case it means that it is the last param eter and it marks the end of this particular escape sequence Once a barcode font has been downloaded to the printer you can select it by embedding a PCL command in the data being sent to the printer The following escape sequences select the various fonts by characteristic 16 PCL Barcode Font Kit for Legacy Sys
13. duct ID 14 check digit 15 right guard The left guard and right guard characters are identical and can be printed using an asterisk or left and right parentheses or square brackets The center guard character may be printed using a hyphen or a vertical pipeline symbol The bar pattern for digits in the left half of the barcode is different from the pattern used on the right side In the PCL font left side digits are represented in the normal way by the characters 0 through 9 Right side digits are represented by the letters A through J For a programmer encoding the right side digits is 25 PCL Barcode Font Kit for Legacy Systems User Manual simply a matter of adding the numeric value of each digit to the ASCII value for the character A 41 Left Right 0 A 1 B 2 G 3 D 4 E 5 F 6 G 7 H 8 l 9 J Let s say we wish to encode the number 0 00123 45678 4 dashes are shown for clarity Each of the following examples would produce the same result 000123 EFGHIE 000123 EFGHIE 000123 EFGHIE Applications designed to use the Hewlett Packard Bar Codes amp More Font Product already perform the required formatting and checksum calculation Use of the downloadable UPC A font requires no changes to existing applications To assist with the creation of new code or the modification of existing applications sample code that illustrates how to calculate the checksum and format the data for a UPC
14. dure is essentially the same if you are using an X Window graphical interface on Unix or Linux If you are using a non graphical operating system use the appro priate commands to create a folder and copy the font files For example it might look something like this in Unix or Linux this example assumes that the CD is mounted as cdrom gt mkdir usr BarcodeFonts gt cp cdrom usr BarcodeFonts Once the fonts are on your computer the next step is to load them onto your printer The FontLoader utility included with the kit is generally the most convenient way to load fonts FontLoader can load the fonts directly from a Windows computer or can create batch files or scripts to load fonts from Unix Linux and other types of operating systems You can also load fonts with standard OS commands like copy cat Ipr or ftp PCL Barcode Font Kit for Legacy Systems User Manual Loading Fonts using the Command Line copy If you are using MS DOS or Windows you can simply Copy the font file to the printer port In Windows open a MS DOS com mand line window Use the b binary command line option C gt COPY B BC_30f9 4pitch dsf LPT1 Note If your system does not support long filenames you will need to rename the files For example C39_4PIT DSF If you are in a MS DOS command prompt under Windows and the destination printer is on the network using the printer s network name may not work depending on your version
15. f the two do not match the BS H JH H H h H scanner presumes that something is wrong and does not accept HT l n l l i l the scan a ae 4 te X fe In practice the Modulo 43 checksum is seldom used While it does provide an additional level of reliability Code 39 has other FF L x IL L L l L was checks built into its structure that assure a level of accuracy more CR M 7 7 M M m M than adequate for most applications A Code 39 barcode is so N N N n N presumed not to include a checksum unless explicitly required SI 0 IO oO oO o O DLE P 0 0 P P p P To calculate a Modulo 43 checksum first assign each character in DC1 Q 1 1 Q Q q Q the barcode a numeric value according to the table on the follow DC2 R 2 2 R R r R ing page Sum the numeric values of the characters in the DC3 T 4 4 S S s S barcode exclude the start stop characters and divide the result by DC4 T 4 4 T T t T 43 the remainder is the checksum value Convert this to a NAK U 5 5 U U u U character using the table above and add that character to the end SN V 6 6 v v 7 V of the barcode just before the stop character ETB w 7 7 Ww Ww w W i npe CAN X 8 8 w w s w In programming parlance dividing and taking the remainder a the EM gY 9 9 Y Y 2 Y result is a Modulo division In Basic it would be expressed as SUB z iz z k tz Checksum MySum Mod 43 ESC A F K P FS B lt G L Q In C C it would be GS C H M R RS D gt l
16. ill stay there until the printer s power is turned off To insure that the barcode fonts are available whenever needed it is recommended that you load the fonts just ahead of each print job or at regular intervals FontLoader can be used to create a font loading script batch file You can execute the script or use it as a guide for writing your own script As an example let s say that we routinely use a program called GenInvoices exe to create our weekly batch of invoices and we typically save the resulting output as Weeklylnvoices txt We load the printer with special paper and then copy the file WeeklyInvoices txt to the printer We want to send one of the barcode fonts to the printer just before printing starts Our script to do this whole process automatically might look like this GenInvoices gt WeeklyInvoices txt copy B C Fonts C_30f9 4pitch dsf Server MainLaser copy WeeklyInvoices txt Server MainLaser If you prefer to download the fonts at regular intervals a script created by FontLoader or by hand can be executed automati cally In Windows click on Start gt Settings gt Control Panel gt Scheduled Tasks and then click Add New Task In Unix and Linux crontab is typically used to maintain the list of scheduled tasks to be automatically executed by the cron daemon 14 PCL Barcode Font Kit for Legacy Systems User Manual Troubleshooting Data which should appear as a barcode prints as plain text
17. implest way to print text below a barcode is to print the barcode start a new line and then print the data again using a plain text font Here is an example in C that uses the fprintf function to send formatted data to the printer Ip In practice the programmer would probably write this as one or two lines of code we have used several lines for clarity fprintf lp 033 0Y 033 s0p4 69h12 0v0b0T fprintf lp 123456 data fprintf lp 033 3 default font fprintf lp n new line fprintf lp 123456 text line By using PCL cursor positioning commands selecting specific typefaces and controlling type size and boldness the programmer can create virtually any finished appearance desired Details on the PCL commands are beyond the scope of this manual but are discussed at length in Hewlett Packard s publication PCL5 Printer Language Technical Reference Manual Formatting Barcode Strings Applications designed to use the Hewlett Packard Bar Codes amp More Font Product already perform the required formatting and checksum calculations Use of the PCL Barcode Font Kit for Legacy Systems requires no changes to existing applications To assist with development of new software or modification of existing applications this manual includes information and sample code that illustrates how to do the formatting 18 PCL Barcode Font Kit for Legacy Systems User Manual
18. in the upper right portion of reply mail pieces The FIM tells automatic sorting equipment how to handle the piece and speeds up routing There are four FIMS Name Print Intended use FIMA A Courtsy reply mail CRM and Meter reply mail MRM FIMB B Business reply mail without ZIP 4 Postnet barcode FIMC Cc Business reply mail with ZIP 4 Postnet barcode FIM D D Information based indicia IBI postage To print any of the FIMs just select the USPS ZIP font and print the an upper case A B C or D as appropriate Business Reply Mail Horizontal Bars Business reply mail must include a series of horizontal bars below the no postage necessary endorsement A single horizontal bar can be printed using the pound sign with the USPS ZIP font 31 PCL Barcode Font Kit for Legacy Systems User Manual 32
19. lass gt J lt job name gt O lt option gt lt filename gt As an example let s assume that the destination printer is avail able at IP address 192 168 100 40 and the file BC_30f9_4pitch dsf contains the downloadable PCL barcode font We must use O option followed by a lower case letter L to specify binary mode lpr S192 168 100 40 P192 168 100 40 Ol BC_30f9_4pitch dsf ftp This method can be used on Unix Linux and Windows systems At a command line prompt enter the ftp command and IP address of the printer C gt ftp lt IP address of printer gt You will be prompted for a user name and password press the Enter key for each of these no user name or password Then 8 PCL Barcode Font Kit for Legacy Systems User Manual use the PUT command to send each font file to the printer Here is a sample ftp session C gt ftp 192 168 100 40 Connected to 192 168 100 40 220 Laser Printer Model xxx FTP server ready User XXX XXX XXX XXX none _ 331 Password required for none Password _ 230 User none logged in ftp gt put BC_30f9 4pitch dsf 200 PORT command successful 150 Opening ASCII mode data connection for BC_30f9 4pitch dsf 226 Transfer complete ftp xxxxx bytes sent in xx xSeconds xxxx xxKbytes Sec ftp gt bye After you have transferred the files use the printer s control panel to print a PCL Configuration Page to verify that the fonts have been successfu
20. lly installed PCL Barcode Font Kit for Legacy Systems User Manual Loading Fonts using FontLoader The FontLoader utility provides a convenient way to download fonts to your printer FontLoader runs on 32 bit versions of Windows 95 98 Me 2000 NT XP With FontLoader you can Load fonts onto a local or network printer Create scripts to load fonts on Windows MS DOS Unix Linux and other systems Add commands to store fonts on the printer s Flash memory or internal hard disk To install FontLoader run SetupFontLoader exe included on the release CD This will install the program on your system and put a copy of the complete FontLoader manual in the C Program Files FontLoader folder To run FontLoader click on Start gt Programs gt MEC Software gt FontLoader F met tet cote te ee mes ope taonta a Came eet a aa val 2 a O Aveo Pane goote yasar men m The Fonts list will be blank Click the Add button browse to the location where the fonts from the kit are stored select them all 10 PCL Barcode Font Kit for Legacy Systems User Manual and click Save This will add the fonts to the list on FontLoader s main display Click on one of the three options on the main screen to select an action Depending on your choice you can then select fonts printers and other options When ready click the Go button to execute the action Note Please remember that font kits are licensed per p
21. matting and 29 PCL Barcode Font Kit for Legacy Systems User Manual checksum calculation Use of the downloadable USPS ZIP font requires no changes to existing applications Here is the general method for calculating the checksum Starting from the left sum all of the digits in the barcode Using the example above 1 2 3 4 4 5 6 7 8 9 45 For the next step we need the units column of the sum You can extract this information using Modulo 10 division which is the same as dividing by 10 and taking the remainder Subtract this result from 10 to obtain the check digit if the final result is 10 change it to zero In the example above the check digit would be 5 Here is a bit of sample code written in Basic ZipString 123456789 Sum 0 FOR x 1 to LEN ZipString Sum Sum VAL MIDS ZipString x 1 NEXT x Check 10 Sum MOD 10 IF Check 10 THEN Check 0 ENDIF PrintString L ZipString Str Check R Here is the same function in C char ZipString 20 PrintString 20 cp int Sum 0 Check strcpy ZipString 123456789 cp ZipString while cp 0 Sum cptt 0 Check 10 Sum 10 if Check 10 Check 0 sprintf PrintString L s 1dR ZipString Check 30 PCL Barcode Font Kit for Legacy Systems User Manual FIM Facing Identification Marks Facing Identification Marks FIM are patterns of vertical bars printed
22. rinter do not violate the terms of the license by loading the fonts to more printers than permitted by your licenses Sor 1 G Dianka fords bo prindars nosy Gorabire seksobed fonds init Hirigin We E Craie sarip bor dosak Forde bo prindea lade I Frin aod page fio Download fonts to printers now This action downloads the selected font s to the selected printer If you check Print Test Page FontLoader will create and print a test page after downloading the fonts You may also choose a printer specific option Combine selected fonts into single download file This action combines the selected font files creating a single download file with multiple fonts You can also use this action to create a file with PJL Printer Job Language commands added to the font by using a Printer Specific option 11 PCL Barcode Font Kit for Legacy Systems User Manual Create script to download fonts to printers later The action creates a script file that can be executed later to download fonts You can choose the target operating system for the script Windows Unix Linux MS DOS this affects the syntax of the script You can also choose the method used to download the fonts copy cat Ipr or cp If you check Print Test Page FontLoader will create the test file and include an instruction in the script to download it to the printer To use the finished script copy it along with the fonts and test file if you asked for one
23. t Kit for Legacy Systems User Manual Format UPC A with Basic Function format_upc instring As String As String Dim check As Integer Dim i As Integer Dim MyString as String Dim MyChar as Integer MyString left guard MyString MyString amp Left instring 6 MyString MyString amp center guard for i 7 to 11 Y next 5 digits MyChar Val Mid instring i 1 MyChar MyChar Asc A MyString MyString amp Chr MyChar next i MyChar upc_check instring Asc A MyString MyString amp Chr MyChar MyString MyString amp right guard format_upc MyString return to caller End Function Function upc_check instring As String As Integer Dim MySum As Integer Dim i As Integer mysum 0 start with a zero for i 1 to 11 Step 2 add odd positions mysum mysum Val Mid instring i 1 next i mysum mysum 3 multiply result by 3 for i 2 to 10 Step 2 add even positions mysum mysum Val Mid instring i 1 next i MySum MySum Mod 10 calculate Modulo 10 MySum 10 MySum subtract from 10 if MySum 10 then force 10 result to 0 MySum 0 endif upc_check MySum End Function 28 PCL Barcode Font Kit for Legacy Systems User Manual USPS ZIP The USPS ZIP barcode also known as Postnet is the row of tall and short bars that often appear below or above an address on a letter USPS ZIP encodes the Zip Code so that it can be
24. tain all of the commands to be sent to the printer along with keywords that mark the places where FontLoader should automatically insert variable data Keywords are enclosed within lt angle brackets gt Note that keywords are found even if enclosed in quotation marks Here is a list of the supported keywords with the information that FontLoader inserts in their place lt UEL gt Universal Exit Language printer to known state lt RESET gt Printer reset command lt FONTNAME gt Name of the font file lt FONTSIZE gt Size of the font file in bytes lt FONTDATA gt The content of the font file For example here is the entire content of Lanier_SaveToDisk pjl which directs the printer to store the downloaded font on its internal hard disk drive drive 0 in the 0 pcl fonts directory lt UEL gt PJL PJL FSMKDIR NAME 0 pcl fonts PJL FSDOWNLOAD FORMAT BINARY NAME 0 pcel fonts lt FONTNAME gt SIZE lt FONTSIZE gt lt FONTDATA gt lt UEL gt 13 PCL Barcode Font Kit for Legacy Systems User Manual Automating Font Loading If your printer is equipped with Flash memory or a hard disk drive the fonts can be loaded once after that they will be permanently available in the printer until explicity erased FontLoader can add the commands required to direct the font to the printer s perma nent storage If your printer does not have Flash or a hard disk the fonts will be loaded to the printer s RAM and w
25. tems User Manual Code 39 8 11 pitch lt esc gt 0Y lt esc gt s0p8 11h12 0vOb0T Code 39 4 69 pitch lt esc gt 0Y lt esc gt s0p4 69h12 0vOb0T UPC 10 mil lt esc gt 8Y lt esc gt s1p12 0v0sOb0T UPC 13 mil lt esc gt 8Y lt esc gt s1p12 0v0s3b0T USPS ZIP lt esc gt 15Y lt esc gt s1p12 0v0sObOT To switch back to the printer s default font send this command lt esc gt 3 So we can print a barcode in our sample report just by adding a few simple escape sequences to the data we send to the printer Monthly Statement Account No 123456 lt esc gt 0Y lt esc gt s0p4 69h12 OvOb0T 123456 lt esc gt 3 The printed result should look something like this Monthly Statement Account No 123456 ARAUA OORA VURDU UU MUNDU AU MIIAN Here is a snippet of C program code to do this printf Monthly Statement n printf Account No d n AccNo printf 033 0Y 033 sop4 69h12 OvObOT d 033 3 n AcctNo The 033 is an octal representation of the escape code In Basic character codes are specificed with their decimal value so an escape can be printed with a CHR 27 function call 17 PCL Barcode Font Kit for Legacy Systems User Manual Adding Readable Text The barcode fonts in this kit do not include readable text charac ters Adding the text with a separate print command is easy to do and gives the programmer complete freedom in choosing the style and position of the text The s
26. the results and performance of the FONTS is assumed by you Neither we nor our dealers or suppliers shall have any liability to you or any other person or entity for any indirect incidental special or consequential damages whatsoever including but not limited to loss of revenue or profit lost or damaged data or other commercial or economic loss even if we have been advised of the possibility of such damages or they are foreseeable or for claims by a third party Our maximum aggregate liability to you and that of our dealers and suppliers shall not exceed the amount paid by you for the FONTS The limitations in this section shall apply whether or not the alleged breach or default is a breach of a funda mental condition or term or a fundamental breach Some states countries do not allow the exclusion or limitation of liability for consequential or incidental dam ages so the above limitation may not apply to you PCL Barcode Font Kit for Legacy Systems User Manual Introduction Modern laser printers can print barcodes for legacy systems even if the software was originally designed to use specific hardware that is now obsolete This compatibility offers system administra tors the option of upgrading to newer more productive printers without making changes to the application software Early laser printers accepted plug in font cartridges including the Bar Codes amp More cartridge from Hewlett Packard that included several b
27. to the system that will be doing the down loading You can execute the script batch file manually or you can schedule it to run automatically at specific intervals Printer Specific Options This option will add additional information to a font using a tem plate file it is intended primarily to add PJL Printer Job Language commands to the font PJL instructions can be used to direct the printer to store the font in flash memory or on an internal hard disk the default is to store the downloaded fonts in RAM a Here Template files are used to define the desired format of the output FontLoader stores template files in its program directory 12 PCL Barcode Font Kit for Legacy Systems User Manual C Program Files FontLoader and uses a pjl extension to identify them When FontLoader starts it builds a list of pjl files and displays them in the Printer Specific Options field The first choice on the list is always None indicating that no template should be used The pjl template files are plain text files and can be easily created using a text editor such as Notepad you can use one of the existing pjl files as a guide To have a new template file appear on the list save it with a pjl extension in the FontLoader program directory If you create a template for a specific printer or situation we would welcome the opportunity to include it with FontLoader just email us a copy The template file should con

Download Pdf Manuals

image

Related Search

Related Contents

Sony DHC-MD500 User's Manual  MSDSを参照する  Le cri du peuple Le blues expérimental de Family Affair  US-2002 User Instructions  Sitecom MD-272  ManualsLib - Makes it easy to find manuals online!  Sección 3: Presentación de la máquina 33 1  

Copyright © All rights reserved.
Failed to retrieve file