Welcome to our new forum
All users of the legacy CODESYS Forums, please create a new account at account.codesys.com. But make sure to use the same E-Mail address as in the old Forum. Then your posts will be matched.
Close
Hi all,
I have written the driver for our HW by creating a devdesc and driver code following IoDrvVerySimple template. Our device driver does not use or create any library. Now I want to add versioning support for our driver but it seems codesys only support version check between libary and runtime system?
After investigation, it seems the possible way is:
1. Create a new library.
2. Edit devdesc and set the library as requiredLib (eventhough they are not related).
3. Now there is constraint between devdesc and runtime system: devdesc -> lib -> runtime.
Other way is to have a hidden version parameter in devdesc and check it in driver code. However, this does not prevent download if version does not match.
Could anyone point out a correct way to implement version constraint for devdesc please. Thanks.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi all,
I have written the driver for our HW by creating a devdesc and driver code following IoDrvVerySimple template. Our device driver does not use or create any library. Now I want to add versioning support for our driver but it seems codesys only support version check between libary and runtime system?
After investigation, it seems the possible way is:
1. Create a new library.
2. Edit devdesc and set the library as requiredLib (eventhough they are not related).
3. Now there is constraint between devdesc and runtime system: devdesc -> lib -> runtime.
Other way is to have a hidden version parameter in devdesc and check it in driver code. However, this does not prevent download if version does not match.
Could anyone point out a correct way to implement version constraint for devdesc please. Thanks.
I figured out myself using a hidden parameter on every device descriptor for versioning check.