Nasr/Nsrl - Omron CJ - REFERENCE MANUAL 02-2010 Reference Manual

Table of Contents

Advertisement

NASR/NSRL

Instruction
SHIFT N-BITS RIGHT
DOUBLE SHIFT N-BITS
RIGHT
Symbol
Applicable Program Areas
Function block
Area
definitions
Usage
OK
Operands
Operand
D
Shift Word
C
Control word
C: Control word
NASR
15
12
11
8
7
C
0
Always 0.
Data shifted into register
0 Hex: 0 shifted in
8 Hex: Contents of rightmost bit shifted in
Operand Specifications
Area
CIO
WR
HR
D
NASR
OK
OK
OK
C
D
NSRL
OK
OK
OK
C
Flags
Name
Error Flag
Equals Flag
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Mnemonic
Variations
NASR
@NASR
NSRL
@NSRL
NASR
NASR(581)
D
D: Shift word
C
C: Control word
Block program areas
Step program areas
OK
OK
Description
0
No. of bits to shift: 00 to 10 Hex
Word addresses
AR
T
C
DM
EM
OK
OK
OK
OK
OK
OK
OK
OK
OK
OK
Label
ER
• ON when the control word C (the number of bits to shift) is not within range.
• OFF in all other cases.
=
• ON when the shift result is 0.
• OFF in all other cases.
Function
code
Shifts the specified 16 bits of word data to the right by
581
the specified number of bits.
Shifts the specified 32 bits of word data to the right by
583
the specified number of bits.
Subroutines
OK
Data type
NASR
NSRL
UINT
UDINT
UINT
UDINT
NSRL
15
12
11
8
7
C
0
Always 0.
Data shifted into register
0 Hex: 0 shifted in
8 Hex: Contents of rightmost bit shifted in
Indirect DM/EM
addresses
Con-
stants
@DM
*DM
DR
@EM
*EM
---
OK
OK
OK
OK
---
---
OK
OK
OK
OK
Operation
3. Instructions
Function
NSRL
NSRL(583)
D
D: Shift word
C
C: Control word
SFC action or transition
Interrupt tasks
programs
OK
OK
Size
NASR
NSRL
1
1
0
No. of bits to shift: 00 to 20 Hex
Registers
Flags
Pulse
bits
Indirect
IR
TK
CF
using IR
---
OK
---
---
---
---
OK
---
---
---
3
2
1
TR
bits
---
---
333

Advertisement

Table of Contents
loading

Table of Contents