Panasonic FP-E Programming Manual page 901

Fp series
Table of Contents

Advertisement

F271
(DMAX)
P271
(PDMAX)
Outline
Searches for a maximum value in a table of 32-bit areas.
For the FP0R/FPΣ/FP−X, the P type high−level instruction "P271
(PDMAX)" is not available.
Program example
Trigger
R0
F271 DMAX, DT10, DT20, DT30
10
S1
S2
D
Operands
Relay
Operand
Operand
WX WY WR WL
S1
A
A
S2
A
A
D
N/A
A
Description
This instruction searches for the maximum value in the double word data table between the area selected
with S1 and the area selected with S2, and stores it in the area selected with D. The address relative to S1 is
stored in D+2.
Double word data table
Lower word
S1:
0
Higher word
S1+1:
S1+2:
1
S1+3:
Lower word
n
S2:
Relative address
Higher word
S2+1:
Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com
Maximum value search in 32-bit data table
Ladder Diagram
Ladder Diagram
S1
Starting 16-bit area of 32-bit data table
Ending 16-bit area of double word (32-bit)
Starting 16-bit area for storing maximum value and relative address (3 words)
Timer/Counter
SV
EV
A
A
A
A
A
A
A
A
A
A
A
A
Lower word
D:
Maximum value
Higher word
D+1:
Relative address
D+2:
S2
D
Index
Register
register
DT
LD
FL
I
A
A
A
A
A
A
A
A
A
A
A
A
High−level Instructions
Boolean
Address
Instruction
10
ST
R
11
F271
DT
DT
DT
Constant
Index
modifier device
modifier
K
H
f
N/A N/A N/A
A
N/A N/A N/A
A
N/A N/A N/A
A
A:
Available
N/A: Not Available
0
(DMAX)
10
20
30
Integer
device
N/A
N/A
N/A
3 − 637

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fp0Fp2Fp2shFp0rFrsFp10sh ... Show all

Table of Contents