EasyManuals Logo

Mitsubishi Electric CR760-D User Manual

Mitsubishi Electric CR760-D
730 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #186 background imageLoading...
Page #186 background image
4-166 Operators
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 Table 4-12.) The operation result data type is as follows
according to the combination of the left argument and right argument data types.
Example) Left argument Operation Right argument Operation results
15
AND 256 15
(Numeric value type) (Numeric value type) (Numeric value type)
P1
* M1 P2
(Position type) (Numeric value type) (Position type)
M1
* P1
(Numeric value type) (Position type) Description error
Table 4-12:Table of data conversions according to operations
Reversal: Sign reversal, Negate: Logical negate, Substitute: Substitute operation, Remainder: Remainder
operation, Comparison: Comparison operation, Logic: Logical Operation (excluding logical negate).
Left argument
type
Operation
Left argument type
Character string
Numeric value
Position Joint
Integer Real number
Character
string
Substitution=
Addition +
Comparison (Compari-
son operators)
Character string
Character string
Integer
-
-
-
-
-
-
-
-
-
-
-
-
Integer
Addition +
Subtract -
Multiplication *
Division /
Integer division \
Remainder MOD
Exponent ^
Substitution =
Comparison (Compari-
son operators)
Logic (Logic operators)
-
-
-
-
-
-
-
-
-
-
Integer
Integer
Integer
Integer
Integer
Integer
Integer
Integer
Integer
Integer
Real number
Real number
Real number
Real number
Integer
Integer
Real number
Integer
Integer
Integer
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Real number
Addition +
Subtract -
Multiplication *
Division /
Integer division \
Remainder MOD
Exponent ^
Substitution =
Comparison (Compari-
son operators)
Logic (Logic operators)
-
-
-
-
-
-
-
-
-
-
Real number
Real number
Real number
Real number
Integer
Integer
Real number
Integer
Integer
Integer
Real number
Real number
Real number
Real number
Integer
Integer
Real number
Real number
Integer
Integer
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Position
Addition +
Subtract -
Multiplication *
Division /
Integer division \
Remainder MOD
Exponent ^
Substitution =
Comparison (Compari-
son operators)
Logic (Logic operators)
-
-
-
-
-
-
-
-
-
-
-
-
Position
Position
-
-
-
-
-
-
-
-
Position
Position
-
-
-
-
-
-
Position
Position
Position
Position
-
-
-
Position
-
-
-
-
-
-
-
-
-
-
-
-
Joint
Addition +
Subtract -
Multiplication *
Division /
Integer division \
Remainder MOD
Exponent ^
Substitution =
Comparison (Compari-
son operators)
Logic (Logic operators)
-
-
-
-
-
-
-
-
-
-
-
-
Joint
Joint
-
-
-
-
-
-
-
-
Joint
Joint
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Joint
Joint
-
-
-
-
-
Joint
-
-
Right argument
only (Single
arugument)
eversal -
Negate NOT
-
-
Integer
Integer
Integer
Integer
Position
-
Joint
-

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Mitsubishi Electric CR760-D and is the answer not in the manual?

Mitsubishi Electric CR760-D Specifications

General IconGeneral
BrandMitsubishi Electric
ModelCR760-D
CategoryController
LanguageEnglish

Related product manuals