Rockwell-automation 57C610 Enhanced Basic Language, AutoMax Bedienungsanleitung Seite 35

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 146
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 34
5Ć3
BASIC evaluates expressions enclosed in parentheses before the
operator immediately outside the parentheses, even when the
operator enclosed in parentheses is on a lower precedence level
than the operator outside the parentheses. In the statement A = B*
(C - D), BASIC evaluates the (C - D) first, and then multiplies B by
the result of (C - D).
BASIC will still evaluate other expressions before those in
parentheses if the other expressions come first in the statement and
have a higher precedence. In the statement below, however, the
parenthetical expression occurs later in the overall expression. The
exponentiation operation is performed first (before the parentheses)
because it is encountered first in the leftĆtoĆright evaluation and, at
the time it is encountered, is a higher precedence than any operator
before it.
BASIC evaluates the expression A = B - C**5 + (X*(Z - 17)), in
the following sequence:
C% Exponentiation
B - C
% Subtraction with first term
Z - 17
Innermost parenthetical expression
X * (Z - 17)
Next level of parentheses
[B - C
%
] + [X*(Z - 17)]
Combination of the two expressions
Arithmetic mixing of both single and double precision integers along
with real variables and constants is permitted in a BASIC statement.
The rules regarding truncation and the maximum size integerĆtoĆreal
conversion still apply.
The following are valid arithmetic mixing examples:
20 GAIN = MOTOR_SPEED%*(OLDGAIN!*13.8876)
or
20 GAIN! = GAIN! + REFERENCE%
The following example could cause an overflow if the resultant value
is larger than 16 bits of precision. In such a case, the largest
possible single positive or negative integer would be loaded into the
variable GAIN%. The program would continue to run, and an error
would be logged to notify the user of the problem.
20 GAIN% = REFERENCE! + GAIN%
 
BASIC provides three operations for use with string expressions.
These are the assignment operation (=), the concatenation
(addition of strings) operation (+), and the equality/inequality
comparison operations (=, < >, or > < ).
By using the assignment operator, you can equate or assign one
string variable or constant to another string variable. In the
statement below, the character sequence THIS IS A MESSAGE" is
assigned to the string variable C$:
C$ = THIS IS A MES
SAGE"
The concatenation operator (+) combines string variables and
constants to form a new string expression:
C$ = HI" + B$ + D$ + STRING"
Seitenansicht 34
1 2 ... 30 31 32 33 34 35 36 37 38 39 40 ... 145 146

Kommentare zu diesen Handbüchern

Keine Kommentare

Verilink S Lite (34-00297.2) Product Manual manuals

Owner’s manuals and user’s guides for Computer hardware Verilink S Lite (34-00297.2) Product Manual.
We providing 1 pdf manuals Verilink S Lite (34-00297.2) Product Manual for download free by document types: User Manual






More products and manuals for Computer hardware Verilink

Models Document Type
QUAD T1 (880-503345-001) Product Manual User Manual   Verilink QUAD T1 (880-503345-001) Product Manual User Manual, 57 pages
QUAD/IMUX (880-502392-001) Product Manual User Manual   Verilink QUAD/IMUX (880-502392-001) Product Manual User Manual, 91 pages
Red Zone Encryption (REMS) (880-502423-001) Produc User Manual   Verilink Red Zone Encryption (REMS) (880-502423-001) Product Manual User Manual, 97 pages
SNMP Management (No Part Number) Product Manual User Manual   Verilink SNMP Management (No Part Number) Product Manual User Manual, 14 pages
SCC 2020 (880-503268-001) Product Manual User Manual   Verilink SCC 2020 (880-503268-001) Product Manual User Manual, 77 pages
SCC 2130 (880-503282-001) Product Manual User Manual   Verilink SCC 2130 (880-503282-001) Product Manual User Manual, 73 pages
SCM (880-503300-001) Product Manual User Manual   Verilink SCM (880-503300-001) Product Manual User Manual, 83 pages
T Lite (34-00292.2) Product Manual User Manual   Verilink T Lite (34-00292.2) Product Manual User Manual, 18 pages
T1 ESF CSU (34-00309.B) Product Manual User Manual   Verilink T1 ESF CSU (34-00309.B) Product Manual User Manual, 24 pages
TS 2000 (880-502215-001) Product Manual User Manual   Verilink TS 2000 (880-502215-001) Product Manual User Manual, 27 pages
TAC 2130 S/T (880-503296-001) Product Manual User Manual   Verilink TAC 2130 S/T (880-503296-001) Product Manual User Manual, 61 pages
T1 Access Router (34-00327) Product Manual User Manual   Verilink T1 Access Router (34-00327) Product Manual User Manual, 197 pages
WANsuite 5130 (34-00298.L) Product Manual User Manual   Verilink WANsuite 5130 (34-00298.L) Product Manual User Manual, 263 pages
WANsuite 5165 (34-00301.H) Product Manual User Manual   Verilink WANsuite 5165 (34-00301.H) Product Manual User Manual, 235 pages
WANsuite 5330 (34-00302.F) Product Manual User Manual   Verilink WANsuite 5330 (34-00302.F) Product Manual User Manual, 135 pages
WANsuite 5230 (34-00304.F) Product Manual User Manual   Verilink WANsuite 5230 (34-00304.F) Product Manual User Manual, 233 pages
WANsuite 5650 (34-00314.E) Product Manual User Manual   Verilink WANsuite 5650 (34-00314.E) Product Manual User Manual, 68 pages
WANsuite 5370 (34-00310.D) Product Manual User Manual   Verilink WANsuite 5370 (34-00310.D) Product Manual User Manual, 235 pages
WANsuite 6x30 (34-00315.B) Product Manual User Manual   Verilink WANsuite 6x30 (34-00315.B) Product Manual User Manual, 181 pages
WANsuite 6450 (34-00326) Product Manual User Manual   Verilink WANsuite 6450 (34-00326) Product Manual User Manual, 205 pages