2 Instruction Descriptions
2-458
NJ-series Instructions Reference Manual (W502)
AryByteTo
The AryByteTo instruction joins BYTE array elements and stores the result in a variable.
* If you omit the input parameter, the default value is not applied. A building error will occur.
The AryByteTo instruction takes the first Size elements in array to convert In[] and joins them to match
the size of the data type of conversion result OutVal. It then stores the result in OutVal.
Instruction Name FB/FUN Graphic expression ST expression
AryByteTo Conversion from
Byte Array
FUN AryByteTo(In, Size, Order,
OutVal);
Variables
Name Meaning I/O Description Valid range Unit Default
In[] (array) Array to
convert
Input
Array to convert
Depends on data type.
---
*
Size Number of
elements to
convert
Number of elements in In[]
to convert
1
Order Conver-
sion order
Conversion order _LOW_HIGH or
_HIGH_LOW
_LOW
_HIGH
OutVal Conver-
sion result
In-out Conversion result Depends on data type.
--- ---
Out Return
value
Output Always TRUE TRUE only --- ---
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
Size OK
Order Refer to Function for the enumerators for the enumerated type _eBYTE_ORDER.
OutVal
OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK
An enumeration, array, array element, structure, or structure member can also be specified.
Out OK
Function
(@)AryByteTo
EN ENO
In Out
Size
Order
OutVal