PISO-CPM100(U) / PCM-CPM100 user manual (ver. 2.02) Dec/03/2012 ----------------- 58
4.5.24. CPM100_SDOReadData
Description:
The function CPM100_SDOReadData is useful to the SDO upload
from a specified slave. When users use this function, pass the slave
device node ID, object index and object subindex into this function. This
function supports both expedition mode (less then 4-byte data length)
and segment mode (more then 4-byte data length).
Syntax:
WORD
CPM100_SDOReadData (
BYTE
BoardNo,
BYTE
Node,
WORD
Index,
BYTE
SubIndex,
DWORD
*RDLen,
BYTE
*RData,
BYTE
BlockMode)
Parameter:
BoardNo:
[input] CPM100 board number (0~7).
Node:
[input] Slave device Node-ID (1~127).
Index:
[input] Object index of object dictionary of slave devices.
SubIndex:
[input] Object subindex of object dictionary of slave devices.
*RDLen:
[output] Total data length.
*RData:
[output] SDO data respond from the specified slave device.
BlockMode:
[input] 0 means this function is non-block-function, and 1
means this function is block-function. If set this parameter to 1, the
running procedure of the users’ application will be held in the
function until return. If set to 0, this function will return “CPM_
Processing” directly. This function will return its process status
while users apply it with the same “BoardNo” and “Node” again. If
the procedure is still not complete, it will return “CPM_Wait”.