Mitsubishi QD51 Programming Manual page 24

Logic controller
Hide thumbs Also See for QD51:
Table of Contents

Advertisement

2 THE BASICS OF AD51H-BASIC
Special Symbol
Space
!
Exclamation
"
Double quotation mark
#
Number sign
$
Dollar sign
%
Percent sign
&
Ampersand
'
Apostrophe
(
Left parenthesis
)
Right parenthesis
*
Asterisk
+
Plus sign
,
Comma
-
Negative sign, minus,
hyphen
.
Period
/
Slash
:
Colon
;
Semicolon
<
Less-than sign
2 - 7
The special characters have the following meanings in BASIC statements.
Name
Used to separate instructions and parameters.
Indicates single-precision type.
Symbols for enclosing a character string.
File number symbol, indicates double-precision type.
Indicates character type.
Indicates integer type.
Specifies character format.
Comment delimiter
Multiplication symbol
Positive symbol, addition symbol, character string addition
symbol
Delimiter
INPUT A, B
Example
PRINT X, Y, Z
DATA 10, 13, 91, 4
Negative sign, subtraction symbol.
Used to specify a range of lines in instructions such as LIST
and DELETE.
LIST 100-300
Example
DELETE 1000-3000
DEFDBL A-H
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.
LIST.
Example
AUTO.
Division symbol.
Multi-statement delimiter
Delimiter
PRINT "@@@=" ; A
Example
A PRINT X ; Y ; Z
INPUT "A=" ; A
MELSEC-Q
Meaning
2 - 7

Advertisement

Table of Contents
loading

This manual is also suitable for:

Ad51h-s3Qd51-r24A1sd51s

Table of Contents