PISO-CPM100(U) / PCM-CPM100 user manual (ver. 2.02) Dec/03/2012 ----------------- 104
4.5.69. CPM100_GetMasterWriteSDOEvent
Description:
Using this function can get all the write 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 writing an object, users can use the function
CPM100_GetMasterWriteSDOEvent for obtaining this SDO message.
The parameter, BoardNo, indicates the number of the CPM100 which
receives the write SDO message. The parameters, Index and SubIndex,
are the object indicator. The parameter WLen is the data length of the
parameter *WData. The function CPM100_GetMasterWriteSDOEvent is
usually applied with the function CPM100_InstallWriteSDOISR. 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_GetMasterWriteSDOEvent (
BYTE
*BoardNo,
WORD
*Index,
BYTE
*SubIndex,
BYTE
*WLen,
BYTE
*WData)
Parameter:
*BoardNo:
[output] Get the board number of the CPM100 which
receives the write SDO message.
*Index:
[output] Get the object index of the SDO message.
*SubIndex:
[output] Get the object subindex of the SDO message.
*WLen:
[output] The data length of the write data.
*WData:
[output] Return 0~4 bytes of the SDO write data.