![Omron CJ1G-CPUxx Instructions Manual Download Page 668](http://html1.mh-extra.com/html/omron/cj1g-cpuxx/cj1g-cpuxx_instructions-manual_742491668.webp)
647
Table Data Processing Instructions
Section 3-17
Variations
Applicable Program Areas
Operands
C and C+1: Control words
C specifies the number of words in the range, bit 15 of C+1 indicates whether
the data will be treated as signed binary or unsigned binary, and bit 14 of C+1
indicates whether or not to output the PLC memory address of the word that
contains the maximum value to IR00.
Note C and C+1 must be in the same data area.
The following table shows the possible values of C.
R1: First word in range
R1 specifies the first word in the search range. The words from R1 to R1+(C–
1) are searched for the maximum value. (C is the number of words specified in
C.)
Note R1 and R1+(C–1) must be in the same data area.
Variations
Executed Each Cycle for ON Condition
MAX(182)
Executed Once for Upward Differentiation
@MAX(182)
Executed Once for Downward Differentiation Not supported.
Immediate Refreshing Specification
Not supported.
Block program areas
Step program areas
Subroutines
Interrupt tasks
OK
OK
OK
OK
C+1
Data type
Index Register output
0000
Unsigned binary
No
4000
Unsigned binary
Yes
8000
Signed binary
No
C000
Signed binary
Yes
Number of words in range
Output selection
0: Does not output address to IR00.
1: Outputs address to IR00.
Data type
0: Unsigned binary data
1: Signed binary data
15
0
C
15
0
14
0
C+1
13
00 0000
0000
0000
Search range
R1
R1+(C–1)
15
0
---
to
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 ...