Store PLCnext CommunityPLCnext on LinkedInPLCnext on Instagram  PLCnext on YouTube Github PLCnext CommunityStore PLCnext Community

  1. cpranjale
  2. PLCnext Technology & PLCnext Controls
  3. Wednesday, 13 January 2021

Dear Sir,

Can I get steps to run Sample Runtime with eclipse on AXC F1152.

Agenda is to run simple c++ Program on AXC F 2152

Regards

Chetan

Eduard PLCnext Team Accepted Answer Pending Moderation
0
Votes
Undo

Hello Chetan, 

I'll clarify your question by development and give you an answer asap.

Best Regards

Eduard


Phoenix Contact Electronics Headquarter - PLCnext Runtime Product Management and Support

Eduard PLCnext Team Accepted Answer Pending Moderation
0
Votes
Undo

Hello Chetan, 

yesterday we talked about, how to use the SDK to build a simple C++ program for a PLCnext control device, in Eclipse.

As discussed, It must be possible to create a project with Template "Consumable Lbrary" and adapt the CMakeLists.txt to compile the project as executable:

  1. Add a main() program in project
  2. disable the command "add_library"
  3. Add the command "add_executable"

################# create target ######################################################################## create target #######################################################
set (WILDCARD_SOURCE *.cpp)set (WILDCARD_HEADER *.h *.hpp *.hxx)
file(GLOB_RECURSE Headers CONFIGURE_DEPENDS src/${WILDCARD_HEADER})
file(GLOB_RECURSE PublicHeaders CONFIGURE_DEPENDS include/${WILDCARD_HEADER})
file(GLOB_RECURSE Sources CONFIGURE_DEPENDS src/${WILDCARD_SOURCE})
#add_library(TestProject SHARED ${Headers} ${PublicHeaders} ${Sources})
add_executable(TestProject ${Headers} ${Sources})

Best Regards

Eduard


Phoenix Contact Electronics Headquarter - PLCnext Runtime Product Management and Support

  • Page :
  • 1


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