Instructions
Message Types
14 (26)
4.3.2 Configuring the Filter
Make sure, that the CAN controller is in stopped state before configuring the filter.
CAN FILTER CLEAR
Deletes all filter entries for 11 and 29 bit identifiers.
CAN <port> FILTER CLEAR
Parameter
Parameter
Description
port
CAN port number 1...2 (with NT 200), 1...4 (with NT 420)
Example
CAN 1 FILTER CLEAR
Return Value
Return value Description
R ok
Function succeeded
R ERR <error-number> <error-description>
See List of Error Codes, p. 24
CAN FILTER ADD
If a message passes several filters, the message is received several times.
Adds one pair of identifier/mask values to the message filter list. The filter works as a positive
filter list. Received messages that match the registered identifier/mask values are passed through.
All other messages are discarded.
The mask value specifies the bit-position of the identifier, which must be checked (1 means “to
be checked”).
Binary representation of mask:
• binary positions with value 1 are relevant for the filter
• binary positions with value 0 are not relevant for the filter
Binary representation of identifier:
• Defines the values for the positions that are marked as relevant (1) in mask.
• Values in positions that are marked as not relevant (0) in mask are ignored.
CAN <port> FILTER ADD <type> <identifier> <mask>
CAN@net NT 200/420 Software Design Guide
4.02.0332.20000 1.5 en-US