Mitsubishi Electric MELSEC iQ-R Series Programming Manual page 375

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

Advertisement

Processing details
• These instructions shift the (n2) word(s) of area to the right within the (n1) words of data area starting from the device
specified by (d). After the shift, (n2) points of area from (s) are set into (n2) points of area from (d)+(n1-n2).
• When a constant is specified for (s), the specified value is stored in (n2) point(s) of area in the device from (d) + (n1-n2)
after the shift.
• When (n2) is 0, the processing is not performed.
Ex.
When (n1)=9 and (n2)=4
(n2)
(s)+3
(s)+2
(s)+1
(d)+8
(d)+7
(d)+6
(d)+5
30FH
1EH
100H
Ô
(d)+8
(d)+7
(d)+6
(d)+5
Overflow (data to be deleted)
(n2)-word shift to the right
Copy
Operation error
Error code
Description
(SD0)
2821H
The range for (n2) points from (s) and that for (n1) points from (d) are overlapping.
3405H
The values specified in (n1) and (n2) are such that (n1)<(n2).
(s)
(n1)
(d)+4
(d)+3
(d)+2
0H
1FFH
10H
1FH
Ó
(d)+4
(d)+3
(d)+2
30FH
1EH
100H
(d)+1
(d)
7FFH
2AH
Ò
(d)+1
(d)
0H
1FFH
6 BASIC INSTRUCTIONS
373
6.5 Shift Instructions
6

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents