Colmtoline - Omron NY532-5400 Reference Manual

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

Advertisement

ColmToLine_**

The ColmToLine_** instruction extracts bit values from the specified position of array elements and out-
puts them as a bit string.
Instruction
ColmToLine_**
Column to Line
Conversion Group
Variables
Name
Meaning
In[] (array)
Array to
convert
Size
Number of
elements to
convert
Pos
Bit position
to convert
Out
Conversion
result
* If you omit the input parameter, the default value is not applied. A building error will occur.
Bit strings
In[] (array)
OK OK OK OK
Size
Pos
Out
OK OK OK OK
Function
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].
NY-series Instructions Reference Manual (W560)
Name
FB/FUN
FUN
I/O
Description
Array to convert
Number of elements in In[]
Input
to convert
Bit position to convert
Output
Conversion result
OK
OK
Graphic expression
(@)ColmToLine_**
EN
ENO
In
Size
Pos
"**" must be a bit string data type.
Valid range
Depends on data type.
0 to No. of bits in Out
0 to No. of bits in
In[] − 1
Depends on data type.
Integers
2 Instruction Descriptions
ST expression
Out:=ColmToLine_**(In,
Size, Pos);
Out
"**" must be a bit string data
type.
Unit
Default
*
1
---
0
---
---
Times, durations,
dates, and text strings
2
2-413

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents