Omron SYSMAC CV Series Operation Manual page 295

Ladder diagrams
Hide thumbs Also See for SYSMAC CV Series:
Table of Contents

Advertisement

Symbol Math Instructions
0000
00
(415)
–BL D00100 D00110 D00120
0000
01
(417)
–BCL D00200 D00210 D00220
Program Example
0000
TR0
02
A500
04 (CY)
A500
04 (CY)
0021
00
–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
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.
(415)
–BL
0200
0120
D00100
(415)
–BL #00000000
D00100
D00100
0021
00
Address Instruction
00000
00001
00002
00003
Address Instruction
00000
1
00001
00002
2
"–" display
00003
00004
00005
00006
00007
00008
00009
Section 5-20
Operands
LD
000000
–BL(415)
D00100
D00110
D00120
LD
000001
–BCL(417)
D00200
D00210
D00220
Operands
LD
000002
OUT
TR0
–BL(415)
0200
0120
D00100
LD
TR0
AND
A50004
–BL(415)
#00000000
D00100
D00100
LD
TR0
AND
A50004
OR
002100
OUT
002100
283

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cv2000Cvm1Cv500Cv1000

Table of Contents