EasyManua.ls Logo

Husky Hunter - Page 257

Husky Hunter
499 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
BASIC FUNCTIONS
SECTION 5.16
ONCOMMS
5.16.3 Function ON COHHS allows communication errors (typically a protocol
failure) to be handled by the user's application program.
Syntax ON COM MS Garo [line no]
or
ON COMMS OFF
Examples ON COM MS GOTO 1 OOO
ON COMMS OFF
Remarks The statement operates in a similar manner to ON POWER.
VER.V09F
When a communications error is detected, control is
returned to the Basic interpreter. Execution continues from
a defined line number specified in the Basic program.
In order to allow normal communication error messages the
statement ON COMMS OFF disables this mode, The byte of
memory COMERR is available to the programmer and contains a
code which represents the type of error which has occurred
in the communications. The available codes and their
meaning are described more fully in section 6.7.8,
COMMUNICATION ERROR.
In a typical application, ON COMMS would be used to present
the Operator with a plain language statement of the form:
"Communications have failed. Please re-dial and try
again".
Re-trys or repeat blocks can also be controlled by the user
program, as required.
PAGE 5 - 88