102
If the content of CB or the table data are changed during execution, execu-
tion will continue with the new values.
ER: Indirectly addressed DM word is non-existent. (Content of *DM word
is not BCD, or the DM area boundary has been exceeded.)
The following example shows the comparisons made and the results pro-
vided for BCMP(34). Here, the comparison is made during each scan when
0000 is ON. The rightmost digit of CB (DR 00) is 5, so the comparison block
is CB+1 to CB+(2N+2) or DR 01 to DR 12.
CB: DR 00 Lower limits Upper limits R: 01
DR 00 0005 DR 01 0000 DR 02 0100 0100 0
DR 03 0101 DR 04 0200 0101 0
DR 05 0201 DR 06 0300 0102 1
CD: 02 DR 07 0501 DR 08 0600 0103 0
DR 09 1401 DR 10 1500 0104 0
02 0210 DR 11 1501 DR 12 1600 0105 0
BCMP(34)
02
DR 00
01
00000
Comparison block: CB+1 to
CB+(2N+2) or DR 01 to DR12.
Address Instruction Operands
000 LD 0000
001 BCMP(34)
02
DR 00
01
Compare data in 02
(which contains 0210).
3-7-27 CLEAR CARRY - CLC(44)
Ladder Symbol
CLC(44)
When the execution condition is OFF, CLC(44) is not executed.When the ex-
ecution condition is ON, CLC(44) turns OFF CY (0312).
3-7-28 BCD ADD - ADD(40)
Au: Augend word (BCD)
I/O, work, dedicated (03 only), DR, LR, TC, #
Ad: Addend word (BCD)
I/O, work, dedicated (03 only), DR, LR, TC, #
Ladder Symbol
Operand Data Areas
R: Result word
Output bits, work bits, DR, LR
ADD(40)
Au
Ad
R
When the execution condition is OFF, ADD(40) is not executed. When the
execution condition is ON, ADD(40) adds the contents of Au, Ad, and CY,
and places the result in R. CY will be set if the result is greater than 9999.
Flags
Example
Description
Instruction Set Section 3-7