This section discusses how to use the AND and NOT logic gates in a PLC program. The example program demonstrates how to implement these two logic gates in a PLC with an external input, which is PB0.
When used correctly AND gates allow for multiple inputs that are present simultaneously to be controlled by the output of another input. For instance, if you have four inputs such as A0, A1, B0, and B1 and set the output of A0 to 1 then any combination of A1 or B0 will also be 1.
NOT gates are commonly used as inverters on outputs of other inputs. For example say you have four inputs such as A2, B2, C3 and D3 which are set up with an AND gate that says “if both
Share a personalized message with your friends.