On this page
CANopen master
Create a device under Development configuration → Collection configuration and select CANopen master. Configure the connection and nodes in the device properties.
Compatible devices and models
| Device series / model examples | Connection requirements |
|---|---|
| Drives, I/O and sensors exposing a CANopen object dictionary | Match node ID, bitrate and EDS/object dictionary. Configure SDO, PDO, Heartbeat and NMT for the device and the PDO limits used by this plugin. |
Prepare the object dictionary and Heartbeat
- Set node ID
1–127and bus rate in the device tool and obtain the firmware-matching EDS/DCF. Gateway node IDs are decimal; object indices are four hexadecimal digits. - Enable Heartbeat Producer on the device with a period below the gateway Heartbeat timeout. With the default
1500 ms, valid Heartbeats must arrive within that deadline; PDO traffic is not a replacement. - Enter EDS/DCF content and the actual adapter endpoint. For readable UNSIGNED16 object
0x2000/0on node1, create UInt16 addresssdo/1/2000/0, notsdo/1/8192/0. - Read the same object in the device tool and gateway. Create separate variables for ARRAY/RECORD leaves. EDS import does not download defaults to the device.
Match existing PDO mappings
Check actual communication objects from 0x1800 and mapping objects from 0x1A00. Use tpdo/1/1/2000/0 only when node 1 TPDO1 really maps object 0x2000/0; the address does not request automatic remapping.
Synchronous PDOs require a SYNC producer. Gateway SYNC period defaults to 0, disabled. Event PDOs must arrive within TPDO validity or expire. RPDO values must match the complete mapping, direction and widths; confirm application results through SDO/TPDO readback.
Connection and object dictionary
Use an endpoint provided by an installed CanKit adapter, such as socketcan://can0 on Linux. Configure and enable the SocketCAN interface in the operating system first; #netlink enables adapter configuration of the interface. Linux requires libsocketcan with an available libsocketcan.so entry; Debian systems can install libsocketcan-dev. Physical Windows hardware requires its vendor adapter and native driver. The plugin uses standard identifiers and Classical CAN.
Use one master for each default SDO channel on the bus. Supply the actual device EDS/DCF and node list. Several nodes of the same model may share an EDS; a DCF with a NodeID requires that single matching node. Import does not execute default values, parameter values, paths, or $NODEID expressions, and does not download parameters to the device. At least one node must produce valid heartbeat during startup. Missing configured nodes do not prevent collection from other online nodes; each operation checks its own node state.
| Parameter | Description |
|---|---|
| Endpoint | Default socketcan://can0; use the endpoint for the installed adapter. |
| Bitrate | Default 500000 bit/s; match the interface, devices, and bus. |
| Internal resistance | Disabled by default; configure according to adapter support and wiring. |
| Node IDs | Unique decimal integers 1–127; default [1]. |
| EDS/DCF content | Requires FileInfo, DeviceInfo, and explicit leaf types and access rights; at most 1,048,576 characters. |
| Exchange timeout (ms) | Default 3000, including node admission and every segment of the complete exchange. |
| Maximum SDO bytes | Default 65536 for a complete uploaded or downloaded object. |
| Heartbeat timeout (ms) | Default 1500; enable the device heartbeat producer with a shorter period. |
| TPDO channels | Optional node/PDO-number list, for example ["1/1"]; channels used by TPDO variables are also verified. |
| RPDO channels | Only explicitly configured and verified channels may send RPDOs. |
| TPDO freshness (ms) | Default 1500; expired frames no longer produce online samples. |
| SYNC period (ms) | Default 0 disables periodic SYNC. Coordinate the bus SYNC producer before enabling it. Scheduling does not guarantee real-time timing. |
Import supports explicit VAR leaves and individually declared ARRAY/RECORD sub-objects. SubNumber must match the explicit sub-object count, including a readable UNSIGNED8 sub-index 0. Unsupported data types may remain as metadata, but cannot be bound to variables.
Variable addresses and types
| Address | Description |
|---|---|
sdo/1/2000/0 | Read or write node 1, index 0x2000, sub-index 0 through its default SDO channel. |
tpdo/1/1/2000/0 | Read object 0x2000/0 from the verified mapping of node 1 TPDO1. |
The index has four hexadecimal digits. Node, PDO number, and sub-index use decimal notation. Leave array length empty or set it to 1. Create separate variables for ARRAY/RECORD leaves; an address does not imply adjacent objects.
| EDS type | Gateway type |
|---|---|
| BOOLEAN | Boolean |
| INTEGER8, INTEGER16 | Int16; INTEGER8 still transfers one byte. |
| UNSIGNED8, UNSIGNED16 | Byte, UInt16 |
| INTEGER32, UNSIGNED32 | Int32, UInt32 |
| INTEGER64, UNSIGNED64 | Int64, UInt64 |
| REAL32, REAL64 | Float, Double; finite values only. |
| VISIBLE_STRING | String with visible ASCII characters. |
| OCTET_STRING, DOMAIN | Object containing a JSON numeric array, such as [1,2,255]. |
Objects use CANopen little-endian encoding. Types, access rights, and write limits must match the EDS/DCF. Ordinary variable writes use SDO and wait for device acknowledgement. Enable the shared write-check option to read and compare the result. Device acceptance and completion of an application action follow the device contract.
PDO and node operations
The plugin uses the existing first four TPDO/RPDO mappings. Startup does not remap the device. Each PDO contains 1–8 fixed-width objects, with a total length of at most 8 bytes and byte-aligned fields. Configuration reads and verifies the communication objects, transmission type, mapping count, object identities, direction permissions, and widths. Bit mappings, RTR, extended identifiers, and unsupported transmission types are rejected.
Synchronous TPDOs require bus SYNC; event-driven TPDOs originate from the device. Samples use the actual receive time. Missing, expired, stopped, rebooted, or faulted data returns failure. Polling does not refresh an old frame timestamp. Mappings are revalidated after node reboot.
Open Protocol debugging → Special methods to call:
GetNodeStatesAsync: actual NMT state, heartbeat, and SDO synchronization status.SendNmtAsync: Start, Stop, PreOperational, ResetNode, or ResetCommunication for a configured node. Start waits for that node’s operational heartbeat. Reset commands wait for a new Boot-up and ready heartbeat, then revalidate PDOs. Success for Stop and PreOperational indicates transmission; heartbeat confirms the state.SendRpdoAsync: provide every value in mapping order, for examplevalues=[123456]. Success means bus acceptance. Synchronous RPDOs also require SYNC; read SDO or TPDO to confirm the application value.SendSyncAsync: transmit one SYNC.
NMT, RPDO, and manual SYNC require device method-call permission. Variable RPC also requires variable write permission. EMCY uses existing plugin-event forwarding and retains the node, error code, error register, all five manufacturer bytes, and receive time. Error code 0 indicates an error reset. Paused devices do not forward EMCY events.
RPDO field debugging
Open Operations in the device’s protocol-debug workspace. Enter Node ID 1–127 and RPDO number 1–4, then select Load mapped fields. Only RPDOs configured and verified for the current device are available; this page does not create or remap device objects.

After loading, check the CAN ID, transmission type, object indexes, EDS names, and types. Supply every mapped value in order. Preserve complete 64-bit integer text; initialized inputs are not values read from the bus. Send RPDO requires confirmation; cancelling sends nothing. Query permission allows mapping reads; sending also requires dangerous-debug permission and device method-call authorization.
Reload the mapping after changing the node or PDO, stopping the device, or leaving the workspace. Offline devices, changed mappings, non-writable fields, and pending inputs cannot send. A successful send means the bus accepted the frame. Synchronous RPDOs still require SYNC; verify application through SDO or TPDO readback.
Troubleshooting
If heartbeat is absent, check the producer period, node ID, interface, wiring, and termination. Opening the bus does not establish node availability.
An SDO timeout, cancellation during an exchange, or corrupt segment isolates that node channel to prevent a late reply from completing another request. Ordinary heartbeat does not remove isolation. Resolve the cause and use an explicit NMT reset to observe a new Boot-up. Uncertain writes are not repeated automatically.
When PDO verification fails, check the device’s 0x1400/0x1600 and 0x1800/0x1A00 objects against the EDS/DCF. Confirm the PDO is enabled and each object permits mapping in the selected direction. Default COB-IDs alone do not establish the mapping.