From the course: Learning PLC Ladder Logic: 2 Diving Deeper
Introduction to MOV instruction - Ladder Logic Tutorial
From the course: Learning PLC Ladder Logic: 2 Diving Deeper
Introduction to MOV instruction
- [Instructor] The MOV instruction is considered one of the data transfer instructions. Data transfer instructions simply involve the transfer of the content from one word or register to another. A MOV instruction comes in a block format with both a source and a destination parameter. The MOV instruction moves a copy of one data file word to a specific destination. This instruction only copies the data, although the name says move, but it moves a copy of the data from the source to the destination. It does not convert or manipulate the data in any way. The source and the destination tags should be of the same data type. They both can be tag addresses, or you can move a constant into a tag. So it can either be a variable value stored in a word with changes during the program execution, or a fixed constant value, which is entered during the programming. It is a block output instruction, so we add it to the right-hand side, and it performs whenever the input is true.
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.