Panasonic FP Series Programming Manual page 670

Hide thumbs Also See for FP Series:
Table of Contents

Advertisement

F240_COLM
The function creates a bit column out of a value given at input s that is returned within an ARRAY
Description
at output d. The position of the column in the ARRAY is specified at input n. The value assigned at
n can be between 0 and 15.
The bits of the ARRAY that are not overwritten by the input value (input s) are not effected.
bit combination s
datafield[0]
datafield[15]
This instruction also exists as a P instruction (for FP2/2SH, FP3/5, FP10/10SH PLC types), which
is only executed at the rising edge of the EN trigger. Select [Insert P instruction] from the
"Instructions" pane if you require a P instruction. To facilitate reuse, the instruction then appears
under "Recently used" in the pop-up menu. Press <Ctrl>+<Shift>+<v> within the programming
area to open the list of recently used elements.
Availability of F240_COLM (see page 1323)
PLC types
Data types
Variable
Data type
s
ANY16
n
ARRAY [0..15] of
d
ANY16
Bit line to bit column conversion
position n = 10
15
0
1 0 1 0
0 0 1
1
1
15
10
1
0
0
1
1
0
1
1
1
0
0
0
1
0
1
0
Function
source
specifies bit position
destination area that will be rewritten with bit column
0
0 1
1 0
0 1
0
d
Conversion instructions
669

Advertisement

Table of Contents
loading

Table of Contents