EasyManuals Logo
Home>Omron>Controller>CJ - INSTRUCTIONS

Omron CJ - INSTRUCTIONS User Manual

Omron CJ - INSTRUCTIONS
1308 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #638 background imageLoading...
Page #638 background image
3. Instructions
600
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Flags
Function
MINL(175) searches the range of memory from R1 to R1+(2W-1) for the minimum double word value in
the range and outputs that minimum value to D and D+1.
When bit 14 of C+1 has been set to 1, MINL(175) writes the PLC memory address of the lower word of
the words containing the minimum value to IR0. (If two or more double words within the range contain
the same minimum value, the address of lower word of the first double word containing the minimum
value is written to IR0.)
When bit 15 of C+1 has been set to 1, MINL(175) treats the data within the range as signed binary data.
(A negative value is given as it's two's complement.)
Hint
Refer to the description of MAXL(174) for information on saving and restoring values in Index Registers
and information on background processing.
Example Programming
When CIO 0.00 turns ON in the following example, a table of four double word values starting at D0 is
searched for the minimum value.
The minimum value is stored in W0 and W1.
Name Label Operation
Error Flag P_ER • ON if the length of the table specified in C (bits 00 to 15) is not between 0001 and FFFF hex.
• OFF in all other cases.
Equals Flag P_EQ • ON if the minimum value is 0.
• OFF in all other cases.
Negative Flag P_N • ON if bit 15 of D+1 is ON.
• OFF in all other cases.
m
R1
R1+1
R1+ (2W−1)
R1+ (2W−2)
IR0 m
D
D+1
CW
Lower 16 bits of A
Upper 16 bits of A
Lower 16 bits of A
Upper 16 bits of A
W × 2 words (W = bits 00 to 15 of C)
PLC memory address
MINL
#80000004
D0
W0
0.00
D1-D0
D3-D2
D5-D4
D7-D6
+918(#00000396)
-30000(#FFFF8AD0)
+100000(#000186A0)
-1215(#FFFFFB41)
W1-W0 -30000(#FFFF8AD0)
Table length: 4
Signed
PLC memory address not output to IR0
Minimum value

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Omron CJ - INSTRUCTIONS and is the answer not in the manual?

Omron CJ - INSTRUCTIONS Specifications

General IconGeneral
BrandOmron
ModelCJ - INSTRUCTIONS
CategoryController
LanguageEnglish

Related product manuals