EasyManuals Logo
Home>Omron>Controller>CJ - INSTRUCTIONS

Omron CJ - INSTRUCTIONS User Manual

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

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Omron CJ - INSTRUCTIONS and is the answer not in the manual?

Omron CJ - INSTRUCTIONS Specifications

General IconGeneral
BrandOmron
ModelCJ - INSTRUCTIONS
CategoryController
LanguageEnglish

Related product manuals