Com problem

We followed all the steps in this video from the plc-next community.

https://www.plcnext-community.net/index.php?option=com_content&view;=article&id;=157&catid;=51&Itemid;=308⟨=en

We get a declaration error in eclipse that does not occur in the video, but gets the variable available in PCWORX.

When uploaded on the AXC F 2152, 0 errors and 0 warings will be obtained. However, a communication problem occurs and the PLC appears to be locked and must be reset to reconnect.

We have managed to upload programs that are written in regular PLS and make this work with the PLS.

Hello s238052@stud.hioa.no, I assume it is a failure in configuration file or C++ implementation, please send me the error messages contained in Output.log-File, you can find it on the AXC2152 target in folder /opt/plcnext/logs. Please follow the following steps: 1. Reset the AXC2152 controller via following command: root@axcf2152:~# sudo recover-axcf2152 1 2. Reassign the IP-Address and restart the AXC2152 controller via following command: root@axcf2152:~# sudo /etc/init.d/plcnext restart 3. Check the Output.log for Error Messages 4. Upload your PCWE-Project with C++ Library. 5. If the failure occurs (no communication to AXC2152 Target), please check the Output.log again and send me the contained error messges, please. Thanks & Best Regards Eduard

Thanks for the repley The failure occurs again. I get this error: Arp.Services.OpcUAServer.OpcUAServerComponent ERROR - Missing project configuration for OPC UA: /opt/plcnext/projects/PCWE/Services/OpcUA/PCWE.opcua.config Best Regards Snorre

Good Morning Snorre,

do you have update the FW Vers.1.0.0 to 1.01 or 1.0.2 on your AXC2152 target?
If not please update the FW Version to FW 1.01 or 1.0.2.
Please check also the PCWorx Engineer Version (it should be 7.2 Build 104)

I assume the error message occurs after Step 5, because after Step 3 (reset) the PCWE folder should be empty.
Please check after Step 5, if the configuration file “/opt/plcnext/projects/PCWE/Services/OpcUA/PCWE.opcua.config” is on the AXC2152 target.

If the the error message occurs after Step 3, please replace the “projects” folder on the AXC2152 target with the “projects” folder under following serverlink and restart the controller via “sudo /etc/init.d/plcnext restart”:

ShareFile

Please let me know, if the problem is resolved. If not we can start the fastviewer session and analyze this failure together. In this case, please call me via following (hotline) number: Tel.+ 49 5281 946- 2888 For remote support please download and run the FastViewer application:
http://fv.phoenixcontact.com/client/fastclient.exe Thanks & Best Regards
Eduard

The com problem was fixes with the firmware update. The program was uploaded to the 2152, but the fail lamp turned solid red. All the true/false indicators for variables is black and my pc became very slow. I have created external variables for HMI linked to the in- outports variables. Maybe this is not an ideal whay to do it or there is some thing wrong with the c++ code? Snorre

Hello, the problem was properbly caused because the SDK did not fit to the FW or did you update both FW and SDK? From Version 1.0.0 to 1.0.2 there is a bigger change that makes compiling with a different SDK necessary.

If FW 1.0.2 works then properbly you were using the new SDK with an old FW… Regarding the declaration problem looks like the “Arp::” namespace is missing or maybe Eclipse is a bit slow at indexing.
Do these warnings persist if you “righclick” the project and → “rebuild Index”? kind regards, Oliver