Returns the ID from the received CAN frame.
value = CANID()
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.
Dim _canid As Dword
_canid = Canid() ' read the identifier