EasyManua.ls Logo

LS Industrial Systems XBC-E Series - Page 156

LS Industrial Systems XBC-E Series
542 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Chapter 6 Instruction Details
XBC E-Type Main Unit 6-39 Ve r. 1
6.9.2 AND, AND NOT, ANDP, ANDN
Instruction
Area Available
Step
Flag
P M K F L T C S Z D.x
R.x
Co
nst.
U N D R
Error
(F110)
Zero
(F111)
Carry
(F112)
AND
AND NOT
S O O O O O O O O - O O - O - - - 1/2
- - -
ANDP
ANDN
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
Operand
Description
Data Type
S
Bit devices contact / Word devices bit contact
BIT
AND S
AND NOT S
ANDP S
ANDN S
P
N
Step Mnemonic Operand
0 LOAD P00020
1 AND P00021
2 AND NOT P00022
3 OUT P00060
4 LOAD D00020.3
5 ANDP P00023
6 ANDN P00024
7 OUT P00061

Table of Contents

Related product manuals