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 32 of 34

HawkEye 1500 Series User Manual, pages 311 to 320

Pages 311 to 320 of 338

The original document is the PDF (3.4 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.

For the Microscan HE1510, RVSI CiMatrix HE1510 and Siemens HE1510

Page 311

v2.4.1, Nov 2008 28.58mm (1.125)

57.15mm (2.250)

22.23mm (.875)

HawkEye™ 1500 Series User Manual 19.05mm (.750)

Specifications

44.45mm (1.750)

5.08mm (.200) e

50.80mm (2.000)

kEy Haw

93.98mm (3.700)

98.73mm (3.887)

6.99mm (.275)

43.18mm (1.750)

ETHERNET

DC-IN

QuicSet

PWR LK ACT

I/O

57.15mm (2.250)

RS-232

6.35mm (.250)

HawkEye™ 1500 Dimensions

FIGURE E–3. HawkEye™ 1510

E

E-5

Page 312

Appendix

E

Specifications

FIGURE E–4.

HEBMA-5 - Standard Mounting Block (replaces HEBMA-1)

FIGURE E–5.

HEBMA-2, Optional Mounting Block for HawkEye™ 1525

25.40mm (1.00) 50.80mm (2.00)

19.05mm (.750) 9.53mm (.375)

A - 0.125 DIA THRU, CB Ø0.225 BY 0.210 DP. (2) PLACES B - 8-32 THRU (4) PLACES C - Ø.128 THRU (4) PLACES D - TAP 6MM THRU (2) PLACES E - 1/4-20 THRU (3) PLACES

19.05mm (.750)

9.53mm (.375)

9.53mm (.375)

9.53mm (.375)

'B' 21.59mm (.85)

15.11mm (.595)

43.18mm (1.70)

15.11mm (.595)

'B' 'C'

'A' 'B'

'D' 'C'

'E' 'E' 'E'

'C' 'D' 'C'

'A' 'B'

9.53mm (.375)

E-6

HawkEye™ 1500 Series User Manual v2.4.1, Nov 2008

Page 313

HawkEye™ 1500 Dimensions

FIGURE E–6.

HEBMA-3, Mounting Block Adapter (HE 10 to HE 1510) 50.80mm (2.00)

12.70mm (.500) 11.53mm (.450)

2X 1/4-20 THRU

17.15mm (.675)

2X Ø0.125 THRU ØO.225 X x 0.510

E

38.10mm (1.500)

Specifications

6.35mm (.250)

25.40mm (1.00)

FRONT

12.70mm (.50)

v2.4.1, Nov 2008

HawkEye™ 1500 Series User Manual

E-7

Page 314

Appendix

E

Specifications

FIGURE E–7.

HEBMA-4, Mounting Block Adapter (HE 15 to HE 1515) 50.80mm (2.00)

12.70mm (.500) 6.35mm (.250)

v

2x 1/4-20 THRU

18.42mm (.725)

2X Ø0.125 THRU ØO.225 X 0.560 25.40mm (1.00)

FRONT

12.70mm (.50) 38.10mm (1.500)

6.35mm (.25)

FIGURE E–8. External I/O terminal Block Dimensions

66.0mm (2.60)

52.1mm (2.05)

SH

15

8

13

14

7

12

5

6

10

11

4

3

9

2

1

92.7mm (3.65) 1

15

E-8

HawkEye™ 1500 Series User Manual v2.4.1, Nov 2008

Page 315

HawkEye™ 1500 Dimensions

FIGURE E–9.

I/O Expansion Module Dimensions

97.2mm (3.83)

55.9mm (2.20)

125.7mm (4.95)

Specifications

E v2.4.1, Nov 2008

HawkEye™ 1500 Series User Manual

E-9

Page 316

Appendix

E-10

E

Specifications

HawkEye™ 1500 Series User Manual v2.4.1, Nov 2008

Page 317

F Custom Programming Using a Serial Connection

APPENDIX F

This appendix describes the special considerations you need to know when connecting via a serial port. Here are some of the major considerations: When using a network connection, the device status is broadcast via UDP every 5 seconds. This means that the Device and Connection objects “know” the current status of the device at all times and can send events when the situation changes. This is not the case when using a serial port, and, if you want to emulate this behavior, the DeviceInfo must be manually updated using a timer.

•

In a network connection, you can make a ReportConnection or ImageConnection and get events whenever new data is available. With a serial connection, you must manually initiate a report upload using the “REPORTREQ” command. This sample illustrates how to use a timer to “hook” images and/or reports.

•

When a REPORTREQ has been issued, you must either wait for the result or cancel the report. Issuing a command with a REPORTREQ outstanding will automatically cancel the report.

The sample code presents a series of buttons at the top allowing connection to the various COM ports. The buttons are disabled if the corresponding port is not available. A tabstrip control is used to switch between three views: 1) Terminal, v2.4.1, Nov 2008

HawkEye™ 1500 Series User Manual

F-1

F

Custom Programming Using a Serial

•

Page 318

Appendix

F

