Nj-Series Instructions Reference Manual (W502 - Omron NJ501-1500 Reference Manual

Machine automation controller nj-series
Hide thumbs Also See for NJ501-1500:
Table of Contents

Advertisement

2 Instruction Descriptions
The following example is for when OutVal is the same as above, Size is UINT#4, and Order is
_HIGH_LOW.
In[0]
In[1]
Size = UINT#4
In[2]
In[3]
When the Data Type of OutVal Is One Byte
If the data type of OutVal is one byte, one byte of In[] is stored directly in OutVal.
The following data types have one byte.
Classification
Bit strings
Integers
Real numbers
Times, durations, dates, and
text strings
Others
The following storage method is used.
Value of
Order
_LOW_HIGH
_HIGH_LOW
The following example is for when OutVal is a SINT array with three elements, Size is UINT#3, and
Order is _LOW_HIGH.
Size = UINT#3
The following example is for when OutVal and Size are the same as above and Order is _HIGH_LOW.
In[0]
In[1]
Size = UINT#3
In[2]
2-460
BYTE#16#67
BYTE#16#45
BYTE#16#23
BYTE#16#01
BYTE
USINT and SINT
None
STRING types with one byte
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.
OutVal
(array or not)
Not an array
Value of In[0] is stored in OutVal
Array
Value of In[i] is stored in OutVal[i]
Not an array
Value of In[1] is stored in OutVal
Array
In[i] (where i is even) is stored in OutVal[i+1].
In[i] (where i is odd) is stored in OutVal[i−1].
If the value of Size is odd, data is stored up to OutVal[Size] and 16#00
is stored in OutVal[Size−1].
OutVal[0]
In[0]
BYTE#16#01
In[1]
OutVal[1]
BYTE#16#02
OutVal[2]
In[2]
BYTE#16#03
OutVal[0]
BYTE#16#01
OutVal[1]
BYTE#16#02
OutVal[2]
BYTE#16#03
OutVal[3]
DWORD#16#23016745
OutVal
Data type
Storage method in OutVal
SINT#1
SINT#2
SINT#3
SINT#2
SINT#1
SINT#0
SINT#3

NJ-series Instructions Reference Manual (W502)

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Nj501-1300Nj501-1400

Table of Contents