147
FX
3U
/FX
3UC
Series Programmable Controllers
Programming Manual - Basic & Applied Instruction Edition
6 What to Understand before Programming
6.5 General Rules for Applied Instructions
1
In
troduct
io
n
2
Ov
e
rv
ie
w
3
In
st
ru
ct
ion
Li
st
4
D
evi
ce
s
in
De
ta
il
5
Speci
fied t
h
e
D
evi
ce &
C
onst
a
nt
6
Bef
o
re
Pr
ogr
a
m
m
ing
7
Bas
ic
In
st
ru
cti
o
n
8
FNC0
0
-FNC0
9
P
ro
g
ra
m F
lo
w
9
FNC1
0
-FNC1
9
M
ov
e
&
C
om
par
e
10
FNC
20-
FNC
2
9
Ar
ith.
&
Logi
c
O
per
at
io
n
Instruction form and operation type
Applied instructions are classified into "16-bit type" or "32-bit type" by the size of handled numeric values.
And by the operation type, applied instructions are classified into "continuous operation type" or "pulse
operation type".
Some applied instructions have every combination of this form and type, and others do not.
1. 16-bit type and 32-bit type
- Applied instructions handling numeric values are classified into the 16-bit type or the 32-bit type by the
bit length of the numeric value data.
This instruction transfers the contents of D10 to D12.
This instruction transfers the contents of D21 and D20 to
D23 and D22.
- In a 32-bit type instruction, the symbol "D" is added (example: DMOV).
- Either an odd or even device number can be specified, and a specified device is combined with a device
having the subsequert larger number (in the case of word devices such as T, C and D).
For avoiding confusion, it is recommended to specify an even device number (which will be the low-
order side) for an operand in a 32-bit instruction.
- 32-bit counter (C200 to C255) is regarded as 32 bits, and cannot be used as an operand in a 16-bit
instruction.
2. Pulse operation type and continuous operation type
Pulse operation type
In the example shown in the figure on the right, when X000 turns
ON from OFF, the instruction is executed only once, and is not
executed in any other case.
When it is not necessary to continually execute an instruction,
use the pulse operation type.
The symbol "P" indicates the pulse operation type.
"DMOVP" indicates also the pulse operation type.
Continuous operation type
The figure on the right shows a continuous operation type
instruction. While X001 is ON, the instruction is executed in
every operation cycle.
In the continuous operation type of some instructions such as FNC 24 (INC) and FNC 25 (DEC), the
contents of the destination change in every operation cycle.
For applied instructions requiring attention in using the continuous operation type, the symbol "
" is
added to the title of the explanation of such instructions as shown in the figure below to notify the attention.
In any case, instructions are not executed while the drive input X000 or X001 is OFF. And the destinations
do not change except instructions specified otherwise.
Command 1
FNC 12
MOV
D10
D12
Command 2
FNC 12
DMOV
D20
D22
X000
FNC 12
MOVP
D10
D12
X001
FNC 12
MOV
D10
D12
P
FNC 12
MOV
No.
Instruction name
D