CODESYS - the IEC 61131-3 automation software

Welcome to the official CODESYS Forum by 3S-Smart Software Solutions GmbH | A member of the CODESYS Group
Deutsche Version English version russian version 
It is currently Tue Feb 18, 2020 7:46 am

All times are UTC+01:00




Post new topic  Reply to topic  [ 8 posts ] 
Author Message
PostPosted: Thu Jan 09, 2020 8:22 am 
Offline

Joined: Wed Jan 08, 2020 1:50 pm
Posts: 19
Hello, we have a Topocon Electronics (ex Wachendorff Elektronik) panel that runs Codesys 3.5.14.0.
We bought a Codesys Key to deploy a license, since these panels seem not have a softcontainer, but when trying to use License Manager (Device -> Dongle) Codesys says no adapter is available.
Furthermore, when deploying the DeviceReader project/example, it shows no green lights under Single License (neither dongle nor softcontainer), even if the dongle is connected via USB and recognized as a USB HID device by the OS (which is Linux, a Yocto build, BTW).
Is there anything we could try?


Top
   
PostPosted: Fri Jan 10, 2020 6:30 pm 
Offline
Site Admin

Joined: Mon Sep 05, 2005 9:42 am
Posts: 3624
Hi,
could you please check if CmpCodemeter is available in the plc logger after the startup of the runtime.
If so, you could switch the key to a mem device ( not HID) and mount it and use it that way. ( how to switch the key from HID you'll find
in the online help of Codemeter)
HID ( prefered use) need ยท CONFIG_HID CONFIG_HIDRAW in the Linux kernel.

Cheers
Edwin


You do not have the required permissions to view the files attached to this post.


Top
   
PostPosted: Sun Jan 12, 2020 12:58 pm 
Offline

Joined: Wed Jan 08, 2020 1:50 pm
Posts: 19
Thank you.
Yes, CmpCodeMeter is in the log, and the kernel has CONFIG_HID set (to module) but CONFIG_HIDRAW is not set.
Tomorrow I will try reconfiguring as a mass storage (seems to be a piece of cake).


Top
   
PostPosted: Mon Jan 13, 2020 8:13 am 
Offline

Joined: Wed Jan 08, 2020 1:50 pm
Posts: 19
Unfortunately, issuing
Code:
cmu32 -s <serialno> --set-config-disk RemovableDevice
(or LocalDevice, for what is worth) in the CodeMeter Command Prompt as per https://www.wibu.com/support/faq/detail ... emory.html does not work: it tells to unplug and replug the key, but when replugging it is still recognized as HID from Windows.


Top
   
PostPosted: Mon Jan 13, 2020 7:08 pm 
Offline
Site Admin

Joined: Mon Sep 05, 2005 9:42 am
Posts: 3624
Hi,
try:
cmu32 /s [Serialno] --set-config-disk MsdCommunication

http://localhost:22352/$help/CmUserHelp ... to_msd.htm

BR
Edwin


Top
   
PostPosted: Tue Jan 14, 2020 4:15 pm 
Offline

Joined: Wed Jan 08, 2020 1:50 pm
Posts: 19
Thank you! The device now appears, but every time I try to deploy it a license (EtherCAT master SL) through the device, Codesys runtime crashes almost immediately with
Code:
terminate called after throwing an instance of 'std::out_of_range'
  what():  basic_string::replace
and on the PC a dialog box appears saying "Communication error: 0x1cc", then "Transfer of license information from device failed" (obvious, the runtime crashed...)
On another device hardware, same Codesys version (3.5.14.0) but a more recent software environment, the error is
Code:
terminate called after throwing an instance of 'std::out_of_range'
  what():  basic_string::replace: __pos (which is 4294967295) > this->size() (which is 12)


Top
   
PostPosted: Thu Jan 16, 2020 5:27 am 
Offline
Site Admin

Joined: Mon Sep 05, 2005 9:42 am
Posts: 3624
Hi,
Plug the Key to the CODESYS pc and activate the licence with your browser -> license.codesys.com
After activation plug it to the plc...mount it...then it should work
Cheers
Edwin


Top
   
PostPosted: Thu Jan 16, 2020 5:00 pm 
Offline

Joined: Wed Jan 08, 2020 1:50 pm
Posts: 19
Ok, finally worked.
Thank you for your help!


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 8 posts ] 

All times are UTC+01:00


Who is online

Users browsing this forum: No registered users and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Limited