320
6 BASIC INSTRUCTIONS
6.4 Data Transfer Instructions
• When the digit specification by bit is conducted for the transfer source device, the digit corresponding to the specified digit
number 4 is specified from the bit device at head. The operation examples are shown below.
• In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and an error code is stored into SD0.
• Program that transfers the one digit (BCD) of D10 into the 3rd digit (BCD) of D20 and then converts them into the BIN.
Error
code
Error details Q00J/
Q00/
Q01
QnH QnPH QnPRH QnU LCPU
4100 The BCD data of the (S) and (D) are those other than 0 to 9999.
4101 The values of device designated by the instructions exceed the setting range.
[ SMOV K3X0 K3 K2 K2X100 K2 ]
Start bit device
Specified digits
12 bits (specified digits 3 × 4 bits) of data
from the start bit device X0 are specified.
X14 X13 X12 X11 X10 XF XE XD XC XB XA X9
3rd digit
X8 X7 X6 X5
2nd digit
X4 X3 X2 X1
1st digit
X0
Transfer 1 digit of D10 (BCD data) to the 3rd digit
of D20 (BCD data).
Convert the data from BCD to BIN.