Greeting,
I watched your video on youtube programming plcnext with c ++.
I’m stuck on variables. As you can see the input is multiplied by two and the output must always be twice as large.
The problem is that I obviously don’t know how to connect variables and every time I put an input number I don’t get anything on the output.
I looked at all the videos, but none of them explained the step well, where the variables are connected and examined online.
Can you please help me how to correctly connect the variables so that when I write down a number at the input it is done code i.e. multiplied.
Thank you
Can you please show the C++ code snippets from (a) your C++ program header (hpp) file, and (b) your C++ program implementation (cpp) file, where you define and use the Port variables?
I just implemented that same code, and it worked:
I notice in your screen shot that your cpp file has not been saved. In Eclipse, files are not saved automatically when a project is built. If there were significant unsaved changes to that cpp file before the build, then perhaps the logic shown in the screen shot has not been built into the program.
Please try saving all the source files in eclipse, then building the project again, and then replacing the library file in the PLCnext Engineer project.







