beautypg.com

Line length limitations, The ~0a control code, The @c and @p console destinations – Gasboy CFN III Mgnr's Mnl V3.4 User Manual

Page 198: Command files executed from a console

background image

Making Your Own Commands

How to Use Terminal Input with Command Files

Page 182

MDE-4315 CFN Series CFN III Manager’s Manual for Windows NT · August 2004

Like ECHO, the PAUSE command adds a new line to the line it prints. Use the
A option (PAUSE;A) to keep it from printing the new line.

You can use PAUSE with the I option (PAUSE;I) to store user input for use by
the next command that needs user input.

Line Length Limitations

One line on a Check Point console can display 20 characters, and one line on a
command terminal can display 80 characters. The Profit Point can display up to
40 characters on a line. If there are 24 or fewer characters on a Profit Point line,
they will be shown in larger type.

The ~0A Control Code

The text to be displayed by the ECHO or PAUSE command may be longer than
one line. If so, insert a ~0A where you want a new line in the text display. (Note
that the middle character is a zero, not an uppercase O.) 0A is a hex number, and
the tilde tells the Site Controller to translate that hex number into a new line.

Using ~0A, the same command file could also start out like this.

The @C and @P Console Destinations

The Profit Point can display a longer line than the Check Point. So, you may
sometimes want to do two different versions of a message, a shorter one for the
Check Point and a longer one for the Profit Point.

A line that begins with @C will display only on the Check Point. A line that
begins with @P will display only on the Profit Point.

Note that sending a ^T to either the Check Point or Profit Point opens the cash
drawer.

Command Files Executed from a Console

Use the T option with ECHO and PAUSE to have prompts displayed on the
console display. Without the T option, ECHO will send its output to the log
printer.

P* TYPE PUMP&TAX.CMD

* command file for printing reports
ECHO Press 1 to print pump report
ECHO Press 2 to print tax report

P* TYPE PUMP&TAX.CMD

* command file for printing reports
ECHO Press 1 to print pump report~0APress 2 t print tax report

This manual is related to the following products: