
High
−
level Instructions
3
−
140
Explanation of example
Compares the data block of data register DT10 (4 bytes from DT10 lower order byte) with data register DT20
(4 bytes from DT20 higher order byte) according to the comparison condition in data register DT0 when
trigger R0 turns on. When the contents of the two data blocks are the same, internal relay R1 turns on.
If H1004 is entered in DT0, the two blocks are as follows.
·
DT0 = H 1 0 0 4
Compares
4 bytes (32 bits)
Data block specified by S3:
Starting from higher byte
Data block specified by S2:
Starting from lower byte
2
1
4
3
1
3
2
4
DT20
DT21
DT22
Comparison
DT10
DT11
Data block
specified by
S2
Data block
specified by
S3
Higher
byte
Lower
byte
Area compared
Description
Compares the contents of the data block specified by S2 with the contents of the data block specified by S3
according to content specified by S1.
When the comparison result is S2 = S3, special internal relay R900B (=flag) turns on.
S1 is the control data that determines factors such as the size of the comparison.
How to specify control data “S1”
S1 specifies the starting byte position and the number of bytes to be compared using 4-digit BCD data as
follows:
S1 = H
□ □ □ □
Number of bytes to be compared
range: H01 to H99 (BCD)
Starting byte position for data block specified by S2
1: Starting from higher order byte
0: Starting from lower order byte
Starting byte position for data block specified by S3
1: Starting from higher order byte
0: Starting from lower order byte
Setting example:
To specify the 4 bytes beginning with the lower byte of the data block specified by S2 and the 4 bytes
beginning with the upper byte of the data block specified by S3, set S1 to H1004.
Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: [email protected]
Summary of Contents for FP-E
Page 1: ...Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...
Page 2: ...Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...
Page 24: ...Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...
Page 1333: ...5 245 Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...