How to recognize licenses SMALL, MEDIUM, LARGE by CmpCodemeter

pernockham
3 hours ago
1 hour ago
  • pernockham - 3 hours ago

    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 a featureCode. Where can I find info on required featureCode?

    ProductCodes according to google:
    Control (PLC Runtime)
    Small (S) 16#00002FFF 12287
    * Medium (M) 16#00003000 12288
    Large (L) 16#00003001 12289
    Visualization (WebVisu)
    Small (S) 16#00003002 12290
    Medium (M) 16#00003010 12304
    * Large (L) 16#00003003 12291
    Communication (Com)
    * Small (S) 16#00003004 12292
    Medium (M) 16#00003005 12293
    Large (L) 16#00003006 12294

    Thanks!

     

    Last edit: pernockham 3 hours ago
  • pernockham - 2 hours ago

    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 than what the license permits (DEMO-mode). And give this information to the user by an alarm/information.

     

    Last edit: pernockham 2 hours ago
  • pernockham - 1 hour ago

    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?

     

Log in to post a comment.