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 #401 background imageLoading...
Page #401 background image
2-353
2 Instruction Descriptions
NJ-series Instructions Reference Manual (W502)
Shift Instructions
2
AryShiftReg
The AryShiftReg instruction shifts Size array elements in the array of bit strings InOut[] to the left (i.e.,
toward most-significant bit) when Shift 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 Reset is TRUE, CY and all of bits in Size elements starting from InOut[0] are set to FALSE.
The following example is for when InOut[] is a BYTE array and Size is UINT#2.
• While Reset is TRUE, the register is not shifted even if Shift changes to TRUE.
• ENO will change to TRUE when Shift changes to TRUE and the shift operation is performed normally,
or when Reset is TRUE and the reset operation is performed normally.
• The InOut[] does not change if the value of Size is 0.
• An error occurs in the following case. ENO will be FALSE, and InOut[] will not change.
• The value of Size exceeds the array area of InOut[].
Function
Related System-defined Variables
Name Meaning Data type Description
P_CY Carry (CY) Flag BOOL Value stored in Carry Flag
Precautions for Correct Use
In
P_CY
Size elements
InOut[0]
InOut[1]
AryShiftReg_instance(A, abc, def, ghi[1], UINT#2);
LD ST
abc
A
def
ghi[1] ghi[1]
UINT#2
AryShiftReg
AryShiftReg_instance
Shift ENO
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