![background image](http://html1.mh-extra.com/html/omron/sysmac-cs-series/sysmac-cs-series_reference-manual_742030501.webp)
461
Symbol Math Instructions
Section 3-11
Flags
Precautions
When *(420) is executed, the Error Flag will turn OFF.
If as a result of the multiplication, the content of R 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 and R
is 1, the Negative Flag will turn ON.
Examples
When CIO 000000 is ON in the following example, D00100 and D00110 will
be multiplied as 4-digit signed hexadecimal values and the result will be out-
put to D00120.
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.
3-11-18 DOUBLE SIGNED BINARY MULTIPLY: *L(421)
Purpose
Multiplies 8-digit signed hexadecimal data and/or constants.
Ladder Symbol
Variations
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.
*
a
b
tmp[0]
MOV
tmp[0]
c
a * b
→
c
Function Block Variables
Multiplicand: a (data type: INT)
Multiplier: b (data type: INT)
Result: c (data type: INT)
Temporary variable: tmp (data type: WORD, 2-element array)
*L(421)
R
Md
Mr
Md
: 1st multiplicand word
Mr
: 1st multiplier word
R
: 1st result word
Variations
Executed Each Cycle for ON Condition
*L(421)
Executed Once for Upward Differentiation
@*L(421)
Executed Once for Downward Differentiation Not supported.
Immediate Refreshing Specification
Not supported.
Summary of Contents for SYSMAC CS Series
Page 2: ......
Page 4: ...iv ...
Page 30: ...xxx ...
Page 186: ...146 List of Instructions by Function Code Section 2 4 ...
Page 1320: ...1280 Model Conversion Instructions Unit Ver 3 0 or Later Section 3 35 ...
Page 1390: ...1350 CJ series Instruction Execution Times and Number of Steps Section 4 2 ...
Page 1391: ...1351 Appendix A ASCII Code Table ASCII SP Four leftmost bits Four rightmost bits ...
Page 1392: ...1352 ASCII Code Table Appendix A ...
Page 1404: ...1364 Revision History ...