![background image](http://html1.mh-extra.com/html/omron/sysmac-cs1d-cpu/sysmac-cs1d-cpu_reference-manual_742268767.webp)
728
Table Data Processing Instructions
Section 3-17
Examples
When CIO 000000 is ON in the following example, SWAP(637) switches the
data in the leftmost bytes with the data in the rightmost bytes in each word in
the 10-word range from W000 to W009.
3-17-10 FIND MAXIMUM: MAX(182)
Purpose
Finds the maximum value in the range.
In CS1D CPU Units for Single-CPU Systems and CS1-H, CJ1-H, and CJ1M
CPU Units, this instruction can be run in the background. Refer to
CS/CJ
Series Programmable Controllers Programming Manual
for details on back-
ground execution.
Ladder Symbol
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.
&10
N
R1
to
to
to
to
MAX(182)
C
R1
D
C
: First control word
R1
: First word in range
D
: Destination word
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
Summary of Contents for SYSMAC CS1D-CPU**
Page 3: ...iv...
Page 29: ...xxx...
Page 185: ...146 List of Instructions by Function Code Section 2 4...
Page 1389: ...1350 CJ series Instruction Execution Times and Number of Steps Section 4 2...
Page 1390: ...1351 Appendix A ASCII Code Table ASCII SP Four leftmost bits Four rightmost bits...
Page 1391: ...1352 ASCII Code Table Appendix A...