I'm new to powerlink in general, but i can't seem to understand the diffrence between the xdd file and the objdict.h ? and how to configure in ordre to make a simple demo with an MN and a CN ?
Thank you.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The objdict.h is the actual implementation of the object dictionary in the stack source code. This file will be compiled into your stack version and application and therefore be part of your POWERLINK device software/firmware.
The format of the objdict.h is specific for the openPOWERLINK stack
The XDD file on the other hand is an XML file describing the POWERLINK device (including its object dictionary) in general. It is a standardized format used for all POWERLINK devices (independent of the used POWERLINK stack implementation) and is required by a configuration tool (such as openCONFIGURATOR) in order to configure a POWERLINK network with your device.
As the XDD file has to describe the device, it has to match the definitions in the objdict.h. This match is also tested during a POWERLINK device certification.
Best regards,
Wolfgang
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello,
Thanks for the answer,
Now can i for example with OpenConfigurator define a new index and subindexes and map them without changing the Objdict.h ?
Thanks.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
No, that's not enough.
If you want to change the object dictionary of your CN, you have to change the objdict.h file, since this file is compiled to the stack.
Then, you need to adapt the XDD file accordingly to reflect the changes in the objdict.h and re-import it into openCONFIGURATOR.
Best regards,
Wolfgang
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello,
I'm new to powerlink in general, but i can't seem to understand the diffrence between the xdd file and the objdict.h ? and how to configure in ordre to make a simple demo with an MN and a CN ?
Thank you.
Hello Mike,
The objdict.h is the actual implementation of the object dictionary in the stack source code. This file will be compiled into your stack version and application and therefore be part of your POWERLINK device software/firmware.
The format of the objdict.h is specific for the openPOWERLINK stack
The XDD file on the other hand is an XML file describing the POWERLINK device (including its object dictionary) in general. It is a standardized format used for all POWERLINK devices (independent of the used POWERLINK stack implementation) and is required by a configuration tool (such as openCONFIGURATOR) in order to configure a POWERLINK network with your device.
As the XDD file has to describe the device, it has to match the definitions in the objdict.h. This match is also tested during a POWERLINK device certification.
Best regards,
Wolfgang
Hello,
Thanks for the answer,
Now can i for example with OpenConfigurator define a new index and subindexes and map them without changing the Objdict.h ?
Thanks.
Hi,
No, that's not enough.
If you want to change the object dictionary of your CN, you have to change the objdict.h file, since this file is compiled to the stack.
Then, you need to adapt the XDD file accordingly to reflect the changes in the objdict.h and re-import it into openCONFIGURATOR.
Best regards,
Wolfgang
Hi,
Ok Great, thanks,
Can you help me with the syntax in order to add an entry in the Objdict.h and the xdd file ?
Thank you.
Hi,
You'll find the XDD specifications and a guide on how to write them on the EPSG homepage:
http://www.ethernet-powerlink.org/en/downloads/technical-documents/
Information about the objdict.h is available in the online help of the openPOWERLINK stack:
http://openpowerlink.sourceforge.net/doc/2.0/2.0.0/d5/df2/obdmacro_8h.html
Best regards,
Wolfgang
Last edit: Wolfgang Seiss 2016-04-04