Instruction 58- logic shift – n bits shift right – Maple Systems MAPware-7000 User Manual
Page 103
![background image](/manuals/358875/103/background.png)
95
MAPware-7000 Ladder Logic Guide
1010-1041 rev. 00
Instruction 58- Logic Shift – n bits shift right
Expression:
Space Requirement: 1 line x 6 column Location Requirement: Middle, Right rail
Function:
When the input is ON, the data of register A is shifted n bits to the right (LSB direction) including
the carry flag (CF = S976), and stored in B. 0 is stored in upper n bits. After the operation, if the
right most bit (LSB) is ON, the output is turned ON.
Execution Condition:
Input
Operation
Output
CF
OFF
No execution
OFF
---
ON
Execution
When LSB = 1
ON
Set or Reset
When LSB = 0
OFF
Set or Reset
Operand:
Coil or Bit
Register
Constant
Index
Name
X
Y B
S
T.
C.
M
X
W
Y
W
B
W
S
W
T C
D
I
J
K
M
W
A
Source
√
√
√
√
√ √
√
√
√
√
√
n
Shift bits
1-16
B
Destination
√
√
√
√ √
√
√
√
√
√
Example:
When X007 is changed from OFF to ON, the data of BW18 is shifted 5 bits to the right and the
result is stored in BW20.
The figure below shows an operation example.