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-447
2 Instruction Descriptions
NJ-series Instructions Reference Manual (W502)
Conversion Instructions
2
UniteDigit_**
UniteDigit_**
The UniteDigit_** instructions join 4-bit units of data into a bit string.
* If you omit the input parameter, the default value is not applied. A building error will occur.
The UniteDigit_** instructions join 4-bit units from the elements of array to join In[]. It creates a bit string
in joined result Out. (Four bits is one digit.)
Number of digits to join Num specifies the number of array elements to join. First, the lower four bits
from each element from In[0] to In[Num1] are joined to create a bit string with Num digits. To this, 16#0
is added to the upper digits for the number of digits of Out minus the value of Num. The result is stored
in Out.
The name of the instruction is determined by the data type of Out. For example, if Out is the WORD
data type, the instruction is UniteDigit_WORD.
Instruction Name FB/FUN Graphic expression ST expression
UniteDigit_** Four-bit Join Group FUN Out:=UniteDigit_**(In,
Num);
"**" must be a bit string data
type.
Variables
Name Meaning I/O Description Valid range Unit Default
In[] (array) Array to join
Input
Array to join Depends on data type.
---
*
Num Number of digits
to join
Number of digits to join 0 to No. of bits in Out 1
Out Joined result Output Bit string with joined result Depends on data type.
--- ---
Boolean
Bit strings Integers
Real
numbers
Times, durations,
dates, and text strings
BOOL
BYTE
WORD
DWORD
LWORD
USINT
UINT
UDINT
ULINT
SINT
INT
DINT
LINT
REAL
LREAL
TIME
DATE
TOD
DT
STRING
In[] (array) OK
Num OK
Out OKOKOKOK
Function
(@)UniteDigit_**
EN ENO
In Out
Num
"**" must be a bit string data type.

Table of Contents

Related product manuals