Problem:
There may be a problem when using the Codesys Key/Dongle and the starting of the plc.
The Codesys Key/Dongle seems to be recognized a few seconds after the PLC is started, depending on the system.
As a result, the controller may run without a license and thus switches to demo mode, which only runs for two hours.
After that, a manual restart is necessary.
Fieldbuses without license switch to demo mode, which lasts for 30 minutes.
Problem description
The mount of a WIBU dongle only happens with WIBU USB dongles in mass storage mode!
The WIBU runtime does not manage the mount and needs a few seconds more.
Even Linux doesn't have shares in it, it's simply the code meter.
For example, with a Raspi reboot, this is simply too slow / too late until it is recognized.
Simple solution:
- Activate the license directly on the PLC as a Softlicense.
Switch the USB dongle to HID mode (f.e via a "MEM_TO_HID.bat")
Then The USB dongle is not mounted and everything works even when the Linux is rebooted.
Solution 1:
One solution could be, to start the runtime after the dongle is mounted.
Solution 2:
The second solution could be, to check the "StartDone" event (after a view seconds), and see if the USB stick is mounted.
Perform an AppReset() if the dongle is not found mounted.
This is only a weak workaround.
It is still suitable, if there is just a single application with this problem.