Using multiple PDOs with the CANopen DeviceDesigner

The use of the emotas CANopen Stack and the great emotas CANopen DeviceDesigner allows for the development of devices that support up to 512 PDOs in each direction. However, should one wish to utilize more than 4 PDOs in each direction, a number of considerations must be taken into account. Continue reading “Using multiple PDOs with the CANopen DeviceDesigner”

CANopen SYNC

SYNC is a special service, which is available both in CANopen and CANopen FD.

The SYNC producer (usually a controller or another device with a precise clock) cyclically transmits a SYNC message, which can be received by other devices (SYNC consumers). These SYNC messages can be used to synchronize anything, but are mostly used to synchronize the PDO transmissions or to synchronize actions.

SYNC configuration objects

The SYNC producer has 2 or 3 objects in its object dictionary to configure the SYNC message:

  • 0x1005 – COB-ID Sync: Definition of CAN-ID and if a device is producer or consumer
  • 0x1006 – Communication Cycle Period: Time between 2 SYNC messages
  • 0x1019 – Synchronous Counter Value: optional object to configure SYNC messages with a SYNC counter

Continue reading “CANopen SYNC”

CANopen Object Code

To answer the constant question whether Array or Record is 8 or 9, this article provides an explanation of CANopen object codes.

All data of a CANopen device, which are accessible via CANopen, are stored in objects in the object dictionary. The objects have different object codes based on the their internal structure.

Variable

An object with the object code ‘variable’ is a single variable like e.g. a variable in the programming language C. It has a data type and various attributes.

Array

An object with the object code ‘array’ is a structured data set like e.g. an array in the programming language C. All elements of this array (sub-index 0 not included) have the same data type.

Record

An object with the object code ‘record’ is a structured data set like e.g. a struct in the programming language C. All elements of this record (sub-index 0 not included) may have different data type.

CANopen Object Code definitions

  • 7 – Variable
  • 8 – Array
  • 9 – Record

A few additional values are listed in the CANopen specification CiA 301.
The object code definitions are called object type in EDS files (CiA 306) and XDD files (CiA 1311).