Omron SYSMAC C200HS Operation Manual page 235

Programmable controllers
Hide thumbs Also See for SYSMAC C200HS:
Table of Contents

Advertisement

Binary Calculations
Precautions
Flags
Example
00000
5-20-5 DOUBLE BINARY ADD – ADBL(––)
Limitations
Description
DVB(53) cannot be used to divide signed binary data. Use DBS(––) instead. Re-
fer to 5-20-9 SIGNED BINARY DIVIDE – DBS(––) for details.
ER:
Dr contains 0.
Indirectly addressed DM word is non-existent. (Content of :DM word is
not BCD, or the DM area boundary has been exceeded.)
EQ:
ON when the result is 0.
DVB(53)
Ladder Symbols
ADBL(––)
@ADBL(––)
Au
Ad
R
Au and Au+1 must be in the same data area, as must Ad and Ad+1, and R and
R+1.
When the execution condition is OFF, ADBL(––) is not executed. When the ex-
ecution condition is ON, ADBL(––)) adds the eight-digit contents of Au+1 and
Au, the eight-digit contents of Ad+1 and Ad, and CY, and places the result in R.
CY will be set if the result is greater than FFFF FFFF.
Au + 1
Ad + 1
+
CY
R + 1
Address Instruction
00000
00001
001
LR 20
HR 05
Dd: IR 001
1
0
Dr: LR 20
0
0
R+1: HR 06
R: HR 05
0
0
0
2
0
5
Remainder (2)
Quotient (1447)
Au
Ad
R
Au
Ad
CY
R
Section 5-20
Operands
LD
DVB(53)
LR
HR
F
7
0
3
A
7
Operand Data Areas
Au: First augend word (binary)
IR, SR, AR, DM, HR, LR
Ad: First addend word (binary)
IR, SR, AR, DM, HR, LR
R: First result word
IR, SR, AR, DM, HR, LR
00000
001
0020
05
225

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents