Keyence LJ-V7000 Series Manual de usuario

Busca en linea o descarga Manual de usuario para Sensores Keyence LJ-V7000 Series. KEYENCE LJ-V7000 Series User Manual Manual de usuario

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 94
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 0
LJ-V7000 Series Communication Library
Reference Manual
Please read this manual before use.
After reading this manual, store it in a safe place where it can be used at any time.
376GB
Vista de pagina 0
1 2 3 4 5 6 ... 93 94

Indice de contenidos

Pagina 1 - Reference Manual

LJ-V7000 Series Communication LibraryReference ManualPlease read this manual before use.After reading this manual, store it in a safe place where it

Pagina 2

10 LJ-V7000_COM_RM_EName Get profile batch data position specification method designation (batch measurement: on)DefinitionTypedef enum {LJV7IF_BATCH_

Pagina 3 - Contents

11LJ-V7000_COM_RM_E8.2 Structure definitionsName Ethernet settings structureDefinitionTypedef struct {BYTE abyIpAddress[4];WORD wPortNo;BYTE reserve[2

Pagina 4

12 LJ-V7000_COM_RM_EName Setting item designation structureDefinitionTypedef struct {BYTE byType;BYTE byCategory;BYTE byItem;BYTE reserve;BYTE byTarge

Pagina 5 - 1 Software License Agreement

13LJ-V7000_COM_RM_E*: About the Z-phase flagThis flag can be used when the controller is version 3.0 or later.This flag is turned ON when Z-phase ON

Pagina 6 - 5 File Structure

14 LJ-V7000_COM_RM_EExample: Single phase 1x multiplier encoder trigger with no skippingNote: When the Z-phase input uses a negative logic encoder, s

Pagina 7 - 6 Incorporating the Library

15LJ-V7000_COM_RM_EName High-speed mode get profile request structure (batch measurement: on)DefinitionTypedef struct {BYTE byTargetBank;BYTE byPosMod

Pagina 8 - 8.1 Constant definitions

16 LJ-V7000_COM_RM_EName Advanced mode get profile request structure (batch measurement: on)DefinitionTypedef struct {BYTE byPosMode;BYTE reserve[3];D

Pagina 9

17LJ-V7000_COM_RM_EName High-speed mode get profile response structure (batch measurement: on)DefinitionTypedef struct {DWORD dwCurrentBatchNo;DWORD d

Pagina 10

18 LJ-V7000_COM_RM_EName Advanced mode get profile response structure (batch measurement: on)DefinitionTypedef struct {DWORD dwGetBatchNo;DWORD dwGetB

Pagina 11 - 8.2 Structure definitions

19LJ-V7000_COM_RM_EName Storage information structureDefinitionTypedef struct {BYTE byStatus;BYTE byProgramNo;BYTE byTarget;BYTE reserve[5];DWORD dwSt

Pagina 13 - *: About the Z-phase flag

20 LJ-V7000_COM_RM_EName Get batch profile storage request structureDefinitionTypedef struct {BYTE reserve[4];DWORD dwSurface;DWORD dwGetBatchNo;DWORD

Pagina 14

21LJ-V7000_COM_RM_EName Get batch profile storage response structureDefinitionTypedef struct {DWORD dwGetBatchNo;DWORD dwGetBatchProfCnt;DWORD dwGetBa

Pagina 15

22 LJ-V7000_COM_RM_E8.3 Callback function interface definitionFormatvoid (*pCallBack)(BYTE* pBuffer, DWORD dwSize, DWORD dwCount, DWORD dwNotify, DWOR

Pagina 16

23LJ-V7000_COM_RM_E8.3.1 Supplement8.3.1.1 dwNotify parameterThis section describes the dwNotify parameter used in the callback function.In high-speed

Pagina 17

24 LJ-V7000_COM_RM_EBit 0 to 2 and bit 8 indicate that continuous send was stopped.To restart continuous send, start the high-speed data communication

Pagina 18

25LJ-V7000_COM_RM_E9 Functions9.1 Function list9.1.1 Operations for the DLLThese functions are processed normally even when the controller is in the s

Pagina 19

26 LJ-V7000_COM_RM_E9.1.5 Functions related to modifying or reading settingsProcessing for these functions fails when the controller is in the system

Pagina 20

27LJ-V7000_COM_RM_E9.1.7 Storage function relatedProcessing for these functions fails when the controller is in the system error state.9.1.8 High-spee

Pagina 21

28 LJ-V7000_COM_RM_E9.2 Function referenceThe type of the return value for the functions where there is a possibility of an error occurring is LONG. N

Pagina 22

29LJ-V7000_COM_RM_E9.2.2 Establish/disconnect the communication path with the controllerFor communication devices, see "9.2.9.1 Communication dev

Pagina 23 - 8.3.1 Supplement

3LJ-V7000_COM_RM_EContents1 Software License Agreement...

Pagina 24

30 LJ-V7000_COM_RM_E Return to factory state Get system error information Clear system errorFormat LONG LJV7IF_RetrunToFactorySetting(LONG lDeviceI

Pagina 25 - 9 Functions

31LJ-V7000_COM_RM_E9.2.4 Measurement controlFor communication devices, see "9.2.9.1 Communication devices". Trigger Start batch measuremen

Pagina 26

32 LJ-V7000_COM_RM_E Auto zero Timing ResetFormat LONG LJV7IF_AutoZero(LONG lDeviceId, BYTE byOnOff, DWORD dwOut);ParameterslDeviceId(in)Specifies

Pagina 27

33LJ-V7000_COM_RM_E Clear memory9.2.5 Functions related to modifying or reading settingsFor communication devices, see "9.2.9.1 Communication de

Pagina 28 - 9.2 Function reference

34 LJ-V7000_COM_RM_E Get setting Initialize settingFormatLONG LJV7IF_GetSetting(LONG lDeviceId, BYTE byDepth, LJV7IF_TARGET_SETTING TargetSetting, v

Pagina 29 - 9.2.3 System control

35LJ-V7000_COM_RM_E Request to reflect settings in the write settings area Update write settings area Check the status of saving to the save areaFo

Pagina 30 -  Return to factory state

36 LJ-V7000_COM_RM_E Set date/time Get date/time Change program Get the active program numberFormat LONG LJV7IF_SetTime(LONG lDeviceId, LJV7IF_TIM

Pagina 31 - 9.2.4 Measurement control

37LJ-V7000_COM_RM_E9.2.6 Acquiring measurement resultsFor communication devices, see "9.2.9.1 Communication devices". Get measurement resul

Pagina 32 -  Timing

38 LJ-V7000_COM_RM_E Get batch profiles (operation mode "high-speed (profile only)")FormatLONG LJV7IF_GetBatchProfile(LONG lDeviceId, LJV7I

Pagina 33 -  Send setting

39LJ-V7000_COM_RM_E Get profiles (operation mode "advanced (with OUT measurement)")FormatLONG LJV7IF_GetProfileAdvance(LONG lDeviceId, LJV7

Pagina 34 -  Initialize setting

4 LJ-V7000_COM_RM_E12 Appendix...

Pagina 35 -  Update write settings area

40 LJ-V7000_COM_RM_E Get batch profiles (operation mode "advanced (with OUT measurement)")FormatLONG LJV7IF_GetBatchProfileAdvance(LONG lDe

Pagina 36 -  Change program

41LJ-V7000_COM_RM_E9.2.7 Store function relatedFor communication devices, see "9.2.9.1 Communication devices". Start storage Stop storage

Pagina 37 -  Get measurement results

42 LJ-V7000_COM_RM_E Get data storage dataFormatLONG LJV7IF_GetStorageData(LONG lDeviceId, LJV7IF_GET_STORAGE_REQ* pReq, LJV7IF_STORAGE_INFO* pStorag

Pagina 38

43LJ-V7000_COM_RM_E Get profile storage dataFormatLONG LJV7IF_GetStorageProfile(LONG lDeviceId, LJV7IF_GET_STORAGE_REQ* pReq, LJV7IF_STORAGE_INFO* pS

Pagina 39

44 LJ-V7000_COM_RM_E Get batch profile storage dataFormatLONG LJV7IF_GetStorageBatchProfile (LONG lDeviceId, LJV7IF_GET_BATCH_PROFILE_STORAGE_REQ* pR

Pagina 40

45LJ-V7000_COM_RM_E9.2.8 High-speed data communication relatedFor communication devices, see "9.2.9.1 Communication devices". Initialize US

Pagina 41 - 9.2.7 Store function related

46 LJ-V7000_COM_RM_E Request preparation before starting high-speed data communication Start high-speed data communication Stop high-speed data com

Pagina 42 -  Get data storage data

47LJ-V7000_COM_RM_E9.2.9 Supplement9.2.9.1 Communication devicesThe controller that will communication with the PC is specified as a communication dev

Pagina 43 -  Get profile storage data

48 LJ-V7000_COM_RM_E9.2.9.2.1 For operation mode: high-speed (profile only)Save target data: profileWhen the memory allocation is "double buffer&

Pagina 44 - EASURE_DATA* pMeasureData);

49LJ-V7000_COM_RM_EWhen the memory allocation is "entire area (do not overwrite)"Change program operation and memory states transition examp

Pagina 45

5LJ-V7000_COM_RM_E1 Software License AgreementNOTICE TO USER: PLEASE READ THIS SOFTWARE LICENSE AGREEMENT (THIS “AGREEMENT”) CAREFULLY. BY USING ALL O

Pagina 46

50 LJ-V7000_COM_RM_E9.2.9.3 Write processing for settingsThe 4 functions listed below are used when performing write processing for settings.• LJV7IF_

Pagina 47 - 9.2.9 Supplement

51LJ-V7000_COM_RM_E<Usage example 2> Changing 1 setting• Measuring is stopped when writing settings to RUNNING (SAVE).• Do not turn the contro

Pagina 48

52 LJ-V7000_COM_RM_E9.2.9.4 Detailed setting errorsThe settings have a consistency that must be observed. The detailed setting errors (dwError) that a

Pagina 49

53LJ-V7000_COM_RM_E9.2.9.6 Profile data amount calculation methodThe amount of profile data to get with LJV7IF_GetProfile and other functions is a val

Pagina 50

54 LJ-V7000_COM_RM_E9.2.9.8 Specific examples(i) For configuration 1 (initial settings)Heads: 2Measurement range X direction: FullBinning: OffWide: Of

Pagina 51

55LJ-V7000_COM_RM_E(ii) For configuration 2Heads: 2Measurement range X direction: FullBinning: onWide: offCompression (X axis): 2Compression (time axi

Pagina 52 - 9.2.9.5 Profile data values

56 LJ-V7000_COM_RM_E9.2.9.9 High-speed data communication troubleshooting9.2.9.10 Time data added to storage dataInformation that indicates the time t

Pagina 53

57LJ-V7000_COM_RM_E9.2.9.11 Data storage data storage order and specific exampleStored measurements can be acquired using GetStorageData. The acquired

Pagina 54 - 9.2.9.8 Specific examples

58 LJ-V7000_COM_RM_E9.2.9.12 Profile storage data storage order and specific exampleStored profile data, measurement values and internal measurement v

Pagina 55

59LJ-V7000_COM_RM_E9.2.9.13 Batch profile storage data storage order and specific exampleStored profile data and measurement values can be acquired us

Pagina 56

6 LJ-V7000_COM_RM_E2 IntroductionThe LJ-V7000 Series communication library provides a communication interface for controlling the LJ-V7000 Series from

Pagina 57 - 57LJ-V7000_COM_RM_E

60 LJ-V7000_COM_RM_E10 Common Return Codes10.1 Return codes returned by the communication libraryThe return codes shown below are judged in the commun

Pagina 58

61LJ-V7000_COM_RM_E11 Sample ProgramThis chapter describes the sample program which has been included as an example of how to create an application us

Pagina 59

62 LJ-V7000_COM_RM_E[DLL functions] Combination sample tabThe contents of previously distributed sample software can be found here. Communication esta

Pagina 60 - 10 Common Return Codes

63LJ-V7000_COM_RM_E11.2 Save file formatThis section describes the file format for profiles that are saved in the get profile process.• File format: T

Pagina 61 - 11 Sample Program

64 LJ-V7000_COM_RM_E Image of the arrangement of data saved to "Save path" in the [DLL functions] Combination sample tab (2 heads, compress

Pagina 62

65LJ-V7000_COM_RM_E12 Appendix12.1 Sending/Receiving SettingsWith the LJ-V7000 Series, settings can be sent and received for each item using send sett

Pagina 63 - 11.2 Save file format

66 LJ-V7000_COM_RM_E12.3 Details of Items for Sending/Receiving SettingsChanging Environmental SettingsCommon measurement settings<Device name>T

Pagina 64

67LJ-V7000_COM_RM_EChange Program setting• Trigger settings<Parallel imaging>Type:02h, Category:00h, Item:03hTarget1~4:00hbyte Setting Data0 Par

Pagina 65 - 12 Appendix

68 LJ-V7000_COM_RM_E• Imaging settings<Mutual interference prevention>Type:10h~1Fh (10h:Program NO.0, 11h:Program NO.1, ・・・ , 1F:Program NO.15)C

Pagina 66 - Common measurement settings

69LJ-V7000_COM_RM_E<Imaging mode>Type:10h~1Fh (10h:Program NO.0, 11h:Program NO.1, ・・・ , 1F:Program NO.15)Category:01h, Item:07h Target1:00h (he

Pagina 67 - • Trigger settings

7LJ-V7000_COM_RM_E6 Incorporating the Library6.1 File structureThe files required at execution are listed below.Place these folders/files in the same

Pagina 68 - • Imaging settings

70 LJ-V7000_COM_RM_E• Profile<Peak selection>Type:10h~1Fh (10h:Program NO.0, 11h:Program NO.1, ・・・ , 1F:Program NO.15)Category:01h, Item:11hTarg

Pagina 69 - 69LJ-V7000_COM_RM_E

71LJ-V7000_COM_RM_E<Smoothing>Type:10h~1Fh (10h:Program NO.0, 11h:Program NO.1, ・・・ , 1F:Program NO.15)Category:02h, Item:0BhTarget1:00h (headA/

Pagina 70 - • Profile

72 LJ-V7000_COM_RM_E• Master regist<Height correction>Type:10h~1Fh (10h:Program NO.0, 11h:Program NO.1, ・・・ , 1F:Program NO.15)Category:02h, Ite

Pagina 71 - 71LJ-V7000_COM_RM_E

73LJ-V7000_COM_RM_E• Position correction settings<Dual head mode>Type:10h~1Fh (10h:Program NO.0, 11h:Program NO.1, ・・・ , 1F:Program NO.15)Catego

Pagina 72 - • Master regist

74 LJ-V7000_COM_RM_E• Profilemask settings<XZcorrection selection>Type:10h~1Fh (10h:Program NO.0, 11h:Program NO.1, ・・・ , 1F:Program NO.15)Categ

Pagina 73 - 73LJ-V7000_COM_RM_E

75LJ-V7000_COM_RM_E• OUT settings<Profile Mask area settings individual>Type:10h~1Fh (10h:Program NO.0, 11h:Program NO.1, ・・・ , 1F:Program NO.15

Pagina 74 - • Profilemask settings

76 LJ-V7000_COM_RM_E[Unique parameters of measurement mode from 4byte]Measurement mode 0:OFFbyte Setting Data4Reserved (fixed as 0)~911:Height (when p

Pagina 75 - <Measurement mode>

77LJ-V7000_COM_RM_E7:Anglebyte Setting Data4Measurement target head: 0: HeadA, 1: HeadB, 2: Combined profile (only when profile combine (wide) is on)5

Pagina 76 - 76 LJ-V7000_COM_RM_E

78 LJ-V7000_COM_RM_E9:Areabyte Setting Data4Measurement target head: 0: HeadA, 1: HeadB, 2: Combined profile (only when profile combine (wide) is on)5

Pagina 77 - 77LJ-V7000_COM_RM_E

79LJ-V7000_COM_RM_E12:Distance (point-line)byte Setting Data4Measurement target head: 0: HeadA, 1: HeadB, 2: Combined profile (only when profile combi

Pagina 78 - 78 LJ-V7000_COM_RM_E

8 LJ-V7000_COM_RM_E8 Constant, Structure Definitions8.1 Constant definitionsName Setting value storage level designationDefinitionTypedef enum {LJV7IF

Pagina 79 - 79LJ-V7000_COM_RM_E

80 LJ-V7000_COM_RM_E[Unique parameter of calculation from 8byte]17:Step (simple 3D)byte Setting Data4Measurement target head: 0: HeadA, 1: HeadB, 2: C

Pagina 80 - 80 LJ-V7000_COM_RM_E

81LJ-V7000_COM_RM_E[Unique parameters of Measuring period from 4byte]<Measurement valuefilter detail>Type:10h~1Fh (10h:Program NO.0, 11h:Program

Pagina 81 - 81LJ-V7000_COM_RM_E

82 LJ-V7000_COM_RM_E• Terminal settings<Tolerance upper/lower limit>Type:10h~1Fh (10h:Program NO.0, 11h:Program NO.1, ・・・ , 1F:Program NO.15)Cat

Pagina 82 - • Terminal settings

83LJ-V7000_COM_RM_E• Storage settings• Program name•Measurement area detailsThe correction target selection of feature point correction of position co

Pagina 83 - Measurement area details

84 LJ-V7000_COM_RM_E2:Kneebyte Setting Data0Area Left: any value in measurement range (0.01μm unit Sined 32-bit integerexample: 5mm=500000)1234Area Ri

Pagina 84 - 84 LJ-V7000_COM_RM_E

85LJ-V7000_COM_RM_E5:Centerof circlebyte Setting Data0Arc calculation areacount: 0: Area2 disabled, 1: Area2 enabled1 Reserved (fixed as 0)2 Reserved

Pagina 85 - 85LJ-V7000_COM_RM_E

86 LJ-V7000_COM_RM_E12.4 Examples of sending/receiving measurement mode settingsExample: When "Height (profile compression (time axis): OFF"

Pagina 86

87LJ-V7000_COM_RM_E13 Using the high-speed data communication commandWhen the high-speed data communication command is used, data for currently measur

Pagina 87

88 LJ-V7000_COM_RM_E[Checking read profiles]Profiles read using the callback function each have a header that contains the following information.• Whe

Pagina 88

89LJ-V7000_COM_RM_E Callback functionUse the callback function to deliver profile data to the application each time the amount of profile dataspecifi

Pagina 89

9LJ-V7000_COM_RM_EName Definition that indicates the validity of a measurement valueDefinitionTypedef enum {LJV7IF_MEASURE_DATA_INFO_VALID = 0x00, //

Pagina 90

90 LJ-V7000_COM_RM_E[Command procedure]Commands are sent using the following procedure. Confirm that the controller batch setting is ON. Start high-s

Pagina 91

91LJ-V7000_COM_RM_E Callback functionUse the callback function to deliver profile data to the application each time the amount of profile dataspecifi

Pagina 92 - Revision History

92 LJ-V7000_COM_RM_ERevision HistoryRevision date Revision number Revision detailsJune 2012 2nd edition Ver. 2October 2012 1st revision Z-phase specif

Pagina 94

Copyright (c) 2014 KEYENCE CORPORATION. All rights reserved. 122030E 1084-2 376GB Printed in Japan

Comentarios a estos manuales

Sin comentarios