Panasonic FP7 Series Command Reference Manual page 254

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

Advertisement

4.2 WIN (Band Compare)
Example 3) Operation unit: Signed 16 bits (SS) (operation error)
[i]...SS
[S1]
DT0 [S2]...DT1 [S3]...DT2
...
Hexadecimal
DT0
DT1
DT2
Flag operations during execution
DT1 > LD2
* Operation error because of [S2] > [S3] (Set SR7 (latest error) and SR8 (hold error))
Example 4) Operation unit: Single-precision, floating-point real number (SF) (SRA(>) ON)
[i]...SF
[S1]...DT0 [S2]...LD0 [S3]...LD2
DT0・DT1
LD0・LD1
LD2・LD3
Flag operations during execution
DT0・DT1 > LD2・LD3
Precautions for programming
● In the case of a direct address and an index modification address, ensure that [S3] is equal
to or larger than [S2].
Flag operations
Name
SR7
SR8
(ER)
SRA (>)
SRB (=)
SRC (<)
4-8
Unsigned decimal
H 6000
K 32768
H 7000
K 28672
H 9000
K 36864
SRA( > )
OFF
Value (real number decimal)
SF 8.000E + 02
SF 5.000E + 02
SF 7.000E + 02
Description
To be set in the case of out-of-range in indirect access (index modification).
To be set when [S2] is larger than [S3].
To be set when a non-real number is specified for [S1], [S2] or [S3], and the operation unit is
real numbers (SF).
Depending on the comparison result
Signed decimal
K -32767
K 28672
K -28671
SRB( = )
OFF
SRA( > )
SRB( = )
ON
OFF
SRC( < )
OFF
SRC( < )
OFF
WUME-FP7CPUPGR-12

Advertisement

Table of Contents
loading

Table of Contents