2 - 7 2 - 7
MELSEC-Q
2 THE BASICS OF AD51H-BASIC
The special characters have the following meanings in BASIC statements.
Special Symbol
Name
Meaning
Space
Used to separate instructions and parameters.
!
Exclamation
Indicates single-precision type.
“
Double quotation mark
Symbols for enclosing a character string.
#
Number sign
File number symbol, indicates double-precision type.
$
Dollar sign
Indicates character type.
%
Percent sign
Indicates integer type.
&
Ampersand
Specifies character format.
‘
Apostrophe
Comment delimiter
(
Left parenthesis
)
Right parenthesis
*
Asterisk
Multiplication symbol
+
Plus sign
Positive symbol, addition symbol, character string addition
symbol
,
Comma
Delimiter
Example
INPUT A, B
PRINT X, Y, Z
DATA 10, 13, 91, 4
-
Negative sign, minus,
hyphen
Negative sign, subtraction symbol.
Used to specify a range of lines in instructions such as LIST
and DELETE.
Example LIST 100-300
DELETE 1000-3000
DEFDBL A-H
.
Period
Used as a decimal point as well as internally by BASIC as a
line number control pointer. Line number values that change
constantly are stored in this way, for example, line numbers
in which errors were generated during program execution,
line numbers at which the program was halted by STOP or
END instructions, or line numbers when a new line number
is inserted.
Example LIST.
AUTO.
/
Slash
Division symbol.
:
Colon
Multi-statement delimiter
;
Semicolon
Delimiter
Example PRINT “@@@=” ; A
A PRINT X ; Y ; Z
INPUT “A=” ; A
<
Less-than sign