EasyManua.ls Logo

Omron CP - PROGRAMMING MANUAL 05-2007 - Page 405

Omron CP - PROGRAMMING MANUAL 05-2007
1175 pages
Print Icon
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...
372
Symbol Math Instructions Section 3-10
Description *L(421) multiplies the signed 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.
Flags
Precautions When *L(421) is executed, the Error Flag will turn OFF.
If as a result of the multiplication, the content of R, R+1, R+2, R+3 is 0000
hex, the Equals Flag will turn ON.
If as a result of the multiplication, the content of the leftmost bit of R+1 is 1,
the Negative Flag will turn ON.
Examples When CIO 0.01 is ON in the following example, D201, D200 and D211, D210
will be multiplied as 8-digit signed hexadecimal values and the result will be
output to D220 to D223.
3-10-19 UNSIGNED BINARY MULTIPLY: *U(422)
Purpose Multiplies 4-digit unsigned hexadecimal data and/or constants.
Ladder Symbol
Index Registers ---
Indirect addressing
using Index Registers
,IR0 to ,IR15
–2048 to +2047 ,IR0 to –2048 to +2047 ,IR15
DR0 to DR15, IR0 to IR15
,IR0+(++) to ,IR15+(++)
,–(– –)IR0 to, –(– –)IR15
Area Md Mr R
R + 1 RR + 3 R + 2
×
Md + 1 Md
Mr + 1 Mr
(Signed binary)
(Signed binary)
(Signed binary)
Name Label Operation
Error Flag ER OFF
Equals Flag = ON when the result is 0.
OFF in all other cases.
Negative Flag N ON when the leftmost bit of the result is 1.
OFF in all other cases.
0.01
D200
D210
D220
*U(422)
R
Md
Mr
Md: Multiplicand word
Mr: Multiplier word
R: Result word

Table of Contents

Related product manuals