Unite8Bit - Omron NY532-5400 Reference Manual

Ny-series
Hide thumbs Also See for NY532-5400:
Table of Contents

Advertisement

Unite8Bit_**

The Unite8Bit_** instructions join bytes of data into a bit string.
Instruction
Unite8Bit_**
Byte Data Join
Group
Variables
Name
Meaning
In[] (array)
Array to join
Num
Number of
bytes 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 Unite8Bit_** instructions join elements of array to join In[] to create a bit string in joined result Out.
Number of bytes to join Num specifies the number of array elements to join. First, In[0] to In[Num−1] are
joined to create a bit string with Num bytes. To this, 16#00 is added to the upper bytes for the number of
bytes 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 DWORD
data type, the instruction is Unite8Bit_DWORD.
NY-series Instructions Reference Manual (W560)
Name
FB/FUN
FUN
I/O
Description
Array to join
Input
Number of bytes to join
Output
Bit string with joined result
OK
Graphic expression
(@)Unite8Bit_**
EN
ENO
In
Num
"**" must be a bit string data type.
Valid range
Depends on data type.
0 to No. of bytes in Out
Depends on data type.
Integers
2 Instruction Descriptions
ST expression
Out:=Unite8Bit_**(In, Num);
"**" must be a bit string data
Out
type.
Unit
Default
*
---
1
---
---
Times, durations,
dates, and text strings
2
2-473

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents