EasyManuals Logo

Omron NJ501-1500 User Manual

Omron NJ501-1500
990 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 #410 background imageLoading...
Page #410 background image
2 Instruction Descriptions
2-362
NJ-series Instructions Reference Manual (W502)
NSHLC and NSHRC
These instructions shift an array of bit strings by one or more bits. The Carry (CY) Flag is included.
NSHLC: Shifts the array to the left (toward the higher elements).
NSHRC: Shifts the array to the right (toward the lower elements).
Instruction Name FB/FUN Graphic expression ST expression
NSHLC Shift N-bits Left with
Carry
FUN NSHLC(InOut, Size, Num);
NSHRC Shift N-bits Right
with Carry
FUN NSHRC(InOut, Size, Num);
Variables
Name Meaning I/O Description Valid range Unit Default
Size Number of
bits in shift
register
Input
Number of bits in shift
register
Depends on data type. Bits 1
Num Number of
bits to shift
Number of bits to shift
InOut[]
(array)
Shift
register
array
In-out Bit string array to shift Depends on data type.
--- ---
Out Return
value
Output Always TRUE TRUE only --- ---
Boolean
Bit strings Integers
Real
numbers
Times, durations,
dates, and text strings
BOOL
BYTE
WORD
DWORD
LWORD
USINT
UINT
UDINT
ULINT
SINT
INT
DINT
LINT
REAL
LREAL
TIME
DATE
TOD
DT
STRING
Size OK
Num OK
InOut[]
(array)
OK OK OK OK OK
Out OK
(@)NSHLC
EN ENO
InOut
Size Out
Num
(@)NSHRC
EN ENO
InOut
Size Out
Num

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

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

Omron NJ501-1500 Specifications

General IconGeneral
BrandOmron
ModelNJ501-1500
CategoryController
LanguageEnglish

Related product manuals