Panasonic FP Series Programming Manual page 548

Hide thumbs Also See for FP Series:
Table of Contents

Advertisement

F93_UNIT
Extracts each lower 4 bits (bit position 0 to 3) starting with the 16-bit area specified by s and
Description
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.
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:
Source
Bit position
Array[0] at s
Array[1] at s
Array[2] at s
Destination
Bit position
Value at d
Bit positions 12 to 15 are filled with 0s.
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 F93_UNIT (see page 1326)
PLC types
Data types
Variable
Data type
WORD
s
INT
n
WORD
d
Operands
For
s
n
d
16-bit data combine
· · ·
· ·
·
·
15
12
11
8
7
0 0 0
0
0 0 0
0
0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0
0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0
start: ON
· · ·
· ·
·
·
15
12
11
8
7
0 0 0
0
0 1 0
0
0 0 1
Function
starting 16-bit area to be extracted (source)
specifies number of data to be extracted
16-bit area for storing combined data (destination)
Relay
WX
WY
WR
WL
WX
WY
WR
WL
-
WY
WR
WL
· ·
4
3
0
0
0 0 0
1
· ·
4
3
0
0
0 0 0
1
T/C
Register
SV
EV
DT
LD
FL
SV
EV
DT
LD
FL
SV
EV
DT
LD
FL
Bitwise Boolean instructions
Constant
-
dec. or hex.
-
547

Advertisement

Table of Contents
loading

Table of Contents