CANopen – First Steps

  1. You need to have inserted two devices in your project. One of the devices will play the role of the CANopen device (slave) and the other that of the CANopen manager (master).
  1. You first create a “CANopen” fieldbus element for both devices in the device tree. To do so, right-click on the respective device and select Insert Device ....
  2. Under “CANbus,” select the “CANbus” item and click [Insert Device].

Configuring CANopen Device (Slave)

  1. Right-click on the new, still empty item under the “CANbus (CANbus)” element of the slave device.
  2. To insert a slave, select the “WAGO CANopen Device” and confirm with [Plug Device].
  3. Inserting “WAGO CANopen Device”
  4. To open the device settings, double-click on the new “WAGO_CANopen_Device (WAGO CANopen Device)” element in the device tree.
  5. On the “General” tab you can edit the I/O area for the CANopen device, among other things:
  6. Click [Edit I/O Area ...] and add one or more new areas.
  7. Click [OK] to confirm.
  8. After that, you can either export the I/O image and additional data as an “Electronic Data Sheet” (EDS) (and re-import it later) or install the data directly in the device repository:
  9. Option 1: Exporting the Slave’s EDS
    On the “General” tab, click [Export EDS File ...].
    If you are using multiple CANopen devices, save the EDS file with a unique filename.
    Option 2: Installing EDS Directly in the Device Repository
    Instead of exporting the slave’s EDS file and then re-importing it in the device repository, you can also install the EDS file of a CANopen device (slave) directly in the device repository using the corresponding button. After that, you can find the slave there under the selected product name.
  10. Exporting an EDS File or Installing It Directly in the Device Repository

 

Configuring CANopen Manager (Master)

  1. Right-click on the new, still empty item under the “CANbus (CANbus)” element of the master device.
  2. To insert a master, select the “WAGO CANopen Manager” and confirm with [Plug Device].
  3. Inserting “WAGO CANopen Manager”
  4. To assign one or more slaves to the master, the EDS files of the slaves must be installed; they can then be attached to the master:
  5. To import or install the EDS file of a slave, click [Device Repository ...] on the Tools tab and [Install ...] in the dialog.
    Select the previously exported EDS file (or another one) to import and click [Open].
  6. To attach the slave to the master, right-click the “WAGO_CANopen_Manager (WAGO CANopen Manager)” in the device tree and select Insert Device ....
  7. Select the corresponding slave device from the list and click [Insert Device].
  1. The devices are now created and connected.
Connected CANopen Devices
Connected CANopen Devices