Omron CS1G/H-CPUxxH Instructions Manual page 673

Sysmac cs series; sysmac cj series
Hide thumbs Also See for CS1G/H-CPUxxH:
Table of Contents

Advertisement

Table Data Processing Instructions
Description
Flags
Precautions
Examples
652
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.
R1
R1+(W–1)
Name
Label
Error Flag
ER
Equals Flag
=
Negative Flag
N
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.
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.
PC memory
address
C
C words
Min. value
Operation
ON if the content of C isn't within the specified range of
0001 through FFFF.
OFF in all other cases.
ON if the minimum value is 0000.
OFF in all other cases.
ON if bit 15 is ON in the word containing the minimum
value.
OFF in all other cases.
Section 3-17
W

Advertisement

Table of Contents
loading

Table of Contents