Browse
(440) 299-7778
Menu
(440) 299-7778
One-year parts and labor warranty30-day money-back guaranteeEnglishEspañolContact

The text of a manual · part 27 of 28

HawkEye 1500 Series Reference & Programmers Manual, pages 261 to 270

Pages 261 to 270 of 276

The original document is the PDF (1.3 MB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.

Filed in the catalog under the Microscan HE1510, RVSI CiMatrix HE1510 and Siemens HE1510

Page 261

Microscan HawkEye™ Reader ActiveX Type Library

•

Property Let Scale(RHS As Double)

•

Property Get XOffset() As Double

•

Property Let XOffset(RHS As Double)

•

Property Get YOffset() As Double

•

Property Let YOffset(RHS As Double)

•

Sub ScreenToPixel(ByVal x As Double, ByVal y As Double)

•

Sub PixelToScreen(ByVal x As Double, ByVal y As Double)

•

Sub DrawHandle(ByVal x As Double, ByVal y As Double, ByVal color As ULong, Optional ByVal flags As Long=0)

•

Sub SetSolidBrush(ByVal color As ULong)

•

Sub SetNullBrush()

•

Sub Ellipse(leftRect As Double, topRect As Double, rightRect As Double, bottomRect As Double)

•

Sub SetFont(pFont As IFontDisp)

•

Sub TextOut(x As Double, y As Double, bstrText As String)

ReadRunner Programming

2

Pen Style Constants for SetPen •

Const PS_SOLID = 0

•

Const PS_DASH = 1

•

Const PS_DOT = 2

•

Const PS_DASHDOT = 3

•

Const PS_DASHDOTDOT = 4

•

Const PS_NULL = 5

MiDrawHandles Implement this interface to make custom graphics “dragable.”

Rev 2.4.1, Nov 2008

HawkEye 1500 Reference & Programmers Manual

2-43

Page 262

Chapter

2

ReadRunner Programming Reference

Methods

2-44

•

Sub GetHandle(ByVal index As Long, ByVal x As Double, ByVal y As Double, ByVal flags As Long)

•

Sub MoveHandleTo(ByVal index As Long, ByVal x As Double, ByVal y As Double)

•

Sub MoveRelative(ByVal x As Double, ByVal y As Double)

•

Property Get NumHandles() As Long

•

Sub DrawHandle(ByVal midcIn As IMiDC, ByVal index As Long)

•

Function PointIsInside(ByVal x As Double, ByVal y As Double) As Boolean

HawkEye 1500 Reference & Programmers Manual

Rev 2.4.1, Nov

Page 263

3 C++ Samples for TCP/IP Socket Communication

3

Two C++ console application projects are provided to illustrate how to get data and images from the HawkEye™ 1500 camera using TCP/IP socket programming. These projects can be opened and built using Microsoft Visual C++ 6.0.

Example 1 – PartQ Data Retrieval This console application illustrates how to retrieve PartQ data and save them to files. The program connects to the command port (49095), issues the PARTQREQFORMAT command and dumps the output data to a series of files in the working directory. For each PartQ record, two files are saved (note that xxxx represents a 4-digit record number): • record_xxxx.txt, containing data such as cycle number, overall pass/fail, located/decoded/matched flags, detailed failure code, decode string.

• record_xxxx.bmp, for formatted bitmap image.

To run this application: 1.

Rev 2.4.1, Nov 2008

Configure the PartQ in ReadRunner as shown in Figure 3–1:

HawkEye 1500 Reference & Programmers Manual

3-1

C++ Samples for TCP/IP Socket

CHAPTER 3

Page 264

Chapter

3

C++ Samples for TCP/IP Socket Communication

FIGURE 3–1. Configure PartQ

2.

Configure the reader in Continuous Trigger mode (i.e., TRIG C) and block the Data Matrix code to create failed reads to be recorded in the PartQ.

3.

Run the console application from a Windows command window by typing: he_partq_sample IP_address where IP_address is the camera’s IP address.

3-2

HawkEye 1500 Reference & Programmers Manual

Rev 2.4.1, Nov

Page 265

Example 2 – Output Socket Data Retrieval

FIGURE 3–2.

C++ Samples for TCP/IP Socket

3

Example 2 – Output Socket Data Retrieval This console application illustrates how to get the image from each read trigger. The program connects to one of the following two ports specified in the command line, receives the image data, and saves it to an image file: •

Port 49099, Image is saved in raw format using the default formatted output header (CD25) for TCP2 in ReadRunner. The file name is image_xxxx.dat, where xxxx is a 4-digit index.

•

Port 49100, Image is saved in BMP format using the default formatted output header (ID01) for TCP3 in ReadRunner. The file name is image_xxxx.bmp, where xxxx is a 4-digit index.

To run this application using Port 49100, 1.

Rev 2.4.1, Nov 2008

Configure Formatted Output in ReadRunner as shown in Figure 3–3:

HawkEye 1500 Reference & Programmers Manual

3-3

Page 266

Chapter

3

C++ Samples for TCP/IP Socket Communication

FIGURE 3–3. Configure Formatted Output

2.

Configure the reader in Continuous Trigger mode (i.e., TRIG C).

3.

Run the console application from a Windows command window by typing: he_sockdump IP_address 49100 where IP_address is the camera’s IP address.

3-4

HawkEye 1500 Reference & Programmers Manual

Rev 2.4.1, Nov

Page 267

Example 2 – Output Socket Data Retrieval

FIGURE 3–4.

C++ Samples for TCP/IP Socket

3

Rev 2.4.1, Nov 2008

HawkEye 1500 Reference & Programmers Manual

3-5

Page 268

Chapter

3-6

3

C++ Samples for TCP/IP Socket Communication

HawkEye 1500 Reference & Programmers Manual

Rev 2.4.1, Nov

Page 269

Index

Barcodes setting height 1-19 horizontal probe spacing 1-20 length 1-21 number to be decoded 1-22 number to decode 1-104 width 1-27 vertical probe spacing 1-26

Numerics

BC_DECODE_NEAR_CENTER Command 1-67 BC412 decoding

1-D Symbologies selecting 1-16 A

AIM DPM-1-2006 Verification enabling 1-195 AIM Verification turning on or off 1-192 Aperture Size setting synthesized 1-12 APIPA setting 1-52 Application 2-4 AppSetting 2-4 Assigning variables to digital output lines 1-76 Audible Feedback optical alignment 1-139 Auto Settings set 1-128 backward 1-32 forward 1-32 polarity setting 1-33 start checking 1-34 stop checking 1-34 BC412 check sum checking 1-30 Binarizing threshold method 1-175 Bounce Latch Time setting 1-171 C

Calibration Status String 1-37 Calibration Target contrast value setting 1-169 reflectance value

B

Barcode confidence level 1-18 search method 1-23 threshold setting 1-25

Rev 2.4.1, Nov 2008 setting 1-170

Camera current time 1-176 displaying current name 1-79 ip address 1-79 subnet mask 1-79

HawkEye 1500 Reference & Programmers Manual

Index-1

Page 270

Index light calibration time reporting 1-36 camera 1-176 releasing control 1-144 resetting 1-148 selecting lighting 1-72 setting offline 1-106 online 1-111 take control 1-48

Cancel learn request 1-83 pending reportreq command 1-146 Cell sampling 1-40 size 1-41 Cell Unit multiplier 1-42 report type 1-43 setting 1-47

D

Data echoing typed 1-174 Data Matrix maximum number to find 1-105 number columns to expect 1-44 rows to expect 1-154 selecting image style 1-167

Centering image 1-65 Check Sum Checking 1-31 Columns to Expect data matrix 1-44 Command prompt setting expected polarity 1-132 expected width 1-202 height 1-70 controlling 1-137 report state of command just changed 1-73 Configuration saving current 1-158 Configuring criteria for variable testing 1-160 Console vxworks 1-45 Control releasing camera 1-144 setting match 1-89 Controlling 1-d symbologies 1-15 command prompt 1-137 Current ip address displaying for camera 1-79 name displaying for camera 1-79

Index-2

Customer Settings Installed in Manufacturing 1-157 Customizing locator failure output 1-87 overrun message output 1-155 successful decode output 1-107 successful match output 1-109 unsuccessful match output 1-97 Cycle Records retrieving 1-124

Decode Output customizing unsuccessful 1-49 header setting 1-69

Decode Results Beeping enabling 1-35 Decoder fine tuning options 1-66 learn values 1-84 parameters assigning to a trigger 1-13, 1-14 set to read variety of symbols 1-188 setting source of images 1-39 settings load from pid 1-86 train 1-130 Decoding limiting time 1-177 Defining region of interest 1-153

HawkEye 1500 Reference & Programmers Manual

Rev 2.4.1, Nov