Instructions For Moving Data; Moving Individual Values With The Mov Instruction - Mitsubishi Electric FX2N Beginners Manual

Hide thumbs Also See for FX2N:
Table of Contents

Advertisement

Instructions for Moving Data

5.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.
5.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
0
³ Data source (this can also be a constant)
· Data 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
copied to the data destination as long as the
input condition evaluates true. The copy ope-
ration 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.
5 – 8
MOV D10 D200
X001
D10
5384
2271
D200
More Advanced Programming
Instruction List
0 MOV
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.
D10
D200
125
t
MITSUBISHI ELECTRIC

Advertisement

Table of Contents
loading

Table of Contents