Mitsubishi Electric MELSEC iQ-R Series Programming Manual page 487

Hide thumbs Also See for MELSEC iQ-R Series:
Table of Contents

Advertisement

Processing details
• These instructions combine the bits of data in the device specified by (s1) and later in units of bits specified by (s2), and
store the combined data in the device specified by (d) and later.
(s2)
6
(s2)+1
8
(s2)+2
6
(s2)+3
4
(s2)+4
8
(s2)+5
10
(s2)+6
3
(1)
(s2)+7
0
b5
(s1)
(2)
b7
(s1)+1
(2)
b5
(s1)+2
(2)
b3
(s1)+3
(2)
b7
∙∙∙
(s1)+4
(2)
b9
∙∙∙
(s1)+5
(2)
(s1)+6
(2)
(s2) to (s2)+6: Number of bits specified by (s2) to (s2)+6
(1) The value, 0, indicates the end of setting.
(2) Ignored.
• 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 combination target data is stored ((s1) and later) and the
range of the device for storing the combined 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).
Operation error
Error code
Description
(SD0)
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).
b0
∙∙∙
(s2)
∙∙∙
b0
(s2)+1
b0
∙∙∙
(s2)+2
∙∙∙
b0
(s2)+3
b0
(s2)+4
b0
(s2)+5
b2
b0
∙∙∙
(s2)+6
b15 b14
b13
b6 b5
∙∙∙
∙∙∙
(d)
b15
b8 b7
b4 b3
∙∙∙
∙∙∙
(d)+1
b12
∙∙∙
b10
∙∙∙
(d)+2
0
6.6 Data Conversion Instructions
b0
b0
∙∙∙
b0
6 BASIC INSTRUCTIONS
6
485

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents