<div dir="ltr">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.<div>
<br></div><div>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.<div><br></div><div>Good luck!</div><div><br></div>
</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Jun 4, 2014 at 5:43 PM, Gavin Lambert <span dir="ltr"><<a href="mailto:gavinl@compacsort.com" target="_blank">gavinl@compacsort.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 5 June 2014, quoth Javier:<br>
<div class="">> I am a beginer and want start turning on a led in the EP2338 box from<br>
> ethercat master command line.<br>
<br>
</div>Typically you cannot do that sort of thing from the command line, as without<br>
an application the devices will remain in PREOP state, and outputs are<br>
normally not allowed to activate until the device is in OP state.  (And even<br>
if you use the command to explicitly request OP state, devices with outputs<br>
will typically not remain in OP unless they're being updated cyclically by<br>
an application.)<br>
<br>
You will need to write an actual application in order to bring devices to OP<br>
and keep them there.  See the examples included with the library.<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
_______________________________________________<br>
etherlab-users mailing list<br>
<a href="mailto:etherlab-users@etherlab.org">etherlab-users@etherlab.org</a><br>
<a href="http://lists.etherlab.org/mailman/listinfo/etherlab-users" target="_blank">http://lists.etherlab.org/mailman/listinfo/etherlab-users</a><br>
</div></div></blockquote></div><br></div>