All Neighborhoods

CODESYS Talk

    CODESYS Forge

  • pernockham posted a comment on discussion Runtime πŸ‡¬πŸ‡§

    Solved finally, in short by: listening to eventId = EVT_CmpMgr_LicenseState, make a callback, extract the event-parameter which contains the RUNTIME_LICENSE_STATE. This gives me the license state as LICENSED / LICENSED_LOS / DEMOMODE etc. What Im not certain of at this point is this the aggregation of all three licenses or just the RUNTIME? Ie, what if my CONTROL-license is ok but my Visu-license is to low, will that set LICENSE_LOST, or would I need other listeners to find out if my VISU will shut...

  • pernockham posted a comment on discussion Runtime πŸ‡¬πŸ‡§

    Third update. I figured that even knowing the level of the license, it will not tell me if its level is enough for the current application. There must be some other way to find this out? I see a component CM write in the Log if starting without license-dongle. "License lost - time left.. " Can I access this CM to check status from inside the application? This function is essential, why is it so hard to find info about implementation?

  • pernockham modified a comment on discussion Runtime πŸ‡¬πŸ‡§

    I think google has fooled me here, the only thing I can conclude so far is what i now from reading the licenseManager, which tells me that my valid license have the following product-code CONTROL - 16#3000 VISU - 16#3003, feature map: 1000 COM - 16#3004, feature map: 0200 Will different level of license give different product codes or will I see the active license level by other means? What I am trying to achieve is block Starting a machine with time limited operation should the application be larger...

  • pernockham posted a comment on discussion Runtime πŸ‡¬πŸ‡§

    I think google has fooled me here, the only thing I can conclude so far is what i now from reading the licenseManager, which tells me that my valid license have the following product-code CONTROL - 16#3000 VISU - 16#3003, feature map: 1000 COM - 16#3004, feature map: 0200 Will different level of license give different product codes or will I see the active license level by other means? What I am trying to achieve is block Starting a machine with time limited operation should the application be larger...

  • pernockham modified a comment on discussion Runtime πŸ‡¬πŸ‡§

    Im trying to read out active license by CmpCodeMeter but am not sure of the combination of ProductCode and FeatureMap that each of CONTROL, VISU and COM / SMALL, MEDIUM, LARGE equals. Started by trying CodeMGetContentByFirmcode (and productCode) expecting error 18 / Not Available if asking for a higher level of license compared to what I know is active, but function just returned the requested productcode and a featuremap Is this the way or is it better to use CodeMOpen? Which seems to also require...