PISO-CPM100(U) / PCM-CPM100 user manual (ver. 2.02) Dec/03/2012 ----------------- 33
SYNC Services
Calling the function CPM100_SendSYNCMsg starts the SYNC object
transmission. This function supports single SYNC message transmission and
cyclic SYNC message transmission. The parameter “Timer” of the function
CPM100_SendSYNCMsg can adjust the cyclic period of the SYNC COB-ID
sent by master. And the parameter “Times” can set the sending times of the
SYNC message.
If the timer parameter is set to 0, the SYNC object
transmission will be stopped. When the times parameter is set to non-zero
value, the function will send the SYNC message until the timer is set to 0 or the
parameter “Times” is achieved.
EMCY Services
The Emergency messages are triggered by the occurrence of a device
internal error situation. Users can call the function CPM100_ReadLastEMCY
to receive the EMCY message or the function CPM100_InstallEMCYISR to
install user-defined EMCY interrupt process. In this case, if there are CAN
slaves sending the EMCY, these EMCY messages will be processed by the
user-defined EMCY interrupt process.