Unitedigit - Omron NJ501-1500 Reference Manual

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

Advertisement

UniteDigit_**

The UniteDigit_** instructions join 4-bit units of data into a bit string.
Instruction
UniteDigit_**
Four-bit Join Group
Variables
Name
Meaning
In[] (array)
Array to join
Num
Number of digits
to join
Out
Joined result
* If you omit the input parameter, the default value is not applied. A building error will occur.
Bit strings
In[] (array)
OK
Num
Out
OK OK OK OK
Function
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[Num−1] 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.
NJ-series Instructions Reference Manual (W502)
Name
FB/FUN
FUN
I/O
Description
Array to join
Input
Number of digits to join
Output
Bit string with joined result
OK
Graphic expression
(@)UniteDigit_**
EN
ENO
In
Out
Num
"**" must be a bit string data type.
Valid range
Depends on data type.
0 to No. of bits in Out
Depends on data type.
Integers
2 Instruction Descriptions
ST expression
Out:=UniteDigit_**(In,
Num);
"**" must be a bit string data
type.
Unit
Default
*
---
1
---
---
Times, durations,
dates, and text strings
2
2-447

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Nj501-1300Nj501-1400

Table of Contents