Get profile storage data – KEYENCE LJ-V7000 Series User Manual
Page 43

43
LJ-V7000_COM_RM_E
Get profile storage data
Format
LONG LJV7IF_GetStorageProfile(LONG lDeviceId,
LJV7IF_GET_STORAGE_REQ* pReq, LJV7IF_STORAGE_INFO* pStorageInfo,
LJV7IF_GET_STORAGE_RSP* pRsp, LJV7IF_PROFILE_INFO* pProfileInfo,
DWORD* pdwData, DWORD dwDataSize);
Parameters
lDeviceId(in)
Specifies the communication device to communicate with.
pReq(in)
Specifies the profiles 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)
Indicates the position and size of the profiles that were actually acquired.
For each member, see "8 Constant, Structure Definitions".
pProfileInfo(out)
Indicates the profile information that was actually acquired.
For each member, see "8 Constant, Structure Definitions".
pdwData(out)
The buffer to get the storage data.
The profile storage data is stored in this buffer with "counter value in 10 ms
units from the 32-bit base time - LJV7IF_MEASURE_DATA[16] -
LJV7IF_PROFILE_HEADER - signed 32-bit profile data -
LJV7IF_PROFILE_FOOTER - LJV7IF_MEASURE_DATA[16]" as a single unit of
profile storage data, and only the amount of profile storage data that could
be acquired is returned.
The first LJV7IF_MEASURE_DATA[16] stores the newest measurement
values at that time, the second stores the measurement values for that profile.
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
dwDataSize(in)
pdwData size in BYTEs
Return value
0x8080:
The operation mode is "high-speed (profile only)"
0x8081:
The storage target setting is not profile, or "batch measurements on
and profile compression (time axis) off"
Explanation
When the storage target setting is profile, this function gets the stored profile
data. (Batch setting: off) Data can be acquired even if it is within the storage
period.
For the details on the data stored in the profile data (storage order and size), see
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 item 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 profile 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 profile 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 in pRsp
(Specify the profile data to be read as the next profile data after the profile data
that was read this time)
Supported version
1.00