Specifications

CAN FIFO Driver Blocks for the CAN-AC2-104 with Philips SJA1000 CAN-Controller
5-29
CANPC_send_data(…) described in the Softing user manual. Refer to that
manual for more information.
Sample time — Defines the sample time at which the FIFO Write block is
executed during a model (target application) run.
You can use as many instances of the FIFO Write block in the model as needed.
For example by using two instances of the block, different sample times at
which CAN messages are sent out can be defined. Or you can use multiple
instances to structure your model more efficiently.
FIFO Read Driver Block
The FIFO Read driver block is used to read CAN messages out of the receive
FIFO. The firmware running in FIFO mode puts received events (CAN
messages) into the receive FIFO, from where the FIFO Read driver reads it out.
The FIFO Read driver block has at least one output port of type double. The
signal of this port is a matrix of size m*6, where m is the FIFO Read depth
defined in the block’s dialog box (see below). Say the FIFO read depth is 5, then
the matrix signal of port 1 has size 5*6, therefore one row for each event read
out of the receive FIFO (no new message is considered as an event as well). For
information on how to extract data from the matrix signal, see “Examples” on
page 5-40.
Each row with its 6 elements contain all the information defining a CAN
message. These are:
Port
Identifier
Event type
Data frame size
Timestamp
Data
PortThe value will be either 1 (port 1) or 2 (port 2) and reports at which port
the CAN message was received.
Identifier — This is the identifier of the CAN message being received. If it is
a Standard CAN message the range is 0 to 2047 If the CAN message is
extended, the range is 0 to 2
29
-1.