
7-6
Section
Details of BASIC Commands
148
cts
Syntax:
CTS
(<port expression>)
Description:
Function. Reads the
CTS
line of the specified communications port.
<port expression> is an expression returning an integer in the range: [1… 3].
CTS
returns -1 if the
CTS
line of the specified port is active and 0 if the
CTS
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:
> 10 IF CTS(2) THEN PRINT(“PORT 2 IS READY”)
See also:
DSR
.
DTR
,
RTS
data
Syntax:
DATA
[<data field> {, <data field>}]
Description:
Statement. Defines numeric and character constants that can be used in subsequent read
statements
<data field> is any valid numerical or character constant.
In order to include the ‘,’, ‘:’ and ‘(space)’ characters in data fields they must be enclosed in
quotes.
The DATA statement is usually used in conjunction with the READ statement. The constants’
type and order are specified by the READ statement and the variables’ type and order must match.
The data defined in these statements will be read in order by
READ
statements. When the last data
item in a
DATA
statement is read then the next data item read will be the first data item in the
following
DATA
statement, if it exists.
The variable type in the
READ
statement must correspond to the type of data read from the
DATA
statement.
Remarks:
Note:
Comments cannot be attached to
DATA
statements.
Examples:
> 10 DATA 10, "HELLO", 1.6, "WORLD"
> 20 READ A, B$, C, D$
> 30 PRINT B$+" "+D$
> 40 PRINT A+C
> RUN
HELLO WORLD
11.6
See also:
READ
,
RESTORE
date$
Syntax:
DATE
$ [= <date string expression>]
Description:
System variable. Returns the date of the internal clock or sets the internal clock’s date.
Remarks:
<date string expression> is an absolute date in the format “yy/mm/dd”. Where yy is the year and
has a valid range [00…99], mm is the month and has a valid range [01…12] and dd is the day and
has a valid range [01…31]. If the <date string expression> is not a valid date then an “ILLEGAL
FUNCTION CALL” error (code B005) will occur.
If used on its own the
DATE
$ statement returns the current date of the system clock in the format
specified above.
Examples:
DATE$ = “97/06/26”
See also:
DAY
,
TIME
$
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...