beautypg.com

Gasboy CFN III Quick Reference Guide v3.3 User Manual

Page 12

background image

CFN III Quick Reference

Page 8

MDE-4483 CFN III Quick Reference Guide v3.3 · August 2005

-I do not include merchandise-item entries
-F do not include fuel-item entries
-G List general events only
-L Print total without transaction records
-M do not include tender records
-P list journal entries for previous day’s
journal; if no filename specified,
PREVIOUS.LOG is default
-? print help
[filename] if no filename is specified,
JOURNAL.LOG is default

PORT (155) allows the site to manipulate a serial
port to communicate with devices connected to that
port.

Options: Open, Send, Wait, Receive, Flush,
Close
Open option initializes the port:
PORT OPEN [] [BAUD
(300|1200|2400|4800|9600)] [DATA7]
[STOPS2] [PARITY (EVEN|ODD)]
[NOFLOW] [LF]

SC port number, defaults to 2

BAUD baud rate, defaults to 2400

DATA7 7 data bits, defaults to 8

STOPS2 2 stop bits, defaults to 1

PARITY parity, defaults to none

NOFLOW turns off flow-control

(normally XON/XOFF)

LF adds CR LF to lines (default is CR)


Send option transmits characters from string or
file, or causes a break:
PORT (SEND[LINE] <string>|

SENDPACKET|

SENDSLOW<string>|

SENDBREAK|SENDFILE <fname >)
SEND <string> <string> is sent to port
SENDLINE <string> <string> is sent

followed by a CR (and LF if LF option

was used in OPEN)

SENDBREAK causes a break on the line
SENDFILE <fname> sends file as lines

followed by CR (and LF if LF option

was used in OPEN)
SENDPACKET <string> sends
<string> where LRC is
the XOR of <string> and ETX
SENDSLOW <string> string is sent one char. at
a time paced about 1/4 second apart.
Note: This command may be used to
cause a modem to dial, etc., by sending

the appropriate modem command. Often
a break may be used to cause the modem
to hang up the phone.


Wait option pauses until a string matching the
specified string (or any of a list of strings) is
received or until timeout is reached:
PORT WAIT <option-list> FOR <string>
[<string>...]
The <option-list> is replaced by one or more of:

TIME is time to wait, defaults

to 30 seconds

CASE string is case sensitive
SPACE length of white space in target is

significant

MAX give up after that many

characters are received

QUIET give up if host silent that

many seconds

VAR target matched is returned in

ECHO display characters as received


The keyword FOR signals the end of the option
list and the beginning of the string list. Each
string may contain control codes (for example,
~0D or ^M) or wildcard characters (@s).


If any string contains internal spaces, it must be
enclosed in quotes (‘‘this string’’).
The return code is the number of the string that
was matched (for example, 1 if the first (or only)
string was matched).


Receive option captures incoming characters in
variable and/or file:
PORT RECEIVE [] (VAR
| FILE[APPEND] <fname>)
The <until-list> is replaced by one or more of:
MAX get the given number of

characters (defaults to 39 if VAR, 80 if

FILE)

END <string> until any character in the

string is encountered (this option may

appear multiple times), defaults to LF

and FF

TIME timeout in seconds, defaults

to 30

QUIET give up if line quiet for

given number of seconds

PACKET terminated on receipt of packet,

returns 0 (may combine with END)

This manual is related to the following products: