EasyManua.ls Logo

Omron NJ501-1500

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
Loading...
2 Instruction Descriptions
2-452
NJ-series Instructions Reference Manual (W502)
The following example shows the Unite8Bit_DWORD instruction when Num is USINT#3.
Use the Dispart8Bit instruction (page 2-449) to separate a bit string into 1-byte units.
If the value of Num is 0, the value of Out is 0.
An error occurs in the following cases. ENO will be FALSE, and Out will not change.
The value of Num is outside of the valid range.
The value of Num exceeds the array area of In[].
In[] is not a BYTE array.
An array without a subscript is passed to In[].
Additional Information
Precautions for Correct Use
def:=Unite8Bit_DWORD(abc[1], USINT#3);
LD ST
USINT#3
def
abc[1]
Unite8Bit_DWORD
EN ENO
In
Num
Byte 0Byte 1Byte 2
Highest
byte
Out=def
Num=USINT#3
16#00
Num=USINT#3
In[0]=abc[1]
In[1]=abc[2]
In[2]=abc[3]
In[3]=abc[4]
36
AA
21
A0
00 21 AA 36

Table of Contents

Related product manuals