Keyence LJ-V7000 Series Uživatelský manuál

Procházejte online nebo si stáhněte Uživatelský manuál pro Senzory Keyence LJ-V7000 Series. KEYENCE LJ-V7000 Series User Manual Uživatelská příručka

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 94
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 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
Zobrazit stránku 0
1 2 3 4 5 6 ... 93 94

Shrnutí obsahu

Strany 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

Strany 2

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

Strany 3 - Contents

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

Strany 4

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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 9

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

Strany 10

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

Strany 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

Strany 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

Strany 14

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

Strany 15

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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 23 - 8.3.1 Supplement

3LJ-V7000_COM_RM_EContents1 Software License Agreement...

Strany 24

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

Strany 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

Strany 26

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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 32 -  Timing

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

Strany 33 -  Send setting

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

Strany 34 -  Initialize setting

4 LJ-V7000_COM_RM_E12 Appendix...

Strany 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

Strany 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

Strany 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

Strany 38

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

Strany 39

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

Strany 40

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

Strany 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

Strany 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

Strany 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&

Strany 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

Strany 45

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

Strany 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_

Strany 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

Strany 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

Strany 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

Strany 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

Strany 51

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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 56

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

Strany 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

Strany 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

Strany 59

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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 64

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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 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/

Strany 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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 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"

Strany 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

Strany 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

Strany 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

Strany 89

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

Strany 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

Strany 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

Strany 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

Strany 94

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

Komentáře k této Příručce

Žádné komentáře