Keyence LJ-V7000 Series Bedienungsanleitung

Stöbern Sie online oder laden Sie Bedienungsanleitung nach Sensoren Keyence LJ-V7000 Series herunter. KEYENCE LJ-V7000 Series User Manual Benutzerhandbuch

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 94
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 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
Seitenansicht 0
1 2 3 4 5 6 ... 93 94

Inhaltsverzeichnis

Seite 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

Seite 2

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

Seite 3 - Contents

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

Seite 4

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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 9

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

Seite 10

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

Seite 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

Seite 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

Seite 14

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

Seite 15

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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 23 - 8.3.1 Supplement

3LJ-V7000_COM_RM_EContents1 Software License Agreement...

Seite 24

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

Seite 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

Seite 26

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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 32 -  Timing

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

Seite 33 -  Send setting

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

Seite 34 -  Initialize setting

4 LJ-V7000_COM_RM_E12 Appendix...

Seite 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

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

Seite 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

Seite 38

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

Seite 39

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

Seite 40

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

Seite 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

Seite 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

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

Seite 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

Seite 45

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

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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 51

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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 56

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

Seite 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

Seite 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

Seite 59

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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 64

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

Seite 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

Seite 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

Seite 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

Seite 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

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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

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

Seite 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

Seite 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

Seite 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

Seite 89

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

Seite 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

Seite 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

Seite 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

Seite 94

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

Kommentare zu diesen Handbüchern

Keine Kommentare