Programming options
5.3 Powerful and easy-to-use instruction set
Easy Book
60
Manual, 05/2009, A5E02486774-01
AND box (FBD)
OR box (FBD)
XOR box (FBD)
●
All inputs of an AND box must be TRUE for the output to be TRUE.
●
Any input of an OR box must be TRUE for the output to be TRUE.
●
An odd number of the inputs of an XOR box must be TRUE for the output to be TRUE.
In FBD programming, the contact networks of LAD are represented by AND (&), OR (>=1),
and exclusive OR (x) box networks where you can specify bit values for the box inputs and
outputs. You may also connect to other logic boxes and create your own logic combinations.
After the box is placed in your network, you can drag the "Insert binary input" tool from the
"Favorites" toolbar or instruction tree and then drop it onto the input side of the box to add
more inputs. You can also right-click on the box input connector and select "Insert input".
Box inputs and output can be connected to another logic box, or you can enter a bit address
or bit symbol name for an unconnected input. When the box instruction is executed, the
current input states are applied to the binary box logic and, if true, the box output will be true.
Compare instructions
You use the compare instructions to compare two values of the same data type. When the
comparison is TRUE, the contact is activated (LAD) or the box output is TRUE (FBD).
LAD
FBD
After you click on the instruction in the program editor,
you can select the comparison type and data type from
the drop-down menus.
Relation type
The comparison is true if:
==
IN1 is equal to IN2
<>
IN1 is not equal to IN2
>=
IN1 is greater than or equal to IN2
<=
IN1 is less than or equal to IN2
>
IN1 is greater than IN2
<
IN1 is less than IN2