
7-6
Section
Details of BASIC Commands
152
dma
Syntax:
DMA
(<port expression>)
Description:
Function. Reads the
DMA
status of the specified communications port.
<port expression> is an expression returning an integer in the range: [1…2].
DMA
returns -1 if
DMA
is active for the specified port and 0 if
DMA
is not active.
Remarks:
Note:
1.
If the port expression is outside the specified range or if it refers port #1 on ASC11 or
ASC21, an “ILLEGAL FUNCTION CALL” error (code B005) will result.
Examples:
IF DMA(2) THEN PRINT “DMA OF PORT 2 IS ACTIVE”
See also:
dsr
Syntax:
DSR
(<port expression>)
Description:
Function. Reads the
DSR
line of the specified communications port.
<port expression> is an expression returning an integer in the range: [1… 3].
DSR
returns -1 if the
DSR
line of the specified port is active and 0 if the
DSR
line is not active.
Remarks:
Note:
1.
Port #3 corresponds to the terminal port of the ASC31.
2.
If Port #3 is specified on the ASC11 or if port #2 or port #3 is specified on ASC21 an
“ILLEGAL FUNCTION CALL” error (code B005) will result.
Examples:
IF DSR(2) THEN PRINT “DSR OF PORT 2 IS ACTIVE”
See also:
CTS
,
DTR
,
RTS
dtr
Syntax:
DTR
# <port expression> (
SET
|
RESET
)
Description:
Statement. Sets or resets the
DTR
line of the specified communications port.
<port expression> is an expression returning an integer in the range: [1… 3].
If accompanied with the
SET
command, the
ER
line is made active. If the
RESET
command is used,
then the
ER
becomes inactive. This command can only be used if the port is open.
Remarks:
Note:
1.
Port #3 corresponds to the terminal port of the ASC31.
2.
If Port #3 is specified on the ASC11 or if port #2 or port #3 is specified on ASC21 a
“BAD PORT NUMBER” error (code 0050) will result.
Examples:
DTR #2 SET
See also:
CTS
,
DSR
,
RTS
Summary of Contents for C200H-ASC11
Page 1: ...C200H ASC11 ASC21 ASC31 ASCII Units Operation Manual Revised June 2000...
Page 2: ...iv...
Page 4: ...vi...