Skip to content

CANopen calculator

Use these calculators to find the CANopen message IDs of a controller, to convert a Modbus address to a CANopen index and sub-index, and to make or decode SDO messages. The parameter names, units and scales are from the Modbus parameter dictionary.

Prerequisites

  • You know the node ID of the controller (CAN ID). The default is 42 (0x2A).
  • You know the CANopen basics on CANopen protocol reference.
Node ID (hex)-

The calculators on this page all use this node ID.

Message IDs

MessageCOB-ID
NMT command0x000
Emergency (EMCY)-
TPDO1, TPDO2, TPDO3, TPDO4-
RPDO1, RPDO2, RPDO3, RPDO4-
SDO response (from the controller)-
SDO request (to the controller)-
Heartbeat-

The PDO COB-IDs are correct only when the controller sets them from the node ID (Communications Configuration Vector bits 5 and 6). Refer to Process Data Objects.

Address conversion

Parameter-
Units and scale-

Enter a Modbus address, or an index and sub-index. The other fields change.

SDO messages

Make a request

The request uses the Modbus address in "Address conversion". The scale comes from the parameter dictionary. You can change it. For a bit field or a hex value, enter the raw value, for example 0x0020.

MessageCOB-IDLengthData bytes 0 to 7
Read request-8-
Write request-8-

Decode a response

Result-
Parameter-
Value-

Copy the eight data bytes from your CAN tool. Separate them with spaces.

How it works

The controller maps each Modbus address to a CANopen index and sub-index:

Value Formula
Index 0x2000 + FLOOR(Modbus address / 64)
Sub-index REMAINDER(Modbus address / 64) + 1

Modbus address to CANopen index and sub-index

CANopen data is little-endian. The least significant byte is first.

A parameter value is a signed 16-bit integer (−32768 to 32767), unless the parameter dictionary says otherwise: raw value = value × scale. For example, battery voltage (address 265) has a scale of 32. A raw value of 0x0600 (1536) is 1536 / 32 = 48 V.

The calculator writes with command 0x2B (two data bytes). For the message format, the response codes and the error codes, refer to Service Data Objects.

Parameters

Parameter Address Units Description
CAN ID 57 Node ID, 1 to 127. The default is 42 (0x2A).
Communications Configuration Vector 58 Bit field. Bits 5 and 6 set the TPDO and RPDO COB-IDs from the node ID.

Parameters used on this page