Panasonic FP Series Programming Manual page 497

Hide thumbs Also See for FP Series:
Table of Contents

Advertisement

Arithmetic instructions
F98_CMPR
Shifts out non-zero data stored at the highest address of the table to the specified area and
Description
compresses the data in the table to the higher address. The data in the table specified by d1 and
d2 is rearranged as follows:
Contents of d2 (highest address) are shifted out to the area specified by d3.
Non-zero data is shifted (compressed) in sequential order, in the direction of the higher address in
the specified range.
d1
K3
0
K2
0
d2
K1
Starting area d1 and ending area d2 should be the same type of operand.
Be sure to specify d1 and d2 with "d1  d2".
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 F98_CMPR (see page 1326)
PLC types
Data types
Variable
Data type
d1
d2
ANY16
d3
Operands
For
d1, d2, d3
Error flags
No.
IEC address
%MX0.900.7
R9007
%MX0.900.8
R9008
496
Data table shift-out and compress
d1
0
0
0
K3
d2
K2
d3
K1
Function
starting (lowest) address of data to be compressed
final (highest) address of data to be compressed, data at d2
is shifted out
receives data shifted out from d2
Relay
-
WY
WR
WL
SV
Set
permanently
for an instant
T/C
Register
EV
DT
LD
FL
If
 d1 > d2
 d1 and d2 are not in the same memory
area
Const.
-

Advertisement

Table of Contents
loading

Table of Contents