PLCnext / CppExamples

Collection of various C++ sample code for PLCnext Technology controllers.
MIT License
31 stars 20 forks source link

NoEngineer example - Unable to connect GDS ports #37

Closed DamianBombeeck closed 3 years ago

DamianBombeeck commented 3 years ago

Followed NoEngineer example, neither 2021.0.5 or 2021.6 FW version worked with this example. GDS ports can not be connected to eachother, see photo appended. NoEngineer_GDSproblem

martinboers commented 3 years ago

I've just gone through the procedure again with AXC F 2152 FW 2021.6 and the matching SDK, and the procedure works for me.

I am guessing that the program instance PndProgram1 is not being created, or else the GDS ports are not declared correctly in that program.

Do you see an entry like this in the Output.log file during startup?

image

Please check all the steps again. If something is not clear in the instructions, please let us know - we may need to make the instructions clearer.

DamianBombeeck commented 3 years ago

Unfortunately the problem persists. See photo attached. I have followed the workshop to the letter three times using FW version 2021.6 and the corresponding SDK. The PLC ofcourse has the same FW version on it. It seems like the same error which was given in 2021.0.5, the problem with the GDS ports and connecting them from a C++ program. I will try to use different versions of the SDK and PLCnCLI to see if I gain results.

Thanks for the help and thanks in advance!

image

martinboers commented 3 years ago

Can you please zip up:

... and email them to me?

martinboers commented 3 years ago

The problem in this case was that the ECLR on this specifc PLC did not start up correctly, due to other settings on the PLC. This means that the Arp.Plc.Eclr ports were not created in the GDS, which led to this error.

The general technique shown in this tutorial does not rely on the ECLR, but it just so happens that this tutorial does. I will change the tutorial to remove the dependence on the ECLR, and make any other dependencies clear.

Thanks for the help debugging this issue.