Conversion instructions
671
Part III FP Instructions
F241_LINE
Bit column to bit line conversion
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
s
datafield[0]
datafield[15]
Position n = 10
Bit combination d
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 F241_LINE (see page 1323)
Variable Data type Function
s ARRAY [0..15] OF
ANY16
source area where bit column will be read
n specifies bit position
d
ANY16
destination area for storing converted data
Description
The function converts a bit column out of an ARRAY at input s and returns it at output d. The
position at which the conversion takes place is specified at input n. The value assigned at input n
should be between 0 and 15.
Data types