EasyManua.ls Logo

Panasonic FP Series

Panasonic FP Series
1345 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
Loading...
Bitwise Boolean instructions
547
Part III FP Instructions
F93_UNIT
16-bit data combine
n specifies the number of data to be extracted. The range of n is 0 to 4.
The programming example provided below can be envisioned thus:
·········
15
000
12
0
11
000
8
0
7
000
4
0
3
000
0
1
0000000000000100
0000000000000010
·········
15
000
12
0
11
010
8
0
7
001
4
0
3
000
0
1
Source
Bit position
Bit position
Array[0] at s
Value at d
Bit positions 12 to 15 are filled with 0s.
start: ON
Destination
Array[2] at s
Array[1] at 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 F93_UNIT (see page 1326)
Variable Data type Function
s WORD starting 16-bit area to be extracted (source)
n INT specifies number of data to be extracted
d WORD 16-bit area for storing combined data (destination)
For Relay T/C Register Constant
s WX WY WR WL SV EV DT LD FL -
n WX WY WR WL SV EV DT LD FL dec. or hex.
d - WY WR WL SV EV DT LD FL -
Description
Extracts each lower 4 bits (bit position 0 to 3) starting with the 16-bit area specified by s and
combines the extracted data into 1 word if the trigger EN is in the ON-state. The result is stored in
the 16-bit area specified by d.
Data types
Operands

Table of Contents

Other manuals for Panasonic FP Series

Related product manuals