-
Notifications
You must be signed in to change notification settings - Fork 139
Exporting to CanOpenNode
One of the main purposes of this tool is to generate the Object dictionary for CanOpenNode. The tool will generate the required CO_OD.c and CO_OD.h files that form the heart of a CanOpen project. Currently the only supported format for export is CanOpenNode but it would be possible to add support for other tools such as CanFestval is one desired.
With a completed project loaded simply go to the File->Export canopen c/h menu entry this will prompt you for the location to save the CO_OD.c file (the CO_OD.h file will be saved in the same folder).
The structure of the CO_OD.c and CO_OD.h is identical to sample files found within CanpenNode example folders and the example provided can be recreated by loading the _project.xml and using the export function to recreate the file.
It is important when adding items to your object dictionary to take advantage of the naming function for variables and rec sub objects as these will appear in the header files as defines you can trivially reference in your projects to access the variable.