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 #403 background imageLoading...
Page #403 background image
2-355
2 Instruction Descriptions
NJ-series Instructions Reference Manual (W502)
Shift Instructions
2
AryShiftRegLR
The AryShiftRegLR instruction shifts Size array elements of array of bit strings InOut[] to the left when
ShiftL changes to TRUE. The shift operation starts from InOut[0]. Input value In is inserted to the least-
significant bit. The most-significant bit of the array of bit strings is output to the Carry (CY) Flag (P_CY).
When ShiftR changes to TRUE, the bits are shifted one bit to the right and In is inserted to the most-sig-
nificant bit. The least-significant bit of the array of bit strings is output to the Carry (CY) Flag (P_CY).
When Reset is TRUE, P_CY and all of the bits in Size elements starting from InOut[0] are set to FALSE.
The following example is for when InOut is BYTE data, Size is UINT#2 and ShiftL changes to TRUE.
Function
InP_CY
Size elements
InOut[0]
InOut[1]
In
P_CY
Size elements
InOut[0]
InOut[1]
AryShiftRegLR_instance(A, B, abc, def, ghi[1], UINT#2);
LD ST
abc
A
def
ghi[1]
ghi[1]
UINT#2
B
AryShiftRegLR
AryShiftRegLR_instance
ShiftL ENO
ShiftR
Reset
In
InOut
Size
InOut[0]=ghi[1]
1 1 0 1 0 0 1 1 1
1
Size=UINT#2
In=defInOut[1]=ghi[2]
1 0 1 0 1 0 0 0
InOut[0]=ghi[1]
1 0 1 0 0 1 1 1
P_CY InOut[1]=ghi[2]
0 1 0 1 0 0 0 1

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