6 BASIC INSTRUCTIONS
6.5 Data Conversion Instructions
291
6
• These instructions link each bit of the data in the device numbers specified by (s1) onwards into bit units specified by (s2),
and store the linked data in the device number specified by (d).
• The number of link 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 connection 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
link 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 link 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)+2
(s1)+5
6
8
6
4
8
10
3
0
b0b5 b0b6 b5b13b15 b14
(s1)+1
b0b7
b0
b5
b0
b3
b0
b8 b7 b4 b3b15
(s1)+3
b0b7
(s1)+4
b0b9 b0b10b12
(s1)+6
b0b2
(d)
(d)+1
(d)+2
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 linked bits
Specifies the setting end
For the bits specified by (s2)