K 0
K 200
K 200
K -300
K -400
DT100・DT101
[S1]…DT10 [S2]…DT30
Example 6) Operation unit: 32 bits (SL) (specify a 16-bit device)
K -10
K -20
K 100
0
[D]…DT100
<Output result>
<Max. value search range>
1
2
3
8
9
10
Relative position
([D] , [D]+1 )
①
②
* Signed 32-bit integer
([D]+2 , [D]+3)
* Unsigned 32-bit integer
U 8
DT102・DT103
DT28・DT29
DT30・DT31
DT26・DT27
DT10・DT11
DT12・DT13
DT14・DT15
DT16・DT17
SF 4.44
SF 5.55
SF 5.55
SF 1.11
SF 3.33
DT100・DT101
DT88・DT89
DT90・DT91
DT86・DT87
[S1]…DT10 [S2]…DT90
Example 7) Operation unit: Single-precision, floating-point real number (SF)
SF 1.11
SF 3.33
SF 2.22
DT10・DT11
DT12・DT13
DT14・DT15
DT16・DT17
0
[D]…DT100
<Output result>
<Max. value search range>
1
2
3
38
39
40
Relative position
([D] , [D]+1 )
([D]+2 , [D]+3)
①
②
* Single precision floating point real
number (32 bits)
* Unsigned 32-bit integer
U 38
DT102・DT103
・・・・
・・・・
・・・・
・・・・
・・・・
・・・・
[i]…SL
[i]…SF
■
Precautions for programming
● The end position of the search range for the maximum value is the device that contains [S2].
H CCDDEEFF
H 11223344
H 55667788
H 9900AABB
H CCDDEEFF
H 12345678
DT0・DT1
DT2・DT3
DT4・DT5
DT6・DT7
DT8・DT9
[S1]…DT2 [S2]…DT6
Example) When the operation unit is specified as 32 bits, the max. value search range becomes the
same whether a higher or lower address is specified for the [S2] device address.
H 11223344
H 55667788
H 9900AABB
H 12345678
[S1]…DT2 [S2]…DT7
Max. value
search range
Max. value
search range
DT0・DT1
DT2・DT3
DT4・DT5
DT6・DT7
DT8・DT9
● Data is overwritten if [D] (search result for maximum value) is specified within the search
range for the maximum value.
10.3 MAX (Acquiring the Maximum Value)
WUME-FP7CPUPGR-12 10-11