If ST_LogicalAddress is of the type C2C_DATA_IN, i_uiDataLen bytes are copied from the object to the structure existing at i_dwPointerToData.
If ST_LogicalAddress is of the type C2C_DATA_OUT, i_uiDataLen bytes are copied from the structure existing at i_dwPointerToData to the object.
Syntax:
iStatus = FC_C2CDataCopy (C2C_DataIn.stLogicalAddress, ADR(stC2CData), SIZEOF(stC2CData))
Input |
Data type |
Description |
---|---|---|
i_stLogAddr |
ST_LogicalAddress |
Logical address of the data object. |
i_dwPointerToData |
DWORD |
Pointer to memory filled with i_uiDataLen bytes. |
i_uiDataLen |
UINT |
Length in bytes that are to be read. |