BMS CANOpen Manual v2.0
BMS CANOpen Manual v2.0
The section contains CANopen information specific to Roboteq controllers. Detailed information on the
physical CAN layer and CANopen protocol can be found in the DS301 documentation.
• Standardized in EN50325-4
• Widely supported and vendor independent
• Highly extensible
• Offers flexible structure (can be used in a wide variety of application areas)
• Suitable for decentralized architectures
• Wide support of CANopen monitoring tools and solutions
CAN Connection
Connection to a CAN bus is as simple as shown on the diagram above. 120 Ohm Termination Resistors must
be inserted at both ends of the bus cable. CAN network can be up to 1000m long. See CAN specifications
for maximum length at the various bit rates.
Use the CAN menu in the Configuration tab in order to enable the CANopen mode. Additionally, the utility
can be used to configure the following parameters:
• Node ID
• Bit rate
• Heartbeat (ms)
• Autostart
• TPDO Enable and Send rate
Node ID
Every CANopen network device must have a unique Node ID, between 1 and 127. The value of 0 is used for
broadcast messaging and cannot be assigned to a network node.
Bit Rate
The CAN bus supports bit rates ranging from 10Kbps to 1Mbps. The default rate used in the current
CANopen implementation is set to 125kbps. Valid bit bates supported by the controller are:
• 1000K
• 800K
• 500K
• 250K
• 125K
Heartbeat
A heartbeat message is sent to the bus in millisecond intervals. Heartbeats are useful for detecting the
presence or absence of a node on the network. The default value is set to 1000ms.
Autostart
When autostart is enabled, the controller automatically enters the Operational Mode of CANopen. The
controller autostart is enabled by default. Disabling the parameter will prevent the controller from starting
automatically after the reset occurs. When disabled, the controller can only be enabled when receiving a
CANopen management command.
All supported commands are mapped in a table, or Object Dictionary that is compliant with the CANopen
specification (see Object Dictionary section for details).
SDO messages provide generic access to Object Dictionary and can be used for obtaining parameter values
on an irregular basis due to the excessive network traffic that is generated with each SDO request and
response message.
The list of commands accessible with SDO messages can be found in the “Object Dictionary” section.
TPDOs are runtime operating parameters that are sent automatically on a periodic basis from the
controller to one or multiple nodes. TPDOs do not alter object data; they only read internal controller
values and transmit them to the CAN bus.
TPDOs are identified on a CANopen network by the bit pattern in the 11-bit header of the CAN frame.
CANopen allows up to four TPDOs for any node ID. Unless otherwise specified in the product datasheet,
TPDO1 to TPDO4 are used to transmit up to 8 user variables which may be loaded with any operating
parameters using MicroBasic scripting.
Each of the 4 TPDOs can be configured to be sent at user-defined periodic intervals which can be
configured using the PC utility or through CTPS configuration command.
Object Dictionary
The CANopen dictionary shown in this section is subject to change. The CANopen EDS file can be
downloaded from the roboteq web site.
The Object Dictionary given in the table below contains the runtime queries and runtime commands that
can be accessed with SDO/PDO messages during controller operation.
Runtime Commands
Index Sub (hex) Entry Name Type & Access Command Name
0x2005 01-vv (1) Set user integer variable. S32 WO VAR
0x2008 00 Set all digital out bits. U8 WO DS
0x2009 00 Set individual digital out bit. U8 WO D1
0x200A 00 Reset individual digital out bit. U8 WO D0
0x200C 00 Emergency shutdown. U8 WO EX
0x200D 00 Release shutdown. U8 WO MG
0X2015 00-bb (2) Set user Boolean variable. U8 WO B
0x2017 00 Save configuration to flash. U8 WO EES
0x2018 00 Run MicroBasic script. U8 WO R
0x201C 00 Switch cell. U8 WO CSW
0x201D 00 Switch power. U8 WO PSW
0x291E 00 Switch Aux. U8 WO ASW