Mitsubishi Electric MELSEC iQ-R Series Programming Manual page 485

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

Advertisement

Processing details
• 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.
(s2)
6
(s2)+1
8
(s2)+2
6
(s2)+3
4
(s2)+4
8
(s2)+5
10
(s2)+6
3
(1)
(s2)+7
0
b15 b14
b13
b6 b5
∙∙∙
(s1)
b15
b8 b7
b4 b3
∙∙∙
∙∙∙
(s1)+1
b12
∙∙∙
b10
b9
∙∙∙
(s1)+2
(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 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).
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)
(s2)+1
b0
∙∙∙
(s2)+2
(s2)+3
(s2)+4
b0
(s2)+5
(s2)+6
b5
∙∙∙
(d)
0
b7
∙∙∙
(d)+1
0
b5
∙∙∙
(d)+2
0
b3
(d)+3
0
b7
∙∙∙
(d)+4
0
b9
∙∙∙
(d)+5
0
b2
(d)+6
0
6.6 Data Conversion Instructions
b0
b0
b0
∙∙∙ b0
b0
b0
∙∙∙ b0
6 BASIC INSTRUCTIONS
6
483

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents