Instruction Set
3-7-30
AND WORD- ANDW(42)
Description
Example
Flags
3-7-31
OR WORD - ORW(43)
DR 10
CY
Second Subtraction
#
DR 10
CY
DR 10
CY
In the above case, the program would turn ON DR 1100 to indicate that the
value held in DR 10 is negative.
Ladder Symbol
ANDW(42)
I1
I2
R
When the execution condition is OFF, ANDW(42) is not executed. When the
execution condition is ON, ANDW(42) logically AND's the contents of I1 and
I2 bit-by-bit and places the result in R.
15
1
0
0
1
1
I1
15
0
1
0
1
0
I2
15
0
0
0
1
0
R
Indirectly addressed DR word is non-existent. (Content of *DR word
ER:
is not BCD, or the DR area boundary has been exceeded.)
EQ:
ON when the result is 0.
Ladder Symbol
ORW(43)
I1
I2
R
9989
(0089 + (10,000 – 0100))
1
(negative result)
0000
–9989
–0
0011
(0000 + (10,000 – 9989))
1
(negative result)
Operand Data Areas
I/O, work, dedicated (03 only), DR, LR, TC, #
I/O, work, dedicated (03 only), DR, LR, TC, #
R: Result word
Output bits, work bits, DR, LR
0
0
1
1
0
0
1
0
1
0
1
0
0
0
1
0
0
0
Operand Data Areas
I/O, work, dedicated (03 only), DR, LR, TC, #
I/O, work, dedicated (03 only), DR, LR, TC, #
Output bits, work bits, DR, LR
Section 3-7
I1: Input 1
I2: Input 2
00
1
1
0
0
1
00
1
0
1
0
1
00
1
0
0
0
1
I1: Input 1
I2: Input 2
R: Result word
105
Need help?
Do you have a question about the SYSMAC mini SP10 and is the answer not in the manual?