7 Applied Instructions
7.2 Move and Compare
151
FXCPU Structured Programming Manual
(Basic & Applied Instruction)
1
Outline
2
Instruction List
3
Configuration of
Instruction
4
How to Read
Explanation of
Instructions
5
Basic Instruction
6
Step Ladder
Instructions
7
Applied
Instructions
8
Interrupt Function
and Pulse Catch
Function
A
Relationships
between devices
and addresses
2. 32-bit operation(DMOV, DMOVP)
The contents of the transfer source specified by are transferred to the transfer destination specified by
.
• While the command input is OFF, the transfer destination specified by does not change.
• When a constant (K) is specified as the transfer source specified by , it is automatically converted into
binary.
When specifying digits of a bit device (K8X000 K8Y000)
The bit device transfers a maximum of 32 points (multiple of 4).
When a word device is specified
The word device transfers 1 point.
Cautions
1) When handling 32-bit data in a structured program, a 16-bit device cannot be specified directly as in the
case of a simple project. Use a label to handle 32-bit data.
A 32-bit counter can be specified directly as it is a 32-bit long device.
Use a global label to specify a device.
2) The FX
0, FX0S or FX0N PLC does not support the pulse operation type instructions.
To execute pulse operation, make the instruction execution condition pulse type.
3) Some restrictions to applicable devices
S1:The FX
3U, FX3UC and FX3G PLCs only are applicable.
S2:The FX
3U and FX3UC PLCs only are applicable.
Command input
DMOV
EN
s
ENO
d
Label1
*1
Label2
*2
*1 This defines the transfer source data or the device that stores the transfer source data.
*2 This defines the transfer destination device.
[ +1, ] [ +1, ]
s s d d
Command contact
ON
ONX000
OFF
X001
OFF
ONX037
ONY000 OFF
ONY001 OFF
ONY037
ON OFF
s
d
DMOV
EN
s
ENO
d
Var_MOV1
*1
Var_MOV2
*2
*1 Var_MOV1 is a global label and is defined as K8X000.
*2 Var_MOV2 is a global label and is defined as K8Y000.
Y37 to Y1 Y0
ON ON ON
OFF
X37 to X1 X0
ON
OFF OFF
ON
X37 to X1 X0
ON
OFF OFF
ON
Y37 to Y1 Y0
ON
OFF OFF
ON
: K8Y000
: K8X000
d
s
Before
execution
After
execution
Transfer
Command input
to
to
Command contact
K500000 K4321
K500000 K500000
ON
500000
5000004321
s
d
: D51, D50
: D11, D10
ds
DMOV
EN
s
ENO
d
*1 Var_MOV1 is a global label and is defined as D10.
*2 Var_MOV2 is a global label and is defined as D50.
Var_MOV1
*1
Var_MOV2
*2
Before
execution
After
execution
Command input
Transfer