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 #504 background imageLoading...
Page #504 background image
2 Instruction Descriptions
2-456
NJ-series Instructions Reference Manual (W502)
If the data type of In is BOOL (one bit), data is stored in AryOut[] as described below.
The following example is for when In is a BOOL array with 21 elements and Order is _LOW_HIGH.
When In Is BOOL Data
Value of
Order
In (array or not) Storage method in AryOut[]
_LOW_HIGH
Not an array The logical OR of the value of In and 16#00 is stored in AryOut[0].
Array Values of In[0] to In[7] are joined and stored in AryOut[0].
Values of In[8] to In[15] are joined and stored in AryOut[1].
The same process is repeated to store the rest of the data.
If there is not sufficient data in In[] for 8 values, FALSE is added to the
most-significant bit.
The value of Out is always even. If there are not sufficient bit values,
the remaining values will all be FALSE.
_HIGH_LOW
Not an array The logical OR of the value of In and 16#00 is stored in AryOut[1].
16#00 is stored in AryOut[0]
Array Values of In[0] to In[7] are joined and stored in AryOut[1].
Values of In[8] to In[15] are joined and stored in AryOut[0].
The same process is repeated to store the rest of the data.
The value of Out is always even. If there are not sufficient bit values,
the remaining values will all be FALSE.
In[0]
Out = UINT#4
TRUE
In[2]
FALSE
FALSE
In[1]
In[3]
TRUE
In[5]
FALSE
FALSE
In[6]
FALSE
TRUE
TRUE
FALSE
In[8]
In[10]
In[12]
FALSE
TRUE
FALSE
In[13]
FALSE
TRUE
FALSE
FALSE
In[15]
In[17]
FALSE
TRUE
FALSE
FALSE
In[19]
AryOut[0]
16#89
16#45
16#04
AryOut[2]
16#00
AryOut[3]
AryOut[1]
In[4]
In[7]
In[9]
In[11]
In[14]
In[16]
In[18]
In[20]

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