I’m not able to reproduce this problem. Here is what I did:
-
Using Toolchain version 2025.0, create a C++ program, using the default template, for the target AXC F 2152 FW 2025.6.0.
-
Add the following two GDS ports to the Program.hpp file:
//#port
//#attributes(Input)
boolean inPort;
//#port
//#attributes(Output)
boolean outPort;
- Build the project, which creates a PLCnext Engineer library.
- In PLCnext Engineer version 2025.9, create a new project using the template for AXC F 2152 FW 2025.6.
- In the „Main“ program, add two GDS ports:
- Add the library (created earlier) to the project.
- Create a new ESM task called „Cyclic200“ on ESM 2.
- Create an instance of the C++ program in the new ESM task.
- Here is what the Tasks look like:
- Connect the two ports from the C++ program instance to the two ports on the Main program instance:
- Perform a Type 1 reset on the AXC F 2152 FW 2025.6.
- Set the IP address on the AXC F 2152.
- Send the PLCnext Engineer project to the AXC F 2152
=> The project starts, and data is exchanged between the GDS ports:
Does this procedure work for you?
If there are still problems with your project, please get in touch with the Phoenix Contact office in your country. They will be able to help with technical support questions like this.