PISO-CPM100(U) / PCM-CPM100 user manual (ver. 2.02) Dec/03/2012 ----------------- 66
4.5.32. CPM100_SetPDORemotePolling
Description:
If the CANopen slaves do not support the event timer function of the
TxPDOs, using the function CPM100_SetPDORemotePolling can
config the most 125 TxPDO objects into the remote polling list. Then,
the CPM100 will poll the configured TxPDOs and update the data into
buffer automatically. Users can use CPM100_GetMultiPDOData to get
these TxPDOs data from the buffer faster and easily.
Syntax:
WORD
CPM100_SetPDORemotePoling (
BYTE
BoardNo,
BYTE
PDOCnt,
WORD
*Cobid,
BYTE
BlockMode)
Parameter:
BoardNo:
[input] CPM100 board number (0~7).
PDOCnt:
[input] The number of the *Cobid array.
*Cobid:
[input] COB-ID array used by the TxPDO objects.
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”.