EasyManua.ls Logo

Omron CP - PROGRAMMING MANUAL 05-2007 - Page 347

Omron CP - PROGRAMMING MANUAL 05-2007
1175 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
314
Data Shift Instructions Section 3-8
Examples When CIO 0.00 is ON, CIO 1000 and CIO 1001 will be shifted to the left (from
the rightmost bit to the leftmost bit) by 10 bits. The number of bits to shift is
specified in bits 0 to 7 of word D300 (control data). The contents of bit 0 of
CIO 1000 is copied into bits from which data was shifted and the contents of
the rightmost bit which was shifted out of range is shifted into the Carry Flag
(CY). All other data is lost.
3-8-23 SHIFT N-BITS RIGHT: NASR(581)
Purpose Shifts the specified 16 bits of word data to the right by the specified number of
bits.
Ladder Symbol
Variations
15 8 011 37 412
C: D300
080A
0.00
1000
D300
No. of bits to shift: 10 bits (0A Hex)
Always 0.
Data shifted into register
8 Hex: Contents of right-
most bit shifted in
CIO
1000
CIO
1000
CIO
1001
CIO
1001
Rightmost bit
a
Lost
No. of bits to shift: 10 bits
(Contents of the rightmost
bit is shifted in)
NASR(581)
D
C
D: Shift word
C: Control word
Variations Executed Each Cycle for ON Condition NASR(581)
Executed Once for Upward Differentiation @NASR(581)
Executed Once for Downward Differentiation Not supported
Immediate Refreshing Specification Not supported

Table of Contents

Related product manuals