Nasr/Nsrl - Omron SYSMAC CP Series Instruction & Reference Manual

Cpu unit
Hide thumbs Also See for SYSMAC CP Series:
Table of Contents

Advertisement

2 Instructions

NASR/NSRL

Instruction
SHIFT N-BITS RIGHT
DOUBLE SHIFT N-BITS
RIGHT
Symbol
Applicable Program Areas
Area
Step program areas
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
Word addresses
Area
CIO
WR
HR
D
OK
OK
OK
C
2-144
Mnemonic
Variations
NASR
@NASR
NSRL
@NSRL
NASR
NASR(581)
D
D: Shift word
C
C: Control word
Description
0
No. of bits to shift: 00 to 10 Hex
AR
T
C
DM
OK
OK
OK
OK
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 addresses
Constants
@DM
*DM
---
OK
OK
OK
CP1E CPU Unit Instructions Reference Manual(W483)
Function
NSRL
NSRL(583)
D
D: Shift word
C
C: Control word
Interrupt tasks
OK
Size
NASR
NSRL
1
2
1
1
0
No. of bits to shift: 00 to 20 Hex
CF
Pulse bits
TR bits
---
---
---

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents