User manual

CG-ARM7/D/E CAN/CAN Gateway
9
EMS Dr. Thomas Wünsche
The bit timing key indicates the speed of the particular CAN channel.
BTR1 indicates the baud rate for CAN channel 1, BTR2 the baudrate
for CAN channel 2. Both keys must exist in each configuration file.
This keys are directly related to the CANBTR registers of the used
controller LPC2119. This allows most flexible customization of the
baudrate settings. The basic CAN clock is 48 MHz.
Example:
# CAN channel 1: 1Mbit/s
btr1 = x00140005
# CAN channel 2: 500KBit/s
btr2 = x001C0005
Standard speeds recommend by CiA are located in chapter 4.2
Standard Baudrates.
The program identifiers (PIDs) are required for the gateway
configuration via CAN. If you do not want to program the gateway via
CAN, you can remove this keys from your configuration file.
The PIDs determine which identifiers will be used for programming
the gateway. pidin” defines the identifier the configuration software
uses to send requests to the gateway. The key "pidout” defines the
identifier which the gateway uses to reply to the configuration
software.
For CAN channel 1 and CAN channel 2 different PIDs can be set.
But it is also possible to program the gateway just via one CAN
channel. To set the identifiers for CAN channel 1 use the keys
"pidin1” and pidout1. For CAN channel 2 use the keys "pidin2” and
"pidout2.
To use a 29-bit identifier prepend the character x” before the
particular key. Without prefix 11-bit identifiers will be sent. in chapter
4.2 Standard Baudrates.
btr1, btr2 CAN bit timing
pidin, pidout program identifier