Chapter 6 Instruction Details
XBC E-Type Main Unit 6-39 Ve r. 1
6.9.2 AND, AND NOT, ANDP, ANDN
Instruction
Step
P M K F L T C S Z D.x
R.x
U N D R
S O O O O O O O O - O O - O - - - 1/2
- - -
S O O O O O O O O - O O - O - - - 2
1) AND, AND NOT
(1) AND is A contact series-Connected instruction, and AND NOT is B contact series-connected instruction.
(2) AND or AND NOT operation of previous operation result and specified contact (S) is regarded as its result.
2) ANDP, ANDN
(1) ANDP is A contact series-connected instruction at Rising Pulse, and ANDN is B contact series-connected
instruction at Falling Pulse.
(2) Applicable contact changes when ANDP is at Rising Pulse and ANDN is at Falling Pulse, AND or AND NOT
operation of previous operation result and specified contact (S) is regarded as its result.
3) Program Example
(1) After Input Condition P00020 and P00021 is AND operated, its result and P00022 is AND NOT operated, will
be output in P00060. D00020.3 value and P00023 is ANDN operated, its result and P00024 is ANDP
operated to output in P00061.
[Ladder Program] [Mnemonic Program]
Remark
(1) AND/AND NOT Instruction if used with index formula increases the number of steps by 1.
0
4
P00021 P00022
D00020.3
P00020
P00023
P00024
P00060
P00061
N
P
Bit device’s contact / Word device’s bit contact
0 LOAD P00020
1 AND P00021
2 AND NOT P00022
3 OUT P00060
4 LOAD D00020.3
5 ANDP P00023
6 ANDN P00024