Ny-Series Instructions Reference Manual (W560 - Omron NY532-5400 Reference Manual

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

Advertisement

When OutVal Is BOOL Data
If the data type of OutVal is BOOL (one bit), data is stored in OutVal as described below.
Value of
Order
_LOW_HIGH
_HIGH_LOW
The following example is for when OutVal is a BOOL array with 21 elements, Size is UINT#3, and Order
is _LOW_HIGH.
In[0]
In[1]
Size = UINT#3
In[2]

NY-series Instructions Reference Manual (W560)

OutVal
(array or not)
Not an array
Value of bit 0 of In[0] is stored in OutVal.
Array
Value of In[0] is separated and stored in OutVal[0] to OutVal[7]. Value
of In[1] is separated and stored in OutVal[8] to OutVal[15]. The same
process is repeated to store the rest of the data.
Remaining bits are discarded.
Not an array
Value of bit 0 of In[1] is stored in OutVal.
Array
Value of In[0] is separated and stored in OutVal[8] to OutVal[15]. Value
of In[1] is separated and stored in OutVal[0] to OutVal[7]. The same
process is repeated to store the rest of the data.
Remaining bits are discarded.
BYTE#16#89
BYTE#16#45
BYTE#16#04
Storage method in OutVal
OutVal[0]
TRUE
OutVal[1]
FALSE
OutVal[2]
FALSE
OutVal[3]
TRUE
OutVal[4]
FALSE
OutVal[5]
FALSE
OutVal[6]
FALSE
OutVal[7]
TRUE
OutVal[8]
TRUE
OutVal[9]
FALSE
OutVal[10]
TRUE
OutVal[11]
FALSE
OutVal[12]
FALSE
OutVal[13]
FALSE
OutVal[14]
TRUE
OutVal[15]
FALSE
OutVal[16]
FALSE
OutVal[17]
FALSE
OutVal[18]
TRUE
OutVal[19]
FALSE
OutVal[20]
FALSE
2 Instruction Descriptions
2
2-483

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents