Remote-processing BASIC 52 Manuel d'utilisateur Page 7

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 163
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 6
RPBASIC-52 PROGRAMMING GUIDE
1-4
Variables and Con stants
More than 25,000 unique variable or constant names
may be defined. Names may be up to eight
characters in length and must begin with a letter
between A -Z (no numbers or special chara cters).
The rest of the name may contain numbers or letters
and include the underline character.
All numeric variables are floating point. Variables
cannot be declared as inte ger or double precision.
RPBASIC-52 supports eight digits plus sign and
exponent. Extra digits are simply discarded. The
range of valid values is ± 1E-127 to
±0.99999999E+127.
Names are identified by the first and last characters
and its length. Identical length names with identical
first and last characte rs are considered the same.
PUM P_42 and PRIM ER2 are considered the same.
The way to correct this is to change the nam e length
or first or last character.
Variable names longer than two characters require
more time to process. Once a variable name is
declared, it can only be erased by the CLEAR
statement or by LOADing in a new program.
It is possible to have variable names longer than 8
characters. A problem is the name length is stored
partly as a modulo 256 number. What it boils down
to is a variable may or may not be recognized as
unique. The Basic considers FEED_BIN_01 and
FEED_BIN_11 as the same variable.
The original B ASIC-5 2 had a bug where the variable
name 'F' was erased if it was the last letter in a
variable followed by a space. RPBASIC-52
corrected this.
Watch out for comm ands embedded in variable
names. FO RM_5 con tains the com mand FOR. A
BAD SYNTAX error is usually returned in these
instances. The statement FORM_5=BOTTOM does
not return an error but interprets it as
FOR M_5=BOT TO M
The key is to look at your statem ents as they are
printed on the screen and make sure they are what
you intended.
Valid variables names are:
CA5, DA15_679, PUMP_A, VALVE02, A(10),
SIZE(5), ABC_
Invalid variables, which may include embedded
commands include:
4C, C$0, GOTOE, FORM, #XYZ, _ABC
Constants are literal values. These are "known"
values as opposed to variables which can be
assigned any value, usually by a function. Constants
may be numeric or string. To RPBASIC, there is no
difference between the two.
Constants are expressed as integer, decimal,
hexadecimal or exponential floating-point. The
range of valid values are:
± 1E-127 to ± .99999999e+127
Using constants instead of a number speeds up
execution by at least 5%. For exam ple, use
10 CH = 5
20 A = AIN(CH)
instead of
20 A = AIN(5)
Variables and constants are expressed as follows:
A = 5 Integer format
A = 5.3 Decimal format
A = 0ACH Hexadecimal format
A = 1.4E3 Exponential
RPBASIC-52 supports eight significant digits plus
and exponen t and truncate s any extra digits.
Hexadecimal constants with a leading alpha
character must be preceded by a leading zero. If you
fail to do this, RPBASIC-52 interprets them as
variable nam es.
All hexadecimal constants are followed by a trailing
"H" (0FFH for exam ple). A "0" prefix is necessary
when the first num ber is a letter (A -F).
Certain logic al operators, su ch as .N OT., .A ND.,
.XOR., and .OR., assume a 16-bit argument such as
0FFFFH. If you supply fewer than 16 bits, it returns
a 16-bit value based on the assumption the
unsupplied most significant bits are zero.
Subroutines
Use of subroutines tends to make programming
more modular and easier to follow. The number of
Vue de la page 6
1 2 3 4 5 6 7 8 9 10 11 12 ... 162 163

Commentaires sur ces manuels

Pas de commentaire

LG OLED65C7Y manuals

Owner’s manuals and user’s guides for Unknown LG OLED65C7Y.
We providing 2 pdf manuals LG OLED65C7Y for download free by document types: User Manual






More products and manuals for Unknown LG

Models Document Type
L1950H-GN User Manual   LG L1950H-GN دليل المالك, 22 pages
50PB560B User Manual LG 50PB560B,50PB56000GI دفترچه ی راهنما, 46 pages
PSF1032A User Manual   LG PSF1032A Owner’s Manual, 20 pages
GR-G277STW User Manual   LG GR-G277STW manuel du propriétaire [el] , 31 pages
43UF640T User Manual LG 43UF640T,49UF640T دفترچه ی راهنما, 44 pages
MF-FM33S1K User Manual   LG MF-FM33S1K Owner’s Manual, 58 pages
FH6G1BCHK6N User Manual   LG FH6G1BCHK6N,FH6G1BCHK6N-F8K5XNK4 manuel du propriétaire, 108 pages
MF-PE500N6W User Manual   LG MF-PE500N6W Owner’s Manual, 27 pages
LHD427 User Manual   LG LHD427 دليل المستخدم [en] , 4 pages
OK75 User Manual   LG OK75 manuel du propriétaire, 4 pages
LWC186NBAB3 User Manual   LG LWC186NBAB3 Owner’s Manual [en] , 23 pages
84LM9600 User Manual   LG 84LM9600 Owner's manual, 177 pages
PS-S200WC User Manual   LG PS-S200WC دليل المالك, 28 pages
WF-T1235TP User Manual   LG WF-T1235TP Owner’s Manual, 36 pages
LAS550H User Manual   LG LAS550H دليل المالك, 4 pages
CJ44 User Manual   LG CJ44 دليل المستخدم, 16 pages
ARNU07GB1G2.ENWALEU User Manual   LG ARNU12GB1G2.ENWALEU,ARNU07GB1G2.ENWALEU manuel du propriétaire [fr] , 13 pages
KD-824ST User Manual LG KD-C704S,KD-824ST,KD-824SW دفترچه ی راهنما [en] [ja] [zh] , 41 pages
LF25RLTS-LF25FLTS User Manual LG LF25RLTS,LF25RTS,LF25RLTS-LF25FLTS دفترچه ی راهنما, 24 pages
LHD457 User Manual   LG LHD457 دليل المالك, 44 pages