[etherlab-users] ep2338
Dusty Clark
dclark at mmto.org
Thu Jun 5 02:52:35 CEST 2014
What Gavin said is true. Start with building/installing the master, and
have a look at the examples. Attached is a little C application that does
what you want with several slaves using stdin/stdout; it wasn't written by
me but a co-worker.
Connect it up to a Linux pipe and voila! you'll have a way to use another
language of your choice (we use Java and Python) to talk to the ethercat
hardware.
Good luck!
On Wed, Jun 4, 2014 at 5:43 PM, Gavin Lambert <gavinl at compacsort.com> wrote:
> On 5 June 2014, quoth Javier:
> > I am a beginer and want start turning on a led in the EP2338 box from
> > ethercat master command line.
>
> Typically you cannot do that sort of thing from the command line, as
> without
> an application the devices will remain in PREOP state, and outputs are
> normally not allowed to activate until the device is in OP state. (And
> even
> if you use the command to explicitly request OP state, devices with outputs
> will typically not remain in OP unless they're being updated cyclically by
> an application.)
>
> You will need to write an actual application in order to bring devices to
> OP
> and keep them there. See the examples included with the library.
>
>
> _______________________________________________
> etherlab-users mailing list
> etherlab-users at etherlab.org
> http://lists.etherlab.org/mailman/listinfo/etherlab-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.etherlab.org/pipermail/etherlab-users/attachments/20140604/0e759859/attachment-0004.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: teststandIO.c
Type: text/x-csrc
Size: 9777 bytes
Desc: not available
URL: <http://lists.etherlab.org/pipermail/etherlab-users/attachments/20140604/0e759859/attachment-0005.c>
More information about the Etherlab-users
mailing list