Panasonic FP7 User Manual page 222

Cpu unit enthernet expansion function
Hide thumbs Also See for FP7:
Table of Contents

Advertisement

Instruction References
 Operand [S1] control data setting
Specify the start position to compare the block 1 and block 2 either from the low or high byte.
Starting address
S1
of block 1
0
From low byte
1
From high byte
2
From low byte
3
From high byte
Example 1) When blocks match, the system relay SRB
(= flag) turns ON.
Block 1: From low byte
Block 2: From low byte
Blocks: 5 bytes
S1: H0, S2: U5, S3: DT1, S4: DT10
Block 1
High
Low
DT0
00H
00H
DT1
31H
30H
DT2
33H
32H
34H
DT3
35H
Example 3) When blocks match, the system relay SRB
(= flag) turns ON.
Block 1: From high byte
Block 2: From low byte
Blocks: 6 bytes
S1: H1, S2: U6, S3: DT0, S4: DT10
Block 1
High
Low
30H
DT0
00H
DT1
32H
31H
DT2
34H
33H
DT3
00H
35H
 Flag operation
Name
Description
Set in case of out-of-range values in indirect access (index modification).
Latest error
(SR7)
Set when the comparison range is outside the accessible range.
Hold error
Set when the control data is outside the range.
(SR8)
Set when the block length is outside the settable range.
Set when the comparison blocks of S2 and S3 match.
= flag
(SB)
Reset when the comparison blocks of S2 and S3 do not match.
7-28
Starting address
of block 2
From low byte
From low byte
From high byte
From high byte
Block 2
High
Low
DT10
31H
30H
DT11
33H
32H
DT12
35H
34H
DT13
37H
36H
Block 2
High
Low
31H
30H
DT10
DT11
33H
32H
DT12
35H
34H
DT13
37H
36H
Example 2) When blocks do not match, the system
relay SRB (= flag) turns OFF.
Block 1: From low byte
Block 2: From low byte
Blocks: 5 bytes
S1: H0, S2: H5, S3: DT1, S4: DT10
Block 1
High
Low
DT0
00H
00H
31H
30H
DT1
DT2
33H
32H
34H
DT3
35H
Example 4) When blocks match, the system relay SRB
(= flag) turns ON.
Block 1: From high byte
Block 2: From high byte
Blocks: 7 bytes
S1: H3, S2: H7, S3: DT1, S4: DT10
Block 1
High
Low
DT0
00H
00H
DT1
31H
30H
DT2
33H
32H
DT3
35H
34H
DT4
37H
36H
DT5
39H
38H
Block 2
High
Low
31H
30H
DT10
33H
33H
DT11
DT12
35H
34H
DT13
37H
36H
Block 2
High
Low
31H
DT10
30H
DT11
33H
32H
DT12
35H
34H
DT4
37H
36H
DT5
39H
38H

Advertisement

Table of Contents
loading

Table of Contents