Mitsubishi Electric FX3G SERIES Programming Manual page 254

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

Advertisement

FX
/FX
/FX
Series Programmable Controllers
3G
3U
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
10
3
10
2
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.
X010
Program example
The data on three-digit digital switches are composed, and stored as binary data to D2.
10
2
7
8
1
X003 to X000
PLC
Data on three digital switches
connected to non-consecutive input
terminals are composed.
252
S
and unspecified digits in the transfer destination
S
m1
S
In the case of "m1 = 4,
m2 = 2, n = 3".
2nd digit
1st digit
S
Data is automatically
converted. [1]
S
1
0
10
10
Digits are moved. [2]
D
10
1
10
0
Data is automatically
converted. [3]
D
M8168
FNC 13
D 1
K 4
K 2
SMOV
M8168 is used for other instructions also.
M8168
After using M8168 for SMOV instruction, return it to OFF.
X010
M8000
10
1
10
0
6
5
8
1
8
1
X027 to X020
and transfer destination
D
does not change.
m2
n
D
[1]
[2] "m2" digits starting from the "m1"th digit are
(16-bit binary data)
' (4-digit BCD data)
[3] The composed data (BCD) is converted into
' (4-digit BCD data)
(16-bit binary data)
D 2
K 3
FNC 19
K2X020
BIN
FNC 19
K1X000
BIN
FNC 13
D 1
K 1
SMOV
9 Move and Compare – FNC 10 to FNC 19
9.4 FNC 13 – SMOV / Shift Move
D
are converted into 4-digit BCD (0000 to
.
D
D
do not change.
D
S
is converted from binary into BCD.
transferred to
D
' starting from the "n"th
digit.
3
The digits of 10
and 10
affected even if data is transferred from
'.
S
binary, and stored to
D
(X020 to X027) 2-digit BCD
D 2
→ D2 (binary)
(X000 to X003) 1-digit BCD
D 1
→ D1 (binary)
K 1
D 2
K 3
1-digit BCD data of D1 is transferred to
the 3rd digit (BCD data) of D2, and
automatically converted into binary data.
D
starting
are changed. The
0
of
' are not
D
.

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fx3u seriesFx3uc series

Table of Contents