Mitsubishi Electric FX2N Beginners Manual page 91

Hide thumbs Also See for FX2N:
Table of Contents

Advertisement

More Advanced Programming
In the example below the contents of D20 are written to data register D387 when the state of
M110 changes from "0" to "1".
Ladder Diagram
M110
0
After this single operation has been performed copying to register D387 stops, even if the
M110 remains set. The signal sequence illustrates this:
Moving 32-bit data
To move 32-bit data just prefix a D to the MOV instruction (DMOV):
Ladder Diagram
X010
0
When input X010 is on the current value of 32-bit counter C200 is written to data registers D40
and D41. D40 contains the least significant bits.
As you might expect, there is also a pulse-triggered version of the 32-bit DMOV instruction:
Ladder Diagram
M10
0
When relay M10 is set the contents of registers D10 and D11 are written to registers D610 and
D611.
FX Beginners Manual
MOVP D20 D387
M110
D20
4700
6800
D387
The contents of the data source are only copied to the destina-
tion on the rising pulse of the input condition.
DMOV C200 D40
DMOVP D10 D610
Instructions for Moving Data
Instruction List
0 LD
1 MOVP
D20
3300
4700
3300
Instruction List
0 LD
X010
1 DMOV
C200
Instruction List
0 LD
1 DMOVP D10
M110
D387
t
D40
M10
D610
5 – 9

Advertisement

Table of Contents
loading

Table of Contents