EasyManua.ls Logo

Omron CJ - INSTRUCTIONS

Omron CJ - INSTRUCTIONS
1308 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...
373
3. Instructions
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Symbol Math Instructions
3
*U/*UL
Function
z *U
*U(420) multiplies the binary values in Md and Mr and outputs the result to R, R+1.
z *UL
*UL(423) multiplies the unsigned binary values in Md and Md+1 and Mr and Mr+1 and outputs the
result to R, R+1, R+2, and R+3.
Example Programming
z Example in Function Block Definition
In the following example, an array variable is used to get the result from the function block as one word.
×
R+1
Md
Mr
(Unsigned binary)
(Unsigned binary)
(Unsigned binary)R
×
R + 1 RR + 3 R + 2
Md + 1 Md
Mr + 1 Mr
(Unsigned binary)
(Unsigned binary)
(Unsigned binary)
*U
D100
D110
D120
0.00
When CIO 0.00 is ON in the following example, D100
and D110 will be multiplied as 4-digit unsigned binary
values and the result will be output to D121 and D120.
*UL
D100
D110
D120
0.00
When CIO 0.00 is ON in the following example, D100, D110,
D111, and D110 will be multiplied as 8-digit unsigned binary
values and the result will be output to D123, D122, D121,
and D120.
a * b c
*U
a
b
tmp[0]
MOV
tmp[0]
c
Function Block Variables
Multiplicand: a (data type: UINT)
Multiplier: b (data type: UINT)
Result: c (data type: UINT)
Temporary variable: tmp (data type: WORD, 2-element array)

Table of Contents

Related product manuals