beckhoff TE1000 TwinCAT 3 — 6.6.13 Configuring the CANopen system

Samples | I/O Import a DBC file from TwinCAT 3.1 Build 4018 A DBC file, or CAN database, describes the messages and signals in a CAN network. When importing via the Automation Interface, the CANopen slaves defined in the DBC file are automatically created as subnodes of the master. The individual import options determine which messages are imported and how existing configurations are handled. string dbcImportXml = @" C:\Projects\CANConfig\can_config.dbc false false true false false true "; canMaster.ConsumeXml(dbcImportXml); The complete XML structure for device configuration is as follows:

28673 172.17.251.109.2.1 0 126 false c:\dbc_file_folder\dbc_file_to_be_imported.dbc false false true false false true 0 127 500 k false The modified XML structure is read into the CANopen master node via ConsumeXml() . An overview of the import options: ImportExtendedMessages : import messages with a 29-bit identifier (extended frame) ImportMultiplexedDataMessages : Retrieve multiplexed data messages from the DBC KeepUnchangedMessages : Receive preconfigured messages that do not appear in the DBC ExtBoxesSupport : Enable support for expansion cards VectorXXXSupport : Enable Vector CANdb++-specific features CommunicateWithSlavesFromDbcFile :

Enable communication with the imported slaves According to the source, the “Simulate slaves from dbc file” option is not supported. TE1000 264 Version: 1.7.0