Get batch profile storage data – KEYENCE LJ-V7000 Series User Manual
Page 44
44
LJ-V7000_COM_RM_E
Get batch profile storage data
Format
LONG LJV7IF_GetStorageBatchProfile (LONG lDeviceId,
LJV7IF_GET_BATCH_PROFILE_STORAGE_REQ* pReq, LJV7IF_STORAGE_INFO*
pStorageInfo, LJV7IF_GET_BATCH_PROFILE_STORAGE_RSP* pRsp,
LJV7IF_PROFILE_INFO* pProfileInfo, DWORD* pdwData, ·DWORD dwDataSize,
DWORD* pdwTimeOffset, LJV7IF_MEASURE_DATA* pMeasureData);
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 storage data is stored in this buffer with "LJV7IF_PROFILE_HEADER -
signed 32-bit profile data - LJV7IF_PROFILE_FOOTER -
LJV7IF_MEASURE_DATA[16]" as a single unit of storage data, and only the
storage data that could be acquired is returned.
The measurement results for each profile are stored in
LJV7IF_MEASURE_DATA[16].
For each member, see "8 Constant, Structure Definitions".
dwDataSize(in)
pdwData size in BYTEs
pdwTimeOffset(out)
The buffer for receiving the counter value in 10 ms units from the 32 bit base time.
For details about counter value in 10 ms units, refer to "9.2.9.10 Time data
pMeasureData(out)
The measurement results for the relevant batch data.
This buffer stores the data for all 16 OUTs including the OUTs that are not
measuring.
The host requires the passing of a buffer LJV7IF_MEASURE_DATA[16] in size.
Return value
0x8080:
The operation mode is "high-speed (profile only)"
0x8081:
The storage target setting is not profile, or not "batch measurements
on and profile compression (time axis) off"
0x80A0:
The batch data specified by the batch number to read
(dwGetBatchNo) in pReq has not been accumulated yet
Explanation
When the storage target setting is profile, this function gets the stored profile
data. (Batch setting: on)
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 the data specified by the number of the profile in the batch to get in pRep has
not been accumulated, one item of the newest data that has been accumulated
is returned.
In pdwData/pMeasureData, OUT measurements where the measurement mode
is set to "do not measure" are also stored.
Use the following procedure to read all profiles in a batch.
1. Call this function by specifying 0 for dwGetBatchTopProfNo in pReq. Save the
start position and the number of profiles that were read and the batch number
that was read.
2. Configure pReq as listed below and call this function again.
dwGetBatchNo = batch number that was read
dwGetBatchTopProfNo = first profile number of the unread profiles in the batch
3. Update by dwGetBatchTopProfNo in step 2 and call this function until all of
the profiles in the batch can be read.
Supported version
1.00