Download Description - ICP DAS USA`s I

Transcript
4.5.43. CPM100_SetSYNC_List
z
Description:
If the user uses CPM100_AddNode function to add the slave with
manual mode, the function CPM100_SetSYNC_List must be called
while the SYNC ID of the slave needs to be changed or be set. The
function CPM100_SetSYNC_List can only change the SYNC COB-ID in
the COB-ID list of the PISO-CPM100(U), the real value stored in the
slave device may be different from the configuration which is set by the
function CPM100_SetSYNC_List. The users need to confirm that by
themselves.
z
Syntax:
WORD CPM100_SetSYNC_List (BYTE BoardNo, BYTE Node,
WORD Cobid, BYTE BlockMode)
z
Parameter:
BoardNo: [input] PISO-CPM100(U) board number (0~7).
Node: [input] Slave device Node-ID (1~127).
Cobid: [input] COB-ID used by the SYNC 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 “Node” again. If
the procedure is still not complete, it will return “CPM_Wait”.
PISO-CPM100(U) user manual (ver. 2.01) Jan/12/2011 ----------------- 75