CODESYS - the IEC 61131-3 automation software
https://forum.codesys.com/

CmpCodeMeter check for MC License doesn't work
https://forum.codesys.com/viewtopic.php?f=21&t=9713
Page 1 of 1

Author:  KevinR [ Mon Apr 29, 2019 7:58 am ]
Post subject:  CmpCodeMeter check for MC License doesn't work

Hello Community,

I try to check if there is a MultiCore license available on the runtime.

This function works well, when I check the single core license or other single licenses, but not for multi core.
Code:
hHandleCmpCodeMeter:= CMPCODEMETER.CodeMOpen(udiFirmCode,udiProductCode,udiFeatureMap,rtsResult);


If I check for a multi-core license, the function returns an CmpError Code "40", which is described as a "Device_Error".
Image

Can anyone help me with this?

Thank you in advance,
BR KevinR

Author:  Edwin Schwellinger [ Mon Apr 29, 2019 5:10 pm ]
Post subject:  Re: CmpCodeMeter check for MC License doesn't work

Hi,
use:

Update:

Could check if 16#20000000 ( you need to give this feature map in hex) then it will work.
Handle:= CMPCODEMETER.CodeMOpen(5000304,8787,16#20000000,Result);

BR
Edwin

Author:  KevinR [ Thu May 02, 2019 2:30 pm ]
Post subject:  Re: CmpCodeMeter check for MC License doesn't work

I verified it and it works well.

Thank you so much, Edwin

BR
Kevin

Page 1 of 1 All times are UTC+01:00
Powered by phpBB® Forum Software © phpBB Limited
https://www.phpbb.com/