![Omron CVM1D Operation Manual Download Page 312](http://html1.mh-extra.com/html/omron/cvm1d/cvm1d_operation-manual_742532312.webp)
(165)
MAX
D03000
0200
D00500
0000
00
307
Example
When CIO 000000 is ON in the following example, MAX(165) outputs to D00500
the maximum value within the 10-word range from CIO 0200 to CIO 0209. Be-
cause bit 14 of C is ON, the lower address of the two addresses within the range
that contain the maximum value is output to IR0.
Address
Instruction
Operands
00000
LD
000000
00001
MAX(165)
D03000
0200
D00500
D03000
4010
0200
3F2A
$00C8
0201
51C3
$00C9
0202
E02A
$00CA
0203
7C9F
$00CB
0204
2A20
$00CC
0205
A827
$00CD
0206
2A20
$00CE
0207
E02A
$00DF
0208
C755
$00D0
0209
94DC
$00D1
D00500
E02A
IR0
00CA
10 words
5-23-2 FIND MINIMUM: MIN(166)
Variations
j
MIN(166)a
(166)
MIN
C
R
1
D
R
1
: 1
st
word in range
CIO, G, A, T, C, DM
D: Destination word
CIO, G, A, DM, DR, IR
C: Control word
CIO, G, A, #, DM, DR, IR
Operand Data Areas
Ladder Symbol
When the execution condition is OFF, MIN(166) is not executed. When the ex-
ecution condition is ON, MIN(166) searches the range of memory from R
1
to
R
1
+N–1 for the address that contains the minimum value, outputs that value to
the destination word (D) and, if bit 14 of C is ON, outputs the memory address of
the word containing the minimum value to IR0.
If bit 14 of C is ON and more than one address contains the same minimum val-
ue, the lowest of the addresses will be output to IR0.
The number of words within the range (N) is contained in the 3 rightmost digits of
C, which must be BCD between 001 and 999.
Description
Special Math Instructions
Section 5-23
Summary of Contents for CVM1D
Page 462: ...SYSMAC CVM1D Duplex System Programmable Controllers Operation Manual Revised August 2001...
Page 463: ...iv...
Page 465: ...vi...