High−level Instructions
3 − 639
Outline Searches for a minimum value in a table of 16-bit areas.
For the FP0R/FPΣ/FP−X, the P type high−level instruction “P272
(PMIN)” is not available.
Program example
Boolean
Ladder Diagram
Address Instruction
S1
Trigger
DS2
F272 MIN, DT10, DT20, DT30
10
R0
10
11
ST R 0
F272 (MIN)
DT 10
DT 20
DT 30
S1 Starting 16-bit area of data table
S2 Ending 16-bit area of data table
D Starting 16-bit area for storing minimum value and relative address (2 words)
Operands
O
erand
Relay Timer/Counter Register
Index
register
Constant
Index
WX WY WR WL SV EV DT LD FL I K H f
modifier device
S1 A A A A A A A A A A N/A N/A N/A A N/A
S2 A A A A A A A A A A N/A N/A N/A A N/A
D N/A A A A A A A A A A N/A N/A N/A A N/A
Description
This instruction searches for the minimum value in the 16-bit 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+1.
S1:
S1+1:
0
1
2
3
4
Word data table
n
Relative address
S2:
D:
D+1:
Minimum value
Relative address
If there are several values which are a minimum value, the relative address of the first value found searching
from S1 is stored in D+1.
F272
P272
(PMIN)
(MIN)
Minimum value search in 16-bit data table
vailable
N/A: Not Available
Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com