Four Fundamental Operators, Assignment Operator (+, -, *, /, Mod, =) - Mitsubishi Electric Q172CPU Programming Manual

Melsecq series motion controller sv43
Hide thumbs Also See for Q172CPU:
Table of Contents

Advertisement

7 MOTION PROGRAMS FOR POSITIONING CONTROL

7.16.4 Four fundamental operators, assignment operator (+, -, *, /, MOD, =)

Code
+, -, *, /, MOD, =
Four fundamental operators,
Function
assignment operator
n
1
Format
[Explanation]
Operator
n2 ;
(1) Calculation of the specified operator is performed.
(2) The priority of operations is in order of function, multiplication type operation and
addition type operation.
#@100 = #@110 + #@120 * SIN [#@130] ;
(3) The area of operation where you want to give priority can be enclosed in [ ].
[ ] can be five levels deep including [ ] of a function. An operational expression
may be described in up to 72 characters. (Up to the maximum number of
characters in one block)
#@100 = SQRT [ [ [#@110 - #@120] * SIN [#@130] + #@140] * #@150] ;
(4) For +, -, * and /, the operation result type is used for operation. Operation data 1, 2
are converted into the operation result type. The operation result can be the 16-,
32- or 64-bit type.
Operation result = operation data 1
Operation result
is stored
Addition (+), subtraction (-), multiplication (*), division (/),
remainder (MOD) and assignment (=) are executed.
Numerical value or variable
Operator (+, -, *, /, MOD,=)
Numerical value or variable
First level
Operation is performed after conversion of operation data
1, 2 into operation result type.
7 - 136
1) Function
2) Multiplication type operation
3) Addition type operation
Second level
operator
operation data 2
Third
level

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Q173cpuQ172cpunQ173cpun

Table of Contents