PISO-CPM100(U) / PCM-CPM100 user manual (ver. 2.02) Dec/03/2012 ----------------- 81
4.5.46. CPM100_PDOUseEntry
Description:
Use this function to change the useful object mapping entry of PDO
object. The useful entry starts from 1 to the parameter Entry. Therefore,
if the parameter Entry is 0, it means that the PDO have no useful object
mapping entry.
Syntax:
WORD
CPM100_PDOUseEntry(
BYTE
BoardNo,
WORD
Cobid,
BYTE
Entry,
BYTE
BlockMode)
Parameter:
BoardNo:
[input] CPM100 board number (0~7).
Cobid:
[input] COB-ID used by the PDO object.
Entry:
[input] Useful entry number of PDO mapping object.
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”.