7-21
Section
BCD Calculation Instructions
461
When the execution condition is OFF, MUL(32) is not executed. When the
execution condition is ON, MUL(32) multiplies Md by the content of Mr, and
places the result In R and R+1.
Md
Mr
R +1
R
X
When IR 00000 is ON with the following program, the contents of IR 013 and
DM 0005 are multiplied and the result is placed in HR 07 and HR 08. Example
data and calculations are shown below the program.
MUL(32)
013
DM 0005
HR 07
00000
R+1: HR 08
R: HR 07
0
0
0
8
3
9
0
0
Md: IR 013
3
3
5
6
Mr: DM 0005
0
0
2
5
X
Address
Instruction
Operands
00000
LD
00000
00001
MUL(32)
013
DM
0005
HR
07
Flags
ER:
Md and/or Mr is not BCD.
Indirectly addressed DM word is non-existent. (Content of
*
DM word is
not BCD, or the DM area boundary has been exceeded.)
CY:
ON when there is a carry in the result.
EQ
:
ON when the result is 0.
7-21-6
BCD DIVIDE – DIV(33)
Dd
: Dividend word (BCD)
IR, SR, AR, DM, HR, TC, LR, #
Ladder Symbol
Dr
: Divisor word (BCD)
IR, SR, AR, DM, HR, TC, LR, #
Operand Data Areas
DIV(33)
Dd
Dr
R
R
: First result word (BCD)
IR, SR, AR, DM, HR, LR
R and R+1 must be in the same data area. DM 6144 to DM 6655 cannot be used
for R.
Description
Example
Limitations
Содержание SRM1 - PROGRAMING 02-2001
Страница 1: ...Programmable Controllers Cat No W353 E1 06 SYSMAC CPM1 CPM1A CPM2A CPM2C SRM1 V2 PROGRAMMING MANUAL ...
Страница 2: ...CPM1 CPM1A CPM2A CPM2C SRM1 V2 Programmable Controllers Programming Manual Revised February 2008 ...
Страница 3: ...iv ...
Страница 5: ...vi ...
Страница 9: ...x ...
Страница 15: ...xvi ...