Judging The Match Or Mismatch Of Barcode Data; Barcode Comparison Settings - IDEC HG2F-SS22VF Manual

Connect an operator interface to a barcode reader
Table of Contents

Advertisement

4. Description of the Program

4-5 Judging the match or mismatch of barcode data

The comparison between the READ DATA and STORED DATA is performed using the following
procedures.
(1) The READ DATA (LDR8010 to 8016) is compared to the STORED DATA (LDR100 to 106)
successively word by word. When the data matches, the corresponding LDR100-0 to LDR100-6 is
turned on. (Refer to the tables below.)
Storage location LDR8010
Storage location
When data matches
Comparison result LDR100-0 LDR100-1 LDR100-2 LDR100-3 LDR100-4 LDR100-5 LDR100-6
Value of LDR100
(2) When the READ DATA matches the STORED DATA completely, all of the LDR100-0 to LDR100-6 are
turned on, and then the value of LDR100 is added.
Therefore, the system judges the data as being "matched" when the value of LDR100 is "127", and as
"mismatched" when the value of LDR100 is other than "127".
Comparison result
Value of LDR100
[OK] case...When all data items match, the LDR always becomes "127".
LDR100 = 1 + 2 + 4 + 8 + 16 + 32 + 64 = 127
Comparison result LDR100-0 LDR100-1 LDR100-2 LDR100-3 LDR100-4 LDR100-5 LDR100-6
Value of LDR100
[NG] case...When the 4th digit does not match, LDR100 will not be "127".
LDR100 = 1 + 0 + 4 + 8 + 16 + 32 + 64 = 125

4-6 Barcode comparison settings

The READ DATA (LDR8010) is compared to the STORED DATA (LKR100). Using a part "Bit Write
Command" for the comparison.
(1) Click the "Bit Write Command" from the toolbar to open the dialog box.
LDR8011
Compare Compare Compare Compare
LKR 100
LKR 101
1
2
LDR100-0 LDR100-1 LDR100-2 LDR100-3 LDR100-4 LDR100-5 LDR100-6
1
2
1
0
LDR8012
LDR8013
LDR8014
Compare Compare
LKR 102
LKR 103
4
8
4
8
4
8
LDR8015
LDR8016
Compare
LKR 104
LKR 105
LKR 106
16
32
16
32
16
32
64
64
64
16

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents