27
8.3.11
Setting Acceptance Code
The acceptance code/filter, in conjunction with the acceptance mask (m), defines
which CAN message frames (i.e. of a specific ID or range of CAN IDs) will be passed to
the serial interface. The acceptance code value corresponds to a valid CAN IDs for
either standard or extended CAN frames. This command is only active if the CAN
channel is initiated and not opened.
The Set Acceptance Mask (m) command should be executed
prior
to the Set
Acceptance Code (M) command.
Note
:
The CAN channel will revert to its prior state after execution. For example, if the
channel is open when this command is executed, the channel will update the setting
and return to the open state.
Command
Response Function
Miii[CR]
[CR]
Set acceptance code for standard CAN frame (11
bit) identifier
Miiiiiiii[CR]
[CR]
Set acceptance code for extended CAN frame (29
bit) identifier
iii = standard 11-bit CAN mask (0x000 through 0x7FF)
iiiiiiii = extended 29-bit CAN mask (0x00000000 through 0x1FFFFFFF)
Default is to pass all frames (acceptance code = 0x7FF for standard messages and
0x1FFFFFF for extended messages)
Example: m1FF[CR] sets acceptance code to receive standard messages with the CAN
ID of 0x1FF. If used in conjunction with the acceptance mask example above, frames
of the range 0x100 through 0x1FF will be passed, and all other CAN IDs will be blocked.