5 Basic Instruction
5.6 AND(...), OR(...)
72
FXCPU Structured Programming Manual
[Basic & Applied Instruction]
Function and operation explanation
1. AND(...)(Serial connection of circuit blocks)
AND (...) is an independent instruction not associated with any device number in the same way as the OR (...)
instruction described later.
When there are many parallel circuits, the AND (...) instruction can be used for each circuit block to connect
them.
2. OR(...)(Parallel connection of circuit blocks)
OR (...) is an independent instruction not associated with any device number in the same way as the AND (...)
instruction.
When there are many parallel circuits, the OR (...) instruction can be used for each circuit block to connect
them.
[Structured ladder/FBD]
X000 X002
OR instruction before AND (...) instruction
X001
X003
X004 X005
X006
X003
Parallel block
OR instruction after AND (...) instruction
LD
[ ST ]
Y007:= ((X000 OR X001) AND ((X002 AND X003) OR (NOT X004 AND X005) OR X006)) OR X003;
Y007
[Structured ladder/FBD]
X000 X001
X002 X003
X004 X005
Serial circuit block
[ ST ]
Y007:=(X000 AND X001) OR (X002 AND X003) OR (NOT X004 AND X005);
Y007