8 high-speed data communication related, High-speed data communication related – KEYENCE LJ-V7000 Series User Manual

Page 45

Advertising
background image

45

LJ-V7000_COM_RM_E

9.2.8 High-speed data communication related

For communication devices, see "9.2.9.1 Communication devices".

Initialize USB high-speed data communication

Initialize Ethernet high-speed data communication

Format

LONG LJV7IF_HighSpeedDataUsbCommunicationInitalize (LONG lDeviceId,
void (*pCallBack)(BYTE*, DWORD, DWORD, DWORD, DWORD), DWORD
dwProfileCnt, DWORD dwThreadId);

Parameters

lDeviceId(in)

Specifies the communication device to communicate with.

pCallBack(in)

Specifies the callback function to call when data is received by high-speed
communication.

dwProfileCnt(in)

Specifies the frequency to call the callback function. The callback function is
called when the specified number of profiles is received.

dwThreadId(in) (synonymous with dwUser)

Thread ID.

Return value

No individual return code

Explanation

This function initializes high-speed communication for a USB connected
controller. It is necessary to maintain a unique communication path (not used for
normal command communication) for high-speed communication. This function
establishes a unique high-speed communication path.

Supported version

1.00

Format

LONG LJV7IF_HighSpeedDataEthernetCommunicationInitalize (LONG
lDeviceId, LJV7IF_ETHERNET_CONFIG* pEthernetConfig, WORD
wHighSpeedPortNo, void (*pCallBack)(BYTE*, DWORD, DWORD, DWORD,
DWORD), DWORD dwProfileCnt, DWORD dwThreadId);

Parameters

lDeviceId(in)

Specifies the communication device to communicate with.

pEthernetConfig(in)

Specifies the Ethernet settings used in high-speed communication.

wHighSpeedPortNo(in)

Specifies the port number used in high-speed communication.

pCallBack(in)

Specifies the callback function to call when data is received by high-speed
communication.

dwProfileCnt(in)

Specifies the frequency to call the callback function. The callback function is
called when the specified number of profiles is received.

dwThreadId(in) (synonymous with dwUser)

Thread ID.

Return value

No individual return code

Explanation

This function initializes high-speed communication for an Ethernet connected
controller. It is necessary to maintain a unique communication path (not used for
normal command communication) for high-speed communication. This function
establishes a unique high-speed communication path.
It is necessary to set different TCP/IP port numbers for normal command
communication and high-speed communication (see the LJ-V7000 Series
User's Manual for details on setting port numbers).

Supported version

1.00

Advertising