PISO-CPM100(U) / PCM-CPM100 user manual (ver. 2.02) Dec/03/2012 ----------------- 77
4.5.43. CPM100_GetPDOMapInfo
Description:
The function CPM100_GetPDOMapInfo can get the mapping data
information of the PDO object.
Syntax:
WORD
CPM100_GetPDOMapInfo (
BYTE
BoardNo,
WORD
Cobid,
BYTE
*RxTx,
BYTE
*Tx_Type,
WORD
*Event_Timer,
BYTE
*Entry_Cnt,
DWORD
*Map_Data,
BYTE
BlockMode)
Parameter:
BoardNo:
[input] CPM100 board number (0~7).
Cobid:
[input] COB-ID used by the PDO object.
*RxTx:
[output] PDO type (0: RxPDO, 1: TxPDO).
*Tx_Type:
[output] Transmission type.
*Event_Timer:
[output] PDO event timer.
*Entry_Cnt:
[output] Useful PDO entry number of the PDO object.
*Map_Data:
[output] Double Word array parameter. Response the
mapping data of the PDO object’s every useful entry.
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 “Cobid” again. If
the procedure is still not complete, it will return “CPM_Wait”.