Instructions For Moving Data; Moving Individual Values With The Mov Instruction - Mitsubishi MELSEC System Q Manual

Hide thumbs Also See for MELSEC System Q:
Table of Contents

Advertisement

Instructions for Moving Data

6.2
Instructions for Moving Data
The PLC uses data registers for storing measurements, output values, intermediate results of
operations and table values. The controller's math instructions can read their operands directly
from the data registers and can also write their results back to the registers if you want. How-
ever, these instructions are also supported by additional "move" instructions, with which you
can copy data from one register to another and write constant values to data registers.
6.2.1

Moving individual values with the MOV instruction

The MOV instruction "moves" data from the specified source to the specified destination.
NOTE
Note that despite its name this is actually a copy process – it does not delete the data from
the source location.
Ladder Diagram
³ Data source (this can also be a constant). The "s" in Ladder Diagram instructions means
source .
· Data destination (In Ladder Diagram instructions, "d" means destination.
In the example the value in data register D10 will be copied to register D200 when input X1 is
on. This results in the following signal sequence:
The contents of the data source will be cop-
ied to the data destination as long as the
input condition evaluates true. The copy
operation does not change the contents of
the data source.
Pulse-triggered execution of the MOV instruction
In some applications it is better if the value is written to the destination in one program cycle
only. For example, you will want to do this if other instructions in the program also write to the
same destination or if the move operation must be performed at a defined time.
If you add a "P" to the MOV instruction (MOVP) it will only be executed once, on the rising edge
of the signal pulse generated by the input condition.
6 – 12
MELSEC Instruction List
LD
MOV
X001
D10
5384
2271
D200
More Advanced Programming
IEC Instruction List
X1
LD
D10
MOV_M
D200
963
5384
963
When the input condition is no lon-
ger true the instruction will no lon-
ger change the contents of the data
destination.
X1
D10, D200
125
t
MITSUBISHI ELECTRIC

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents