Signed Binary Divide - Dbs - Omron CQM1H - PROGRAM Programming Manual

Programmable controllers; inner boards
Table of Contents

Advertisement

Binary Calculation Instructions
Description
Flags
Example
00000
X
R+3: LR 04
F
F
F
5-22-9 SIGNED BINARY DIVIDE – DBS(––)
Limitations
336
MBSL(––) multiplies the 32-bit (8-digit) signed binary data in Md+1 and Md
with the 32-bit signed binary data in Mr+1 and Mr, and outputs the 16-digit
signed binary result to R+3 through R.
Note Refer to 1-7 Calculating with Signed Binary Data for more details.
ER:
Indirectly addressed EM/DM word is non-existent.
(Content of *EM/*DM word is not BCD, or the EM/DM area boundary
has been exceeded.)
EQ:
ON when the result is zero (content of R+3 through R all zeroes), oth-
erwise OFF.
In the following example, MBSL(––) is used to multiply the signed binary con-
tents of IR 101 and IR 100 with the signed binary contents of DM 0021 and
DM 0020 and output the result to LR 24 through LR 01.
Md+1: IR 101
0
Mr+1: DM 0021
F
R+2: LR 03
R+1: LR 02
F
F
F
7
D
F
Ladder Symbols
DBS(−−)
Dd
Dr
R
DM 6143 to DM 6655 cannot be used for R.
Md + 1
x
R + 3
R + 2
Address Instruction
MBSL(−−)
00000
100
00001
DM 0020
LR 01
Md: IR 100
0
0
8
7
9
3
Mr: DM 0020
F
F
0
A
8
1
R: LR 01
C
A
5
4
5
F
IR, SR, AR, DM, EM, HR, TIM/CNT, LR, #
@DBS(−−)
Dd
IR, SR, AR, DM, EM, HR, TIM/CNT, LR, #
Dr
R
Section 5-22
Md
Mr + 1
Mr
R + 1
R
Operands
LD
MBSL(−−)
DM
LR
8
(555,320)
2
(−1,005,550)
0
(−55,840,206,000)
Operand Data Areas
Dd: Dividend word
Dr: Divisor word
R: First result word
IR, SR, AR, DM, EM, HR, LR
00000
100
0020
21

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sysmac cqm1h seriesSysmac cqm1h-cpu series

Table of Contents