CODESYS - the IEC 61131-3 automation software

Codesys versioning support
Page 1 of 1

Author:  lam.le [ Mon Oct 21, 2019 7:32 am ]
Post subject:  Codesys versioning support

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.

Author:  lam.le [ Tue Nov 12, 2019 11:34 am ]
Post subject:  Re: Codesys versioning support

I figured out myself using a hidden parameter on every device descriptor for versioning check.

Page 1 of 1 All times are UTC+01:00
Powered by phpBB® Forum Software © phpBB Limited