Ultra high-speed, high-accuracy laser displacement sensor sensor head (2 pages)
Summary of Contents for Panasonic HL-C2 Series
Page 2
Thank you for purchasing Ultra High-Speed, High-Accuracy Laser Displacement Sensor “HL-C2 Series”. To fully use this product safely and properly, please read this manual carefully. See our Website (https://panasonic.net/id/pidsx/global) for the latest information about the product and latest user’s manual. ■ Note 1.
Preface Whole USER’S MANUAL Construction The HL-C2 Series is prepared for the following user’s manuals. Read them as necessary. HL-C2 Series USER’S MANUAL (PDF) This manual describes cautions for using HL-C2 Series, and installation method, operation method, function details, Ultra High-Speed, High-Accuracy...
Page 4
Intelligent Monitor AiM software. It also describes an evaluation analysis of HL-C2 Series or use of buffering function and received light intensity waveform display function, which are useful for optimum system setting.
Preface Manual Construction This chapter provides cautions for safe and correct Preface operation of the product. Be sure to read this chapter. This chapter provides the information that users should Prior to Use know prior to use, such as specifications and general description of API, files provided, operating conditions and instruction for installation of USB driver.
Preface Safety Precautions This product is intended to detect the objects and does not have the control function to ensure safety such as accident prevention. Do not use the product as a sensing device to protect human body. Please use the products that comply with local laws and standards for human body protection specified by e.g., OSHA, ANSI and IEC.
For the detailed description of construction and use of the system, refer to “HL-C2 Series USER’S MANUAL” (separate volume). Correct Handling For the items listed below, refer to “HL-C2 Series USER’S MANUAL” (separate volume). ・ Installation Environment ・ Use Environment ・...
Use Condition C-E-20160614 Software License Agreement Panasonic Industrial Devices SUNX Co., Ltd. (“PIDSX”) grants to you a license to use this Software on condition that you accept this Agreement. You must read this Software License Agreement (this “Agreement”) carefully before using this Software.
Page 11
Preface NON-INFRINGEMENT OF THIRD PARTY RIGHTS. 3-2. UNDER NO CIRCUMSTANCES SHALL PIDSX BE LIABLE FOR ANY DAMAGES (INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL OR SPECIAL OR WHATSOEVER) ARISING OUT OF THE USE OF THIS SOFTWARE, INABILITY TO USE THIS SOFTWARE, DEFECTS THIS SOFTWARE (e.g.,...
Page 12
Preface designates otherwise at the time of provision of such upgrades or updates. Article 8 Limitation on Liability AGGREGATE LIABILITIES OF PIDSX IN CONNECTION WITH THIS AGREEMENT OR THIS SOFTWARE SHALL IN NO EVENT EXCEED TEN THOUSAND (10,000) YEN. Article 9 Governing Law and Jurisdiction 9-1.
Prior to Use This chapter provides the information about the product that users should know prior to use. 1-1 General Description ········ 1-2 1-2 Installation of USB Driver ··· 1-3 1-2-1 Uninstallation of old USB Driver ·· 1-3 1-2-2 Installation of USB Driver ·····1-5...
Please contact the vendor of development environment for the use of DLL. Refer to “Chapter 2 API Function Specifications” in “HL-C2 Series USER’S MANUAL USB Communication Control” for the use of API. Sample program (Only a Japanese document and commentary.) Sample program for USB control, which was created using API, is provided.
Chapter 1 Prior to Use Installation of USB Driver USB driver should be installed to control the HL-C2 by external control device (USB host). For a PC that has the old USB driver installed already Follow the procedures in ”1-2-1 Uninstallation of Old USB Driver” and then install the new USB driver.
Page 16
Chapter 1 Prior to Use In Control Panel, open “Add or Remove Programs” Delete “FTDI USB Serial Converter Drivers”. Uninstallation is then complete. Next, follow the procedures in “1-2-2 Installation of USB Driver”.
Page 17
Chapter 1 Prior to Use 1-2-2 Installation of USB Driver For PC that uses the old USB driver, make sure to delete the old driver and then install the new driver. For deleting procedures Refer to “1-2-1 Uninstallation of Old USB Driver” In case the control device is not installed yet, execute DPInst.exe following the below procedures, and install the new USB driver.
API Function Specifications This chapter explains specifications of API function that are required to control HL-C2 by external control device (PC) through USB interface. 2-1 Variable Type ······································· 2-2 2-1-1 Data Format Structure ································ 2-3 2-1-2 2-Output Measurement Value Readout Structure ········· 2-4 2-1-3 All Output Readout Structure ·······················...
Chapter 2 API Function Specifications Variable Type These variable type functions are available in the user’s program. BYTE(8bit unsigned data) typedef unsigned char BYTE; WORD(16 bit unsigned data) typedef unsigned short WORD; DWORD(32 bit unsigned data) typedef unsigned long DWORD; PCHAR(8 bit unsigned data pointer) typedef char * PCHAR;...
Chapter 2 API Function Specifications 2-1-1 Data Format Structure 1)HLC2_CONFIG5(For code setting 00000 to 99999 typedef struct BYTE Num[5]; } HLC2_CONFIG5; 2)HLC2_NUMERIC11(For numerical value setting -999.999999 to +999.99999 typedef struct BYTE Sign; // Sign ("±") BYTE Integer[3]; // 3-digit integer (no zero suppression) BYTE Period;...
Chapter 2 API Function Specifications 2-1-3 All Output Readout Structure 1) Data format structure: HLC2_OUTALL_DATA typedef struct HLC2_NUMERIC11 Numeric; // Measurement value of OUT1/2 BYTE StrobeOut; // Strobe output (0 or 1) BYTE HighOut; // Judgment output HI (0 or 1) BYTE GoOut;...
Chapter 2 API Function Specifications 2-1-4 Buffering Data Normal Readout Structure 1) Data format structure: HLC2_BUFFERNORMAL typedef struct DWORD TopPoint; //Top point (00001 to 99999) DWORD EndPoint; //End point (00001 to 99999) WORD dwCount; //Counter value (reserved) HLC2_NUMERIC11 *pGetData; //Read data stored point } HLC2_BUFFERNORMAL;...
Chapter 2 API Function Specifications 2-1-5 Buffering Data Rapid Readout Structure 1) Data format structure:HLC2_BUFFERRAPID typedef struct DWORD TopPoint; // Top point (00001 ~ 99999) DWORD EndPoint; // End point (00001 ~ 99999) DWORD dwCount; // Counter value ( reserved ) HLC2_NUMERIC12 *pGetData;...
Chapter 2 API Function Specifications 2-1-7 Return value ● Status list Val. Name Function HLC2_OK Normal end HLC2_INVALID_HANDLE Handle is incorrect. HLC2_DEVICE_NOT_FOUND Device is not found. HLC2_DEVICE_NOT_OPENED Device is not opened. HLC2_CONTROLLER_ERROR Controller error HLC2_INVALID_PARAMETER Parameter is incorrect. HLC2_ RECEIVE_ERROR Receive error HLC2_FILE_OPEN_ERROR File cannot be opened.
Page 28
Chapter 2 API Function Specifications Receive error [Cause] Data is destroyed by electrical noise. [Measure] Remove electrical noise. File cannot be opened. File you specified is being used in other program. [Cause] File you specified does not exist. [Measure] Check whether the file is being used in other program. Confirm the file name.
Chapter 2 API Function Specifications Function ■API function list Class No. API name Function 1) OpenByIndex Opens HL-C2 with Device No. 2) GetCount Acquires connection number of HL-C2. 3) Init Initializes specified device. 4) Close Closes specified device. 5) GetSerialNumber Acquires string of serial number.
Page 30
Chapter 2 API Function Specifications Class No. API name Function 10) OutFilterSelect IO for Filter Operation 11) OutAverageTimes IO for average moving times 12) OutCutOffCycle IO for Cutoff frequency 13) OutSpan IO for Operation Coefficient 14) OutOffsetInput IO for offset IO for judgment output: upper limit value 15) OutDecisionMax IO for judgment output: lower limit value...
Page 31
Chapter 2 API Function Specifications Class No. API name Function 5) ExecMemInitialize Initializes selected memory/all memory. 6) ExecMemSave Saves all memory. 7) SysRs232cBaudrate IO for RS-232C baud rate 8) SysRs232cDataLen IO for RS-232C data length 9) SysRs232cParity IO for RS-232C parity check 10) SysRs232cOutMode IO for RS-232C Output Mode SysRs232cOutType...
Chapter 2 API Function Specifications 2-2-1 USB Device Control 1)OpenByIndex Opens HL-C2 by a device No. HLC2_STATUS HLC2_OpenByIndex(DWORD dwIndex, HLC2_HANDLE *hlc2Handle) Argument DWORD dwIndex Index of device connection number (Select among 0 to device connection number -1) HLC2_HANDLE *hlc2Handle Handle storing variable pointer Return value Returns HLC2_OK if normal end.
Chapter 2 API Function Specifications 4)Close Closes specified device. HLC2_STATUS HLC2_Close(HLC2_HANDLE hlc2Handle) Argument HLC2_HANDLE hlc2Handle Handle Return value Returns HLC2_OK if normal end. 5)GetSerialNumber Acquires string of serial No. HLC2_STATUS HLC2_GetSerialNumber (DWORD dwIndex, PCHAR szSerialNumberBuffer) Argument DWORD dwIndex Device No. PCHAR szSerialNumberBuffer Area pointer for storing serial No.
Chapter 2 API Function Specifications 13)GetLightWaveData Loads head setting [Received light intensity readout (data)]. HLC2_STATUS HLC2_GetLightWaveData(HLC2_HANDLE hlc2Handle, DWORD dwHEAD, LPDWORD lpValue , BYTE bccFlg) Argument HLC2_HANDLE hlc2Handle Handle of HL-C2 DWORD dwHead Specifies head. (HEADA or HEADB) LPDWORD lpValue Variable pointer for storing received light intensity data of Head A and B which is loaded by received light intensity readout command...
Selects BCC addition (0:BCC omit, 1:BCC add) For the details on start-up screen No. and other screens, refer to the below manual. “HL-C2 Series USER’S MANUAL” - [4-3-4 System Setting] - [Console Setting] Return value Returns HLC2_OK if normal end.
Chapter 2 API Function Specifications 15)GetBufferDataRapid Executes buffering setting [Data readout (rapid)]. HLC2_STATUS HLC2_GetBufferDataRapid(HLC2_HANDLE hlc2Handle, DWORD dwOut, HLC2_BUFFERRAPID *pBufferRapid , LPDWORD lpSelect, BYTE bccFlg) Argument HLC2_HANDLE hlc2Handle Handle of device DWORD dwOut Specifies output. (OUT1 or OUT2) HLC2_BUFFERRAPID *pBufferRapid Pointer of stored destination for buffering data structure loaded by data readout (rapid) command pBufferRapid->TopPoint...
Page 85
Chapter 2 API Function Specifications · For reading buffering code by calculating BCC cord, perform one reading every 400 points. · In case of omitting BCC code calculation, up to 64000 points can be read. · The readout counter value “dwCount” is not used. 2-67...
Page 86
Chapter 2 API Function Specifications MEMO 2-68...
Control Example This chapter explains the example of control to load the measurement value from the HL-C2 by using API function. 3-1 HL-C2 Measurement Value Loading (example) ·············· 3-2...
Chapter 3 Control Examples 3-1 HL-C2 Measurement Value Loading (example) Start Loading of number of connection to HL-C2 HLC2_GetCount( ) Device Number of connection= 1? Error processing HL-C2 open HL-C2 handle is loaded by using device number. HLC2_OpenByIndex( ) HL-C2 is initialized by the handle that was loaded in HL-C2 initialization the previous step.
Chapter 3 Control Examples ■ Example of C code to load HL-C2 measurement value #include “HLC2_DLL.h” #define HEADA #define OUT1 #define IO_OUT #define MEMINI_1 #define BCC_OFF #define LASERON #define LASEROFF DWORD dwLaser; double dMeasureValue; BOOL HLC2_Get_Measure_Data(void) DWORD ret; DWORD dwCount; HLC2_HANDLE hlc2Handle;...
Page 90
Chapter 3 Control Examples // Memory initialization ret = HLC2_ExecMemInitialize(hlc2Handle, MEMINI_1, BCC_OFF) if ( ret != HLC2_OK) { // Memory initialization failed return FALSE; // Head A laser ON dwLaser = LASERON; ret = HLC2_HeadLaserOff(hlc2Handle, HEADA, IO_OUT, &dwLaser, BCC_OFF) if ( ret != HLC2_OK) { // Head A laser control ON failed return FALSE;...
Appendix Revision history Released date Revision No. October 2007 First release May 2008 Second release July 2008 Third release September 2009 Fourth release June 2010 Fifth release February 2011 Sixth release October 2012 Seventh release June 2013 Eighth release January 2019 Ninth release...