Get data storage data – KEYENCE LJ-V7000 Series User Manual

Page 42

Advertising
background image

42

LJ-V7000_COM_RM_E

Get data storage data

Format

LONG LJV7IF_GetStorageData(LONG lDeviceId, LJV7IF_GET_STORAGE_REQ*
pReq, LJV7IF_STORAGE_INFO* pStorageInfo, LJV7IF_GET_STORAGE_RSP*
pRsp, DWORD* pdwData, DWORD dwDataSize);

Parameters

lDeviceId(in)

Specifies the communication device to communicate with.

pReq(in)

Specifies the storage data to get.
For each member, see "8 Constant, Structure Definitions".

pStorageInfo(out)

Represents the actually acquired storage information.
For each member, see "8 Constant, Structure Definitions".

pRsp(out)

Represents the position and size of the actually acquired storage data.
For each member, see "8 Constant, Structure Definitions".

pdwData(out)

The buffer to get the storage data.
The storage data is stored in this buffer with "counter value in 10 ms units
from the 32-bit base time - LJV7IF_MEASURE_DATA[16]" as a single unit of
storage data, and only the amount of storage data that could be acquired is
returned.
For each member, see "8 Constant, Structure Definitions". For details about
counter value in 10 ms units, refer to "9.2.9.10 Time data added to storage
data".

dwDataSize(in)

pdwData size in BYTEs

Return value

0x8080: The operation mode is "high-speed (profile only)"
0x8081: The storage target setting is not "OUT value"

Explanation

When the storage target setting is "OUT value", this function gets the storage
data. Data can be acquired even if it is within the storage period. If there is no
accumulated data, 0 is returned for the number of items read in pRsp. If the data
specified by the data number to start reading in pRep has not been
accumulated, one piece of the newest data that has been accumulated is
returned. In pdwData, OUT measurements where the measurement mode is set
to "do not measure" are also stored. There is a limit to the amount of data that
can be read at once. This limit depends on the measurement settings. Refer to
dwDataCnt (the number of items read) in pRsp, and confirm that the data you
wish to acquire has all been acquired. If it could not be acquired, specify the
following in this function to acquire the remaining data:
dwStartNo in pReq = dwStartNo in pRsp + dwDataCnt (Specify the data to be
read as the next piece of data after the data that was read this time)

Supported version

1.00

Advertising