EasyManua.ls Logo

Inovance H3U Series - Page 526

Inovance H3U Series
737 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
Loading...
525
7
7 Motion Control
MMOV: Value assignment; MADD, MSUB, MMUL, MDIV: Addition, subtraction, multiplication, and division
Operands
Parameter Bit Element Word Element Immediate Operand
1 M SM D DD DE R RR RE SD SDD SDE K KK H HH E
2 M SM D DD DE R RR RE SD SDD SDE K KK H HH E
3 M SM D DD DE R RR RE SD SDD SDE K KK H HH E
Note: The elements in gray background are supported.
Functions and actions
MMOV is used for value assignment.
MADD, MSUB, MMUL, and MDIV are used for addition, subtraction, multiplication, and division operations
respectively.
Note
1) MMOV, MADD, MSUB, MMUL, and MDIV support only D, R, SD, K, H, and E. They do not support
bit elements, word elements (for example, KnX) which are combination of bit elements, or address
indexing.
2) Function words are omitted in MMOV, MADD, MSUB, MMUL, and MDIV.
3) MMOV, MADD, MSUB, MMUL, and MDIV support the combination of 16-bit integers, 32-bit integers,
and oating-point numbers for computation.
Application
The MMOV instruction is used to assigns the value of a oating-point number to a 32-bit integer.
The 16-bit integer is added by 1.
The value of the oating-point number minus 10 is assigned to a 32-bit integer.
The 16-bit integer is multiplied by the oating-point number, and the result is assigned to a 32-bit integer.
The value is divided by an integer, and the result is assigned to a 16-bit integer.

Table of Contents

Other manuals for Inovance H3U Series

Related product manuals