I used the cxa_Licensing library example for the PLC Function Block. I have the below functionality to check if the user has a valid license to use the function block in PLC. I want to call this function Like checkfunction so that if the license is not available it generates the error. How can I this funtion? or do I have to call it in main task only? License check procedure could look like this: PLC starts: Hey license manager, give me the MAIRobot PLC license. If license received, everything is ok. App starts normally. If the license is missing, send error message and app starts in mode without function. App requests license manager again every minute and starts normally as soon as licenses are available. After 12 hours: Hey license manager, I'm returning my MAIRobot PLC license. Hey license manager, give me the MAIRobot PLC license. If license received, everything ok. If a license is missing, send warning, app continues to run and asks again every minute.
... View more