Mitsubishi FX3G Series Programming Manual page 249

Programmable controllers
Hide thumbs Also See for FX3G Series:
Table of Contents

Advertisement

FX
/FX
/FX
/FX
3G
3U
3GC
3UC
Programming Manual - Basic & Applied Instruction Edition
Explanation of function and operation
1. 16-bit operation (SMOV and SMOVP)
The contents of the transfer source
9999) respectively. "m2" digits starting from the "m1"th digit are transferred to the transfer destination
from the "n"th digit, converted into binary, and then stored to the transfer destination
• While the command input is OFF, the transfer destination
• When the command input turns ON, only the specified digits in the transfer destination
transfer source
Command
input
FNC 13
SMOV
4th digit
3rd digit
3
2
10
10
Command contact = ON
3
2
10
10
Do not change.
2. Extension function
When M8168 is set to ON first and then SMOV instruction is executed, conversion from binary to BCD is not executed.
Data is moved in units of 4 bits.
M8168
X010
FNC 13
SMOV
X010
Program example
The data on three-digit digital switches are composed, and stored as binary data to D2.
2
10
7
8
1
8
X003 to X000
X027 to X020
PLC
Data on three digital switches
connected to non-consecutive input
terminals are composed.
Series
S
and transfer destination
S
and unspecified digits in the transfer destination
m1
m2
S
In the case of "m1 = 4,
m2 = 2, n = 3".
2nd digit
1st digit
(16-bit binary data)
S
Data is automatically
converted. [1]
' (4-digit BCD data)
S
1
0
10
10
Digits are moved. [2]
D
' (4-digit BCD data)
1
0
10
10
Data is automatically
converted. [3]
D
(16-bit binary data)
D 1
K 4
K 2
D 2
M8168 is used for other instructions also.
M8168
After using M8168 for SMOV instruction, return it to OFF.
M8000
1
0
10
10
6
5
1
8
1
9 Move and Compare – FNC 10 to FNC 19
D
are converted into 4-digit BCD (0000 to
D
does not change.
D
n
D
[1]
S
is converted from binary into BCD.
[2] "m2" digits starting from the "m1"th digit are
transferred to
digit.
The digits of 10
affected even if data is transferred from
S
'.
[3] The composed data (BCD) is converted into
binary, and stored to
K 3
FNC 19
(X020 to X027) 2-digit BCD
K2X020
D 2
→ D2 (binary)
BIN
FNC 19
(X000 to X003) 1-digit BCD
K1X000
D 1
→ D1 (binary)
BIN
FNC 13
D 1
K 1
K 1
SMOV
1-digit BCD data of D1 is transferred to
the 3rd digit (BCD data) of D2, and
automatically converted into binary data.
9.4 FNC 13 – SMOV / Shift Move
D
starting
D
.
are changed. The
D
do not change.
D
' starting from the "n"th
3
0
and 10
of
D
' are not
D
.
D 2
K 3
1
2
3
4
5
6
7
8
9
10
247

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fx3u seriesFx3gc seriesFx3uc series

Table of Contents