How to output to log printer, How to output to a receipt printer – Gasboy CFN III Manager Manual V3.6 User Manual
Page 206
Making Your Own Commands
How to Output to Log Printer
Page 19-8 MDE-4871 CFN III Manager’s Manual for Windows® XP Embedded - Version 3.6 · August 2010
How to Output to Log Printer
Refer to
for more information on output to the log printer.
How to Output to a Receipt Printer
The PRINT RECEIPT or P REC command lets you print text on a receipt printer (its name
reflects the fact that it involves the receipt printer, not that it prints receipts).
The simple use of the PRINT RECEIPT command is to test the receipt printer. However, it
can also be used to print reports, and for this reason, you might want to use it in command
files.
PRINT RECEIPT allows long receipts with widths up to the maximum of the receipt printer.
This allows reports, as well as receipts, to be printed by a receipt printer (also, a full-carriage
printer could be tied to a console through a parallel port).
The address of the receipt printer either comes from the first data in the standard input, or it
can be specified as a P1 option (this avoids having to require the printer number to be put in
the file that is being redirected to a receipt printer). The printer address can be specified in
four ways:
• If only a number is given, it is the address of the printer.
• If the address is only C, the output is sent to the printer associated with the console where
the command file is being run.
• If the command is run from the local or remote port (in human mode) and C is specified,
the output goes to the printer associated with console #1.
• If the address is C1 - C4 the output goes to the printer associated with the specified
console number (which is set in console parameters).
When you send a file to a printer, you may want to put a heading line or to include printer-
control codes that do not appear in the file. If so, put the heading or codes on the same line in
the command file as the PRINT RECEIPT command; the extra characters will be sent to the
printer before the file text. Any text sent to the printer is checked for ~ and ^ control codes,
such as ^M for a new line.
Note: Sending a ^T to the console opens the cash drawer.
See your printer and command terminal manuals for these control codes, as they may vary
from device to device. If the control codes are given as hex numbers, insert a ~ before the hex
number; if the codes are letters or characters, insert a ^ before the letter or character.
Use the C option to print more than one line with PRINT RECEIPT. Unlike most Site
Controller commands, in this case you do not indicate the end of the lines you want printed by
responding to the last Line to print? prompt with only a carriage return. Instead, type only a
period (.) and press Return (this is so you can include blank lines in what is printed on the
receipt printer, if you want).
You can use PRINT RECEIPT to print the entire contents of a file on the receipt printer. The
format is:
PRINT RECEIPT;