Panasonic FP7 Series Command Reference Manual page 249

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

Advertisement

Outline of operation
● According to the operation unit [i], two pieces of data that are stored in two different areas
that start from [S1] and [S2] respectively are compared.
● The comparison result is output to the system relays SRA to SRC (assessment flags for
comparison flags).
Processing
● Depending on the relationship between [S1] and [S2], the result of the comparison flag (SR
(system relay)) is as follows:
Relationship
between [S1]
and [S2]
[S1] < [S2]
[S1] = [S2]
[S1] > [S2]
Example 1) Operation unit: Unsigned 16 bits (US) (SRC (<) ON)
[i]...US
[S1]...DT0 [S2]...DT1
Hexadecimal
DT0
DT1
Flag operations during execution
DT0 < DT1
Example 2) Operation unit: Signed 16 bits (SS) (SRA (>) ON)
[i]...SS
[S1]...DT0 [ S2]...DT1
Hexadecimal
DT0
H 6000
DT1
H 8500
Flag operations during execution
DT0 > DT1
WUME-FP7CPUPGR-12
Comparison flags (SR (system relays))
SRA
>
OFF
OFF
ON
Unsigned decimal
H 6000
K 24576
H 8500
K 34048
SRA( > )
OFF
Unsigned decimal
K 24576
K 34048
SRA( > )
ON
4.1 CMP (Data Compare)
SRB
SRC
=
<
OFF
ON
ON
OFF
OFF
OFF
Signed decimal
K 24576
K -31488
SRB( = )
SRC( < )
OFF
ON
Signed decimal
K 24576
K -31488
SRB( = )
SRC( < )
OFF
OFF
4-3

Advertisement

Table of Contents
loading

Table of Contents