10-24-2000 12:05 AM
This printer is shared by novell and hp3000, and now, I load the macros with fcopy from hp3000, but I think the macros aren't been saved as permanent, althougth I send this escape sequence .
10-24-2000 08:16 AM
Questions about LaserJets' internal functions are best handled by the Printer Expert Center at (208) 323-2551. According to my PCL 5 Technical Reference manual, pp. 12-1 to 12-13, macros are temporary by default. A temporary macro will be lost when the printer is reset, but even a "permanent" macro will be lost when the printer is powered-off. Specify a macro as "permanent" (to be retained after a reset) by using the "macro control" command:
This will apply to the most recently specified macro ID. In order to make a macro truly permanent, it must be written to read-only memory (ROM). I am not familiar with ROM chips or cartridges-- please discuss the availability and usage of macros in ROM with the Printer Expert Center.
10-24-2000 11:57 PM
If there *might* be some variance in printers, consider a file of escape sequences (much like you're FCOPYing now), but have the COBOL program simply open the "setup" file and copy whatever it sees in this file to the printer as part of the first-header initialization.
Finally, you can also consider ";ENV" files, or "environment files" -- this is kind of a holdover from when printers had VFC tapes and such, but nowadays they contain information that is pre-pended to the spooler output at the time the system sends the printout. [I haven't worked with them enough lately to remember the details, but that should get you going in the right direction]
10-25-2000 02:16 AM
Thanks a lot again.
10-26-2000 05:53 AM
the solution i discovered was that the 4000's wanted the macro EXECUTED. look at the very last line of the snippet below, that's where the key to your problem may be (see the "|&f1y2X").
this only works for networked printers (we have 4&5si's, 4000n's)...
i have several files with different forms & printer formats that are used simply by adding the file statement:
FILE ____;DEV=____;ENV=(name of the text file snippet shown below)
i have a bunch of extra "junk" in my escape sequences that may confuse the issue, sorry.
refer to the "PCL 5 PRINTER LANGUAGE TECHNICAL LANGUAGE REFERENCE MANUAL" on page 12-9 for more info on the macro commands.
snippet of form (the pipe char "|" should be changed to an escape):
========== ( beginning of snippet) =========
CO "----- upper left company name, line 1 ----";
CO " ----- select white pen 0, transparency off ----";
CO " ----- select black pen 1, transparency on ----";
CO "----- shaded box & eoe message at bottom -----";
LBAn Equal Opportunity Employer~;
CO "----- form name @ bottom left -----";
LBFORMB2 (ver 7.21.00a)~;
============ (end of snippet) =============
side note: don't put any extra spaces between your escape sequences -- this can gen extra pages or cause line shifting.
-- good luck,