152
6 SEQUENCE INSTRUCTIONS
6.4 Shift Instructions
Processing details
• These instructions shift (n1) bits of data to the left by (n2) bit(s) from the device specified by (d). After the shift, (n2) points
from (s) are set into (n2) points from (d).
• When K0 is specified for (s), set 0s for (n2) points of bits from (d) after the shift.
• When K1 is specified for (s), set 1s for (n2) points of bits from (d) after the shift.
Operation error
(1): When (s)=K0, it is 0.
Error code
(SD0/SD8067)
Remarks
2820H
The (n2) points of data starting from the device specified by (s) exceed in the corresponding device.
The (n1) points of data starting from the device specified by (d) exceed in the corresponding device.
2821H
The transfer source data (s) overlaps with shift device (d).
3405H
A constant other than K0 or K1 is specified when the constant (s) is specified.
The values specified in (n1) and (n2) are such that (n1)<(n2).
1
1
0
1
1
1
1
0
1
1
1
0
1
0
0
0
0
0
0
1
(n1)
(n2)
(d)+9
(d)+8
(d)+7
(d)+6
(d)+5
(d)+4
(d)+3
(d)+2
(d)+1
(d)
(d)+9
(d)+8
(d)+7
(d)+6
(d)+5
(s)+4
(s)+3
(s)+2
(s)+1
(s)
(1)
Summary of Contents for MELSEC iQ-F FX5
Page 1: ...MELSEC iQ F FX5 Programming Manual Instructions Standard Functions Function Blocks ...
Page 2: ......
Page 17: ...15 CONTENTS ...
Page 24: ...22 MEMO ...
Page 1050: ...1048 26 TIME DATA FUNCTIONS 26 4 Division MEMO ...
Page 1068: ...1066 29 COUNTER FUNCTION BLOCKS 29 4 Counter Function Block Operation error There is no error ...
Page 1107: ...I 1105 MEMO ...
Page 1111: ......