![Omron CVM1D Operation Manual Download Page 275](http://html1.mh-extra.com/html/omron/cvm1d/cvm1d_operation-manual_742532275.webp)
(417)
–BCL D00200 D00210 D00220
(415)
–BL D00100 D00110 D00120
0000
00
0000
01
–BL
0200
0120
D00100
TR0
0000
02
04 (CY)
A500
00
0021
(415)
04 (CY)
A500
1
–BL #00000000
D00100
D00100
(415)
2
00
0021
“–” display
270
–BCL Operation
When CIO 000001 is ON in the following example, the content of D00211 and
D00210 are subtracted from the content of D00201 and D00200, and the result
including the carry is output in eight-digit BCD to D00221 and D00220. CY is set
if the result is negative
Address
Instruction
Operands
00000
LD
000000
00001
–BL(415)
D00100
D00110
D00120
00002
LD
000001
00003
–BCL(417)
D00200
D00210
D00220
Program Example
Example: 9,583,960 – 17,072,641 = –7,488,681.
In this example, the eight-digit BCD content of CIO 0121 and CIO 0120 is sub-
tracted from the content of CIO 0201 and CIO 0200, and the result is output in
eight-digit BCD to D00101 and D00100. The result is negative, so the instruction
at (2) will be executed, and the true value will then be output to D00101 and
D00100.
The Carry Flag (A50004) will be turned ON, so the actual number is –7,488,681.
Because the content of D00101 and D00100 is negative, CY is used to turn ON a
self-holding bit that turns ON a bit indicating a negative value.
Address
Instruction
Operands
00000
LD
000002
00001
OUT
TR0
00002
–BL(415)
0200
0120
D00100
00003
LD
TR0
00004
AND
A50004
00005
–BL(415)
#00000000
D00100
D00100
00006
LD
TR0
00007
AND
A50004
00008
OR
002100
00009
OUT
002100
Symbol Math Instructions
Section 5-20
Summary of Contents for CVM1D
Page 462: ...SYSMAC CVM1D Duplex System Programmable Controllers Operation Manual Revised August 2001...
Page 463: ...iv...
Page 465: ...vi...