From the course: Learning PLC Ladder Logic: 2 Diving Deeper

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Solution: MOV instruction

Solution: MOV instruction - Ladder Logic Tutorial

From the course: Learning PLC Ladder Logic: 2 Diving Deeper

Start my 1-month free trial

Solution: MOV instruction

- [Instructor] For the first rung, adding the station count push button and the counter up with a preset value of 10. Now to not exceed more than 10, we are going to add an XIO input instruction using the done bit of the counter. Then we use a compare instruction. If the counter accumulated value is less than or equal to 10, we need to show that on the LED display, so we use less than or equal instruction, then we use a move instruction and move the accumulated value to an internal integer N7 bit zero that eventually will be sent to the LED display. The next rung is where we want to show it on the LED display, so we use TOD instruction. The source is the N7 bit zero where we saved the data of the accumulator value and the output is output six. And once the accumulator value reaches 10, the red pilot light turns on, indicating that no more spaces are available. In this case, we use equal compare instruction…

Contents