Conversion instructions
669
Part III FP Instructions
F240_COLM
Bit line to bit column conversion
The bits of the ARRAY that are not overwritten by the input value (input s) are not effected.
0 0 0 1 1 1 01 0 1 0 1 0 1 0 1
15 0
1
15
0
0
10
0
1
1
0
1
1
1
0
0
0
1
0
1
0
d
datafield[0]
datafield[15]
position n = 10
bit combination s
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.
PLC types
Availability of F240_COLM (see page 1323)
Variable Data type Function
s source
n
ANY16
specifies bit position
d ARRAY [0..15] of
ANY16
destination area that will be rewritten with bit column
Description
The function creates a bit column out of a value given at input s that is returned within an ARRAY
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.
Data types