This file is a readme description of how to apply the QMS executable file HEXER.EXE. Title: HEXER.TXT Purpose: Allows you to download binary backgrounds on QMS Crown printers. History: Some of the many factors that may prevent raw binary files from downloading correctly are * PostScript Level 1 printers only support ASCII (7-bit)data * Level 2 printers may be set to Level 1 emulation mode * The transmission media may only support 7-bit data * The communications protocol (PS Protocol) may be set to a non-binary (ASCII) mode To ensure compatibility with all QMS Crown printers, binary background files should be hex encoded (turned into ASCII) before they are downloaded. The download routine unencodes the file before storing it to the printer's hard disk. ========================================================================= Download and Test Procedure: 1. Create a single page print-to-disk file. Follow the guide-lines in the printer user's guide. NOTE: In this example the file will be called: BACKGND1.PCL 2. Edit this file with any text editor and prepend an appropriate DOC header. For example: %! %%IncludeFeature: emulation(pcl5) %%EndComments NOTE: Ensure that there are no blank lines between the end of the DOC header and the beginning of the background. 3. Hex encode the edited file. From a DOS prompt enter the following command: C:\> HEXER BACKGND1.PCL Then the following message displays: Working... The Hex encoded file will be sent to: BACKGND1.HEX Done. C:\> NOTE: When edited in step 4, the hex encoded data will look like the following, except that the lines will be up to 160 characters long. 4D5A50000D004A0015003D043DA4AD01004000008C0300001C0000004600 0000580000005D0000006200000074000000790000007E00000090000000 950000009A000000A2000000DA000000ED000000 4. Edit the hex encoded file (in this case BACKGND1.HEX) and prepend a hex download routine such as the following: %! %%Title: Generic Hex Download Routine! %%IncludeFeature: emulation(postscript) %%EndComments (%os%DSK7:usr/backgnd1.pcl) /OutFile exch (w) file def /tempbuff 1024 string def { currentfile tempbuff readhexstring { OutFile exch writestring } { dup length 0 gt { OutFile exch writestring } { pop } ifelse OutFile closefile exit } ifelse } bind loop NOTE: Ensure that there are no blank lines between the end of the download routine and the beginning of the hex encoded data. The line which contains (%os%DSK7:usr/backgnd1.pcl) must be modified so that each background file stored on the printer's hard disk has a unique file name. Check the printer's documentation for the system disk name (SYS, DSK6, or DSK7). 5. Type the following to copy the file edited in step 4 to the printer: C:\> copy /b backgnd1.pcl PORT NOTE: Replace PORT with the actual port name (LPT1, LPT2, LPT3, COM1, COM2, COM3, COM4, or PRN) used by your printer. Keep in mind that nothing actually prints, this print job simply writes the contents of the background file to the printer's hard disk. 6. Test the downloaded background by sending the following file to the printer: %! %%Title: Background Test Routine! %%IncludeFeature: background (DSK7:usr/backgnd1.pcl 1 sheet) %%IncludeFeature: emulation(postscript) %%EndComments showpage NOTE: You must specify the filename and system disk ID that was used to download the background.