6 BASIC INSTRUCTIONS
6.6 Data Conversion Instructions
483
6
• These instructions separate the bits of data in the device specified by (s1) and later in units of bits specified by (s2), and
store the separated data in the device range specified by (d) and later.
• Specify the value 1 to 16 for (s2).
• The device areas from the one specified by (s2) to the one storing "0" are processed.
• Specify the devices so that the range of the device where the separation target data is stored ((s1) and later) and the range
of the device for storing the separated data ((d) and later) do not overlap. If they overlap, a correct operation result may not
be obtained.
• Do not overlap the device numbers that are specified by (s1), (s2), and (d).
(s2) to (s2)+6: Number of bits specified by (s2) to (s2)+6
(1) The value, 0, indicates the end of setting.
(2) Ignored.
Error code
(SD0)
Description
2821H The device ranges specified by (s1) and (s2) are overlapping.
The device ranges specified by (s1) and (d) are overlapping.
The device ranges specified by (s2) and (d) are overlapping.
3401H Invalid data that cannot be converted are input in (s2).
• The value specified is out of the range, 1 to 16.
• There is no 0 in the label or device area (between the specified device number and the last device number).
(s2)
(s2)+1
(s2)+2
(s2)+3
(s2)+4
(s2)+5
(s2)+6
(s2)+7
(s1)
(s1)+1
(s1)+2
6
8
6
4
8
10
3
0
b0
b6 b5
b13b15 b14
b0
b8 b7 b4 b3
b15
b0
b9b10
b12
(d)
(d)+1
(d)+2
(d)+3
(d)+4
(d)+5
(d)+6
b0
b0b7
b0b7
b0b9
b5
b0b5
b0b3
b0b2
(s2)+1
(s2)+2
(s2)+3
(s2)+4
(s2)+5
(s2)+6
(2)
(1)
(s2)
0
0
0
0
0
0
0