![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.
Содержание SYSMAC CS Series
Страница 2: ......
Страница 4: ...iv ...
Страница 30: ...xxx ...
Страница 186: ...146 List of Instructions by Function Code Section 2 4 ...
Страница 194: ...154 3 35 4 MOVE BIT MOVBC 568 1273 3 35 5 BIT COUNTER BCNTC 621 1275 3 35 6 GET VARIABLE ID GETID 286 1277 ...
Страница 1320: ...1280 Model Conversion Instructions Unit Ver 3 0 or Later Section 3 35 ...
Страница 1390: ...1350 CJ series Instruction Execution Times and Number of Steps Section 4 2 ...
Страница 1391: ...1351 Appendix A ASCII Code Table ASCII SP Four leftmost bits Four rightmost bits ...
Страница 1392: ...1352 ASCII Code Table Appendix A ...
Страница 1404: ...1364 Revision History ...