Toarybyte - Omron NY532-5400 Reference Manual

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

Advertisement

ToAryByte

The ToAryByte instruction separates a variable into bytes and stores the bytes in a BYTE array.
Instruction
ToAryByte
Conversion to Byte
Array
Variables
Name
Meaning
In
Data to convert
Order
Conversion
order
AryOut[]
Conversion
(array)
results array
Out
Number of
elements in
result
* If you omit the input parameter, the default value is not applied. A building error will occur.
Bit strings
OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK
In
An enumeration, array, array element, structure, or structure member can also be specified.
Order
AryOut[]
OK
(array)
Out
Function
The ToAryByte instruction separates the value of data to convert In into individual bytes and stores
them in order in conversion results array AryOut[] starting from AryOut[0]. Number of elements in result
Out contains the number of elements stored in AryOut[].
Conversion order Order specifies the order in which to convert the value of In to bytes. The data type of
Order is enumerated type _eBYTE_ORDER. The meaning of the enumerators are as follows:
Enumerator
_LOW_HIGH
_HIGH_LOW
NY-series Instructions Reference Manual (W560)
Name
FB/FUN
FUN
I/O
Description
Data to convert
Input
Conversion order
In-out
Conversion results array
Output
Number of elements in
result
Refer to Function for the enumerators for the enumerated type _eBYTE_ORDER.
OK
Meaning
Lower byte first, higher byte last
Higher byte first, lower byte last
Graphic expression
(@)ToAryByte
EN
ENO
In
Out
Order
AryOut
Valid range
Depends on data type.
_LOW_HIGH or
_HIGH_LOW
Depends on data type.
Depends on data type.
Integers
2 Instruction Descriptions
ST expression
Out:=ToAryByte(In, Order,
AryOut);
Unit
Default
*
---
_LOW
_HIGH
---
---
---
---
Times, durations,
dates, and text strings
2
2-475

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents