Issue with PC Worx Target for Simulink 1.40

Hi, I have been trying to replace PC Worx Target for Simulink v 1.30 with v 1.40. I managed to install the 1.40 version, install the SDKs for v 2019.0.4 LTS for Windows, and I have PLCnext Enginnering 2019.0 LTS and FW 2019.0 on PLCnext. When I import my compiled Simulink library with PCWLX format I get the following error: PLCNEXT0007 The library ‘MY IMPORTED LIBRARY’ does not support the controller ‘axc2152-1’. Again, please not that I am using: PLCnext Engineering 2019.0 LTS PC Worx Target for Simulink 1.40 FW 2019.0 for PLCnext and NOT FW 2019.0.4 SDK 2019.0.4 for manual installation of PC Worx Target for Simulink 1.40 Please promptly reply, Thanks,

Arman

I have got exactly the same problem, but I am using the newest firmware (2019.9) and the .9 Engineer..

Hi Arne, I tried the solution given in https://www.plcnext-community.net/index.php?option=com_fss&view;=faq&tmpl;=component&window;=1&faqid;=100&Itemid;=433⟨=en but did not work for me. You may want to try it for your case. Arman

Thanks Arman, I did use that trick earlier when something was not compatible, but also at my case it is not helping now…

Hi Arman, Can you please confirm:

                                               * What version of the target you have selected in Simulink, before building the PLCnext Engineer library (a screen shot like the one below would be handy)

Model Configuration 2
* Exactly what version of the PLC you have selected in PLCnext Engineer?
22 10 2019 14 37 25
* What is the output from the following two commands on the development machine:
22 10 2019 14 41 07 Martin.

Hi Martin, 1) I selected AXCF2152 as the version of the target in MATLAB/Simulink (the attached figure). The target was automatically generated after I installed the 2019.0.4 LTS SDKs and added the user environment variable. Pic2 2) In PLCnext Engineering 2019.0 LTS, I am using 00/2019.0.0 Version for PLCnext (see the attached figure). I also highlighted the error that I got in PLCnext Engineering. Pic1 3) When I run the commands in cmd for plcncli I get the following responses: Pic3 I am also suspicious about the directory where I installed the SDKs. The directory address is C:\\SDK. However, I had to paste the SDK files in the sub-folder AXCF2152 as shown in upper sub-figure to remove an error I used to get in MATLAB/Simulink while building the file. The SDK files also exist in sub-folder 2019LTS as shown in the lower sub-figure below. Pic4 Thanks, Arman

I can only select these two targets:

Hi Arman, Please try the instructions I just posted in this other thread: https://www.plcnext-community.net/index.php?option=com_easydiscuss&view;=post&id;=2960&Itemid;=224⟨=en#reply-3048 Please let us know if this fixes the problem. Martin.

Hi Martin, I exactly followed the instruction you provided in the link. I first removed the SDKs through plcncli as well as the SDK directory in C. I then installed the SDKs based on the naming you emphasized. However, I still get the incompatibility error in PLCnext Engineering software. Please see the attached photos and please make sure that my naming for the SDK installation directory is correct. 1.PNG 2.PNG 3.PNG

Hi Arman, Can you please upload your PCWLX file to this share file location: https://phoenixcontact.sharefile.eu/r-r4e642c7badd441a8 Arne now has his library working, so I hope that we are also close to finding a solution for you. Sorry for all the trouble. Martin.

Hi Martin, I uploaded my file in the link you provided. Please confirm upon receipt. I am not sure if the library incompatibility issue is also resolved for Arne. If it does, that is a good news for me as well, since I am fine working with v. 2019.9. Thanks for your help Arman

Hi Arman, my apologies, but the person with the login for that fileshare site is not here today - can you please send the PCWLX library again to my email address I understand that Arne’s problem is solved. Hopefully your library will give us enough clues to solve the problem you are seeing. Martin.

Hi Martin, I sent the library to your email address.

Hi Martin, I changed my PLCnext firmware to 2019.9, started using PLCnext Engineering 2019.9, and installed SDKs for 2019.9 firmware. It works right now! I will continue with 2019.9. However, I still suggest to fix the problem for 2019.0 LTS in case others want to use it. Thanks, Arman

Hi Arman, Glad to hear that it’s working. I will give the library you sent today to the developers of the Matlab Simulink add-in, so hopefully they will fix whatever the problem was in a future release. Thanks for your patience and sorry for the trouble. Martin.