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 type on our selected instruction can only be of data type word or double word so we’ll need open up our Windows calculator for some quick conversions from binary to HEX as HEX is the expected format in Step 7. So watch this lesson and see how to compare two word inputs.
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...
In previous lessons, we’ve been working with the Logic instructions of AND, OR, XOR, and Invert. In this lesson, we are going to continue to work with the AND instruction to show you how to Mask or allow/prevent parts of an input to pass through your logic. For instance, when you are on a website...
8 Comments