10 Common Return Codes ......................................................................................................................... 60
10.1 Return codes returned by the communication library................................................................... 60
10.2 Return codes returned from the controller .................................................................................... 60
11 Sample Program .................................................................................................................................... 61
11.1 User interface specification........................................................................................................... 61
11.2 Save file format .............................................................................................................................. 63
NOTICE TO USER: PLEASE READ THIS SOFTWARE LICENSE AGREEMENT (THIS “AGREEMENT”)
CAREFULLY. BY USING ALL OR ANY PORTION OF THIS “SOFTWARE”, YOU ARE AGREEING TO BE
BOUND BY ALL THE TERMS AND CONDITIONS OF THIS AGREEMENT. IF YOU DO NOT AGREE TO ANY
TERMS OF THIS AGREEMENT, DO NOT USE THIS SOFTWARE.
1. Grant of License.
Conditioned upon compliance with all of the terms and conditions of this Agreement, KEYENCE grants you a
nonexclusive and nontransferable license.
2. Restrictions
Except for installation of updates or new functions provided by KEYENCE, you may not modify or add any
function to this Software.
a) You may not reverse engineer, decompile or disassemble this Software.
b) You may not create derivative works based on this Software.
c) Other than expressly stated by KEYENCE, you may not resell, retransfer, rent or otherwise redistribute this
Software to any third parties. However, you may redistribute this Software with the application that you
developed using this Software.
3. Intellectual Property Rights.
Except as expressly stated herein, KEYENCE reserves all right, title and interest in this Software, and all
associated copyrights, trademarks, and other intellectual property rights therein.
4. Disclaimer.
Keyence is licensing this Software to you “AS IS” and without any warranty of any kind. In no event will
KEYENCE or its suppliers be liable to you for any damages, claims, costs or any lost profits caused by using
this Software.
5. Support
KEYNCE shall not provide technical support in accordance with this Software including the use of this
Software.
6. Termination.
6.1 Your license under this Agreement will terminate automatically if you destroy this Software and the
copy of this Software in your possession or voluntarily return this Software to us.
6.2 Your license under this Agreement will terminate automatically without any notice from KEYENCE if you
fail to comply with any of the terms and conditions of this Agreement. Promptly upon termination, you
shall cease all use of this Software and destroy all copies, full or partial, of this Software in your
possession or control.
6.3 You will compensate KEYENCE for costs or any lost profits caused by your violation or breach of any
term of this Agreement.
7. Governing Law.
This Agreement will be governed by and construed in accordance with the substantive laws of Japan without
regards to the principles of conflicts of law.
5LJ-V7000_COM_RM_E
2Introduction
The LJ-V7000 Series communication library provides a communication interface for controlling the LJ-V7000
Series from a user application (Win32 DLL). For specific ways to use the communication library, refer to the
sample program.
3Operating Environment
Windows 7 (Home Premium/Professional/Ultimate)
OS
CPUCore i3 2.3 GHz or faster
Memory2 GB or more
Windows Vista (Home Basic/Home Premium/Business/Ultimate)
Windows XP (SP2 or later) (Home Edition/Professional Edition)
Secondary cache
memory
Free drive space10 GB or more
Interface
*1 Operation is not guaranteed with connections via a USB hub
*2 Operation is not guaranteed with connections to a LAN or via a router
2 MB or more
A PC equipped with either of the interfaces below.
*1
USB 2.0/1.1
, Ethernet 1000BASE-T/100BASE-TX
*2
3.1Execution environment
This section describes the necessary environment to execute applications that use the LJ-V7000 Series
communication library.
3.1.1Microsoft C runtime library
The Microsoft C runtime library is required for the DLL to operate.
Run vcredist_x86.exe included on the installation media to install the library.
3.1.2Microsoft .NET Framework
The Microsoft .NET Framework is required to run the sample application.
Run NetFx20SP2_x86.exe included on the installation media to install the library.
4USB Driver
Install and use LJ-Navigator2 for the USB driver.
5File Structure
LJV7_IF.dllThe DLL.
LJV7_IF.libThe import library for LJV7_IF.dll.
LJV7_ErrorCode.hThe header file that defines the error codes.
LJV7_IF.hThe header file that defines the LJV7_IF.dll interface.
Source
The folder for the sample source code.
The source code for the sample program created in C#.
6LJ-V7000_COM_RM_E
6Incorporating the Library
6.1File structure
The files required at execution are listed below.
Place these folders/files in the same folder as the executable file.
• LJV7_IF.dll
6.2Linking
6.2.1C++
6.2.1.1 Linking
The library can be linked implicitly or explicitly.
To implicitly link the library, link with "LJV7_IF.lib".
* "LJV7_IF.lib" was built with Visual C++ 2008 SP1.
6.2.1.2 Include files
Include the following header files in the necessary source files.
• LJV7_IF.h
• LJV7_ErrorCode.h
6.2.2C#/VB.NET
Call each interface using the DllImport attribute.
When passing a structure as an interface argument, specify the StructLayout attribute and pass a structure
of the same memory structure as the DLL.
For details, refer to the NativeMethods class (NativeMethods.cs) in the sample.
The processing to call each function has been implemented.
7Types
In this document, variable types are described according to the following definitions.
CHARSigned 8-bit integer
BYTEUnsigned 8-bit integer
SHORTSigned 16-bit integer
WORDUnsigned 16-bit integer
LONGSigned 32-bit integer
DWORDUnsigned 32-bit integer
FLOATSingle precision floating point number (32 bits)
DOUBLEDouble precision floating point number (64 bits)
7LJ-V7000_COM_RM_E
8Constant, Structure Definitions
8.1Constant definitions
NameSetting value storage level designation
Typedef enum {
LJV7IF_SETTING_DEPTH_WRITE = 0x00, // Write settings area
Definition
Description
Comment
LJV7IF_SETTING_DEPTH_RUNNING = 0x01,// Running settings area
LJV7IF_SETTING_DEPTH_SAVE = 0x02// Save area
} LJV7IF_SETTING_DEPTH;
This enumeration designates the operation target level in functions that modify or read
settings. For details on the setting value storage level, refer to "9.2.9.3 Write processing for
settings".
The controller retains three sets of settings data.
Those levels are used in the applications below.
Write settings area
Settings that do not affect operation.
In order to not allow an error in controller operations from inconsistencies in settings that
occur temporarily when changing multiple settings, the operation of the controller can be
changed without causing an error by reflecting the settings from this area to the running
settings area after writing the settings to this area.
Running settings area
The settings the controller is using in its operation.
When the controller starts, this area is initialized with the settings in the save area.
Save area
The settings that are saved even when the controller's power is turned off.
LJV7IF_INIT_SETTING_TARGET_PRG0 = 0x00, // Program 0
LJV7IF_INIT_SETTING_TARGET_PRG1 = 0x01, // Program 1
LJV7IF_INIT_SETTING_TARGET_PRG2 = 0x02, // Program 2
LJV7IF_INIT_SETTING_TARGET_PRG3 = 0x03, // Program 3
LJV7IF_INIT_SETTING_TARGET_PRG4 = 0x04, // Program 4
LJV7IF_INIT_SETTING_TARGET_PRG5 = 0x05, // Program 5
LJV7IF_INIT_SETTING_TARGET_PRG6 = 0x06, // Program 6
Definition
Description
Comment
LJV7IF_INIT_SETTING_TARGET_PRG7 = 0x07, // Program 7
LJV7IF_INIT_SETTING_TARGET_PRG8 = 0x08, // Program 8
LJV7IF_INIT_SETTING_TARGET_PRG9 = 0x09, // Program 9
LJV7IF_INIT_SETTING_TARGET_PRG10 = 0x0A, // Program 10
LJV7IF_INIT_SETTING_TARGET_PRG11 = 0x0B, // Program 11
LJV7IF_INIT_SETTING_TARGET_PRG12 = 0x0C, // Program 12
LJV7IF_INIT_SETTING_TARGET_PRG13 = 0x0D, // Program 13
LJV7IF_INIT_SETTING_TARGET_PRG14 = 0x0E, // Program 14
LJV7IF_INIT_SETTING_TARGET_PRG15 = 0x0F, // Program 15
} LJV7IF_INIT_SETTING_TARGET;
This enumeration designates which settings to initialize in settings initialization function.
-
8LJ-V7000_COM_RM_E
NameDefinition that indicates the validity of a measurement value
Typedef enum {
LJV7IF_MEASURE_DATA_INFO_VALID = 0x00,// Normal measurement data
Definition
LJV7IF_MEASURE_DATA_INFO_ALARM = 0x01,// Measurement alarm data
LJV7IF_MEASURE_DATA_INFO_WAIT = 0x02// Judgment wait data
} LJV7IF_MEASURE_DATA_INFO;
Description
Comment
NameDefinition that indicates the tolerance judgment result of the measurement value
Definition
Description
Comment
NameGet profile target buffer designation
Definition
This enumeration indicates the validity or invalidity of the measurement value.
-
Typedef enum {
LJV7IF_JUDGE_RESULT _HI = 0x01,// HI
LJV7IF_JUDGE_RESULT _GO = 0x02,// GO
LJV7IF_JUDGE_RESULT _LO = 0x04// LO
} LJV7IF_JUDGE_RESULT;
This enumeration indicates the tolerance judgment result for the measurement value in bit
units.
If the measurement value is measurement alarm data, the judgment result is 0x05 (both HI
and LO bits are 1).
Typedef enum {
LJV7IF_PROFILE_BANK_ACTIVE = 0x00,// Active surface
LJV7IF_PROFILE_BANK_INACTIVE = 0x01// Inactive surface
} LJV7IF_PROFILE_BANK;
Description
Comment
NameGet profile position specification method designation (batch measurement: off)
Definition
Description
When the memory allocation is "double buffer" in the get profile command, this enumeration
designates which surface to get the profiles from.
"Active surface" refers to the surface of the buffer that profile data is being written onto. For
further details, refer to "9.2.9.2 Internal memory".
Typedef enum {
LJV7IF_PROFILE_POS_CURRENT = 0x00,// From current
LJV7IF_PROFILE_POS_OLDEST = 0x01,// From oldest
LJV7IF_PROFILE_POS_SPEC = 0x02,// Specify position
} LJV7IF_PROFILE_POS;
In the get profile command, this enumeration indicates the specification method for the
profiles to get out of the profile data retained in the controller. In get profile, the profiles are
stored from oldest to newest.
From current
Gets the current profiles.
The end of the acquired profiles becomes the current profile.
From oldest
Gets the oldest profile.
The head of the acquired profiles becomes the oldest profile.
Specify position
Gets the specified number of profiles from the specified profile position.
The head of the acquired profiles becomes the profiles at the specified position.
Comment
For the specified number of profiles, refer to the individual structure definitions.
9LJ-V7000_COM_RM_E
NameGet profile batch data position specification method designation (batch measurement: on)
Typedef enum {
LJV7IF_BATCH_POS_CURRENT = 0x00,// From current
LJV7IF_BATCH_POS_SPEC = 0x02,// Specify position
Definition
Description
LJV7IF_BATCH_POS_COMMITED = 0x03,// From current after batch
commitment
LJV7IF_BATCH_POS_CURRENT_ONLY = 0x04// Current only
} LJV7IF_BATCH_POS;
In the get batch profile command, this enumeration indicates the specification method for the
profiles to get in what batch out of the batch data retained in the controller. In get profile, the
profiles are stored from oldest to newest.
From current
Gets the profiles in the current batch data.
Specify position
Gets the profiles in the batch data with the specified number.
From current after batch commitment
Gets the profiles in the current batch data after commitment.
Current only
Gets one current profile in the current batch data.
Comment
NameNumber of OUT settings
Definition
Description
Comment
NameNumber of simultaneously connectable controllers
Definition
Description
Comment
For the specified number of profiles, refer to the individual structure definitions.
Const static LONG LJV7IF_OUT_COUNT = 16;
This constant indicates the number of OUT settings.
-
Const static LONG LJV7IF_DEVICE_COUNT = 6;
This constant is the upper limit for the number of controllers that can simultaneously
communicate.
-
10LJ-V7000_COM_RM_E
8.2Structure definitions
NameEthernet settings structure
Typedef struct {
BYTEabyIpAddress[4];
Definition
Description
WORDwPortNo;
BYTEreserve[2];
} LJV7IF_ETHERNET_CONFIG;
This structure contains the settings passed during an Ethernet communication connection.
abyIpAddress
The IP address of the controller to connect to.
For 192.168.0.1:
Set abyIpAddress[0]=192, abyIpAddress[1]=168,
and so on.
byYearYear. Set from 0 to 99, which means 2000 to 2099.
byMonthMonth.1 to 12.
byDayDay.1 to 31.
byHourHour.0 to 23.
byMinuteMinute.0 to 59.
bySecondSecond.0 to 59.
When modifying or reading a setting, these variables are used to specify the target setting
Description
item.
byTarget1, byTarget2, byTarget3, byTarget4
These variables are used when specifying further details for the setting item.
For example, when configuring OUT measurement mode, these are used to specify the
OUT number.
Comment
For details, see the appendix.
NameMeasurement results structure
Typedef struct {
BYTEbyDataInfo;
Definition
BYTEbyJudge;
BYTEreserve[2];
FLOATfValue;
} LJV7IF_MEASURE_DATA;
Measurement value and judgment results.
byDatainfo
This variable indicates whether or not the measurement value (fValue) is valid, and if it is
not a valid value, what kind of data it is. See LJV7IF_MEASURE_DATA_INFO.
byJudge
Tolerance judgment result. See LJV7IF_JUDGE_RESULT.
Description
fValue
Measurement value. The unit used for measurement values is the minimum display unit
set for Target OUT in program settings.
When the minimum display unit is 1 mm to 0.001 mm, the measurement value unit is [mm].
When 1 um to 0.1 um, the measurement value unit is [um]. The unit for sectional areas is
2
, and the unit for angles is deg.
mm
When not a valid value, a large negative value is stored (-10
Wheter dicates the amount of profile data stored.
(When 2 head/combine (wide) is off, 2 profile data units is stored, otherwise 1 profile data
unit is stored.)
byEnvelope
Description
Whether profile compression (time axis) is on.
0: off, 1: on.
7th bit: Indicates whether the encoder's Z phase has been entered. (*)
Description
㪊㪈㵺㪎
dwTriggerCnt
㪍㪌㪋㪊㪉㪈㪇
Indicates which number trigger from the start of measurements this profile is.
(Trigger counter)
dwEncoderCnt
The encoder count when the trigger was issued.
(Encoder counter)
Other than when settings are modified or the program is switched, the trigger counter and the
encoder counter are reset at the following times.
Comment
• When the memory is cleared in high-speed mode (profile only)
• When laser emission stops and is restarted with the LASER_OFF terminal
• When laser emission is allowed after it was prohibited with the REMOTE terminal
㪙㪪㪣㸣㪙㪪㪤
*: About the Z-phase flag
This flag can be used when the controller is version 3.0 or later.
This flag is turned ON when Z-phase ON input is received during the period between the previous trigger input (or the start of
measurement if there was no previous trigger input) and the current trigger input.
13LJ-V7000_COM_RM_E
Example: Single phase 1x multiplier encoder trigger with no skipping
A phaseON
Z phaseON
Encoder count
Z-phase flag
Note: When the Z-phase input uses a negative logic encoder, set the TRG minimum input time, which is a common measurement
setting, to 7 μs. With negative logic, the Z-phase flag turns ON as shown in the following figure.
A phaseON
Z phaseON
Encoder count
Z-phase flag
OFF
OFF
OFF
OFF
1
OFF
1
OFF
2
ON
2
ON
3
ON
3
ON
4
OFF
4
OFF
5
ON
5
OFF
NameProfile footer information structure
Typedef struct {
Definition
DWORDreserve;
} LJV7IF_PROFILE_FOOTER;
Description
The footer information added to the profile.
None (reserved only).
Comment
-
NameHigh-speed mode get profile request structure (batch measurement: off)
The get profile designation information when the operation mode is "high-speed (profile only)"
and batch measurements are off in the get profile command.
byTargetBank
Specifies whether to get the profiles from the active surface or whether to get the profiles
from the inactive surface. See LJV7IF_PROFILE_BANK. (P.9)
byPosMode
Specifies the get profile position specification method. See LJV7IF_PROFILE_POS.
Description
dwGetProfNo
When byPosMode is LJV7IF_PROFILE_POS_SPEC, specifies the profile number for the
profile to get.
byGetProfCnt
The number of profiles to read.
byErase
Specifies whether or not to erase the profile data that was read and the profile data older
than that.
0: Do not erase, 1: erase
Comment
If the communication buffer is insufficient, the number of profiles specified by byGetProfCnt
may not be acquired. In this situation, the maximum number of profiles that can be acquired
is returned.
14LJ-V7000_COM_RM_E
NameHigh-speed mode get profile request structure (batch measurement: on)
The get profile designation information when the operation mode is "high-speed (profile only)"
and batch measurements are on in the get profile command.
byTargetBank
Specifies whether to get the profiles from the active surface or whether to get the profiles
from the inactive surface. See LJV7IF_PROFILE_BANK. (P.9)
byPosMode
Specifies the get profile position specification method. See LJV7IF_BATCH_POS.
dwGetBatchNo
When byPosMode is LJV7IF_BATCH_POS_SPEC, specifies the batch number for the
profile to get.
dwGetProfNo
Specifies the profile number to start getting profiles from in the specified batch number.
byGetProfCnt
The number of profiles to read.
byErase
Specifies whether or not to erase the batch data that was read and the batch data older
than that.
0: Do not erase, 1: erase
Comment
If the communication buffer is insufficient, the number of profiles specified by byGetProfCnt
may not be acquired. In this situation, the maximum number of profiles that can be acquired
is returned.
15LJ-V7000_COM_RM_E
NameAdvanced mode get profile request structure (batch measurement: on)
The get profile designation information when the operation mode is "advanced (with OUT
measurement)" and batch measurements are on in the get batch profile command.
byPosMode
Specifies the get profile position specification method. See LJV7IF_BATCH_POS.
dwGetBatchNo
When byPosMode is LJV7IF_BATCH_POS_SPEC, specifies the batch number for the
profiles to get.
dwGetProfNo
Specifies the profile number for the profiles to get.
byGetProfCnt
The number of profiles to read.
If the communication buffer is insufficient, the number of profiles specified by byGetProfCnt
may not be acquired. In this situation, the maximum number of profiles that can be acquired
is returned.
NameHigh-speed mode get profile response structure (batch measurement: off)
The profile information returned for the get profiles command when the operation mode is
"advanced mode (with OUT measurement)" and batch measurements are on.
dwGetBatchNo
The batch number that was read this time.
dwGetBatchProfCnt
The number of profiles in the batch that was read this time.
dwGetBatchTopProfNo
Indicates what number profile in the batch is the oldest profile out of the
profiles that were read this time.
byReadProfCnt
The number of profiles that were read this time.
Comment
NameGet storage status request structure
Definition
Description
Comment
NameGet storage status response structure
Definition
-
Typedef struct {
DWORDdwReadArea;
}LJV7IF_GET_ STRAGE_STATUS_REQ;
Get target designation information in the get storage status command.
dwReadArea
The storage surface to read.
• When the memory allocation setting is "double buffer"
0: Active surface, 1: Surface A, 2: Surface B
• When the memory allocation setting is "entire area (overwrite)", fixed as 1
• When the memory allocation setting is "entire area (do not overwrite)"
0: Active surface, surface specification (1 to 999)
"Active surface" refers to the surface of the buffer that profile data is being written onto. For
further details, refer to "9.2.9.2 Internal memory".
Typedef struct {
DWORDdwSurfaceCnt;
DWORDdwActiveSurface;
} LJV7IF_GET_STRAGE_STATUS_RSP;
Description
Comment
The storage status information returned for the get storage status command.
dwSurfaceCnt
Storage surface count
dwActiveSurface
The active storage surface.
When the active program has storage off, 0.
For details about "Storage surface", refer to "9.2.9.2.2 For operation mode: advanced (with
OUT measurement)".
18LJ-V7000_COM_RM_E
NameStorage information structure
Typedef struct {
BYTEbyStatus;
BYTEbyProgramNo;
Definition
Description
BYTEbyTarget;
BYTEreserve[5];
DWORDdwStorageCnt;
} LJV7IF_ STORAGE_INFO;
Information related to the storage status.
byStatus
Storage status.
0: Empty (Takes on this value when the target surface has not operated even once in a
program with storage on)
1: Storing (only the active storage surface can be 1)
2: Storage complete
byProgramNo
The program number for the relevant storage surface.
byTarget
Storage target.0: Data storage, 2: profile storage, 3: batch profile storage.
However, when batch measurements are on and profile compression (time axis) is on, 2:
profile storage is stored.
dwStorageCnt
Storage count (batch count when batch is on)
Comment
NameGet storage data request structure
Definition
Description
Comment
For details about "Storage surface", refer to "9.2.9.2.2 For operation mode: advanced (with
OUT measurement)".
A pointer to the buffer that stores the profile data.
The profile data is stored in this buffer with "LJV7IF_PROFILE_HEADER - signed 32-bit
profile data - LJV7IF_PROFILE_FOOTER" as a single unit of profile data, and only the
number of profiles that could be acquired (dwCount) are returned.
dwSize(in)
The size in BYTEs per single unit of the profile "LJV7IF_PROFILE_HEADER - signed 32bit profile data - LJV7IF_PROFILE_FOOTER" contained in pBuffer.
dwCount(in)
The number of profiles stored in pBuffer.
dwNotify(in)
Notification of an interruption in high-speed communication or a break in batch
measurements.
For details, see "8.3.1 Supplement".
dwUser(in)
User information set when high-speed communication was initialized.
Return
value
Explanation
None
When using the high-speed communication function, this callback function is called when
data is received and when there is a change in the communication state.
This callback function is called from a thread other than the main thread.
Take care to only implement storing profile data in a thread save buffer in the callback
function. As the thread used to call the callback function is the same as the thread used to
receive data, the processing time of the callback function affects the speed at which data
is received, and may stop communication from being performed properly in some
environments. Refer to the sample program for details.
Profile data is stored in 0.01 μm units.
22LJ-V7000_COM_RM_E
8.3.1Supplement
8.3.1.1 dwNotify parameter
This section describes the dwNotify parameter used in the callback function.
In high-speed communication, the callback function is called when any number of events occur, in
addition to when profile data is received. These events can be checked with the dwNotify
parameter.
dwNotify = 0: Indicates that profile data is being communicated correctly. Refer to the table below
for values other than 0.
: May be returned.
: Will not be returned.
Batch
off
Batch
on
LSB0Continuous send was stopped (stop by command)
1
Continuous send was stopped (automatic stop)
2
Continuous send was stopped (automatic stop)
*1
*2
3Reserved
4Reserved
5Reserved
6Reserved
7Reserved
8Send interrupted by clear memory
LJV7IF_StartHighSpeedDataCommunicationStarts high-speed data communication
Performs the initialization required for
high-speed data communication (USB)
Performs the initialization required for
high-speed data communication
(Ethernet)
Requests preparation before starting
high-speed data communication
LJV7IF_StopHighSpeedDataCommunicationStops high-speed data communication
LJV7IF_HighSpeedDataCommunicationFinalize
Performs high-speed data
communication termination processing
27LJ-V7000_COM_RM_E
9.2Function reference
The type of the return value for the functions where there is a possibility of an error occurring is LONG.
Normally, 0 (ERR_NONE) is returned, and the return code is expressed in the lower 2 bytes (the upper 2
bytes are reserved).
For the common return codes for functions, see "10 Common Return Codes". For the individual return codes
for functions, see the function description in this chapter. The return codes are listed as the lower 2 bytes in
hexadecimal (example: 0x0100).
9.2.1Operations for the DLL
Initialize DLL
FormatLONG LJV7IF_Initialize(void);
Parameters-
Return valueNo individual return code
ExplanationThis function initializes the DLL. (Always run this function)
Supported version1.00
Finalize DLL
FormatLONG LJV7IF_Finalize(void);
Parameters-
Return valueNo individual return code
Explanation
Supported version1.00
This function performs the termination processing for the DLL. (Always run this
function)
Get DLL version
FormatDWORD LJV7IF_GetVersion(void);
Parameters-
Return valueDLL version
This function gets the DLL version.
The version is expressed as a hexadecimal number. Viewed as hexadecimal,
the 4th digit is the major version, the 3rd digit is the minor version, the 2nd digit
is the revision, and the 1st digit is the build. For example, the initial version
Explanation
(1.2.3.4) is expressed as 0x1234.
The major version is incremented when the DLL's backward compatibility is lost.
The minor revision is incremented when the version is updated with additional
functions.
Supported version1.00
28LJ-V7000_COM_RM_E
9.2.2Establish/disconnect the communication path with the controller
For communication devices, see "9.2.9.1 Communication devices".
USB communication connection
FormatLONG LJV7IF_UsbOpen(LONG lDeviceId);
Parameters
Return valueNo individual return code
Explanation
Supported version1.00
lDeviceId(in)
Specifies the communication device to communicate with.
This function establishes a connection with the controller so that the library can
communicate with a USB-connected controller.
Ethernet communication connection
Format
Parameters
Return valueNo individual return code
Explanation
Supported version1.00
LONG LJV7IF_EthernetOpen
(LONG lDeviceId, LJV7IF_ETHERNET_CONFIG* pEthernetConfig);
lDeviceId(in)
Specifies the communication device to communicate with.
pEthernetConfig(in)
Ethernet communication settings.
For each member, see "8 Constant, Structure Definitions"
This function establishes a connection with the controller so that the library can
communicate with an Ethernet-connected controller.
Disconnect communication path
FormatLONG LJV7IF_CommClose(LONG lDeviceId);
Parameters
Return valueNo individual return code
Explanation
Supported version1.00
lDeviceId(in)
Specifies the communication device to communicate with.
This function closes the USB or Ethernet connection.
Even if this function is called when a connection has not been established, an
error does not occur.
9.2.3System control
For communication devices, see "9.2.9.1 Communication devices".