![background image](http://html.mh-extra.com/html/mitsubishi-electric/melsec-iq-f-fx5/melsec-iq-f-fx5_programming-manual_239114354.webp)
352
7 BASIC INSTRUCTIONS
7.7 Data Transfer Instructions
Processing details
These instructions distribute and compose data in units of nibble (4 bits). The contents of the transfer source (s) and transfer
destination (d) are converted into 4-digit BCD (0000 to 9999). (n2) nibbles starting from the (n1)th nibble are transferred to the
transfer destination (d) starting from the (n3)th nibble, converted into binary, and then stored to the transfer destination (d).
■
Extension function
When SM8168 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.
Operation error
• While the command input is OFF, the transfer destination (d) does not change.
• When the command input turns ON, only the specified digits in the transfer destination (d) are changed. The transfer source (s) and unspecified digits in the
transfer destination (d) do not change.
(1): (s) is converted from binary to
BCD data.
(2): (n2) digits starting from the (n1)th digit are transferred (combined) to
(d)' starting from the (n3)th digit. The first and fourth digits of (d)' are not
affected even if data is transferred from (s)'.
(3): The combined data (BCD) is converted into binary, and stored to (d).
Error code
(SD0/SD8067)
Description
3405H
Any one of (n1), (n2), (n3) is 0.
Either (s) or (d) is other than 0 to 9999 when SM8168 is OFF.
Either (n1) or (n3) is larger than 4.
(n2) is larger than (n1) or (n3).
10
0
10
1
10
2
10
3
10
0
10
1
10
2
10
3
(s)
(s)'
(d)'
(d)
4th nibble
1st nibble
2nd nibble
3rd nibble
Do not change.
(16-bit binary data)
(4-digit BCD data)
Nibbles are moved(2)
(4-digit BCD data)
(16-bit binary data)
In the case of "n1 = 4, n2 = 2, n3 = 3".
When command input turns ON
Data is automatically
converted(1)
Data is automatically
converted(3)
Summary of Contents for MELSEC iQ-F FX5
Page 1: ...MELSEC iQ F FX5 Programming Manual Instructions Standard Functions Function Blocks ...
Page 2: ......
Page 17: ...15 CONTENTS ...
Page 24: ...22 MEMO ...
Page 1050: ...1048 26 TIME DATA FUNCTIONS 26 4 Division MEMO ...
Page 1068: ...1066 29 COUNTER FUNCTION BLOCKS 29 4 Counter Function Block Operation error There is no error ...
Page 1107: ...I 1105 MEMO ...
Page 1111: ......