In this lesson we are going to discuss logic gates. If you don’t know how logic gates work, watching this lesson will explain that for you. If you are familiar logic gates, we will run through a quick refresher explaining the four types of gates. Those types are AND, OR, XOR or Exclusive OR, and INVERT or NOT. This lesson will show you exactly how the logic gates work by demonstrating in ladder logic. While this ladder logic does not use the actual gate instruction, it does show the function of the gate through the use of contacts and coils. In the next lesson, we will use the actual instructions but for now, let’s take a look at this lesson and get a refresher on logic gates.
In this lesson, we are continuing with our logic gate functions. We are going to be using instructions within the Word Logic Operations folder. We will be writing some code for an AND instruction that is going to compare two inputs and put the result in an output. We will see that the input data ...
In the first lesson, Introduction to Logic Gates in PLC Programming, we reacquainted you with AND, OR, XOR, and Invert logic gates. In Part 1 of this course, we started working with the AND instruction located in the Word Logic Operations folder and wrote some code for that instruction. In this l...
In the previous lessons, we worked with the Logic instructions of AND, OR, XOR, and Invert. We worked with the Invert instruction specifically with a data type that caused the logic to compare the input, bit by bit, and invert the result to the corresponding output bit. In this lesson, we will co...