Programming Logical Instructions in A Function Block Diagram
Programming Logical Instructions in A Function Block Diagram
Block Diagram
Logical Instructions in an FBD.
Logical instructions, are instructions that perform an event based on their BOOL value which will be either
a zero or a one. Examples are shown below.
The BAND instruction can examine up to 8 inputs but you can select how
many you wish to use. All inputs used must be True to give an output.
The BOR instruction can examine up to 8 inputs but you can select how
many you wish to use. One or more of the inputs used must be True to give
an output.
The illustration on the left, shows the Parameters window
for the BAND. You can see that it is possible to have up to
8 inputs. Exactly the same applies for the BOR.
The BXOR instruction will switch on the output if one of the 2 inputs are
true. If both inputs are true, the output will switch off.
The SETD is an instruction with set and reset inputs. If the set is On, the
output will come on. If the reset is then switched on, the output will stay
On. Only if the Set is switched off and the Reset is switched on will the
output switch off.
The RESD is an instruction with set and reset inputs. If the set is On, the
output will come on. If the reset is then switched on, the output will switch
Off even though the Set is still On. Only if the Reset is switched off and
the Set is switched on, will the output switch on again.
The OSRI instruction works similar to the ONS in Ladder. When
the input switches on, the Output will come on for 1 scan only. It
will only switch on again the next time that the Input changes from
False to True.
The OSFI instruction works opposite to the OSRI. When the input
switches off, the Output will come on for 1 scan only. It will only
switch on again the next time that the Input changes from True to
False.
These instructions can be used to latch and unlatch latch instructions. And perform
calculations