Cab Programming Manual
Total Page:16
File Type:pdf, Size:1020Kb
Product Marking 1 1 A+ series Mach 4 PX Print Module XD4 Programming Manual J-Script and abc for cab printers Edition 7.0 cab Produkttechnik GmbH & Co KG 1 2 2 JScript - the programming language for cab printers. The usage of all described functions in this manual requires firmware version 3.17 or higher. This is a generic manual which describes the commands for different printer models,which means that it may contain descriptions or explanations of features which are not available on every printer model. cab Produkttechnik GmbH & Co KG 2 3 3 cab Programming Manual valid for following printer types: A+ -Series TM XD4 -Series TM Mach 4 TM PX -Print Module TM and all printing systems based on the cab „X2“ board copyright © cab Produkttechnik GmbH & Co KG all rights reserved No parts of this manual may be copied, rewritten or used for anything else than for original cab printers. This interdicts the usage of the manual for OEM products unless you have a written permission. The cab printers command language is owned and copyrighted by cab Produkttechnik GmbH & Co KG cab Produkttechnik GmbH & Co KG Wilhelm Schickard Str. 14 76131 Karlsruhe / Germany Tel: +49 - 721-6626-0 Fax:+49 - 721-6626-239 Email: [email protected] http://www.cabgmbh.com All registered trademarks or product names are trademarks of their respectives companies SwissTM is registered Trademark of Bitstream Inc. cab Produkttechnik GmbH & Co KG 3 4 4 Table of contents copyright © cab Produkttechnik GmbH & Co KG................................................................................... 3 Chapter 1: Introduction............................................................................... 11 Introduction...........................................................................................................................................11 Nomenclature, Syntax of the commands ..............................................................................................11 Usage of this manual ........................................................................................................................... 12 Print Positions: .................................................................................................................................... 13 Overview ............................................................................................................................................. 14 1. ESC instructions .............................................................................................................................. 14 2. Immediate Commands .................................................................................................................... 14 3. Label Format Commands ................................................................................................................ 15 4. Special Content Fields ..................................................................................................................... 15 Simple programming lesson ................................................................................................................ 16 Create your first label: ......................................................................................................................... 16 Explanation of this example ................................................................................................................. 16 Chapter 2: Command Overview ................................................................. 18 Command Overview ............................................................................................................................ 18 ESC Commands ................................................................................................................................. 19 Immediate Commands ........................................................................................................................ 20 Label Format Commands .................................................................................................................... 22 Label Format Commands .................................................................................................................... 23 Special Content Fields ......................................................................................................................... 24 Time Functions .................................................................................................................................... 24 Date Functions .................................................................................................................................... 24 Date Functions (continued) ................................................................................................................. 25 Jalali Date Functions ( Arab date ) ....................................................................................................... 26 Suriyakati Date Functions ( official date in Thailand ) ......................................................................... 26 Mathematical functions ........................................................................................................................ 27 Field Calculations and Comparisons ................................................................................................... 27 Special functions (miscellaneous) ....................................................................................................... 28 RFID Functions ................................................................................................................................... 29 Database Connector commands ......................................................................................................... 30 Chapter 3: ESC Commands........................................................................ 33 ESCESC Replaces ESC in binary data ............................................................................................ 34 ESC!ESC! Hard Reset ..................................................................................................................... 35 ESC* Activate all RS-485 printers ..................................................................................................... 36 ESC. Start and stop value for binary data ......................................................................................... 37 ESC: Start description of binary data ................................................................................................ 38 ESC< Back feed of the material behind the photocell ....................................................................... 39 ESC? Request for free memory ....................................................................................................... 40 ESCa abc-status ................................................................................................................................ 41 ESCc - Cancel Printjob ....................................................................................................................... 42 ESCend-of-data End description of binary data ................................................................................43 ESCf formfeed .................................................................................................................................. 44 ESCg Print Start command ............................................................................................................... 45 ESCi Send value from the INF-memory ........................................................................................... 46 cab Produkttechnik GmbH & Co KG 4 5 5 ESCj Request for the latest printed job ............................................................................................. 47 ESCI Request of synchronisation info .............................................................................................. 48 ESCp0 End printer´s pause mode .................................................................................................... 49 ESCp1 Set printer into pause mode ................................................................................................. 50 ESCs Printer status query ................................................................................................................. 51 ESCt total cancel .............................................................................................................................. 54 ESCz Extended status request ......................................................................................................... 55 CHAPTER 3 - Immediate commands ........................................................ 56 Immediate commands ......................................................................................................................... 56 <ABC> - Start of the abc Basic Compiler ............................................................................................. 57 </ABC> - End of the abc Basic Compiler ............................................................................................. 58 <ENCRYPTED LABEL...> - Start of an ENCRYPTED label................................................................. 59 <ENCRYPTED JOB> - Start of an ENCRYPTED job .......................................................................... 60 </ENCRYPTED JOB> - End of an ENCRYPTED job .........................................................................