7-24
Section
Logic Instructions
480
The complement of Wd will be calculated every cycle if the undifferentiated form
of COM(29) is used. Use the differentiated form (@COM(29)) or combine
COM(29) with DIFU(13) or DIFD(14) to calculate the complement just once.
1
0
0
1
1
0
0
1
1
0
0
1
1
0
0
1
0
1
1
0
0
1
1
0
0
1
1
0
0
1
1
0
15
00
15
00
Original
Complement
Flags
ER:
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.
7-24-2 LOGICAL AND – ANDW(34)
I1
: Input 1
IR, SR, AR, DM, HR, TC, LR, #
I2
: Input 2
IR, SR, AR, DM, HR, TC, LR, #
Ladder Symbols
Operand Data Areas
R
: Result word
IR, SR, AR, DM, HR, LR
ANDW(34)
I1
I2
R
@ANDW(34)
I1
I2
R
DM 6144 to DM 6655 cannot be used for R.
When the execution condition is OFF, ANDW(34) is not executed. When the
execution condition is ON, ANDW(34) logically AND’s the contents of I1 and I2
bit-by-bit and places the result in R.
1
0
0
1
1
0
0
1
1
0
0
1
1
0
0
1
15
00
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
0
0
1
0
0
0
1
0
0
0
1
0
0
0
1
15
00
15
00
I1
I2
R
Flags
ER:
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.
Precautions
Example
Limitations
Description
Example