EasyManuals Logo

Omron NJ501-1500 User Manual

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
Page #425 background imageLoading...
Page #425 background image
2-377
2 Instruction Descriptions
NJ-series Instructions Reference Manual (W502)
Conversion Instructions
2
ColmToLine_**
ColmToLine_**
The ColmToLine_** instruction extracts bit values from the specified position of array elements and out-
puts them as a bit string.
* If you omit the input parameter, the default value is not applied. A building error will occur.
The ColmToLine_** instruction extracts bit values from the specified position of array elements and out-
puts them in order as a bit string.
First, Size elements are extracted from array to convert In[] starting from In[0]. Then, only the values of
bits in Pos are extracted. These are placed in order in a bit string of Size bits and stored in conversion
result Out from the least-significant bit. FALSE is stored in the remaining bits of Out.
The name of the instruction is determined by the data type of Out. For example, if Out is the BYTE data
type, the instruction is ColmToLine_BYTE.
Always attach the element number to input parameter that is passed to In[], e.g., array[3].
Instruction Name FB/FUN Graphic expression ST expression
ColmToLine_** Column to Line
Conversion Group
FUN Out:=ColmToLine_**(In,
Size, Pos);
"**" must be a bit string data
type.
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
0 to No. of bits in Out 1
Pos Bit position
to convert
Bit position to convert 0 to No. of bits in
In[] − 1
0
Out Conver-
sion result
Output Conversion result Depends on data type.
--- ---
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) OKOKOKOK
Size OK
Pos OK
Out OKOKOKOK
Function
(@)ColmToLine_**
EN ENO
In Out
Size
Pos
"**" must be a bit string data type.

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Omron NJ501-1500 and is the answer not in the manual?

Omron NJ501-1500 Specifications

General IconGeneral
BrandOmron
ModelNJ501-1500
CategoryController
LanguageEnglish

Related product manuals