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 lesson, we will continue working with Word Logic Operations which will include the OR, XOR, and Invert instructions. We will use the code from the previous lesson and change the AND instruction to an OR instruction and see how that change impacts the output. Let’s XORcise our brains and write some code for these logic instructions.
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...
In a continuation of previous lessons where we’ve been working with the Logic instructions of AND, OR, XOR, and Invert, this lesson will go into some detail about comparing values using the XOR instruction. We will be determining if two values are identical and if they are not, we will need to ac...
2 Comments