Line – Remote Processing CAMBASIC User Manual

Page 104

Advertising
background image

Comm ands - 71

LINE

Process Statement

SYNTAX:

LINE terminal #, value

PURPOSE:

To write directly to the STB-26 terminal board.

REMARK S:

The terminal # has a one-to-one correspondence with the terminals on the STB-26. This feature
eases documentation and troubleshooting. Refer to card manual for terminal number range.

The LINE statement is similar to the BIT statement in that individual I/O bits or channels can be
controlled. It differs in that it is used specifically with the STB-26 terminal board and it executes
much faster.

The value is the state of the output. To turn an output on, enter a 1 or ON . To tur n the output off,
enter a 0 or OF F. The ON and O FF execute faster than 1 or 0.

RELATED:

LINE function

EXAMPLE:

10 LINE 113,ON
20 PRINT LINE(113)
RUN

1

In this example line 3 was turned on. Thus, a 1 is returned.

ERROR:

< Data negative> - terminal #l and value
< Data out of range> - if value > 1 or n ot O N / OF F

Advertising