Instruction 56- logic shift – 1 bit shift right – Maple Systems MAPware-7000 User Manual

Page 101

Advertising
background image

93

MAPware-7000 Ladder Logic Guide

1010-1041 rev. 00

Instruction 56- Logic Shift – 1 bit shift right

Expression:

Space Requirement: 1 line x 3 column Location Requirement: Middle, Right rail

Function:

When the input is ON, the data of register A is shifted 1 bit to the right (LSB direction). 0 is
stored in the left most bit (MSB). The pushed out bit state is stored in the carry flag (CF = S976).
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

---

Execution

When LSB = 1

ON

Set or Reset

ON

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

Operation

Data

√ √

Example:

When X007 is changed from OFF to ON, the data of BW15 is shifted 1 bit to the right.

The figure below shows an operation example.

Advertising