|
catchCANID |
Top Next |
|
catchCANID catch special CAN Bus frame Since R2019b
Library: CAN Bus Controller ( Dafulai Electronics) /catchCANID
Description
This block catches your interesting CAN Bus frame. The interesting CAN Bus frame is divided into 2 different types. Type 1 is that we only care CAN ID. Type 2 is that we care not only CAN ID but also first byte of data field (the frame number of long data frames). This is non-block function. It will return immediately no matter whether it catch your interesting CAN bus frame. The output port "Got" (logical value) will tell you whether catch your interesting CAN Bus frame.
Notes: long data frames means that CAN ID is the same, and the first byte of data field is frame number (starting from 0 or 1). So data field of each frame only has 7 bytes truly data, Total maximum data Qty= 7 x 256 (first frame No=0)=1792 bytes Or Total maximum data Qty= 7 x 255 (first frame No=1)=1785 bytes
Parameters
Please double click this block to open parameters dialog below:
Let us explain parameters.
Ports
Input
None
Outport
Got — "logical" scalar. True means we caught our interesting CAN Bus frame.
|