CANID

Top  Previous  Next

Action

Returns the ID from the received CAN frame.

 

 

Syntax

value = CANID()

 

 

Remarks

The CANID function can return a 11 bit or 29 bit ID. You need to assign it to a WORD or DWORD variable.

The CANID functions works at the current selected MOB and is typically used inside the CAN interrupt.

 

 

See also

CONFIG CANBUS , CONFIG CANMOB , CANBAUD, CANRESET, CANCLEARMOB, CANCLEARALLMOBS, CANSEND, CANRECEIVE , CANSELPAGE, CANGETINTS

 

 

 

Example

Dim  _canid As Dword

_canid = Canid()                                 ' read the identifier