IDEC HG2F-SS22VF Manuel utilisateur

Practical Guide for Sample Program of the
Barcode Reader Connection
Let’s Connect an
Operator Interface to a
Barcode Reader!
This text introduces an example of a system that imports barcode data captured by a barcode reader
into an operator interface, displaying imported data on the operator interface, and determining
OK/NG judgments.
Please open the O/I data “BCR2_BASIC_EN” and “BCR_ADVANCE_EN” stored in this Demo
version CD with the associated application software. Then, check the details of each program and
settings of this sample program while referring to the descriptions in this text. Display and entry area
of barcode number STORED/ COMPARE DATA Display and entry area of barcode number
STORED/ COMPARE DATA
Note that the data of O/I stored on this Trial Version CD is a sample and that proper operation is not
guaranteed by IDEC IZUMI.
Note: Direct connection of a barcode reader to an operator interface is supported by O/I Screen
Creation Software “WindO/I-NV2” Ver. 2.7 and later.
1
Publication date Version Revision history
Feb. 1, 2005 Ver.1.00 First edition

2
Table of Contents
1. System Configurations
2. Operating Procedures
1-1 Required hardware and application software
1-2 System configurations
2-1 Program screen
2-2 Reading barcode data
2-3 Registering scanned barcode data
2-4 Displaying “OK” or “NG” when reading barcodes
2-5 Clearing the registered barcode data
…………….…………………
…………………………………………………….
3
3
4
5
5
6
3. User Communication Settings
3-1 Setting the Communication Interface settings
3-2 Setting the User Communication settings
3-3 Protocol of barcode reader
3-4 Device used with the barcode reader protocol
7
9
10
11
4. Description of the Program
4-1 Device allocations of the program screen
4-2 Displaying the barcode data
4-3 Creating the STORE button for the barcode data
4-4 Creating the CLEAR DATA button for the barcode data
4-5 Judging the match or mismatch of barcode data
4-6 Barcode comparison settings
4-7 Judging the barcode data matching
………………………………..
………………………………………………
………………………
………………….
…………………………
…………………………………………….
……………………………………..
12
13
14
15
16
16
18
5. Advanced Program for Barcode Comparison
………………………………………………………………..
…………………
………………………..………………
………………………….
……………….……………
…………………………………….
………………………………….……..
…………………
………………………………………
19
20
20
20
21
21
22
23
24
6
……………………………………….….…………………
…………………………………………………….
………………………………………..
…………………………
…………………………………….
……………………………..
………………………………….
……………………………………………….
………………………….
5-1 Program screens
5-2 Entering the barcode number for registration and verification
5-3 Registering the scanned barcode data
5-4 Calling the barcode for registration and verification
5-5 Displaying “OK” or “NG” upon reading barcodes
5-6 Modifying the barcode data for verification
5-7 Device setting in the sample program
5-8 Storage location of the registration number and barcode data
5-9 Using the results of barcode detections

3
1. System Configurations
1-1 Required hardware and application software
1-2 System configuration
Operator Interface
Model: HG2F-SS22VF
PC
GRYPHON Barcode
Reader
Model: GRYPHON D100
RS-232C Interface Cable
Model: CAB-320
Barcode Reader AC Adapter
Model: PG5/110
User Communication Cable
Model: FC2A-KP1C
Note) The end of this cable is not
terminated. Wire the cable as shown
in the connection diagram.
* When connecting a barcode reader to the HG2F, connect the User Communication cable as shown
below. (Pins No. 2 and No. 6 are open when using the HG3F/4F.)
Barcode Reader (RS-232C) HG2F (RS-232C)
Pin No. Name Name Pin No.
1 Shield RS 1
2 TXD ER 2
3 RXD SD 3
4 RTS RD 4
5 CTS DR 5
7 GND EN 6
25 +5V SG 7
NC 8
Mini DIN 8-pin connector socket type
(HG2F/3F/4F)
D-sub 25-Pin connector socket type
Shielded wire
Connect the mini-DIN8
connector on the rear
face to SERIAL2
(Round pin).
Programming Software
“WindO/I-NV2”
Model: HG9Y-ZSS2W
Computer Link Cable
Model: FC2A-KC4C
Part Name Model Description
Operator Interface HG2F-SS22VF 5.7” STN Color LCD Type
Programming Software HG9Y-ZSS2W HG Series Programming Software
(WindO/I-NV2 Ver. 2.7)
Computer Link Cable FC2A-KC4C Computer Link Cable 1C, RS232C Cable (3m/9.84ft. long)
User Communication Cable FC2A-KP1C User Communication Cable 1C (2.4m/7.87ft. long)
GRYPHON D100 Datalogic’s CCD Scanner for 1-D Codes
CAB-320 Datalogic’s RS 232C Interface Cable
PG5/110V Datalogic’s AC Adapter
Barcode Reader

