5-64 Command Reference
OPENCOMM
Purpose Opens either the primary or secondary communications port. The port stays open
until it is closed with CLOSECOMM.
Syntax OPENCOMM
commport
,
timeout
Process The OPENCOMM command opens the communications port referenced by
commport
(1 for the primary port or 2 for the secondary port).
Timeout
defines the length of time (0-255, in seconds) that the printer waits for
data during a GET or FETCH. If a timeout occurs, control passes to the GET or
FETCH invalid label. A
timeout
of 0 means the port waits indefinitely
f
or data.
Commport
and
timeout
must be numeric and can be one of the following:
Commport and Timeout
Description
INPUT Input Buffer
Logical Field Name (PR1) Printer Buffer Field
Logical Field Name
(TEMP1)
Temporary Buffer
Field
Logical Field Name (LU1) Lookup Buffer Field
Number A number prefixed by
a pound (#) sign.
Example
This example opens the primary communications port, and times out after 120
seconds.
OPENCOMM #1, #120
See Also
CLOSECOMM