Operators - Mitsubishi MELFA CR1D Instruction Manual

Table of Contents

Advertisement

4.7 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)
Left argument
(Numeric value type)
(Position type)
(Numeric value type)
Table 4-11:Table of data conversions according to operations
Left argument
type
Substitution=
Character
Addition +
string
Comparison (Compari-
son operators)
Addition +
Substract -
Multiplication *
Division /
Integer division \
Integer
Remainder MOD
Exponent ^
Substitution =
Comparison (Compari-
son operators)
Logic (Logic operators)
Addition +
Substract -
Multiplication *
Division /
Integer division \
Real number
Remainder MOD
Exponent ^
Substitution =
Comparison (Compari-
son operators)
Logic (Logic operators)
Addition +
Substract -
Multiplication *
Division /
Integer division \
Remainder MOD
Position
Exponent ^
Substitution =
Comparison (Compari-
son operators)
Logic (Logic operators)
Addition +
Substract -
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).
Operation
15
AND
P1
*
M1
*
Operation
Character string
Character string
Character string
Integer
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Table
4-11.) The operation result data type is as follows
Right argument
256
(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
Integer
Integer
Integer
Integer
Integer
Integer
Integer
Integer
Integer
Real number
Real number
Real number
Real number
Real number
Real number
Real number
Real number
Integer
Integer
Integer
Integer
Integer
Real number
Integer
Real number
Integer
Integer
Integer
Integer
-
-
Position
Position
Position
Position
-
-
-
-
-
-
-
-
Joint
Joint
Joint
Joint
-
-
-
-
-
-
Integer
Integer
Integer
Integer
4MELFA-BASIC IV
Operation results
15
(Numeric value type)
P2
(Position type)
Description error
Position
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Position
-
Position
Position
Position
-
-
-
-
-
-
-
Position
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Position
-
Joint
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Joint
Joint
-
Joint
-
-
-
Joint
-
-
Joint
-
Operators 4-150

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melfa cr2dMelfa cr3d

Table of Contents