GradientOne

  • Home
  • HOW IT WORKS
  • Product
  • Blog
  • API
  • Home
  • HOW IT WORKS
  • Product
  • Blog
  • API

Blog

Reading and Generating CanOpen Device configuration Files

9/1/2017

0 Comments

 
Reading in and generating Device Configuration Files (DCFs) is now available in GradientOne's CANOpen Editor. This post will demonstrate how to generate and read the file.

In the CAN editor, enter some frames, for example:

WRITE [0x00, 0x21, 0x46, 0x00, 0x00, 0x00, 0x59, 0x00, 0xB2, 0x00, 0x59, 0x00, 0xFE, 0xC5, 0xFD, 0x7F, 0xB2, 0x1C] to velocity_loop_output_filter on node 1

Note that you can also provide raw hex, but it must be provided as frames, one line at a time. Since the above write has more than 4 bytes, it must be expressed as a multi-frame SDO download. Entering the lines:

0x601, 0x21,  0x06, 0x21, 0x00, 0x12, 0x00, 0x00, 0x00
0x601, 0x00, 0x00, 0x21, 0x46, 0x00, 0x00, 0x00, 0x59
0x601, 0x10, 0x00, 0xB2, 0x00, 0x59, 0x00, 0xFE, 0xC5
0x601, 0x07, 0xFD, 0x7F, 0xB2, 0x1C


has the same affect as the one WRITE command above. 
 
Press Add (1), then DCF (2), and then Download as DCF (3). Your browser will load a .Bin file (4).

Picture
Looking at this binary file in a hex editor (This is Bless for linux), we can see the number of SDOs to write (red), the address (blue), the number of bytes in this SDO (green) and the SDO data (orange).
Picture
We can now take this DCF and upload it in a new session. To do this, we need to press DCF (1), then Upload DCF (2), then add the file we just downloaded using Choose File (3). Specify which node this DCF will be written to (4), by default the DCF is written to node 1. Finally, upload the file (5).
Picture
After pressing upload, the frames will be added to the frame Queue:
Picture
0 Comments



Leave a Reply.

    Archives

    March 2018
    February 2018
    January 2018
    December 2017
    November 2017
    September 2017
    August 2017
    July 2017
    June 2017
    April 2017
    July 2016

    Categories

    All
    Instrument
    Usability

    RSS Feed


​Home
Jobs
Email Us
OUR MISSION - 
GradientOne’s mission is to improve the work of scientists, engineers, technical support teams, and manufacturing organizations by using cloud computing to streamline instrument management, data collection, analysis, reporting and search.
        ©2017 GradientOne Inc.  All Rights Reserved.
✕