EasyManua.ls Logo

Omron NJ501-1500

Omron NJ501-1500
990 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
2 Instruction Descriptions
2-378
NJ-series Instructions Reference Manual (W502)
The following example shows the ColmToLine_BYTE instruction when Pos is USINT#3 and Size is
USINT#4.
Use the LineToColm instruction (page 2-379) to output a bit string to the specified bit position in array
elements.
If the value of Size is 0, all bits in Out change to FALSE.
An error occurs in the following cases. ENO will be FALSE, and Out will not change.
The value of Size is outside of the valid range.
The value of Pos is outside of the valid range.
The value of Size exceeds the array area of In[].
In[] is not an array of bit strings.
An array without a subscript is passed to In[].
Additional Information
Precautions for Correct Use
def:=ColmToLine_BYTE(abc[3], USINT#4, USINT#3);
LD ST
def
abc[3]
USINT#4
USINT#3
ColmToLine_BYTE
EN ENO
In
Size
Pos
Bit 0
Pos=
USINT#3
Most-significant bit
Out=def
In[0]=abc[3]
In[1]=abc[4]
In[2]=abc[5]
In[3]=abc[6]
0 0 0 0 1 0 1 0
Size=USINT#4
Size=USINT#4
0 0 0 0 0 0
0 0 0 0 0 0
0 0 0 0 0 0
0 0 0 0 0 0
0 0 0 0 0 0
0 0 1 0 0 0
0 0 0 0 0 0
0 0 1 0 0 0
FALSE is set.

Table of Contents

Related product manuals