Panasonic FP Series Programming Manual page 550

Hide thumbs Also See for FP Series:
Table of Contents

Advertisement

F94_DIST
Divides the 16-bit data specified by s into 4-bit units and distributes the divided data into the lower
Description
4 bits (bit position 0 to 3) of 16-bit areas starting with d if the trigger EN is in the ON-state.
n specifies the number of data to be divided. The range of n is 0 to 4. When 0 is specified by n, this
instruction is not executed.
The programming example provided below can be envisioned thus:
Source
Bit position
Value at s
Destination
Bit position
Array[0] at d
Array[1] at d
Array[2] at d
Array[3] at 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.
Availability of F94_DIST (see page 1326)
PLC types
Data types
Variable
Data type
WORD
s
INT
n
WORD
d
Operands
For
s, n
d
16-bit data distribution
n: 4
· · ·
· ·
· ·
15
12
11
8
7
0 1 1
1
0 0 1
1
0 0 0
X0: ON
· · ·
· ·
· ·
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 0 1
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 0 0
Function
16-bit area or equivalent constant to be divided (source)
specifies number of data to be divided
starting 16-bit area for storing divided data (destination)
Relay
WX
WY
WR
WL
-
WY
WR
WL
· ·
4
3
0
1
0 0 0
0
· ·
4
3
0
0
0 0 0
0
1
1
1
1
1
T/C
Register
SV
EV
DT
LD
FL
SV
EV
DT
LD
FL
Bitwise Boolean instructions
Constant
dec. or hex.
-
549

Advertisement

Table of Contents
loading

Table of Contents