469
Symbol Math Instructions Section 3-11
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-22DOUBLE BCD MULTIPLY: *BL(425)
Purpose Multiplies 8-digit (double-word) BCD data and/or constants.
Ladder Symbol
Variations
Applicable Program Areas
Operand Specifications
*B
a
b
tmp[0]
MOV
tmp[0]
c
a * b → c
Function Block Variables
Multiplicand: a (data type: WORD)
Multiplier: b (data type: WORD)
Result: c (data type: WORD)
Temporary variable: tmp (data type: WORD, 2-element array)
*BL(425)
R
Md
Mr
Md: 1st multiplicand word
Mr: 1st multiplier word
R: 1st result word
Variations Executed Each Cycle for ON Condition *BL(425)
Executed Once for Upward Differentiation @*BL(425)
Executed Once for Downward Differentiation Not supported.
Immediate Refreshing Specification Not supported.
Block program
areas
Step program
areas
Subroutines Interrupt tasks
OK OK OK OK
Area Md Mr R
CIO Area CIO 0000 to CIO 6142 CIO 0000 to
CIO 6140
Work Area W000 to W510 W000 to W508
Holding Bit Area H000 to H510 H000 to H508
Auxiliary Bit Area A000 to A958 A448 to A956
Timer Area T0000 to T4094 T0000 to T4092
Counter Area C0000 to C4094 C0000 to C4092
DM Area D00000 to D32766 D00000 to
D32764
EM Area without bank E00000 to E32766 E00000 to
E32764
EM Area with bank En_00000 to En_32766
(n = 0 to C)
En_00000 to
En_32764
(n = 0 to C)