PISO-CPM100(U) / PCM-CPM100 user manual (ver. 2.02) Dec/03/2012 ----------------- 88
4.5.53. CPM100_SendSYNCMsg
Description:
Use the function CPM100_SendSYNCMsg to send a SYNC message
with specified COB-ID cyclically. If the parameter “Timer” is 0, the SYNC
message will be stopped. If the parameter “Timer” is more than 0, the
function will send SYNC message per “Timer” millisecond until finish the
parameter “Times”. When the “Times” is set to 0, the function will send
SYNC message continuously until set “Timer” to 0. Users can set at
most 5 SYNC messages with different ID to be sent cyclically.
Syntax:
WORD
CPM100_SendSYNCMsg(
BYTE
BoardNo,
WORD
Cobid,
WORD
Timer,
DWORD
Times,
BYTE
BlockMode)
Parameter:
BoardNo:
[input] CPM100 board number (0~7).
Cobid:
[input] COB-ID used by the SYNC object.
Timer:
[input] SYNC message transmission period. If the timer is 0, the
SYNC message will be stopped.
Times:
[input] SYNC message transmission times. If the time is 0, the
SYNC message will be sending until “Timer” is set to 0.
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”.