Custom Programming Using a Serial Connection

2) Image, and 3) Report. The colored labels below the buttons show total cycles and passed and failed counters as obtained by querying the DeviceInfo. When first started, only the DeviceInfo is hooked, and, therefore, the colored counters will be updated. By selecting various choices in the “Options” menu, you can hook Images or Results, as well as turn off the DeviceInfo hook. You can also select different image compression amounts. A progress bar appears at the bottom of the window during upload of Reports or Images.

Code Walkthrough Project References: •

HawkEye Reader Object Type Library

Project Components: •

Microsoft Windows Common Controls 6.0

•

HawkEye Reader ActiveX Library

•

ReadRunner ActiveX Library

The code consists of a single form called frmMain. On this form, the following items are placed:

F-2

•

The COM “buttons” are a control array of checkboxes whose Style property is set to Graphical so that they appear as buttons. This is an easy way of making buttons that stay depressed when you press them. In the sample, they are named btnConnect(index).

•

Three labels called m_countTotal, m_countPassed, and m_countFailed. These will be updated using the Device Info.

•

A TabStrip control named m_tabstrip, with the Placement property set to tabPlacementBottom.

•

On top of the TabStrip are placed a Terminal control (m_terminal), an MiImageView control (m_image) and a ReportGrid (m_report)

•

A timer control called SerialHook

•

A progress bar called m_progress

HawkEye™ 1500 Series User Manual v2.4.1, Nov 2008

Page 319

Code Walkthrough

The two main objects used are declared at the top of frmMain. A MiCoordinator (m_coord) is used to make connection easier by using its DeviceFocusSet method. A ReportConnection object is used to represent the connection to the device. When DeviceFocusSet is called, the ReportConnection will automatically be connected (or disconnected) and fire the OnConnectionReset event. The sample code is not very long and should be easy to follow. It uses the SerialHook timer to do most of the work. When a COM button is pressed (btnConnect_Click(Index)), m_coord.DeviceFocusSet is called with the button caption as the device name. This will cause the m_connection_OnConnectionReset event to occur. If connected, the SerialHook timer is enabled. The SerialHook_Timer event first gets the current Device from the MiCoordinator using the DeviceFocusGet method. This is so that the dev.RefreshInfo method can be used to query the camera for the DeviceInfo. There are three mode switches used by the SerialHook: m_bHookDevInfo, m_bHookReports and m_bHookImages. If m_bHookDevInfo is TRUE, then dev.RefreshInfo is called to get the DeviceInfo, and the counts are written to the colored labels. Hooking Images is really just a special case of Hooking Reports. If m_bHookReports is TRUE, then a “REPORTREQ” command string is built up using the currently selected image compression ratio. The final parameter is a “1” if m_bHookImages is TRUE. This command is then sent to the camera using m_conn.CommandSend()

Please note the use of the progress events from m_connection. These are used to update the progress bar. It is also very important to handle the OnDataTransferAborted event: if any command is sent to the camera while a report is being uploaded, the transfer will be automatically aborted. When used in this manner, the m_connection object can be used almost as if the connection were via a network connection. In particular, the m_connection_OnNewRecord event will be received with a MiCycleReport object that can be directly used to update the m_image and m_report views.

v2.4.1, Nov 2008

HawkEye™ 1500 Series User Manual

F-3

F

Custom Programming Using a Serial

Note that the variable m_bGettingReports is set to TRUE when a REPORTREQ is issued. This prevents issuing another request if the timer fires while a REPORTREQ is still outstanding. This is likely to happen if the application is triggered.

Page 320

Appendix

F

Custom Programming Using a Serial Connection

Complete Source Code Option Explicit Const VIEW_TERMINAL = 1 Const VIEW_IMAGE = 2 Const VIEW_REPORT = 3 Dim WithEvents m_coord As MiCoordinator Dim WithEvents m_connection As ReportConnection Dim m_bGettingReport As Boolean Dim m_bInUpdateButtons As Boolean Dim m_bHookReports As Boolean Dim m_bHookImages As Boolean Dim m_bHookDevInfo As Boolean Dim m_nCompression As Long

Private Sub Form_Load() Set m_coord = New MiCoordinator Set m_connection = New ReportConnection m_bInUpdateButtons = False m_bGettingReport = False m_nCompression = 4 ' set the SerialHook timer interval SerialHook.Interval = 2000 SerialHook.Enabled = False ' init the menus Compression(m_nCompression).Checked = True m_bHookDevInfo = True HookDevInfo.Checked = m_bHookDevInfo m_bHookImages = False HookImages.Checked = m_bHookImages m_bHookReports = False HookReports.Checked = m_bHookReports ' init the tabstrip m_tabstrip.Tabs.Clear m_tabstrip.Tabs.Add , "terminal", "Terminal" m_tabstrip.Tabs.Add , "image", "Image" m_tabstrip.Tabs.Add , "report", "Report" ShowView VIEW_TERMINAL

F-4

HawkEye™ 1500 Series User Manual v2.4.1, Nov 2008