4
2. Operating Procedures
2-1 Program screen
(1) Display area of registered barcode data Displays the registered barcode data.
(2) Display area of scanned barcode data Displays the scanned barcode data.
(3) STORE button used for registering barcode data Pressing the STORE button allows you to register
the scanned barcode data to the display area of
registered barcode data.
(4) Pressing the CLEAR DATA button allows you to
clear the data of the barcode that has been
registered for verification.
(5) OK lamp The OK lamp illuminates when the registered
barcode data matches the scanned barcode data.
(6) NG lamp The NG lamp illuminates when the registered
barcode data does not match the scanned
barcode data.
This application software operates as follows: Register one type of 13-digit barcode data to the operator
interface, an “OK” is displayed on the screen when the data scanned with the barcode reader matches the
Stored Data. Otherwise, “NG” is displayed.
The following are the details of the operating procedure.
-Base Screen 1: Program Screen-
When the power is turned on, the following Program screen is displayed on the HG2F display.
Before activating the HG2F, make sure to connect the HG2F unit to the barcode reader by referring
to the illustration in “1-2 System configurations”.
…………..
……………..
..
…………….
……………………………………………….
……………………………………………….
CLEAR DATA button for clearing the
barcode registration
(1) Display area of
registered barcode data
(2) Display area of
scanned barcode data
(3) STORE button used for
registering barcode data
(4) CLEAR DATA button for
clearing the barcode
registration
(6) NG lamp
(5) OK lamp

5
2. Operating Procedures
2-3 Registering scanned barcode data
Next, register the scanned barcode data as STORED DATA.
Pressing the STORE button will transfer the barcode data displayed in the READ DATA area. At the same
time, the “OK” lamp illuminates because the READ DATA matches the STORED DATA.
2-2 Reading barcode data
Press the button of the barcode reader connected to the operator interface to scan a 13-digit barcode. On
the HG2F screen, the scanned barcode data is displayed in the READ DATA area. The”NG” lamp
illuminates because STORED DATA has not been registered.

6
2. Operating Procedures
Pressing the CLEAR DATA button will clear the barcode data registered as the STORED DATA.
2-4 Displaying “OK” or “NG” when reading barcodes
The “OK” lamp illuminates when the READ DATA matches the STORED DATA. The “NG” lamp
illuminates when the READ DATA does not match the STORED DATA.
2-5 Clearing the registered barcode data

7
3. User Communication Settings
3-1 Setting the Communication Interface settings
The [User Communication] function enables direct communications between the HG series operator
interface and a barcode reader via an RS-232C cable. This application introduces the settings of an HG2F
program, configured by WindO/I-NV2, for reading barcode data with a barcode reader GRYPHON D100
(Izumi Datalogic Co.).
Select “Project Settings” from the “Setup” menu on the menu bar, and then select the “Communication
Interface” tab.
When the following dialog box is displayed, select “SERIAL 2” in the “Interface configuration” field,
because a barcode reader is to be connected to “SERIAL2” in this application.
[Supplementary note 1]
O/I Link…… An interface for the O/I link. The O/I unit should be attached to this interface.
SERIAL 1… An interface for communicating mainly to host devices (PLC, PC, etc.).
(D-sub 25-pin connector)
SERIAL 2… An interface used mainly for downloading project data from a PC or for connecting a serial
printer. (D-sub 25-pin connector)
USB………..An interface that can be used with HG2F units with USB. Cannot be used for user
communications.

8
3. User Communication Settings
Select the protocol to be used with the interface you have selected in the previous step. Select “User
Communication 1” for the Protocol options in the “Interface settings” field, because the User
Communication function is used for connection to the barcode reader.
Selecting “User Communication 1” allows you to configure the detailed settings of the interface. The
barcode reader used in this example can be connected to the default values of WindO/I-NV2. Check that
the Baud Rate, Data Bits, Stop Bits, and Parity parameters are set as shown below.
When the settings are complete, the following screen is displayed.
Click the “User Communication” tab.

9
3. User Communication Settings
3-2 Setting the User Communication settings
Select “User Communication 1” and then click the [Select] button.
When the “Protocol Library” dialog box appears, select “Barcode-Reader 1” in the Protocol field, and then
click the [OK] button.

10
3. User Communication Settings
3-3 Protocol of barcode reader
The following are communication formats of a barcode reader that can be read with the HG series. Make
sure to set up the barcode reader settings properly.
STX [Barcode data (ASCII, variable between 1 and 30 digits)] CR LF
(02h) (0Ah) (0Dh)
Example: When the READ DATA of the barcode reader is 13 digits “1234567890123”:
STX 1 2 3 4 5 6 7 8 9 0 1 2 3 CR LF
02h 31h 32h 33h 34h 35h 36h 37h 38h 39h 30h 31h 32h 33h 0Ah 0Dh
Example: When the READ DATA of the barcode reader is 8 digits “12345678”:
STX 1 2 3 4 5 6 7 8 CR LF
02h 31h 32h 33h 34h 35h 36h 37h 38h 0Ah 0Dh
Check that “Barcode-Reader 1” is entered in the “Protocol Name” column for the User Communication in
the “Set Protocol” field. Selecting “No. 1” in the “Protocol” field in the dialog box will display the details of
the command in the “Command” window on the bottom.
After checking the settings, click the [OK] button. The settings for reading the barcode data with the
operator interface are now complete.
Table des matières
Autres manuels IDEC Équipement d'enregistrement
Manuels Équipement d'enregistrement populaires d'autres marques

Strymon
Strymon NIGHTSKY Manuel utilisateur

Mitsubishi Electric
Mitsubishi Electric 16CH DIGITAL RECORDER DX-TL5000U Manuel utilisateur

Tews Technologies
Tews Technologies TPMC465 Manuel utilisateur

Honeywell
Honeywell Excel 50 Manuel utilisateur

SeaLevel
SeaLevel COMM+8.LPCI Manuel utilisateur

Arturia
Arturia AUDIOFUSE STUDIO Manuel utilisateur














