PISO-CPM100(U) / PCM-CPM100 user manual (ver. 2.02) Dec/03/2012 ----------------- 103
4.5.68. CPM100_GetMasterReadSDOEvent
Description:
Using this function can get all the read SDO messages sent to the
specific node ID of the CPM100. For example, the CPM100 is initialized
with node ID 2. If someone sends an SDO message with the COB-ID
0x602 to the CPM100 for reading an object, users can use the function
CPM100_GetMasterReadSDOEvent for obtaining this SDO message,
and respond some information to the SDO sender. The parameter,
BoardNo, indicates the number of the CPM100 which receives the read
SDO message. The parameters, Index and SubIndex, are the object
indicator. The function CPM100_GetMasterReadSDOEvent is usually
applied with the function CPM100_InstallReadSDOISR. About the demo
please refer to the section 4.1.6 SDO_PDO_ISR.
Note: The function is valid while the Node parameter of the
function CPM100_InitMaster is > 0.
Syntax:
WORD
CPM100_GetMasterReadSDOEvent (
BYTE
*BoardNo,
WORD
*Index,
BYTE
*SubIndex)
Parameter:
*BoardNo:
[output] Get the board number of the CPM100 which
receives the read SDO message.
*Index:
[output] Get the object index of the SDO message.
*SubIndex:
[output] Get the object subindex of the SDO message.