
7-6
Section
Details of BASIC Commands
187
The following defaults will be used for the devices if the communications parameters and valid signals are not specified.
Device name
Baud rate
Data format
Valid signals
TERM
CS_OFF, RS_ON,
DS_OFF, XN_OFF
SCRN
CS_ON, RS_ON,
DS_OFF, XN_OFF
KYBD
CS_ON, RS_ON,
DS_OFF, XN_OFF
COMU
CS_ON, RS_ON,
DS_OFF, XN_OFF
LPRT
EKPRT
NKPRT
DM Area settings
8-bit, no parity, 2 stop
bits
CS_OFF, RS_ON,
DS_ON, XN_OFF
Note:
The CS, RS, DS, and XN signals are not relevant for port #2 of the C200H-ASC21.
option base
Syntax:
OPTION BASE
(0 | 1)
Description:
Statement. Declares the default subscript for the first array element.
Remarks:
The
OPTION BASE
declaration can be made only once; before any variables have been declared. If
the declaration is not made the first element in an array has subscript 0 by default.
Examples:
> 10 OPTION BASE 1
> 20 DIM A(2)
> 30 FOR I = 0 TO 1
> 40 A(I) = I
> 50 NEXT I
> 60 FOR I = 0 TO 1
> 70 PRINT A(I)
> 80 NEXT I
> RUN
BAD SUBSCRIPT ERROR IN LINE 40
> 10 OPTION BASE 1
> 20 DIM A(2)
> 30 FOR I = 1 TO 2
> 40 A(I) = I
> 50 NEXT I
> 60 FOR I = 1 TO 2
> 70 PRINT A(I)
> 80 NEXT I
RUN
1
2
See also:
DIM
Содержание C200H-ASC11
Страница 1: ...C200H ASC11 ASC21 ASC31 ASCII Units Operation Manual Revised June 2000...
Страница 2: ...iv...
Страница 4: ...vi...