Double Shift N-Bits Right: Nsrl(583) - Omron SYSMAC CJ - REFERENCE MANUAL 01-2008 Reference Manual

Sysmac cs/cj/one nsj series programmable controllers
Table of Contents

Advertisement

Data Shift Instructions
Examples

3-9-24 DOUBLE SHIFT N-BITS RIGHT: NSRL(583)

Purpose
Ladder Symbol
Variations
406
When the contents of the control word C are out of range, an error will be gen-
erated and the Error Flag will turn ON.
If as a result of the shift the contents of D is 0000 hex, the Equals Flag will
turn ON.
If as a result of the shift the contents of the leftmost bit of D is 1, the Negative
Flag will turn ON.
When CIO 000000 is ON, CIO 0100 will be shifted 10 bits to the right (from
the leftmost bit to the rightmost bit). The number of bits to shift is specified in
bits 0 to 7 of word CIO 0300. The contents of bit 15 of CIO 0100 is copied into
the bits from which data was shifted and the contents of the leftmost bit of
data which was shifted out of range, is shifted into the Carry Flag (CY). All
other data is lost.
15
12
11
C
8
0
Data shifted into register
8 Hex: Contents of leftmost bit shifted in
No. of bits to shift: 10 bits
(Contents of the leftmost bit is
inserted.)
Shifts the specified 32 bits of word data to the right by the specified number of
bits.
NSRL(583)
D: Shift word
D
C: Control word
C
Variations
Executed Each Cycle for ON Condition
Executed Once for Upward Differentiation
Executed Once for Downward Differentiation Not supported
Immediate Refreshing Specification
8
7
4
3
0
0
A
No. of bits to shift: 10 bits (0A Hex)
Always 0.
Leftmost bit
Lost
Section 3-9
NSRL(583)
@NSRL(583)
Not supported

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents