Home

Barcode Printing

image

Contents

1. Syntax Figures n Check Start code Separation Stop code Number c code ASCII o to 9 Calculation meit nen Walt see section hex 30 to 39 Check Number 3A 3A 3A dec 48 to 57 Calculation 58 58 58 Data Structure ASCII DC4 Start code nnnn Separation code nnnc Stop code DC4 hex 14 Startcode nnnn Separation code nnnc Stop code 14 dec 20 Startcode nnnn Separation code nnnc Stop code 20 Example 10 REM code EAN 8 without HRI 20 LPRINT CHRS 27 11 30 LPRINT CHR 26 13 111 CHR 25 40 LPRINT CHR 20 0123 4567 CHRS S 20 50 LPRINT CHRS 27 10 MI 22 Barcode Printing Code EAN 13 with HRI Type K Syntax Data Structure Example Figures n Check Start code Separation Stop code Number C code ASCII o to 9 Calculation meit nen Watt see section hex 30 to 39 Check Number 3A 3A 3A dec 48 to 57 Calculation 58 58 58 ASCII DC4 Startcode nnnnnnn Separation code nnnnnc Stop code DC4 hex 14 Startcode nnnnnnn Separation code nnnnnc Stop code 14 dec 20 Startcode nnnnnnn Separation code nnnnnc Stopcode 20 10 REM code EAN 13 with HRI 20 LPRINT CHR 27 211 30 LPRINT CHR 26 K3 111 CHR 25 40 LPRINT CHRS 20 0123456 789012 CHRS 20 50 LPRINT CHR 27 210 123456 7 89 012 Barcode Printing 23 Code EAN 13 without HRI Type L Syntax Data Structure Example
2. Figures n Check Start code Separation Stop code Number c code ASCII o to 9 Calculation meit nen Watt see section hex 30 to 39 Check Number 3A 3A 3A dec 48 to 57 Calculation 58 58 58 ASCII DC4 Startcode nnnnnnn Separation code nnnnnc Stop code DC4 hex 14 Startcode nnnnnnn Separation code nnnnnc Stop code 14 dec 20 Startcode nnnnnnn Separationcode nnnnnc Stopcode 20 10 REM code EAN 13 without HRI 20 LPRINT CHR 27 211 30 LPRINT CHR 26 L3 111 CHR 25 40 LPRINT CHRS 20 0123456 789012 CHRS 20 50 LPRINT CHR 27 210 24 Barcode Printing Code MSI modified Plessey Type M Syntax Data Structure Example Figures n Start code Stop code ASCII o to or Mal aa hex 30 to 39 3A 3B dec 48 to 57 58 59 ASCII DC4 Startcode n n Stop code DC4 hex 14 Startcode n n Stopcode 14 dec 20 Startcode n n Stop code 20 10 REM code MSI plessey modified 20 LPRINT CHR 27 11 30 LPRINT CHRS 26 M3 111 CHR 25 40 LPRINT CHRS 20 0123 CHRS 20 50 LPRINT CHR S 27 210 Barcode Printing 25 Code UPC A with HRI Type N Syntax Figures n Check Start code Separation Stop code Number C code ASCII o to 9 Calculation meit nen Walt see section hex 30 to 39 Check Number 3A 3A 3A dec 48 to 57 Calculation 58 58 58 Data Structure ASCII DC4 Startcode nnnnnn Separation code
3. n EAN 13 12 numbers are transferred for the EAN 13 code The 13 digit represents the check num ber The even figures of the information have a factor of 3 the uneven figures a factor of 1 Counting begins from the left The resulting cross sum is divided by 10 The remai ning figure is subtracted from the modul 10 If the remainder is 0 the check number is also 0 Example Information 4 0 1 2 3 4 5 6 7 8 9 0 1 Factor 1 3 1 3 1 3 1 3 1 3 1 3 Product 4 0 1 6 3 12 5 18 7 24 9 0 Cross sum 89 10 modul 9 remainder 1 check number For remainder 0 the check number is also 0 38 Barcode Printing EAN 8 UPCA 7 numbers are transferred for the EAN 8 code The 8 digit represents the check number The even figures of the information have a factor of 3 the uneven figures a factor of 1 Counting begins from the left The resulting cross sum is divided by 10 The remaining fig ure is subtracted from the modul 10 If the remainder is 0 the check number is also 0 Example Information 4 0 1 2 3 4 6 2 Factor 3 1 3 1 3 1 3 Product 12 0 3 2 9 4 18 Cross sum 48 10 modul 8 remainder 2 check number For remainder 0 the check number is also 0 11 numbers are transferred for the UPCA code The 12 digit represents the check num ber The even figures of the information have a factor of 3 the uneven figures a factor of 1 Counting begins from the left The resulting cross s
4. begun and it must end with the LCP brackets SI hex 0F dec 15 All characters inside these brackets are printed as LCP characters The LCP mode is ended by all characters from hex 00 to hex 1F LCP characters can be printed with character densities 10 12 15 17 1 and 20 cpi If there is a LCP line overflow the printing procedure is automatically started All characters which caused the overflow are then printed as normal characters Large Character Printing LCP 43 Refer to the section Secured Unsecured Mode at the front of the Manual for detailed description of the secured unsecured mode Data Structure ASCII SI hex OF dec 15 AN A AN n AN A SI OF 15 n all printable characters gt hex 1F dec 31 Example Hot DT RINI RIN RIN RIN RIN RIN RINI RINI r RE t uvUyurmutyuyDSsOW TET kT eII JHHHHAHHHHAG r r r alt FF r r L 255 STRINGS 5 10 Example Character Densities EN lpt1 FOR RANDOM AS 1 tes 4 CHRS 25 6w REM 15CPI LCP CHRS 15 5w REM 12CPI LCP CHRS 15 4w REM 10CPI LCP CHRS 15 LCP LCP LCP 44 Large Character Printing LCP LCP Character Set US ASCII ESC P L S01 ESC LCP Character Set German ESC P L S0 2 ESC Data Structure ASCII ESC P L Ss 0 4 ESC Y character set US ASCII hex 1B 50 4C 53 30 31 1B 5C dec 27 80 76 83 48
5. dec 20 Startcode n n Stop code 20 10 REM code 11 barcode 20 LPRINT CHRS 27 2 11 30 LPRINT CHRS 26 D3 111 CHRS 25 40 LPRINT CHRS 20 123 CHR 20 50 LPRINT CHRS 27 10 Barcode Printing 17 Code BCD Matrix Type E Syntax Figures n Start code Stop code ASCII o to or Mal en hex 30 to 39 3A 3A dec 48 to 57 58 58 Data Structure ASCII DC4 Startcode n n Stop code DC4 hex 14 Startcode n n Stopcode 14 dec 20 Startcode n n Stop code 20 Example 10 REM BCD matrix code barcode 20 LPRINT CHR 27 11 30 LPRINT CHRS 26 E3 111 CHR 25 40 LPRINT CHRS 20 123 CHRS 20 50 LPRINT CHRS 27 2 10 18 Barcode Printing Syntax Data Structure Example Numbers Character n Start code Stop code not fixed not fixed recommended recommended ASCII o to 9 A to Z and Wee nam Yo ei A RES urah hex 30 to 39 41 to 5A and 2A 2A 24 25 2A 2B 2D 2E 2F dec 48 to 57 65 to 90 and 42 42 36 37 42 43 45 46 47 ASCII DC4 Startcode n n Stopcode DC4 hex 14 Startcode n n Stopcode 14 dec 20 Startcode n n Stop code 20 10 REM code 39 barcode 20 LPRINT CHR 27 11 30 LPRINT CHRS 26 F3 111 CHR 25 40 LPRINT CHR 20 123 CHR 20 50 LPRINT CHRS 27 210 Barcode Printing 19 CODABAR Type G Synta
6. to print barcode and LCP characters SUB Start Character Barcode header DLE Start Character LCP header EM Stop Character Barcode and LCP header DC4 Barcode brackets start and end characters for barcode data SI LCP brackets start and end characters for LCP data ESC P ESC Settings for Barcode and LCP This may cause conflict with other emulations since the above commands may have dif ferent functions in these emulations for example SI Condensed print DC4 Reset expanded print ESC P lt n gt Proportional spacing ON OFF ESC P Pica In barcode mode the barcode seguences have priority The barcode interpreter can be switched on or off with the MTPL seguences ESC 11 Barcode ON and ESC 10 Barcode OFF The typical transmission procedure should take place as follows m Barcode Interpreter ON m Transmit mode specification barcode header LCP header secured unsecured mode m Transmit barcode LCP m Barcode OFF The mode specifications is saved temporarily and must only be sent to the printer once The specification remains valid until the printer is switched off Please note the following explanatory information Every seguence description begins with a header in which the function and short form of the seguence of the barcode Types are listed e g 2 5 Matrix Type A The header is followed by the data structure in ASCII hexadecimal and decimal repre sentation with the necessary par
7. 0 31 35 36 38 39 39 40 40 41 42 43 43 45 Appendix Character Sets LCP Character Set German 0 0 0 LCP Character Set US ASCIL 0 020 a OCR A Character Set OCR B Character Set A 3 A 4 A 5 A 6 Barcode and LCP Printing Introduction Secured Unsecured Mode Barcode Printing US Postnet Barcode Large Character Printing LCP Introduction 2 Introduction This User s Manual describes all barcode and LCP sequences and control codes regard less of your printer s special barcode and LCP implementation LCP Large Character Printing Be sure to observe the notes in the operator s manual regarding the special barcode LCP Types implemented in your printer and which of the sequences described here are not available as a result Select the Barcode Mode as described in the operator s manual Selecting this emulation mode automatically selects the corresponding character set To print barcode or LCP characters the following steps must be carried out in most cases Activate barcode Activate secured unsecured mode see section Secured Unsecured Mode Transfer barcode and or LCP header see sections Barcode Header and LCP Header Calculate check number barcode only see section Calculate Check Number Transfer barcode and or LCP data see sections Barcode Typees and LCP Header Deactivate barcode if necessary The following commands are used
8. 2 1 01 37 E E 37 73 HT i 73 2 E 02 38 F F 38 74 LF j 74 3 03 39 G G 39 75 VT k 75 4 04 40 H H 40 76 FF 76 5 05 41 l 41 77 CR m 77 6 amp amp 06 42 J J 42 78 SO n 78 7 i 07 43 K K 43 79 SI o 79 8 08 44 L L 44 80 DLE p 80 9 09 45 M M 45 81 DC1 q 81 10 10 46 N N 46 82 DC2 r 82 11 11 47 O O 47 83 DC3 s 83 12 i i 12 48 P P 48 84 DC4 t 84 13 hyphen hyphen 13 49 Q Q 49 85 NAK u 85 14 period period 14 50 R R 50 86 SYN v 86 15 15 51 S S 51 87 ETB W 87 16 0 0 16 52 T T 52 88 CAN x 88 17 1 1 17 53 U U 53 89 EM y 89 18 2 2 18 54 V V 54 90 SUB Zz 90 19 3 3 19 55 W W 55 91 ESC 91 20 4 4 20 56 X X 56 92 FS l 92 21 5 5 21 57 Y Y 57 93 GS 93 22 6 6 22 58 Z Z 58 94 RS A 94 23 7 7 23 59 59 95 US DEL 95 24 8 8 24 60 60 96 FNC3 FNC3 96 25 9 9 25 61 61 97 FNC2 FNC2 97 26 a 26 62 A A 62 98 SHIFT SHIFT 98 27 27 63 a E 63 99 CODEC CODEC 99 28 lt lt 28 64 NUL E 64 100 CODEB FUNC4 CODEB 29 29 65 SOH a 65 101 FNC4 CODEA CODEA 30 gt gt 30 66 STX b 66 102 FNC1 FNC1 FNC1 31 31 67 ETX c 67 32 32 68 EOT d 68 Codes 96 through 102 do not have 33 A A 33 69 ENQ e 69 corresponding ASCII character 34 B B 34 70 ACK f 70 translations these may be encoded 35 G G 35 71 BEL g 71 using the special character table above Barcode Printing 33 Example 34 Barcode Printing 10 20 30 40 50 EEE E EM code 128 PRINT PRINT PRINT PRINT CHRS 2
9. 49 27 92 ASCII ESC P L S or 2 ESC Y character set german hex 1B 50 4C 53 30 32 1B 5C dec 27 80 76 83 48 50 27 92 Large Character Printing LCP 45 Various Examples Example 1 Example for different LCP character sizes U H o w Aw w Aw w Aw w CeO CECO EVEN CAE A EHETE EE Hoy Tj t E 7 9 HH Z JH n n 7HO4H0 HH ct ct ve H JH 0 ct aaa AA AA AA AA ZZ HHO ct Cc 3456 46 Various Examples R 27 11 R 27 PSCO CHRS 27 haracter size to 3 RS 16 3 CHRS 25 RS 15 3 CHRS 15 haracter size to 4 RS 16 4 CHRS 25 RS 15 4 CHRS 15 haracter size to 5 RS 16 5 CHRS 25 RS 15 5 CHRS 15 haracter size to 6 RS 16 6 CHRS 25 RS 15 6 CHRS 15 RS 27 210 Example for different LCP character sizes UN Example 2 REM Example 2 for unsecured printing OPEN lpt1l FOR RANDOM AS 1 WIDTH 1 255 PRINT 1 CHRS 27 11 PRINT 1 CHR 27 PSCO CHR 27 N PRINT 1 CHRS 16 5 CHRS 25 PRINT 1 Example for PRINT 1 CHR 15 LCP CHRS 15 unsecured mode PRINT 1 CHRS 10 CHR 13 END Example for L CI unsecured mode Example 3 RE Example 3 for secured printing OPEN pt1 FOR RANDOM AS 1 WIDTH 41 255 PRINT 1 CHR 27 11 PR
10. 7 211 CHRS 26 S3 111 CHR 25 CHRS 20 ABCD0123 CHRS 20 CHRS 27 10 DE EAN 128 Type T Syntax Data Structure Description Example Figures Characters n Start code Stop code ASCII hex see Code 128 none none dec ASCII DC4 n n DC4 hex 14 n n 14 dec 20 n n 20 The only difference between both types of barcodes is the initial sequence Code 128 starts with Code A Code B or Code C followed by character information Barcode EAN 128 requires the code FNC1 between Startcode and character information The Code 128 translation table remains valid The checksum of EAN 128 is calculated using Code 128 algorythm 10 LPRINT CHRS 20 LPRINT CHR 30 LPRINT CHRS 40 LPRINT CHRS en 11 eM T3 11 1W CHRS O5 1234ABCD CHRS 20 AAL 10 NP NMNN JON me ne ne Barcode Printing 35 Add On UPC and EAN barcodes commercial barcodes can be extended with Add On barcodes Barcodes The following barcodes can be extended with Add On barcodes Barcode Types H I K L N O P and A In the data formats the numbers are generally given in the sequence they are printed from left to right in the barcode i e in the case of the EAN13 code the 13 figure is trans ferred first and the 1 figure last For the formats for the Add On barcodes the printer ex pects the check number as the first figure This is not printed in the barcode The follo wing num
11. INT 1 CHR 27 PSC1 CHR 27 NM PRINT 1 CHRS 16 5 CHRS 25 PRINT 1 Example for PRINT 1 CHRS 15 LCP CHR 15 PRINT 1 secured CHRS 10 mode PRINT 1 STRING 5 10 END Example for secured mode gt Various Examples 47 Example 4 Unsecured Mode vertical spacing with various enlargement factors CIDA BON e Yt w e Legend A a single line Feed 1 6 B Factor 6 character heigth 6x 35 3x4 LF C Factor 7 character height 7x additional space is added to gain a full Line Feed D Factor 4 character height 4x75 2x4 LF E Factor 5 character height 5 75 additional space is added to gain a full Line Feed A start actual print cursor position O end actual print position Description The room will be occupied to fit the highest character in one line Characters which will not meet the 1 6 grid are adding additional space to fill the room to the next possible line this value may change due to actual line density setting 48 Various Examples Appendix Character Sets A 2 Character Sets The following symbol sets are available in the barcode mode The LCP symbol sets can only be selected via Escape sequences The OCR A and OCR B fonts can be selected via control panel or by Escape sequences which corre spond to the selected emulation mode The codes hex A0 up to hex FE correspond to the selected character set The following exa
12. Narrow bar x 0 Narrow space y 0 Ratio of wide to narrow 2 to 1 z 0 When only parts of the header are to be changed copy the header up to the parameter which must be changed and then close the header with the end of header character If a header error was detected the total previous features are still active The Barcode brackets hex 14 dec 20 initiate and terminate the printing of the bar codes If the printer is switched OFFLINE all defined barcodes are printed out completely Plea se not that the barcode remains resident in the background and can be activated again by the barcode bracket Text justification and centering are both permitted With activated barcodes these function are not carried out since they lead to conflicts with the barcodes Following control codes in Barcode strings can be substituted by the appropriate MTPL sequences see also section Special Feature on page 5 Control Code ANSI Sequence CSI Hex 9B or ESC SUB CSI 26 Space s EM CSI 25 Space s DC4 CSI 20 Space s DLE CSI 16 Space s SI CSI 15 Space s MTPL seguences with not matching parameters will be ignored This seguences may only be used with activated BARCODE Barcode Printing 9 Barcode Print Feature F for Selection of F Code HRI or normal compressed as well as single or double pass is switched via character F according to the following table ASCII Char HRI 2 Pr
13. ailbox 49 7348 23574 ITALIA Tally S R L Via Borsini 6 1 20094 Corsico Mi Italia Tel 39 2 48608 1 Fax 39 2 48601 141 Mailbox 39 2 48608 323 December 1996 Tally GmbH U S A Tally Corp P O Box 97018 8301 South 180th Street Kent WA 98032 U S A Phone 1 206 25155 00 Fax 1 206 25155 20 CANADA Tally Corp 125 Traders Boulevard 9 Missisauga Ontario L4Z2E5 Canada Phone 1 416 8904646 Fax 1 416 8904567 GREAT BRITAIN Tally Ltd Molly Millars Lane GB Wokingham Berks RG11 2QT United Kingdom Phone 44 118978 8711 Fax 44 118 979 1491 AUSTRIA Tally Ges m b H Zetschegasse 17 A 1232 Wien Austria Tel 43 166126 0 Fax 43 1 6673199 FRANCE Tally S A Les Champs Phillippe 6 8 Avenue de Verdun F 92257 La Garenne Colombes Cedex France T l 33 1 413011 00 Fax 33 1 413011 10 C I S Tally Representative Mr T Ebert B Dorogomilovskaja ul 14 121059 Moscow RSFSR Phone 7 502 22421 80 Inside C 1 S 0952433995 Fax 7 502 22421 81 Inside C 1 S 0952306075 379 300 b
14. ameters e g ASCII DC4 startcode n n stopcode DC4 hex 14 startcode n n stopcode 14 dec 20 startcode n n stopcode 20 Introduction 3 4 Introduction The syntax for the parameters the start separate and stop code is represented as follows Figures n Start code Stop code ASCII o to or a E hex 30 to 39 SA SA dec 48 to 57 58 58 For the parameter here n a distinction must be made between two types of repre sentation m if the parameter is in pointed parentheses the decimal value must be transmitted m if the parameter is not in pointed parentheses the ASCII value must be transmitted Example Parameter representation to be transmitted Parameter representation to be transmitted lt n gt with n 0 dec 0 hex 00 n with n 0 ASCII O hex 30 dec 48 Character explanation and symbol descriptions O em Information important notes Optional must be not necessarily be transmitted 9 needle printer 24 needle printer Special Feature If you not get the reguired control codes for Barcode of ASCII code table columns 0 and 1 out of your computer you can use in addition to these Barcode control codes a set of MTPL sequences to generate these control codes by printable ASCII characters By this measure the Barcode programs will remain fully compatible in spite of the additional MTPL sequences Following control codes in Barcode s
15. bers 2 or 5 are printed from left to right in Add On barcode Example 1 EAN13 barcode with HRI and Add On 2 extention Format DC4 nnnnnnn nnnnnn cnn DC4 10 REM code EAN 13 with add on 2 extention 20 LPRINT CHR 27 211 30 LPRINT CHR 26 K3 111 CHR 25 26 40 LPRINT CHR 20 0123456 789012 012 CHRS 20 50 LPRINT CHR 27 210 UIE ol 723456 vavore ll 36 Barcode Printing Example 2 EAN13 barcode with HRI and Add On 5 extention Format 10 REM code 20 30 LPRINT CHRS 123 456 LPRINT CHR LPRINT CHR IM ne ne MAM p DC4 nnnnnnn nnnnnn cnnnnn DC4 EAN 13 with add on 5 extention LPRINT CHRS 27 a K3 111 CHRS 25 0123456 789012 012345 CHR 20 12345 a Barcode Printing 37 Check The following barcode types must be given a check number for transfer to the printer Number TypeHand EAN 8 Calculation tyoek andi EAN 13 m Type Nand O UPC A m Type Pand A UPC E The check number c is transferred after the barcode information n For the EAN type this is printed as the last figure in the HRI data line For the UPC type the check num ber is not printed in the HRI data line The commercial barcodes can be extended with the following user specific additional bar codes see also section Add On Barcodes m Add On 2 barcode m Add On 5 barcode Here the check number c is transferred before the barcode information
16. d of the barcode and LCP height In unsecured mode the paper feed necessary for barcode and LCP printing is automatic and it is not possible to print more than one line with normal characters in the barcode and LCP line All characters in the mixed line are printed so that the bottom edges are aligned in a straight line 6 Secured Unsecured Mode Example 1 Example 2 10 20 30 40 50 60 70 80 REM LCP unsecured mode LPRINT CHRS 27 11 REM select unsecured mode LPRINT CHR 27 PSCO CHRS 27 REM set character size to 5 LPRINT CHR 16 5 CHRS 25 LPRINT Example for LPRINT CHR 15 LCP CHRS 15 Example for L C F unsecured mode WAM unsecured mode 10 RE CP secured mode 20 LPRINT CHR 27 11 30 REM select secured mod 40 LPRINT CHR 27 PSC1 CHRS 27 AM 50 REM set character size to 5 60 LPRINT CHR 16 5 CHRS 25 70 LPRINT This is CHR 15 LCP CHRS 15 80 LPRINT an ex 90 LPRINT ample of an 100 LPRINT expres sion 110 LPRINT in the secured mode This is an ex ample of an expres sion in the secured mode Secured Unsecured Mode 7 Barcode Printing Barcode Before the data which contains the barcode information are transmitted to the printer Header the barcode header must be sent Otherwise the standard parameter values are used see section Header Format In the header
17. ensity CPI is used Start and stop codes are not printed as HRI a space character SP will be stored Barcode Printing 11 Barcode Width By specifying an ASCII value from 0 to 3 the barcode width can be defined This allows ideal adaption to the scanner specifications particularly for long range scanners Table 1 Normal Compressed Header Para older printer older printer meter O 24 types O 24 types e g MT230 e g MT230 x 0 0 53mm 0 54mm 0 48mm 0 32mm 0 33 mm _ 0 27 mm 2 Width of y 4 0 74mm 0 67mm 0 69mm 0 53mm 0 43 mm 0 37 mm 3 the x 2 1 16mm 1 09mm 1 16mm 0 74mm 0 65mm 0 59 mm 2 narrow bar y 3 4 38 mm 1 30mm 1 33mm 0 95mm 0 88 mm 0 90 mm 3 Width of y 0 0 53 mm 0 54 mm 0 48mm 0 32 mm 0 33 mm 0 27 mm 3 the y 1 0 74 mm 0 67 mm 0 69mm 0 53 mm 0 43 mm 0 37 mm 2 narrow y 2 1 16 mm 1 09 mm 1 16 mm 0 74 mm 0 65 mm 0 59 mm 3 space Y 3 1 38mm 1 30mm 1 33mm 0 95 mm 0 88 mm 0 90 mm 3 z 0 2 0 1 2 0 1 2 Enlarge 7 4 25 1 25 12 A gt 2 3 0 1 3 0 1 2 factor 3 35 1 25 15 EAN UPC Barcode X Y unregarded Table 2 Header Parameter Normal Compressed Enlargement z 0 1 95 1 1 30 1 factor z 1 1 60 1 0 95 1 1 These values are true if Compressed Print is selected in the menu see print feature F 2 Note It is recommended to set the bar width equal to the
18. int Pass 3 Direction 2 On Off Normal Compr Double Single Unidir Bidir O a ak lt XX lol XX xx I x x x X x xx xx xx I Il x x xx x x x x x xx x x x x XX x xX xX XxX BE pm Oe ek e I Lx x x x px px dx 1 X they are reserved for future functions 2 Human Readable Index 6 two physical print passes or special print modes i e emphasized 10 Barcode Printing It is recommended to avoid using of ASCII Characters 0 and 1 when possible since It depends on the used printer type whether the printer performs Double Pass with Barcode Types HRI 2 5 matrix default 2 5 industrial 2 5 interleaved Code 11 Code BCD matrix Code 39 Codabar EAN 8 with HRI EAN 8 without HRI 2 5 matrix default EAN 13 with HRI EAN 13 without HRI MSi modified Plessey UPC Awith HRI UPC A without HRI UPC E with HRI UPC E without HRI Delta Distance IBM Code 128 EAN 128 HOPOTOZZMFATTIONMOOVDD l All commercial barcodes for labeling systems of the H I K L N O P Q Types can be extended using the barcodes Add On 2 or Add On 5 see section Add On Barcodes HRI Human Readable Index HRI characters are centered if enough space is left If the barcode printout is smaller than the HRI character field smaller character d
19. mple shows you how to find the hexadecimal value for a character from the character set table ASCII B dec 66 hex 42 Sats A LCP Character Set german Character Sets A 3 LCP Character Set US ASCII A 4 Character Sets OCR A Character Set Code Page 437 Character Sets A 5 OCR B Character Set Code Page 437 A 6 Character Sets All rights reserved Translations reprinting or copying by any means of this manual complete or in part or in any different form requires our explicit approval Mannesmann Tally reserves the right to make changes to this manual without notice All care has been taken to ensure accuracy of information contained in this manual However we cannot accept responsibility for any errors or damages resulting from errors or inaccuracies of information herein TRADEMARK ACKNOWLEDGEMENTS EPSON is a trademark of Epson America Inc IBM is a trademark of International Business Machines Corporation TALLY REPRESENTATIVES GERMANY Tally GmbH Postfach 2969 D 89019 Ulm Deutschland Tel 49 7308 80 0 Fax 49 7308 5903 M
20. nnnnnc Stop code DC4 hex 14 Startcode nnnnnn Separation code nnnnnc Stop code 14 dec 20 Startcode nnnnnn Separation code nnnnnc Stop code 20 Example 10 REM code UPC A with HRI 20 LPRINT CHR 27 211 30 LPRINT CHR 26 N3 111 CHR 25 40 LPRINT CHRS 20 012345 678901 CHRS 20 50 LPRINT CHR 27 210 0 12345 67890 26 Barcode Printing Code UPC A without HRI Type O Syntax Data Structure Example Figures n Check Start code Separation Stop code Number C code ASCII o to 9 Calculation meit nen Walt see section hex 30 to 39 Check Number 3A 3A 3A dec 48 to 57 Calculation 58 58 58 ASCII DC4 Startcode nnnnnn Separation code nnnnnc Stop code DC4 hex 14 Startcode nnnnnn Separation code nnnnnc Stop code 14 dec 20 Startcode nnnnnn Separation code nnnnnc Stop code 20 10 REM code UPC A without HRI 20 LPRINT CHR 27 11 30 LPRINT CHR 26 03 111 CHR 25 40 LPRINT CHR 20 012345 678901 CHRS 20 50 LPRINT CHR 27 210 dA Barcode Printing 27 Code UPC E with HRI Type P Syntax Figures n Check Number c Start code Stop code ASCII o to or Calculation KE nen hex 30 to 39 See section 3A 3A Check Numb dec 48 to 57 ad 58 58 Data Structure ASCII DC4 Startcode nnnnnnnc Stopcode DC4 hex 14 Startcode nnnnnnnc Stopcode 14 dec 20 Start code nnnnnnnc Stopcode 20 Example 10 REM c
21. nting 31 Example If you need to print a Carriage Return hex 0D dec 13 as part of a barcode you need to send gt M 13 64 77 see character set table to verify that decimal 77 equals the capi tal letter M This substitution process can be carried out throughout the range of deci mal values i e gt d decimal 100 equates to the dollar symbol decimal 36 If the grea ter than symbol itself must be transmitted send gt 0 the 0 will not be part of the printed data The Code 128 barcode style selection can also be done manually This is done by adding a style selection character to the beginning of the barcode data Choose code A B or C from the table of special characters below Special Character Code 128 gt 0 30 gt gt 1 95 gt 2 96 gt 3 97 gt 4 98 gt 5 99 Code C gt 6 100 Code B gt 7 101 Code A gt 8 102 When a style selection has been made character data will be translated from the selec ted code style to the Code 128 repesentation The translation table on the following page summarizes this 32 Barcode Printing Code 128 translation table Wert Code A Code B Code C Wert Code A Code B Code C Wert Code A CodeB Code C 0 Space Space 00 36 D D 36 72 BS h 7
22. o 39 3A 3C or 3E 3B 3D or 3F dec 48 to 57 58 60 or 62 59 61 or 63 ASCII DC4 Startcode n Stop code DC4 hex 14 Startcode n Stop code 14 dec 20 Startcode n Stop code 20 10 REM code 2 5 industrial barcode 20 LPRINT CHR 27 211 30 LPRINT CHR 26 B3 111 CHR 25 40 LPRINT CHRS 20 123 CHR 20 50 LPRINT CHRS 27 10 Barcode Printing 15 Code 2 5 Interleaved Type C Syntax Data Structure Example Figures n Start code Stop code ASCII o to or Ma or men a or wom hex 30 to 39 SA or 3C 3B or 3D dec 48 to 57 58 or 60 59 or 61 ASCII DC4 Startcode n n Stop code DC4 hex 14 Startcode n n Stopcode 14 dec 20 Startcode n n Stop code 20 10 REM code 2 5 interleaved barcode 20 LPRINT CHR 27 211 30 LPRINT CHR S 26 C3 111 CHR 25 40 LPRINT CHR 20 123 CHRS 20 50 LPRINT CHRS 27 210 Due to the interleaved mechanism data stream n n should only be transferred as even number e g not 398 but 0398 If odd count of numbers are transferred the printer adds a leading zero to the printed barcode 16 Barcode Printing Code 11 Type D Syntax Data Structure Example Figures Characters n Start code Stop code ASCII o to or and nm Mal al hex 30 to 39 and 2D SA SA dec 48 to 57 and 45 58 58 ASCII DC4 Startcode n n Stop code DC4 hex 14 Startcode n n Stopcode 14
23. ode Large Character Printing LCP LCP Header LCP Data Before you can transfer the LCP data Large Character Printing data to the printer the LCP header must be sent The LCP header is made up of a series of max 5 characters In the header the printing parameters and the LCP character size are defined This hea der only needs to be transferred once unless settings are to be changed or the printer has been turned off Format DLE n EM optional does not need to be transmitted Character meaning DLE hex 10 dec 16 start character ASCII bidirectional printing if transferred n ASCII n 2 99 enlargement factor EM hex 19 dec 25 end character with the help of the header the enlargement factor is fixed to the original size A character in LCP mode with the size n occupies a horizontal space for n normal character depending on the selected character distance At a character distance of 10 characters inch and an enlargement factor of 6 the LCP font width is 6 10 inch The height of a LCP character is n times 1 12 inch It is independent of the selected line spacing The LCP characters are printed so that their lower edges lie flush with the next available ground line The result is that only the upper edges of characters with an un even enlargement factor can lie flush with the line The existence of a LCP header does not mean that all subsequent characters are printed in LCP size The LCP mode must be
24. ode UPC E with HRI 20 LPRINT CHR 27 211 30 LPRINT CHRS 26 P3 111 CHRS 25 40 LPRINT CHRS 20 01234567 CHRS 20 50 LPRINT CHRS 27 210 0 123456 28 Barcode Printing Code UPC E without HRI Type A Syntax Data Structure Example Figures n Check Number c Start code Stop code ASCII o to or Calculation KE Mott hex 30 to 39 See Septon 3A 3A Check Number dec 48 to 57 Calculation 58 58 ASCII DC4 Startcode nnnnnnnc Stopcode DC4 hex 14 Start code nnnnnnnc Stopcode 14 dec 20 Start code nnnnnnnc Stopcode 20 10 REM code UPC E without HRI 20 LPRINT CHR 27 11 30 LPRINT CHRS 26 03 111 CHR 25 40 LPRINT CHR 20 01234567 CHRS 20 50 LPRINT CHRS 27 210 Barcode Printing 29 Code Delta distance IBM Type R Syntax Figures Characters n Start code Stop code ASCII o to or and A to FE E D hex 30 to 39 and 41 to 46 46 44 dec 48 to 57 and 65 to 70 70 68 Data Structure ASCII DC4 Startcode n n Stop code DC4 hex 14 Startcode n n Stopcode 14 dec 20 Startcode n n Stop code 20 Example 10 REM code delta distance IBM without HRI 20 LPRINT CHR 27 11 30 LPRINT CHRS 26 R3 111 CHR 25 40 LPRINT CHRS 20 F0123D CHRS 20 50 LPRINT CHRS 27 210 30 Barcode Printing Code 128 Type S S
25. space width x y 3 Printer dependent reference value 12 Barcode Printing All values are only valid when a new colour ribbon is used They change depending on the degree of wear m narrow bar approx 0 05 mm m narrow space approx 0 05 mm The Code EAN 128 as the EAN UPC is based on module widths Therefore only the X parameter is valid for this type This parameter is also used for the Y parameter narrow bar width The Z parameter has no meaning In combination with the normal condensed feature 8 widths result see table 1 Error Code Wrong characters in a control code or in a barcode test e g an undefined character in a certain barcode Type cause the barcode error sign to be printed Barcode Printing 13 Data Formats of Barcode Types Code 2 5 Matrix Type A Syntax Figures n Start code Stop code ASCII o to or SAS JA hex 30 to 39 SA SA dec 48 to 57 58 58 Data Structure ASCII DC4 Startcode n n Stop code DC4 hex 14 Startcode n n Stopcode 14 dec 20 Startcode n n Stop code 20 Example 10 REM code 2 5 matrix barcode 20 LPRINT CHR 27 11 30 LPRINT CHRS 26 A3 111 CHR 25 40 LPRINT CHR 20 123 CHRS 20 50 LPRINT CHR 27 210 14 Barcode Printing Code 2 5 Industrial Type B Syntax Data Structure Example Figures n Start code Stop code ASCII o to or ka me or PS an wo or won hex 30 t
26. tally Programmer s Application Manual Barcode and LCP Table of Contents Barcode and LCP Printing Introduction Secured Unsecured Mode Data Structure Description Barcode Printing Barcode Header Header Format Transparent Barcode LCP commands Barcode Print Feature F for Selection of F Code Barcode Types AR coe se Al a Barcode Width Error Code Data Formats of Barcode Types Code Matrix 2 5 Code 2 5 Industrial Code 2 5 Interleaved Code 11 Code BCD Matrix Code39 CODABAR Code EAN 8 with HRI Code EAN 8 without HRI 10 11 11 12 13 14 15 16 17 18 19 20 21 22 Code EAN 13 with HRI Code EAN 13 without HRI 08 Code MSI modified Plessey 4 Code UPCAwithHRI Code UPCA withoutHRI Code UPCE with HRI Code UPCE withoutHRI Delta distance IBM 0 00000005 Code 128 EAN 128 Add On Barcodes Check Number Calculation UPCE Add On5 Add On2 US Postnet Barcode Sequence Description 2 005002 eae Large Character Printing LCP LCP Header LCP Data LCP Character Set Selection 0 0 Various Examples Exemples 1 4 23 24 25 26 27 28 29 3
27. the printing parameters the barcode size and the barcode type are defined This header only needs to be transferred once unless settings are to be changed or the printer has been turned off Header Format Format SUB F a n xyz EM Specification is optional x y unregarded at EAN UPC Barcode For Code 128 and EAN 128 Type S T only the X parameter is valid This is automatically used for the Y parameter The Z parameter is not evaluated Meaning of the characters SUB hex 1A dec 26 F a ASCII a A n ASCII n 0 ASCII x ASCII x 0 y ASCII y 0 Zz ASCII z 0 EM hex 19 dec 25 For encoding ASCII Character Sets 8 Barcode Printing e 90 nar 3 nar Start header Print feature see section Barcode Print Feature F to select the F codes page 10 Barcode Types see section Barcode Types Barcode height in n 6 inch At n 0 the barcode height equals to 1 12 inch Separation character Width of the narrow bar see section Barcode width Width of the narrow space see section Barcode width Ratio of wide to narrow see section Barcode width End of header values to decimal or hexadecimal values refer to the appendix Transparent Barcode LCP commands The default parameter values are the following m Unsecured mode see section Secured Unsecured mode HRI OFF Normal Print Double Pass F SP Barcode Type 2 5 matrix a A Barcode height 1 6 inch n 1
28. trings can be substituted by the appropriate ANSI se quences ANSI Sequence Control Code Cals ae i SA T Example Hex ESC SUB CSI 26 Space s 1B 5B 32 36 20 73 EM CSI 25 Space s 1B 5B 32 35 20 73 DC4 CSI 20 Space s 1B 5B 32 30 20 73 DLE CSI 16 Space s 1B 5B 31 36 20 73 Sl CSI 15 Space s 1B 5B 31 35 20 73 ANSI sequences with not matching parameters will be ignored O These feature is not available with all printers with MTPL emulation Special firmware is possibly necessary Please ask your dealer or representative Introduction 5 Secured Unsecured Mode Unsecured mode ESC PSCO ESC Secured mode ESC PSC1 ESC Data Structure Description ASCII ESC P S Cro ESC Unsecured mode hex 1B 50 53 43 30 1B 5C dec 27 80 83 67 48 27 92 ASCII ESC P g C 1 ESC V Secured mode hex 1B 50 53 43 31 1B 5C dec 27 80 83 67 49 27 92 In secured mode the amount of space the barcode or LCP character requires is secu red In each line additional barcode and normal characters can be printed These additional characters are printed in the current line and in the following lines wi thout influencing the barcode or LCP character As a result normal characters can be prin ted to the right or left of the barcode or LCP character in each line In order to guarantee successful barcode and LCP character printing it is important to in sert the correct paper feed commands so that paper feed is ensured to the en
29. um is divided by 10 The remai ning figure is subtracted from the modul 10 If the remainder is 0 the check number is also 0 Example Information 4 0 1 2 3 4 5 6 7 8 9 3 Factor 3 1 3 1 3 1 3 1 3 1 3 Product 12 0 3 2 9 4415 6 21 8 27 Cross sum 107 10 modul 7 remainder 3 check number For remainder 0 the check number is also 0 Barcode Printing 39 UPCE Add On 5 For the UPCE barcode type 7 numbers are transmitted The 8 digit is the check number The uneven figures of the information have a factor of 3 the even figures a factor of 1 Counting begins from the left The resulting cross sum is divided by 10 The remaining in teger value is subtracted from the modul 10 The result is transmitted as the check num ber C Example Information 0 1 2 3 4 5 6 5 Factor 3 1 3 1 3 1 3 Product 0 1 6 93 12 5 18 Cross sum 45 10 modul 5 remainder 5 check number For remainder 0 the check number is also 0 6 numbers are transmitted check number c 5 information items n The uneven figu res of the information have a factor of 3 the even figures a factor of 1 Counting be gins from the right The resulting cross sum is divided by 10 The remaining integer value is subtracted from the modul 10 The result is transmitted as the check number c Example Information 3 8 6 1 0 4 Factor 3 9 3 9 3 Product 24 54 3 0 12 Cross sum 93 3 remainder 3 check n
30. umber The check number is not printed in the clear data line HRI 40 Barcode Printing Add On 2 3 numbers are transmitted check number c and 2 informations n The check number results from the remaining integer value of modul 4 Example 1 Information 0 0 4 Remainder 0 ES Example 2 Information 2 0 6 Remainder 2 ae Example 3 Information 3 9 9 Remainder 3 L 3 Example 4 Information 1 0 9 Remainder 1 1 The check number always lies between 0 and 3 it is not printed in the HRI line Barcode Printing 41 US Postnet Barcode US Postnet Barcode ESC 1SPp Data Structure ASCII ESC P 1 SP p hex 1B 5B 31 20 70 dec 27 91 49 32 112 Description After receiving this sequence numeric characters from 0 hex 30 to 9 hex 39 are inter preted as barcode figures Other Alpha characters are ignored Control characters from hex 00 dec 9 to hex 1F dec 31 terminates this barcode mode You may use this sequence in every emulation The printer can print barcode in NLQ and LQ If draft print quality DPQ is selected the printout is performed in NLQ O The character e g CR carriage return hex OD which terminates barcode mode will neither be printed nor carried out A tab command hex 09 dec 9 is carried out in this barcode 10 REM US postnet barcode 20 LPRINT CHR 27 211 30 LPRINT CHRS 27 1 p 1234567 CHRS 13 40 LPRINT CHRS 27 210 42 US Postnet Barc
31. x Numbers Character n Start code Stop code not fixed not fixed recommended recommended ASCII o to 9 A to D and a to e and a to e and Ka neg i ioe ee Io tes Wee n hs Wee hex 30 to 39 and 61 to 65 and 61 to 65 and 24 2B 2D 2E 2F 3A 6E 74 2A 6E 74 2A dec 48 to 57 and 97to101and 97 to 101 and 36 43 45 46 47 58 110 116 42 110 116 42 Data Structure ASCII DC4 Startcode n n Stopcode DC4 hex 14 Startcode n n Stopcode 14 dec 20 Startcode n n Stop code 20 Example 10 REM codabar barcode 20 LPRINT CHR 27 11 30 LPRINT CHRS 26 G3 111 CHR 25 40 LPRINT CHR 20 123 CHR 20 50 LPRINT CHR S 27 210 20 Barcode Printing Code EAN 8 with HRI Type H Syntax Data Structure Example Figures n Check Start code Separation Stop code Number C code ASCII o to 9 Calculation meit nen Walt see section hex 30 to 39 Check Number 3A 3A 3A dec 48 to 57 Calculation 58 58 58 ASCII DC4 Startcode nnnn Separation code nnnc Stop code DC4 hex 14 Startcode nnnn Separation code nnnc Stop code 14 dec 20 Startcode nnnn Separation code nnnc Stop code 20 10 REM code EAN 8 with HRI 20 LPRINT CHR 27 211 30 LPRINT CHR 26 H3 111 CHR 25 40 LPRINT CHR 20 0123 4567 CHRS 20 50 LPRINT CHR 27 210 0123 4567 Barcode Printing 21 Code EAN 8 without HRI Type
32. yntax Figures Characters n Start code Stop code ASCII hex E S26 tapie E none none dec section Description Data Structure ASCII DC4 n n DC4 hex 14 n n 14 dec 20 n n 20 Description While many barcode styles are limited to numbers Code 128 can encode numbers let ters and other symbols commonly found on keyboards such as O and The Code 128 barcode is like three barcodes in one The three barcode styles are called Code A Code B and Code C Each barcode style is designed to encode certain types of data in the most compact way Code A encodes uppercase alpha numeric and control codes Code B encodes upper and lower case alpha and numeric codes Code C encodes digits in pairs A single Code 128 barcode may consist of all three Code 128 barcode styles A B and C The printer chooses the styles which result in the most compact Code 128 barcode for the data to be encoded Thus the user needn t be concerned about choosing the correct barcode styles as this is done automatically The gt greater than symbol is a special character prefix If a character with decimal va lue less then 32 needs to be encoded i e a control character then send a gt followed by the character that is decimal 64 higher then the control code character Control characters are conflicting with DC4 SUB these characters are encoded by using the gt sign following a number that is 64 dec higher than the control character Barcode Pri

Download Pdf Manuals

image

Related Search

Related Contents

DVDプレイヤー DVP-CH501(S) 取扱説明書  Wireless sensor smoke alarm FRW  DVR User Manual  Vigil II User's Manual  シカ雌雄判別キット  Ergotron LX HD Wall Mount Swing Arm  CONSERVER PRECIEUSEMENT CE MANUEL D`UTILISATION  Philips DLM1393  FDR3 — A Modern Refinement Checker for CSP  Starter Kit and User Manual for the HelloDevice  

Copyright © All rights reserved.
Failed to retrieve file