Omron CJ - INSTRUCTIONS REFERENCE MANUAL 07-2009 Reference Manual page 617

Programmable controllers
Hide thumbs Also See for CJ - INSTRUCTIONS REFERENCE MANUAL 07-2009:
Table of Contents

Advertisement

3. Instructions
MAX/MIN
Instruction
FIND MAXIMUM
FIND MINIMUM
Symbol
Applicable Program Areas
Function block
Area
definitions
Usage
OK
Operands
Operand
C
First control word
R1
First word in range
D
Destination word
C: First control word
15
C
15
14
13
00 0000
C+1
Output selection
0: Does not output address to IR0.
1: Outputs address to IR0.
Data type
0: Unsigned binary data
1: Signed binary data
Operand Specifications
Word addresses
Area
CIO
WR
HR
C
R1
OK
OK
OK
D
580
Mnemonic
Variations
MAX
@MAX
MIN
@MIN
MAX
MAX(182)
C
C: First control word
R1
R1: First word in range
D
D: Destination word
Block program areas
Step program areas
OK
OK
Description
0
W: Number of words in range
&1 to &65535 (decimal) or
#0001 to #FFFF (hex)
0
0000
0000
0
AR
T
C
DM
EM
OK
OK
OK
OK
OK
Function
code
182
Finds the maximum value in the range.
183
Finds the minimum value in the range.
Subroutines
OK
Data type
UDINT
UINT
UINT
R1: First word in range
15
R1
to
R1+(W–1)
Note C and C+1, R1 and R1+(W-1) must be in the
same data area.
Indirect DM/EM
addresses
Con-
stants
@DM
*DM
DR
@EM
*EM
OK
---
OK
OK
---
OK
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Function
MIN
MIN(183)
C
C: First control word
R1
R1: First word in range
D
D: Destination word
SFC action or
Interrupt tasks
transition programs
OK
OK
Size
2
Variable
1
0
Search range
---
Registers
Flags
Pulse
bits
Indirect
IR
TK
CF
using IR
---
OK
---
---
TR
bits
---
---

Advertisement

Table of Contents
loading

Table of Contents