![Omron CJ1G-CPUxx Instructions Manual Download Page 673](http://html1.mh-extra.com/html/omron/cj1g-cpuxx/cj1g-cpuxx_instructions-manual_742491673.webp)
652
Table Data Processing Instructions
Section 3-17
Description
MIN(183) searches the range of memory from R1 to R1+C–1 for the minimum
value in the range and outputs that minimum value to D.
When bit 14 of C+1 has been set to 1, MIN(183) writes the PLC memory
address of the word containing the minimum value to IR00. (If two or more
words within the range contain the minimum value, the address of the first
word containing the minimum value is written to IR00.)
When bit 15 of C+1 has been set to 1, MIN(183) treats the data within the
range as signed binary data.
Flags
Precautions
When bit 15 of C+1 has been set to 1, the data within the range is treated as
signed binary data and hexadecimal values 8000 to FFFF are considered
negative. Thus, the results of the search will differ depending on the data-type
setting.
Examples
When CIO 000000 turns ON in the following example, MIN(183) searches the
10-word range beginning at D00200 for the minimum value. The minimum
value is written to D00300 and the PLC memory address of the word contain-
ing the minimum value is written to IR00.
R1+(W–1)
R1
PC memory
address
Min. value
C words
C
W
Name
Label
Operation
Error Flag
ER
ON if the content of C isn’t within the specified range of
0001 through FFFF.
OFF in all other cases.
Equals Flag
=
ON if the minimum value is 0000.
OFF in all other cases.
Negative Flag
N
ON if bit 15 is ON in the word containing the minimum
value.
OFF in all other cases.
Summary of Contents for CJ1G-CPUxx
Page 3: ...iv N o t i c e ...
Page 5: ...vi ...
Page 21: ...xxii Conformance to EC Directives 6 ...
Page 35: ......
Page 1131: ...1110 CJ series Instruction Execution Times and Number of Steps Section 4 2 ...