Panasonic FP7 Series Command Reference Manual page 461

Cpu unit
Hide thumbs Also See for FP7 Series:
Table of Contents

Advertisement

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

Advertisement

Table of Contents
loading

Table of Contents