Operators - Mitsubishi Electric CR750-Q Instruction Manual

Cr750/cr751/cr760 series
Hide thumbs Also See for CR750-Q:
Table of Contents

Advertisement

4MELFA-BASIC V

4.9 Operators

The value's real number or integer type do not need to be declared. Instead, the type may be forcibly con-
verted according to the operation type. (Refer to
according to the combination of the left argument and right argument data types.
Example)
(Numeric value type)
(Numeric value type)
Table 4-12:Table of data conversions according to operations
Left argument
type
Substitution=
Character
Addition +
string
Comparison (Compari-
son operators)
Addition +
Subtract -
Multiplication *
Division /
Integer division \
Integer
Remainder MOD
Exponent ^
Substitution =
Comparison (Compari-
son operators)
Logic (Logic operators)
Addition +
Subtract -
Multiplication *
Division /
Integer division \
Real number
Remainder MOD
Exponent ^
Substitution =
Comparison (Compari-
son operators)
Logic (Logic operators)
Addition +
Subtract -
Multiplication *
Division /
Integer division \
Remainder MOD
Position
Exponent ^
Substitution =
Comparison (Compari-
son operators)
Logic (Logic operators)
Addition +
Subtract -
Multiplication *
Division /
Integer division \
Remainder MOD
Joint
Exponent ^
Substitution =
Comparison (Compari-
son operators)
Logic (Logic operators)
Right argument
eversal -
Negate NOT
only (Single
arugument)
Reversal: Sign reversal, Negate: Logical negate, Substitute: Substitute operation, Remainder: Remainder
operation, Comparison: Comparison operation, Logic: Logical Operation (excluding logical negate).
4-166 Operators
Left argument
Operation
15
AND
P1
(Position type)
M1
Operation
Character string
Character string
Character string
Integer
Table
4-12.) The operation result data type is as follows
Right argument
256
(Numeric value type) (Numeric value type)
*
M1
(Numeric value type)
*
P1
(Position type)
Left argument type
Numeric value
Integer
Real number
-
-
-
-
Integer
Real number
-
Integer
Real number
-
Integer
Real number
-
Integer
Real number
-
Integer
-
Integer
-
Integer
Real number
-
Integer
-
Integer
-
Integer
-
Real number
Real number
-
Real number
Real number
-
Real number
Real number
-
Real number
Real number
-
Integer
-
Integer
-
Real number
Real number
-
Integer
Real number
-
Integer
-
Integer
-
-
-
-
-
Position
-
Position
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Joint
-
Joint
-
-
-
-
-
-
-
-
-
-
-
-
-
Integer
-
Integer
Operation results
15
P2
(Position type)
Description error
Position
-
-
-
-
-
-
-
-
-
-
Integer
-
Integer
-
-
Integer
-
Integer
-
Integer
-
-
-
-
-
Integer
-
Integer
-
-
-
Integer
-
Integer
-
-
Position
-
Position
Position
Position
Position
Position
-
-
-
-
-
-
-
Position
-
-
-
-
-
-
-
-
Joint
-
Joint
-
-
-
-
-
-
-
-
-
-
-
-
-
Integer
Position
Integer
-
Joint
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Joint
Joint
-
-
-
-
-
Joint
-
-
Joint
-

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cr750Cr751-qCr751-dCr760-dCr760-qCr750-d

Table of Contents