Is it possible to run code from a terminal

Hey people. I was very curious if the PLCNext has a possibility to run a compiled code from a terminal.

For instance, can I write some C++ code in Eclipse (like a ‘cout’ example program) and then compile it for the PLCNext, and then manually upload a binary to the PLC.
Can I then simply navigate to that folder via terminal, and run the binary with ./ There is an example on the forum where this method is used, but this was done with a pre-release version of hardware and software, and I can not get it working now. Are there specific settings in Eclipse I need to setup? Simply changing build artifact from ‘shared library’ to ‘executable’ does not work. Regards,
David.

Hello, Except just changing build artifact from ‘shared library’ to ‘executable’ you also have to modify structure of you program - it must has main function: int main()

{ //… }

Hi David, Here’s a video of the settings I used to get a simple “Hello World” application built for the AXC F 2152 in Eclipse. The video quality isn’t great (viewing in HD works best), and sorry for the long pause around 3:30 when I mis-typed the IP address of the PLC … but you get the general idea. I got all the project settings from a PLCnext Shared Library project. Maybe in future the PLCnext developers will give us an “Executable” option in the New Project wizard … - Martin.

This is what I was looking for, thanks Martin! Regards,

David.

Hi David! Yes, is possible. On a presentation that I have participated some weeks ago, in few minutes, I was able to load and run a program write in FreePascal, designed to run in a Cubieboard 2.