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
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