This site uses cookies for functional purposes. To continue please read and agree to our Data Privacy.

By closing this message, you consent to our use of cookies on this device.

PLCnext on Instagram  PLCnext on YouTube Github PLCnext CommunityStore PLCnext Community

  1. David Petter
  2. PLCnext Technology & PLCnext Controls
  3. Thursday, 05 April 2018
  4.  Subscribe via email

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.




Accepted Answer
Martin PLCnext Team Accepted Answer Pending Moderation

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.


Phoenix Contact Electronics Headquarters - Support Center

Dzmitry Ivaniuk Accepted Answer Pending Moderation


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




David Petter Accepted Answer Pending Moderation

This is what I was looking for, thanks Martin!



Fabio Luis Girardi Accepted Answer Pending Moderation

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.

  • Page :
  • 1

There are no replies made for this post yet.
However, you are not allowed to reply to this post.