Instructions

241 C-Control Pro IDE
© 2013 Conrad Electronic
byte data[8], i;
for(i=0;i<8;i++) data[i]=i;
CAN_SetMOb(1, 0x12345678, 0, CAN_SEND|CAN_EXTID);
CAN_MObSend(1, 8, data);
Automatic Reply
MOb 4 is set to automatic reply. The data bytes provided with CAN_SetMOb () are sent when a CAN
2.0B trigger message is received with ID of 0x999. The number of transmitted data bytes depends on
the DLC incoming trigger message.
byte data[5], i;
for(i=0;i<5;i++) data[i]=i;
CAN_SetMOb(4, 0x999, 0x1fffffff, CAN_REPL|CAN_EXTID);
CAN_MObSend(4, 5, data);
5.5.2 CAN_Exit
CAN Bus Functions
Syntax
void CAN_Exit(void);
Sub CAN_Exit()
Description
The CAN chip functions are turned off.
Parameter
None
5.5.3 CAN_GetInfo
CAN Bus Functions
Syntax
byte CAN_GetInfo(byte infotype);
Sub CAN_GetInfo(infotype As Byte) As Byte
Description