Instructions
Message Types
13 (26)
CAN INIT AUTO
Automatic baud rate detection is only possible with Classic CAN. CAN FD does not
support automatic baud rate detection.
Starts the automatic baud rate detection. The CAN controller tries to auto detect a baud rate on
the bus, based on the following possible baud rates in kBd: 5, 10, 20, 50, 100, 125, 250, 500, 800,
1 000. If a baud rate is detected the controller is initialized.
CAN <port> INIT AUTO <mode> <timeout>
Parameter
Parameter
Description
port
CAN port number 1...2 (with NT 200), 1...4 (with NT 420)
mode Operational Mode
STD = Standard
LISTEN = Listen only
timeout
Maximum waiting time in msec for the receiving of a CAN data message or a CAN error
message, valid values: 1 to 1 million
Example
CAN 1 INIT AUTO STD 100
CAN 2 INIT AUTO LISTEN 100
Return Value
Return value Description
R ok
Function succeeded
R ERR <error-number> <error-description>
See List of Error Codes, p. 24
Remark
CAN INIT AUTO checks up to 12 baud rates. In case of low bus activity and a high timeout the
baud rate detection may take several seconds. Check the status of the baud rate detection with
CAN STATUS AUTO. When the baud rate is detected, configure a filter with CAN FILTER ADD and
start the controller.
CAN@net NT 200/420 Software Design Guide
4.02.0332.20000 1.5 en-US