Mitsubishi FX3U Series Programming Manual page 227

Hide thumbs Also See for FX3U Series:
Table of Contents

Advertisement

FX
/FX
Series Programmable Controllers
3U
3UC
Programming Manual - Basic & Applied Instruction Edition
Program examples
1. When reading the current value of a timer and counter
X001
FNC 12
MOV
2. When indirectly specifying the set value of a timer or counter
As the set value of the timer T20, two values can be specified by turning ON or OFF the switch X002.
For specifying more than two set values, more than one switch is required.
X002
FNC 12
MOV
X002
FNC 12
MOV
M 0
3. When transferring a bit device
The program written by basic instructions shown on the right can be expressed using MOV instruction as
shown below.
M8000
RUN monitor
4. When transferring 32-bit data
Make sure to use DMOV instruction for transferring the operation result of an applied instruction (such as
MUL) whose operation result is output in 32 bits, and for transferring a 32-bit numeric value or transferring the
current value of a high speed counter (C235 to C255) which is a 32-bit device.
Command
input
FNC 12
DMOV
Command
input
FNC 12
DMOV
(Current value of T0) → (D20)
T 0
D 20
The operation is the same as a counter.
(K100) → (D 10)
K100
D 10
(K50) → (D 10)
K 50
D 10
When X002 is ON, D10 = K100 (10-second timer).
D 10
T 20
When X002 is OFF, D10 = K50 (5-second timer).
FNC 12
K1X000 K1Y000
MOV
(D 1,D 0) → (D 11,D 10)
D0(D1)
D10(D11)
(Current value of C235) → (D21, D20)
C235
D20(D21)
9 Move and Compare – FNC 10 to FNC 19
9.3 FNC 12 – MOV / Move
X000
Y000
X001
Y001
X002
Y002
X003
Y003
1
2
3
4
5
6
7
8
9
10
225

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fx3uc seriesMelsec-f

Table of Contents