Denso RC5 Especificações Página 174

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 692
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 173
7-16
7.9 Expression and Operator
An expression is used to return a value. There are expressions that have an
independent value and expressions that are comprised of multiple elements
linked via operators. All data type values in the PAC language are expressed
with expressions.
If the operators described in the following sections are used, the operation in
the expression can be executed.
7.9.1 Assignment Operator
Use the assignment operator [=] in the assignment statement to assign
variables. A value the on right side of the assignment operator is assigned to
the left side.
In the assignment statement, use the following commands according to the
data type.
LET, LETA, LETF, LETJ, LETO, LETP, LETR, LETRX, LETRY, LETRZ, LETX,
LETY, LETZ
Since a command can be ignored only for the LET command used to assign a
numeric value variable, the following two expressions have the same meaning.
Example: LET I1 = 5 'Assigns 5 to I1.
I1 = 5 'Assigns 5 to I1.
7.9.2 Arithmetic Operator
Use the operators listed in Table 1-3 in arithmetic operations.
An operation is executed with the priority shown in the table.
Table 1-3 Arithmetic Operators
Arithmetic
operator
Operation description Operation priority
^
Exponential
(Exponentiation)Operation
High
-
Negative sign
*, /
Multiplication, division
MOD
Remainder
+, -
Addition, subtraction Low
Note (1): An error occurs in execution if division by 0 is executed.
Note (2): If a digit overflow occurs in addition or multiplication of
integers, the overflow figures are ignored. Note that an
error does not occur.
Example: I1 = 2147483647 + 1 '2147483647 is the maximum allowable
value of integer type variable.
If the above expression is executed, the result is
-2147483648.
-2147483648 is the minimum allowable value of integer type
variables.
Vista de página 173
1 2 ... 169 170 171 172 173 174 175 176 177 178 179 ... 691 692

Comentários a estes Manuais

Sem comentários