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-446
NJ-series Instructions Reference Manual (W502)
The following example is for when Num is USINT#3.
Use the UniteDigit_** instruction (page 2-447) to join 4-bit units from array elements.
The values in AryOut[] do not change if the value of Num is 0.
Return value Out is not used when the instruction is used in ST.
An error occurs in the following cases. ENO will be FALSE, and AryOut[] will not change.
The value of Num is outside of the valid range.
The value of Num exceeds the array area of AryOut[].
AryOut[] is not a BYTE array.
An array without a subscript is passed to AryOut[].
Additional Information
Precautions for Correct Use
DispartDigit(abc, USINT#3, def[1]);
LD ST
USINT#3
def[1]
def[1]
abc
DispartDigit
EN ENO
In
Num
AryOut
Bits
0 to 3
Bits
4 to 7
Digit 0Digit 1Digit 2
Highest
digit
In=abc
Num=USINT#3
Num=USINT#3
C 7
5 2 A 6
6
0
AryOut[0]=def[1]
A
0
AryOut[1]=def[2]
2
0
AryOut[2]=def[3]
16#0

Table of Contents

Related product manuals