6 BASIC INSTRUCTIONS
6.5 Data Conversion Instructions
289
6
• These instructions separate each bit of the data in the device numbers specified by (s1) and later into bit units specified by
(s2), and store the separated data in the device numbers starting from the one specified by (d).
• The number of separation bits specified by (s2) can be specified within the range of 1 to 16 bits.
• The number of bits specified in devices from the device number specified by (s2) up to the device number in which "0" is
stored are processed as the number of separation bits.
• If the device numbers specified by (s1), (s2), (d) are partially overlapping, an operation error occurs.
Error code
(SD0/SD8067)
Description
2820 The usage range of the device specified by (s1) or (d) exceeds the corresponding device range due to the specification of the number of
separation bits specified by (s2).
2821 The (s1), (s2) devices are overlapping.
The (s1), (d) devices are overlapping.
The (s2), (d) devices are overlapping.
3401 The specification of the number of separation bits specified by (s2) is not set within the range of 1 to 16 bits.
0 is not set in the range between the device specified by (s2) up to the corresponding device range.
(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
For the bits specified by (s2)+1
For the bits specified by (s2)+2
For the bits specified by (s2)+3
For the bits specified by (s2)+4
For the bits specified by (s2)+5
For the bits specified by (s2)+6
Specifies the number of separating bits
Specifies the setting end
For the bits specified by (s2)