591
3. Instructions
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Table Data Processing Instructions
3
MAX/MIN
z MIN
When CIO 0.00 turns ON in the following example, MIN(183) searches the 10-word range beginning at
D200 for the minimum value. The minimum value is written to D300 and the PLC memory address of
the word containing the minimum value is written to IR0.
C: D100
C+1: D101
D: D300
R1
100CF
–2
–1
1
000100CF
0
0
0
A
–3
D200
D201
D202
D203
D204
D205
D206
D207
D208
D209
R1:
1: Treats data as signed binary.
1: Outputs address to IR0.
Always 0.
PC memory
address
Decimal
equivalent
Min. value
10 words
Number of words
0.00
D100
D200
D300