Panasonic HL-C2 Series User Manual
Panasonic HL-C2 Series User Manual

Panasonic HL-C2 Series User Manual

Ultra high-speed, high-accuracy laser displacement sensor
Hide thumbs Also See for HL-C2 Series:
Table of Contents

Advertisement

Quick Links

Advertisement

Table of Contents
loading

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.
  • Page 3: Whole User's Manual Construction

    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.
  • Page 5: Manual Construction

    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.
  • Page 6: Table Of Contents

    Preface Contents 2-1-4 Buffering Data Normal Readout Whole USER’S MANUAL Construction · 1 Structure ············································· 2-6 ■ USER’S MANUAL for Intelligent Monitor AiM ·························································· 2 1) Data format structure: Manual Construction ····································· 3 HLC2_BUFFERNORMAL ··············· 2-6 Contents ····························································· 4 2-1-5 Buffering Data Rapid Readout Safety Precautions ······································...
  • Page 7 Preface 2-2-3 OUT Setting (OUT1/2) Command 2-27 6)GetOutAll ······························ 2-51 1)OutPattern ····························· 2-27 7) CmnOffDaley ························· 2-51 2)OutMeasureWork ····················· 2-28 2-2-5 System Setting Command ········· 2-52 3)OutReflectionCalc ···················· 2-29 1)ExecOutConfigCopy ················· 2-52 4)OutReflectionRate ··················· 2-29 2)SysMemChangePriority ············ 2-52 5)OutZeroSet ···························· 2-30 3)ExecMemChange ····················...
  • Page 8: Safety Precautions

    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.
  • Page 9: For Correct Use

    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 ・...
  • Page 10: Use Condition

    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.
  • Page 13: Prior To Use

    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...
  • Page 14: General Description

    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.
  • Page 15: Installation Of Usb Driver

    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.
  • Page 18 Chapter 1 Prior to Use MEMO...
  • Page 19: Api Function Specifications

    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 ·······················...
  • Page 20: Variable Type

    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;...
  • Page 21: Data Format Structure

    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;...
  • Page 22: 2-Output Measurement Value Readout Structure

    Chapter 2 API Function Specifications 2-1-2 2-Output Measurement Value Readout Structure 1)Data format structure:HLC2_OUTMEASUREVALUE typedef struct HLC2_NUMERIC11 Numeric[2]; //Measurement value of OUT1/OUT2 } HLC2_OUTMEASUREVALUE; Measurement value of OUT1:±999.999999 2 3 4 5 6 7 ± 3 4 5 6 7 8 ±...
  • Page 23: All Output Readout Structure

    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;...
  • Page 24: Structure

    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;...
  • Page 25: Structure

    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;...
  • Page 26: Memory Copy Structure

    Chapter 2 API Function Specifications 2-1-6 Memory Copy Structure 1)HLC2_MEMCOPY Structure for setting of copy source memory, copy destination memory, and copy command typedef struct BYTE SetMemFrom; // Source memory #(0 ~ 15) BYTE SetMemTo; // Destination memory #(0 ~ 15) BYTE MemCopyCom;...
  • Page 27: Return Value

    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.
  • Page 29: Function

    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...
  • Page 32: Usb Device Control

    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.
  • Page 33: Close

    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.
  • Page 34: Head Setting (Head A/B) Command

    Chapter 2 API Function Specifications 2-2-2 Head Setting (Head A/B) Command 1)HeadSetupMode IO for head setting [installation mode]. HLC2_STATUS HLC2_HeadSetupMode(HLC2_HANDLE hlc2Handle, DWORD dwHead, DWORD dwIO, LPDWORD lpReflect, BYTE bccFlg); Argument HLC2_HANDLE hlc2Handle Handle of device DWORD dwHead Specifies head. (HEADA or HEADB) DWORD dwIO Selects IO.
  • Page 35: Headfloodlightadjust

    Chapter 2 API Function Specifications 2)HeadFloodLightAdjust IO for head setting [Emission adjustment] HLC2_STATUS HLC2_HeadFloodLightAjust (HLC2_HANDLE hlc2Handle, DWORD dwHead, DWORD dwIO, LPDWORD lpInfo, BYTE bccFlg); Argument HLC2_HANDLE hlc2Handle Handle of device DWORD dwHead Specifies head. (HEADA or HEADB) DWORD dwIO Selects IO. (0: load (input), 1:setting (output)) LPDWORD lpInfo Variable pointer for storing emission adjustment* of load/setting target.
  • Page 36: Execfloodlight

    Chapter 2 API Function Specifications 3)ExecFloodLight Executes head setting [Emitted light intensity search] or loads its status. HLC2_STATUS HLC2_Head_ExecFloodLight (HLC2_HANDLE hlc2Handle, DWORD dwHead, DWORD dwIO, LPDWORD lpStatus, BYTE bccFlg); Argument HLC2_HANDLE hlc2Handle Handle of device DWORD dwHead Specifies head. (HEADA or HEADB) DWORD dwIO Selects IO.
  • Page 37: Headhmeasuremode

    Chapter 2 API Function Specifications 5)HeadHMeasureMode IO for head setting [Measurement Mode ] HLC2_STATUS HLC2_HeadHMeasureMode(HLC2_HANDLE hlc2Handle, DWORD dwHead, DWORD dwIO, LPDWORD lpSelect, BYTE bccFlg); Argument HLC2_HANDLE hlc2Handle Handle of device DWORD dwHead Specifies head. (HEADA or HEADB) DWORD dwIO Selects IO. (0: load (Input), 1:Setting (Output)) LPDWORD lpSelect Variable pointer for storing Measurement Mode * of load/setting target...
  • Page 38: Headcalibmeasurevaluea

    Chapter 2 API Function Specifications 7)HeadCalibMeasureValueA IO for head setting [Calibration measurement value A] HLC2_STATUS HLC2_ HeadCalibMeasureValueA (HLC2_HANDLE hlc2Handle, DWORD dwHead, DWORD dwIO, LPDOUBLE lpdValue, BYTE bccFlg); Argument HLC2_HANDLE hlc2Handle Handle of device DWORD dwHead Specifies head. (HEADA or HEADB) DWORD dwIO Selects IO.
  • Page 39: Headcalibmeasurevalueb

    Chapter 2 API Function Specifications 9)HeadCalibMeasureValueB IO for head setting [Calibration measurement value B] HLC2_STATUS HLC2_HeadCalibMeasureValueB (HLC2_HANDLE hlc2Handle, DWORD dwHead, DWORD dwIO, LPDOUBLE lpdValue, BYTE bccFlg); Argument HLC2_HANDLE hlc2Handle Handle of device DWORD dwHead Specifies head. (HEADA or HEADB) DWORD dwIO Selects IO.
  • Page 40: Execcaliburation

    Chapter 2 API Function Specifications 11)ExecCaliburation Executes head setting [Calibration] HLC2_STATUS HLC2_ExecCaliburation (HLC2_HANDLE hlc2Handle, DWORD dwHead, DWORD dwIO, LPDWORD lpStatus, BYTE bccFlg); Argument HLC2_HANDLE hlc2Handle Handle of device DWORD dwHead Specifies head. (HEADA or HEADB) DWORD dwIO Selects IO. (1: execute) LPDWORD lpStatus Variable pointer for storing calibration execution*...
  • Page 41: Getlightwavedata

    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...
  • Page 42: Heademissionadjustmentareaa

    Chapter 2 API Function Specifications 15) HeadEmissionAdjustmentAreaA IO for head setting [Emission Adjustment Area a] HLC2_STATUS HLC2_HeadEmissionAdjustmentAreaA(HLC2_HANDLE hlc2Handle, DWORD dwHead, DWORD dwIO, LPDWORD lpValue, BYTE bccFlg) Argument HLC2_HANDLE hlc2Handle Handle of HL-C2 DWORD dwHead Specifies head. (HEADA or HEADB) DWORD dwIO Selects IO.
  • Page 43: 17)Headmedianfilter

    Chapter 2 API Function Specifications 17)HeadMedianFilter IO for head setting [Median Filter] HLC2_STATUS HLC2_HeadMedianFilter (HLC2_HANDLE hlc2Handle, DWORD dwHead, DWORD dwIO, LPDWORD lpSelect, BYTE bccFlg); Argument HLC2_HANDLE hlc2Handle Handle of HL-C2 DWORD dwHead Specifies head. (HEADA or HEADB) DWORD dwIO Selects IO. (0: load (input), 1:setting (output)) LPDWORD lpSelect Variable pointer for HeadMedianFilter* *Median Filter...
  • Page 44: 19)Headmeasuringrangepointb

    Chapter 2 API Function Specifications 19)HeadMeasuringRangePointB IO for head setting [Measuring Range Point b] HLC2_STATUS HLC2_HeadMeasuringRangePointB (HLC2_HANDLE hlc2Handle, DWORD dwHead, DWORD dwIO, LPDWORD lpValue, BYTE bccFlg); Argument HLC2_HANDLE hlc2Handle Handle of HL-C2 DWORD dwHead Specifies head. (HEADA or HEADB) DWORD dwIO Selects IO.
  • Page 45: Out Setting (Out1/2) Command

    Chapter 2 API Function Specifications 2-2-3 OUT Setting (OUT1/2) Command 1)OutPattern IO for OUT setting [Output selection] HLC2_STATUS HLC2_OutPattern(HLC2_HANDLE hlc2Handle, DWORD dwOut, DWORD dwIO,LPDWORD lpPattern, BYTE bccFlg); Argument HLC2_HANDLE hlc2Handle Handle of device DWORD dwOut Specifies output. (OUT1 or OUT2) DWORD dwIO Selects IO.
  • Page 46: Outmeasurework

    Chapter 2 API Function Specifications 2)OutMeasureWork IO for OUT setting [Transparent object] HLC2_STATUS HLC2_OutMeasureWork (HLC2_HANDLE hlc2Handle, DWORD dwOut, DWORD dwIO,LPDWORD lpWork, BYTE bccFlg); Argument HLC2_HANDLE hlc2Handle Handle of device DWORD dwOut Specifies output. (OUT1 or OUT2) DWORD dwIO Selects IO. (0: load (input), 1:setting (output)) LPDWORD lpWork Variable pointer for storing transparent object* of load/setting...
  • Page 47: Outreflectioncalc

    Chapter 2 API Function Specifications 3)OutReflectionCalc IO setting for OUT setting [Refractive index calculation] HLC2_STATUS HLC2_OutReflectionCalc (HLC2_HANDLE hlc2Handle, DWORD dwOut, DWORD dwIO, LPDWORD lpSelect, BYTE bccFlg); Argument HLC2_HANDLE hlc2Handle Handle of device DWORD dwOut Specifies output. (OUT1 or OUT2) DWORD dwIO Selects IO.
  • Page 48: Outzeroset

    Chapter 2 API Function Specifications 5)OutZeroSet IO for OUT setting [Zero set] HLC2_STATUS HLC2_OutZeroSet (HLC2_HANDLE hlc2Handle, DWORD dwOut, DWORD dwIO, LPDWORD lpSelect, BYTE bccFlg); Argument HLC2_HANDLE hlc2Handle Handle of device DWORD dwOut Specifies output. (OUT1 or OUT2) DWORD dwIO Selects IO. (0: load (input), 1:setting (output)) LPDWORD lpSelect Variable pointer for storing zero set* of load/setting target.
  • Page 49: Outreset

    Chapter 2 API Function Specifications 7)OutReset IO for OUT setting [Reset] HLC2_STATUS HLC2_OutReset (HLC2_HANDLE hlc2Handle, DWORD dwOut, DWORD dwIO, LPDWORD lpSelect, BYTE bccFlg); Argument HLC2_HANDLE hlc2Handle Handle of device DWORD dwOut Specifies output. (OUT1 or OUT2) DWORD dwIO Selects IO. (0: load (input), 1:setting (output)) LPDWORD lpSelect Variable pointer for storing reset* of load/setting target...
  • Page 50: Outmeasuremode

    Chapter 2 API Function Specifications 9)OutMeasureMode IO for OUT setting [Analysis mode] HLC2_STATUS HLC2_OutMeasureMode (HLC2_HANDLE hlc2Handle, DWORD dwOut, DWORD dwIO,LPDWORD lpMode, BYTE bccFlg); Argument HLC2_HANDLE hlc2Handle Handle of device DWORD dwOut Specifies output. (OUT1 or OUT2) DWORD dwIO Selects IO. (0: load (input), 1:setting (output)) LPDWORD lpMode Variable pointer for storing analysis mode* of load/setting target...
  • Page 51: Outfilterselect

    Chapter 2 API Function Specifications 10) OutFilterSelect IO for OUT setting [Filter Operation] HLC2_STATUS HLC2_OutFilterSelect(HLC2_HANDLE hlc2Handle, DWORD dwOut, DWORD dwIO,LPDWORD lpSelect, BYTE bccFlg); Argument HLC2_HANDLE hlc2Handle Handle of device DWORD dwOut Specifies output. (OUT1 or OUT2) DWORD dwIO Selects IO. (0: load (input), 1:setting (output)) LPDWORD lpSelect Variable pointer for storing Filter Operation * of load/setting target...
  • Page 52: Outaveragetimes

    Chapter 2 API Function Specifications 11)OutAverageTimes IO for OUT setting [Average times] HLC2_STATUS HLC2_OutAverageTimes (HLC2_HANDLE hlc2Handle, DWORD dwOut, DWORD dwIO, LPDWORD lpSelect, BYTE bccFlg); Argument HLC2_HANDLE hlc2Handle Handle of device DWORD dwOut Specifies output. (OUT1 or OUT2) DWORD dwIO Selects IO. (0: load (input), 1:setting (output)) LPDWORD lpSelect Variable pointer for storing average times* of load/setting target...
  • Page 53: Outcutoffcycle

    Chapter 2 API Function Specifications 12) OutCutOffCycle IO for OUT setting [Cutoff frequency] HLC2_STATUS HLC2_OutCutOffCycle(HLC2_HANDLE hlc2Handle, DWORD dwOut, DWORD dwIO, LPDWORD lpSelect, BYTE bccFlg);; Argument HLC2_HANDLE hlc2Handle Handle of device DWORD dwOut Specifies output. (OUT1 or OUT2) DWORD dwIO Selects IO. (0: load (input), 1:setting (output)) LPDWORD lpSelect Variable pointer for storing Cutoff frequency* of load/setting target...
  • Page 54: Outspan

    Chapter 2 API Function Specifications 13) OutSpan IO for OUT setting [Operation Coefficient] HLC2_STATUS HLC2_OutSpan(HLC2_HANDLE hlc2Handle, DWORD dwOut, DWORD dwIO,LPDOUBLE lpdValue, BYTE bccFlg); Argument HLC2_HANDLE hlc2Handle Handle of device DWORD dwOut Specifies output. (OUT1 or OUT2) DWORD dwIO Selects IO. (0: load (input), 1:setting (output)) LPDOUBLE lpdValue Variable pointer for storing Operation Coefficient* of load/setting target...
  • Page 55: Outdecisionmax

    Chapter 2 API Function Specifications 15)OutDecisionMax IO for OUT setting [Judgment output: Upper limit value] HLC2_STATUS HLC2_OutDecisionMax (HLC2_HANDLE hlc2Handle, DWORD dwOut, DWORD dwIO, LPDOUBLE lpdValue, BYTE bccFlg); Argument HLC2_HANDLE hlc2Handle Handle of device DWORD dwOut Specifies output. (OUT1 or OUT2) DWORD dwIO Selects IO.
  • Page 56: Outdecisionhismax

    Chapter 2 API Function Specifications 17)OutDecisionHisMax IO for OUT setting [Judgment output: Upper limit hysteresis] HLC2_STATUS HLC2_OutDecisionHisMax (HLC2_HANDLE hlc2Handle, DWORD dwOut, DWORD dwIO, LPDOUBLE lpdHis, BYTE bccFlg); Argument HLC2_HANDLE hlc2Handle Handle of device DWORD dwOut Specifies output. (OUT1 or OUT2) DWORD dwIO Selects IO.
  • Page 57: Outscalingmeasurevaluea

    Chapter 2 API Function Specifications 19)OutScalingMeasureValueA IO for OUT setting [Analog scaling measurement value A] HLC2_STATUS HLC2_OutScalingMeasureValueA (HLC2_HANDLE hlc2Handle, DWORD dwOut, DWORD dwIO, LPDOUBLE lpdValue, BYTE bccFlg); Argument HLC2_HANDLE hlc2Handle Handle of device DWORD dwOut Specifies output. (OUT1 or OUT2) DWORD dwIO Selects IO.
  • Page 58: Outscalingvoltagevaluea

    Chapter 2 API Function Specifications 21)OutScalingVoltageValueA IO for OUT setting [Analog scaling voltage a] HLC2_STATUS HLC2_OutScalingVoltageValueA (HLC2_HANDLE hlc2Handle, DWORD dwOut, DWORD dwIO, LPDOUBLE lpd Voltage, BYTE bccFlg); Argument HLC2_HANDLE hlc2Handle Handle of device DWORD dwOut Specifies output. (OUT1 or OUT2) DWORD dwIO Selects IO.
  • Page 59: Execanalogscaling

    Chapter 2 API Function Specifications 23)ExecAnalogScaling Executes OUT setting [Analog scaling]. HLC2_STATUS HLC2_ExecAnalogScaling(HLC2_HANDLE hlc2Handle, DWORD dwOut, DWORD dwIO, DWORD dwStatus, BYTE bccFlg); Argument HLC2_HANDLE hlc2Handle Handle of device DWORD dwOut Specifies output. (OUT1 or OUT2) DWORD dwIO Selects IO. (1: execute) DWORD dwStatus Execution command * Analog scaling command:...
  • Page 60: Outfixedvalueinput

    Chapter 2 API Function Specifications 25)OutFixedValueInput IO for OUT setting [Analog output at alarm: Fixed value] HLC2_STATUS HLC2_OutFixedValueInput (HLC2_HANDLE hlc2Handle, DWORD dwOut, DWORD dwIO, LPDOUBLE lpdValue, BYTE bccFlg); Argument HLC2_HANDLE hlc2Handle Handle of device DWORD dwOut Specifies output. (OUT1 or OUT2) DWORD dwIO Selects IO.
  • Page 61: Outdegitaloutonalarm

    Chapter 2 API Function Specifications 27)OutDegitalOutOnAlarm IO for OUT setting [Digital output at alarm] HLC2_STATUS HLC2_OutDegitalOutOnAlarm (HLC2_HANDLE hlc2Handle, DWORD dwOut, DWORD dwIO, LPDWORD lpSelect, BYTE bccFlg); Argument HLC2_HANDLE hlc2Handle Handle of device DWORD dwOut Specifies output. (OUT1 or OUT2) DWORD dwIO Selects IO.
  • Page 62: Outldispdigit

    Chapter 2 API Function Specifications 29)OutlDispDigit IO for OUT setting [Digit number of measurement value] HLC2_STATUS HLC2_OutDispDigit (HLC2_HANDLE hlc2Handle, DWORD dwOut, DWORD dwIO, LPDWORD lpSelect, BYTE bccFlg); Argument HLC2_HANDLE hlc2Handle Handle of device DWORD dwOut Specifies output. (OUT1 or OUT2) DWORD dwIO Selects IO.
  • Page 63: Getalarmstate

    Chapter 2 API Function Specifications 31)GetAlarmState Loads OUT setting [Alarm output status]. HLC2_STATUS HLC2_Get AlarmState (HLC2_HANDLE hlc2Handle, DWORD dwOut, LPDWORD lpStatus, BYTE bccFlg); Argument HLC2_HANDLE hlc2Handle Handle of HL-C2 DWORD dwOut Specifies output. (OUT1 or OUT2) LPDWORD lpStatus Variable pointer for storing loaded alarm output status* * Readout alarm output status: *lpStatus =...
  • Page 64: Gethighstate

    Chapter 2 API Function Specifications 33)GetHighState Loads OUT setting [Judgment output: HI] status.status HLC2_STATUS HLC2_GetHighState(HLC2_HANDLE hlc2Handle, DWORD dwOut, LPDWORD lpStatus , BYTE bccFlg) Argument HLC2_HANDLE hlc2Handle Handle of HL-C2 DWORD dwOut Specifies output. (OUT1 or OUT2) LPDWORD lpStatus Variable pointer for storing loaded HI status* * Readout HI status: *lpStatus = 0: Judgment output HI...
  • Page 65: Getlowstate

    Chapter 2 API Function Specifications 35)GetLowState Loads OUT setting [Judgment output:LO] status. status HLC2_STATUS HLC2 HLC2_GetLowState(HLC2_HANDLE hlc2Handle, DWORD dwOut, LPDWORD lpStatus, BYTE bccFlg) Argument HLC2_HANDLE hlc2Handle Handle of HL-C2 DWORD dwOut Specifies output. (OUT1 or OUT2) LPDWORD lpStatus Variable pointer for storing loaded LO status* * Readout LO status: *lpStatus = 0: Judgment output LO...
  • Page 66: Common Setting Command

    Chapter 2 API Function Specifications 2-2-4 Common Setting Command 1)CmnSamplingCycle IO for common setting [Sampling cycle] HLC2_STATUS HLC2_CmnSamplingCycle(HLC2_HANDLE hlc2Handle, DWORD dwIO, LPDWORD lpCycle, BYTE bccFlg) Argument HLC2_HANDLE hlc2Handle Handle of device DWORD dwIO Selects IO. (0: load (input), 1:setting (output)) LPDWORD lpCycle Variable pointer for storing sampling cycle selection* of load/setting target...
  • Page 67: Cmnpreventinterference

    Chapter 2 API Function Specifications 2)CmnPreventInterference IO for common setting [Interference Prevention] HLC2_STATUS HLC2_CmnPreventInterference(HLC2_HANDLE hlc2Handle, DWORD dwIO, LPDWORD lpSelect, BYTE bccFlg) Argument HLC2_HANDLE hlc2Handle Handle of device DWORD dwIO Selects IO. (0: load (input), 1:setting (output)) LPDWORD lpSelect Variable pointer for storing Interference Prevention selection* of load/setting target *Interference Prevention selection:...
  • Page 68: Cmnterminallinputchattering

    Chapter 2 API Function Specifications 4)CmnTerminallInputChattering IO for common setting [Chattering prevention for terminal input] HLC2_STATUS HLC2_CmnTerminalInputChattering (HLC2_HANDLE hlc2Handle, DWORD dwIO, LPDWORD lpSelect, BYTE bccFlg) Argument HLC2_HANDLE hlc2Handle Handle of device DWORD dwIO Selects IO. (0: load (input), 1:setting (output)) LPDWORD lpSelect Variable pointer for storing selection of chattering prevention for terminal...
  • Page 69: Getoutall

    Chapter 2 API Function Specifications 6)GetOutAll Loads common setting [All output read]. HLC2_STATUS HLC2_GetOutAll(HLC2_HANDLE hlc2Handle, HLC2_OUTALL_DATA *pOutAllData , BYTE bccFlg) Argument HLC2_HANDLE hlc2Handle Handle of HL-C2 HLC2_OUTALL_DATA *pOutAllData Pointer of stored destination for all output read data structure loaded by RMB command BYTE bccFlg Selects BCC addition...
  • Page 70: System Setting Command

    Chapter 2 API Function Specifications 2-2-5 System Setting Command 1)ExecOutConfigCopy System setting [OUT setting copy] Copies settings between OUT1 and OUT2. HLC2_STATUS HLC2_ExecOutConfigCopy(HLC2_HANDLE hlc2Handle, LPDWORD lpSelect, BYTE bccFlg); Argument HLC2_HANDLE hlc2Handle Handle of device LPDWORD lpSelect Variable pointer for storing copy command* * Copy command: *lpSelect = 0: No command...
  • Page 71: Execmemchange

    Chapter 2 API Function Specifications 3)ExecMemChange System setting [memory change] Specifies a memory No., and then executes [Memory change] / loads its status. HLC2_STATUS HLC2_ExecMemChange(HLC2_HANDLE hlc2Handle, DWORD dwIO, LPDWORD lpMemNo, BYTE bccFlg) Argument HLC2_HANDLE hlc2Handle Handle of device DWORD dwIO Selects IO.
  • Page 72: Execmeminitialize

    Chapter 2 API Function Specifications 5)ExecMemInitialize Executes system setting [Initialize selected memory] and [Initialize all memory]. HLC2_STATUS HLC2_ExecMemInitialize(HLC2_HANDLE hlc2Handle, LPDWORD lpSelect, BYTE bccFlg) Argument HLC2_HANDLE hlc2Handle Handle of device LPDWORD lpSelect Variable pointer for storing selected memory initialization command* * Selected memory initialization command: *lpSelect = 0:No command 1: Selected memory...
  • Page 73: Sysrs232Cbaudrate

    Chapter 2 API Function Specifications 7)SysRs232cBaudrate IO for system setting [RS-232C baud rate] HLC2_STATUS HLC2_SysRs232cBaudrate(HLC2_HANDLE hlc2Handle, DWORD dwIO, LPDWORD lpSelect, BYTE bccFlg) Argument HLC2_HANDLE hlc2Handle Handle of device DWORD dwIO Selects IO. (0: load (input), 1:setting (output)) LPDWORD lpSelect Variable pointer for storing RS-232C baud rate* of load/setting target * RS-232C baud rate selection: *lpSelect = 0:9600...
  • Page 74: Sysrs232Cparity

    Chapter 2 API Function Specifications 9)SysRs232cParity IO for system setting [RS-232C parity check] HLC2_STATUS HLC2_SysRs232cParity(HLC2_HANDLE hlc2Handle, DWORD dwIO, LPDWORD lpSelect, BYTE bccFlg) Argument HLC2_HANDLE hlc2Handle Handle of device DWORD dwIO Selects IO. (0: load (input), 1:setting (output)) LPDWORD lpSelect Variable pointer for storing RS-232C parity check* of load/setting target * RS-232C parity check selection: *lpSelect = 0: even, 1: odd, 2: none...
  • Page 75: Sysrs232Couttype

    Chapter 2 API Function Specifications 11)SysRs232cOutType IO for system setting [RS-232C Output Type] HLC2_STATUS HLC2_SysRs232cOutType (HLC2_HANDLE hlc2Handle, DWORD dwIO, LPDWORD lpSelect, BYTE bccFlg) Argument HLC2_HANDLE hlc2Handle Handle of device DWORD dwIO Selects IO. (0: load (input), 1:setting (output)) LPDWORD lpSelect Variable pointer for storing RS-232C Output Type* of load/setting target * RS-232C Output Type selection:...
  • Page 76: Sysconsolestartno

    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.
  • Page 77: Buffering Setting Command

    Chapter 2 API Function Specifications 2-2-6 Buffering Setting Command 1)BufferingMode IO for [Buffering mode] HLC2_STATUS HLC2_BufferingMode(HLC2_HANDLE hlc2Handle, DWORD dwIO, LPDWORD lpSelect, BYTE bccFlg) Argument HLC2_HANDLE hlc2Handle Handle of device DWORD dwIO Selects IO. (0: load (input), 1:setting (output)) LPDWORD lpSelect Variable pointer for storing buffering mode selection* of load/setting target * Buffering mode selection:...
  • Page 78: Bufferingrate

    Chapter 2 API Function Specifications 3)BufferingRate IO for buffering setting [Buffering rate] HLC2_STATUS HLC2_BufferingRate(HLC2_HANDLE hlc2Handle, DWORD dwIO, LPDWORD lpRate, BYTE bccFlg) Argument HLC2_HANDLE hlc2Handle Handle of device DWORD dwIO Selects IO. (0: load (input), 1:setting (output)) LPDWORD lpRate Variable pointer for storing buffering rate selection* of load/setting target * Buffering rate selection: *lpRate = 0:1...
  • Page 79: Buffersampletriggerstorenum

    Chapter 2 API Function Specifications 5)BufferSampleTriggerStoreNum IO for buffering setting [Sample Trigger Accumulation Amount] HLC2_STATUS HLC2_BufferSampleTriggerStoreNum (HLC2_HANDLE hlc2Handle, DWORD dwIO, LPDWORD lpNum, BYTE bccFlg) Argument HLC2_HANDLE hlc2Handle Handle of device DWORD dwIO Selects IO. (0: load (input), 1:setting (output)) LPDWORD lpNum Variable pointer for storing Sample Trigger Accumulation Amount * of load/setting target...
  • Page 80: Buffertriggerdelay

    Chapter 2 API Function Specifications 7)BufferTriggerDelay IO for buffering setting [Trigger Delay] HLC2_STATUS HLC2_BufferTriggerDelay(HLC2_HANDLE hlc2Handle, DWORD dwIO, LPDWORD lpValue, BYTE bccFlg) Argument HLC2_HANDLE hlc2Handle Handle of device DWORD dwIO Selects IO. (0: load (input), 1:setting (output)) LPDWORD lpValue Variable pointer for storing Trigger Delay* of load/setting target * Trigger Delay *lpNum = 0 to 100000000...
  • Page 81: Execbuffering

    Chapter 2 API Function Specifications 9)ExecBuffering Executes buffering setting [Buffering operation] or status load. HLC2_STATUS HLC2_ExecBuffering(HLC2_HANDLE hlc2Handle, DWORD dwIO, LPDWORD lpStatus, BYTE bccFlg) Argument HLC2_HANDLE hlc2Handle Handle of device DWORD dwIO Selects IO. (0: load (input), 1:setting (output)) LPDWORD lpStatus Variable pointer for storing accumulation stop status of load/setting target...
  • Page 82: Getbufferfinaldatapoint

    Chapter 2 API Function Specifications HLC2_HANDLE hlc2Handle Handle of device DWORD dwOut Specifies output. (OUT1 or OUT2) LPDWORD lpStatus Variable pointer for storing readout status* * Readout status: *lpStatus= 0: Non-buffering 1: Wait for trigger 2: Accumulating 3: Accumulation completed BYTE bccFlg Selects BCC addition (0:BCC omit, 1:BCC add)
  • Page 83: Getbufferdatanormal

    Chapter 2 API Function Specifications 14)GetBufferDataNormal Executes buffering setting [Data readout (normal)]. HLC2_STATUS HLC2_GetBufferDataNormal(HLC2_HANDLE hlc2Handle, DWORD dwOut, HLC2_BUFFERNORMAL *pBufferNormal , BYTE bccFlg) Argument HLC2_HANDLE hlc2Handle Handle of device DWORD dwOut Specifies output. (OUT1 or OUT2) HLC2_BUFFERNORMAL *pBufferNormal Pointer of stored destination for buffering data structure loaded by data readout (normal) command pBufferNormal->TopPoint...
  • Page 84: Getbufferdatarapid

    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...
  • Page 87: Control Example

    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...
  • Page 88: Hl-C2 Measurement Value Loading (Example)

    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.
  • Page 89: Example Of C Code To Load Hl-C2

    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;...
  • Page 91: Appendix

    Appendix 1 Index ········································ 2...
  • Page 92: Index

    Appendix Index BufferingMode ......2-59 2 BufferingRate ......2-60 BufferingType ......2-59 2 output measurement readout ... 2-50 BufferSampleTriggerStoreNum ... 2-61 2-Output Measurement Value Readout BufferSelfStop ......2-63 Structure ........2-4 BufferStoreNum ......2-60 A BufferTriggerDelay ...... 2-62 BufferTriggerPoint ....... 2-61 Accumulation amount ....
  • Page 93 Appendix measurement value ....2-57 H Head Setting (Head A/B) Command2-16 E HeadAlarmDelayTimes ....2-18 Emission adjustment ....2-17 HeadCalibCorrectValueA .... 2-20 Emitted light intensity search ..2-18 HeadCalibCorrectValueB .... 2-21 ExecAnalogScaling ..... 2-41 HeadCalibMeasureValueA ..2-20 ExecBuffering ......2-63 HeadCalibMeasureValueB ..
  • Page 94 Appendix OutScalingMeasureValueA ..2-39 M OutScalingMeasureValueB ..2-39 Measurement Mode ....2-19 OutScalingVoltageValueA ... 2-40 Measurement surface reference . 2-19 OutScalingVoltageValueB ... 2-40 Measurement value ..... 2-44 OutSpan ........2-36 memory change ......2-53 OutTiming ........2-30 Memory copy ....... 2-53 OutZeroSet ........
  • Page 95 Appendix SysRs232cOutType ....2-57 Trigger Point ....... 2-61 SysRs232cParity ......2-56 U System Setting Command ..2-52 USB Device Control ....2-14 T Use Condition ........8 Terminal input control ....2-49 V Timing ......... 2-30 Transparent object ...... 2-28 Variable Type ........
  • Page 96: Revision History

    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...

Table of Contents