EasyManua.ls Logo

Mitsubishi Electric MELSEC iQ-R Series - Page 501

Mitsubishi Electric MELSEC iQ-R Series
2110 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
6 BASIC INSTRUCTIONS
6.7 Data Transfer Instructions
499
6
Applicable devices
*1 FX and FY cannot be used.
Processing details
When SM773 is OFF, the contents of (s) and (d) are converted to 4-digit BCD (0000 to 9999). After the data in lower (n2)
digits from the (n1)th digit is transferred (combined) to (d) starting from the (n3)th digit, the data is converted into BIN and
then stored in (d).
When SM773 is on, conversion from BIN to BCD is not performed and data are shifted in units of 4 bits.
When digit specification of bit is used for (n1), the number of digits becomes the specified number of digits 4 bits from the
start bit device.
Ex.
To specify "3 digits 4 bits" from X0:
(1) Specified constant
(2) Start bit device
Digit specification denotes the "specified number of digits 34 bits" = 12 bits from the start bit device X0.
Operand Bit Word Double word Indirect
specification
Constant Others
X, Y, M, L,
SM, F, B, SB,
FX, FY
J\ T, ST, C, D, W,
SD, SW, FD, R,
ZR, RD
U\G, J\,
U3E\(H)G
Z LT, LST,
LC
LZ K, H E $
(s)
*1
 
(n1)
*1
 
(n2)
*1
 
(d)
*1
 
(n3)
*1
 
In the case of (n1) = 4, (n2 )= 2 and (n3) = 3
1. Conversion
(s) is converted from binary to BCD data.
2. Shifting
Lower (n2) digits starting from the (n1)th digit are
transferred (combined) to (d)' starting from the (n3)th digit.
In the case of this example, the first and fourth digits of (d)'
are not affected even if data is transferred from (s)'.
3. Conversion
The combined data (BCD) is converted into binary, and
stored to (d).
In the case of (n1) = 4, (n2 )= 2 and (n3) = 3
1. Shifting data in units of 4 bits
Lower (n2)4-bit data from (n1)4th bit is transferred
(combined) by lower (n2)4-bit data from (n3)4th bit of
(d). In the case of this example, the first and fourth digits of
(d) are not affected even if data is transferred from (s).
(s)
(s)’
(d)’
(d)
1.
2.
3.
10
0
10
1
10
2
10
3
10
0
10
1
10
2
10
3
4th digit 1st digit2nd digit3rd digit
(16-bit binary data)
(BCD 4-digit data)
(BCD 4-digit data)
(16-bit binary data)
(s)
(d)
1.
4th digit 1st digit2nd digit3rd digit
(16-bit binary data)
(16-bit binary data)
K3X0 K3SMOV K2 K2 ][ K2X100
(1) (2)
X14 X13 X12 X11 X10 XF XE XD XC XB XA X9 X8 X7 X6 X5 X4 X3 X2 X1 X0
1st digit2nd digit3rd digit

Table of Contents

Other manuals for Mitsubishi Electric MELSEC iQ-R Series

Related product manuals