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 #503 background imageLoading...
Page #503 background image
2-455
2 Instruction Descriptions
NJ-series Instructions Reference Manual (W502)
Conversion Instructions
2
ToA r y B yt e
The following example is for when In is the same as above and Order is _HIGH_LOW.
If the data type of In is one byte, In is stored in AryOut[] as one byte. The following data types have one
byte.
The following storage method is used.
The following example is for when In is a SINT array with three elements and Order is _LOW_HIGH.
The following example is for when In is the same as above and Order is _HIGH_LOW.
When the Data Type of In Is One Byte
Classification Data type
Bit strings BYTE
Integers USINT and SINT
Real numbers None
Times, durations, dates,
and text strings
STRING types with one byte
Others An array for which the total for all elements is 1 byte, an array element that is 1 byte, a
structure for which the total for all members is 1 byte, or a structure member that is 1
byte.
Value of
Order
In (array or not) Storage method in AryOut[]
_LOW_HIGH
Not an array Value of In is stored in AryOut[0].
Array Value of In[i] is stored in AryOut[i].
_HIGH_LOW
Not an array Value of In is stored in AryOut[1].
16#00 is stored in AryOut[0].
Array In[i] (where i is even) is stored in AryOut[i+1].
In[i] (where i is odd) is stored in AryOut[i−1].
If the number of elements in In[] is odd, 16#00 is stored last in AryOut[n−1].
:
In[0]
Out = UINT#12
In[2]
In[1]
AryOut[0]
16#45
16#67
AryOut[11]
16#01
16#23
16#CD
16#EF
16#89
16#AB
16#EE
16#FF
16#CC
16#DD
AryOut[10]
AryOut[9]
AryOut[8]
AryOut[7]
AryOut[6]
AryOut[5]
AryOut[4]
AryOut[3]
AryOut[2]
AryOut[1]
DWORD#16#01234567
DWORD#16#89ABCDEF
DWORD#16#CCDDEEFF
In[0]
Out = UINT#3
In[2]
In[1]
AryOut[0]
16#01
16#02
16#03
AryOut[2]
AryOut[1]
SINT#1
SINT#2
SINT#3
In[0]
Out = UINT#4
In[2]
In[1]
AryOut[0]
16#02
16#01
16#00
AryOut[2]
16#03
AryOut[3]
AryOut[1]
SINT#1
SINT#2
SINT#3

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