Documentation Home Page ◇ Communication Protocols Home Page
Pour la documentation en FRANÇAIS, utilisez l'outil de traduction de votre navigateur Chrome, Edge ou Safari. Voir un exemple.
CAN/CAN-FD/CANopen
Have a question or need help?
Solution
OPAL-RT offers an integrated CAN solution using a standard KVaser 4 Channel PCie card allowing your real time simulator to interface with any peripheral CAN Device. CAN-FD (Flexible Data) is also supported. The driver is inherent to RT-LAB and has an easy-to-use interface that allows you to add, define, and manipulate channels, buses and messages. Furthermore, there is a built-in recording feature allowing the user to capture data throughout the simulation. If the user has already defined a CAN bus architecture, this can also be imported onto the driver using the CANdb Import tool, which supports .dbc and ARXML files. Channel and message data points would be made available to connect to your model via OpInputs and OpOutput blocks. The CAN driver gets initialized once the simulation is loaded onto the target.
Furthermore, CAN is supported on the NI Platform via a range of cards or modules that are offered. Using the NI-XNET driver allows the user to communicate with external CAN devices in real time. FIBEX (Fieldbus Exchange Format) or .dbc files can also be imported to set up the CAN architecture.
For the CANopen protocol on the RT-LAB platform, a GATEWAY solution is required. The gateway is provided by Anybus X-gateway CANopen that makes it possible to communicate with peripheral CANopen devices. The way it is implemented is that the OPAL-RT simulator communicates with the gateway using the ModBus Protocol over an Ethernet cable. The Anybus gateway will output the CANopen signal over a DB9 connector.
CAN is a robust protocol used in the automotive industry to allow microcontroller devices to talk to a master/host device. It's a messaged based protocol meaning, i.e. the slave device will translate the message into some form of action. The messages are also sent sequentially throughout the whole CAN bus. The CAN bus is seen as the whole architecture where the master and the slave devices are connected.
Software Platform Compatibility
Product Selection Guide
RT-LAB
The RT-LAB CAN driver requires a CAN bus interface kit to be added to the real-time simulator. The OP3411 kit includes a Kvaser CAN PCIe card and a software license, which support up to 4 CAN channels.
For additional CAN channels, additional kits may be added if PCIe slots are available.
Type | Description | Product Number(s) | Supported Simulators | |||
|---|---|---|---|---|---|---|
OP4512 | OP5033XG | OP5600v2 | OP5650XG | |||
Driver | Driver license for CAN/CAN-FD/CANopen for RT-LAB, 4 channels. Included with all CAN bus Interface Kits. | OP3414 | YES | YES |
| YES |
Add-on module | CAN bus Interface Kit, KVASER PCIe CAN 4 channels for OP451x Series* | OP3411-4510 | OP4512 |
|
|
|
CAN bus Interface Kit, KVASER PCIe CAN 2 channels for OP451x Series* | OP3411-451x-2CH | OP4512 |
|
|
| |
CAN bus Interface Kit, KVASER PCIe CAN 4 channels for OP4610XG* | OP3411-4610-4CH | OP4610XG |
|
|
| |
CAN bus Interface Kit, KVASER PCIe CAN 4 channels for OP5600* | OP3411-5600 |
|
|
|
| |
CAN bus Interface Kit, KVASER PCIe CAN 4 channels for OP57xx, Series, and OP503x Series* | OP3411-5707 |
| YES |
| YES | |
Optional | Anybus AB7308 Gateway for CANopen. Contact OPAL-RT for more information.
| AB7308 | YES | YES |
| YES |
* Available PCIe slot required. Note that OP4510 and OP4512 simulators only have one PCIe slot.
NI VeriStand
When using NI PXIe hardware, the PXIe8510 module supporting 2 to 6 ports is required along with the NI VeriStand Full Development System.
OP3411 CAN Bus Interface Kit Pin Assignments
The Kvaser PCIe CAN bus interface kit has a 26-pin HD D-SUB CAN connector and comes with a splitter cable with one HD26 connector to four DB9 connectors.
HD26 Connector Pin Assignments
HD26F pin number | CAN Function | Connector |
|---|---|---|
1 | CAN_L channel 1 |
|
2 | CAN_L channel 2 | |
3 | CAN_L channel 3 | |
4 | CAN_L channel 4 | |
5 | Not connected | |
6 | Not connected | |
7 | Not connected | |
8 | Not used by Kvaser PCIEcan | |
9 | Not connected | |
10 | Not used | |
11 | CAN_H channel 1 | |
12 | CAN_H channel 2 | |
13 | CAN_H channel 3 | |
14 | CAN_H channel 4 | |
15 | Not connected | |
16 | Not connected | |
17 | Not connected | |
18 | Not used by Kvaser PCIEcan | |
19 | GND channel 1 | |
20 | GND channel 2 | |
21 | GND channel 3 | |
22 | GND channel 4 | |
23 | Not connected | |
24 | Not connected | |
25 | Not connected | |
26 | Not connected |