Device Setting In The Sample Program - IDEC HG2F-SS22VF Manual

Connect an operator interface to a barcode reader
Table of Contents

Advertisement

5. Advanced Program for Barcode Comparison
5-7 Device setting in the example program
In this example program, various data items are allocated to the following devices.
The "LM", "LDR", and "LKR" in the table below are the internal devices of the operator interface.
(LM: Internal relay of operator interface, LDR: Register of operator interface, LKR: Keep register of
operator interface)
Device
LM 2000
Turns on when a barcode is scanned. The on status is retained until the next scan of a
barcode.
LM 2001
Turns on when the scanned barcode matches the called barcode for verification. The on
status is retained until the next scan of a barcode.
LM 2002
Turns on when the scanned barcode does not match the called barcode for verification. The
on status is retained until the next scan of a barcode.
LM 2010
When memorizing a barcode, scan a barcode after turning on this internal relay of the
operator interface to register the barcode data to the area specified with the Bar Code
Number.
LM 2011
Turning on this relay after modifying a registered barcode using the character keys will
register the barcode data again.
LDR 8000-0
Turns on when the readout of the data from the barcode reader is complete.
LDR 8002
The communication status with the barcode reader is stored in this register.
LDR 8003
The number of bytes of the data received by the barcode reader is stored in this register.
LDR 8010
The data of the barcode loaded via communications is stored in ASCII data with the format
of 2 bytes in 1 register.
When the barcode data to be verified is 8 digits "12345678", the data is stored as follows.
LDR8010
"3132h"
LDR 8024
Up to 15 words can be scanned. Barcode data of up to 30 digits can be scanned.
The data of a barcode to be verified is stored in ASCII data with the format of 2 bytes in 1
LDR 7900
register.
When the barcode data to be verified is 8 digits "12345678", the data is stored as follows.
LDR 7900
"3132h"
LDR 7909
Up to 10 words can be memorized. Barcode data of up to 20 digits can be memorized.
LKR 500
Stores the data of the barcode to be registered.
Refer to the list on the next page for the registration No. and barcode data to be
registered...
LKR 999
LKR 1000
Stores the No. of the barcode to be registered or verified. 50 numbers from No. 0 to 49 can
be specified.
Description
LDR8011
LDR8012
"3334h"
"3536h"
LDR 7901
LDR 7902
"3334h"
"3536h"
LDR8013
LDR8014
"3738h"
"0000h"
LDR 7903
"3738h"
LDR8024
to
"0000h"
22

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents