Mitsubishi Electric MELSEC FX3U Programming Manual page 265

Melsec fx series programmable logic controllers
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
(0000 to 9999) respectively. "m2" digits starting from "m1"th digit are transferred (composed) to the transfer
destination
D
.
D
• While the command input is OFF, the transfer destination
• When the command input turns ON, only the specified digits in the transfer destination
The transfer source
Command
input
FNC 13
SMOV
4th digit
3rd digit
10
3
10
2
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
FNC 13
X010
Program example
The data on three-digit digital switches are composed, and stored as binary data to D2.
10
2
7
8
1
8
X003 to X000
X027 to X020
PLC
Data on three digital switches
connected to non-consecutive input
terminals are composed.
S
starting from "n"th digit, converted into binary, and then stored to the transfer destination
and unspecified digits in the transfer destination
S
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
10
1
10
0
Digits are moved. [2]
D
' (4-digit BCD data)
10
1
10
0
Data is automatically
converted. [3]
D
(16-bit binary data)
M8168
D 1
K 4
K 2
D 2
SMOV
M8168 is available for other instructions also.
M8168
After using M8168 for SMOV instruction, return it to OFF.
M8000
10
1
10
0
6
5
1
8
1
9 Move and Compare – FNC 10 to FNC 19
and transfer destination
does not change.
D
n
D
[1]
S
[2] "m2" digits starting from "m1"th digit are
transferred (composed) to
from "n"th 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
K2X020
D 2
BIN
FNC 19
K1X000
D 1
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
are converted into 4-digit BCD
D
are changed.
D
do not change.
D
is converted from binary into BCD.
D
3
0
and 10
of
D
'.
.
D
(X020 to X027) 2-digit BCD
→ D2 (binary)
(X000 to X003) 1-digit BCD
→ D1 (binary)
D 2
K 3
1
2
3
4
' starting
' are not
5
6
7
8
9
10
263

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec fx3ucMelsec fx3g

Table of Contents