Beginner OpENer Getting Started

335 views
Skip to first unread message

Angie

unread,
Feb 12, 2020, 11:01:48 AM2/12/20
to EIP Stack Group OpENer users
Hi to all,
I'm trying to getting started with OpENer. First of all, I compiled (Posix port) the stack, no problem with that.
Now I would like to proceed with some tests.
The sampleapplication.c was my guess to try to share some values with a plc.
The problem is that I don't know how to start.
I expected an example ready to be executed after compiling, even if with meaningless data in the Input Output arrays,
but I'm confused.
Sampleapplication.c has no main inside it, is that a kind of library?
Can I compile it right out of the box?
Do I have to customize it before any other step?
Any help is greatly appreciated.

stm-at-esd

unread,
Feb 12, 2020, 11:49:24 AM2/12/20
to EIP Stack Group OpENer users
Hi,

perhaps I may be able to help. See my comments below:


Am Mittwoch, 12. Februar 2020 17:01:48 UTC+1 schrieb Angie:
Hi to all,
I'm trying to getting started with OpENer. First of all, I compiled (Posix port) the stack, no problem with that.

If you have done that using the CMake stuff you will have an executable sample application.  It should be that
file: bin/posix/src/ports/POSIX/OpENer

Now I would like to proceed with some tests.
The sampleapplication.c was my guess to try to share some values with a plc.
The problem is that I don't know how to start.
I expected an example ready to be executed after compiling, even if with meaningless data in the Input Output arrays,
but I'm confused.

It is there.
 
Sampleapplication.c has no main inside it, is that a kind of library?

The main() function is located in source/src/ports/POSIX/main.c
 
Can I compile it right out of the box?

Yes.
 
The out of the box compilation creates a simple EtherNet/IP adapter device that exposes
32 bytes of input and 32 bytes of output. The output data simply gets mirrored to the input
data area. You need also to provide 10 bytes (5 words) of configuration data that are 
simply ignored by the sample application.

You may also try to build the Doxygen documentation and then jump around in it to get
a raw overview.

Under POSIX (Linux) you can (as root) call "OpENer <ethernet interface name> and you
should be able to connect to the device then.

Best regards,
    Stefan

Angie

unread,
Feb 12, 2020, 4:48:25 PM2/12/20
to EIP Stack Group OpENer users
Hi Stefan,
thank you for your prompt help!

Like you said it was all there.

I was able to check the communication against a windows box running EnIPExplorer.

Thanks again.
Reply all
Reply to author
Forward
0 new messages