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

Resolved Eclipse C++

0
Votes
Undo
  1. nazirlouis38
  2. PLCnext Technology & PLCnext Controls
  3. Tuesday, 08 June 2021
When placing my original c++ program into the eclipse ide is this the correct way to implement the program or should I move "#include ..." with the others at the top?

Edit: Also when implementing my program should I delete my void main function or leave it?
Attachments (2)
Accepted Answer
Eduard PLCnext Team Accepted Answer Pending Moderation
0
Votes
Undo
Hello nazirlouis38 ;

#include is a pre-processor directive in 'C/C++', please don't include it into method!

The "Execute" method will be called as "program" in a cyclic or event Task (see task configuration in PLCnext Engineer). The "main" program will be don't needed, please remove it!

Please see the following description, E-Learning and Videos, I think it will help you:

1. PLCnextInfoCenter

2. Tutorial Videos

3. E-Learning

4. C++ Examples

5. C Programming tutorial

Best Regards
Eduard
Phoenix Contact Electronics Headquarter - PLCnext Runtime Product Management and Support


There are replies in this post but you are not allowed to view the replies from this post.