[etherlab-users] Generic slave (unknown device) configuration

Mladen Knezic mladen_knezic at etfbl.net
Thu Feb 11 21:30:31 CET 2010


Hi,

I have made some progress on this topic. :) Actually, I have made some 
mistakes cause I was not a little more careful.

First, Florian was right, and my apologies to him for statement I made in my 
previous post: 

> Florian wrote:
> Generally its enough to copy the XML file in the same directory as your
> model and just give the filename (in single quotes) to the generic slave
> block.

Yes, this is correct, but you have to set Matlab workspace to point to this 
directory. (And I forgot to do that!)

Second, Beckhoff's XML file works well, but you have to make a little 
modifications on it - actually you only have to delete encoding entry at the 
beginning of the xml file. (By default, it is set to <?xml version="1.0" 
encoding="ISO8859-1"?> and that makes a lot of problems :D)

Third, 'ethercat xml -p 0 >> XmlEtherCATInfo.xml' command still doesn't work 
for me. It provides invalid xml file (as indicated by EtherLab Simulink and 
Matlab XmlParse function) and notify two errors on execution (Invalid bit 
length 2). The screenshot is attached as well as generated xml file. (Can 
someone please help me with this stuff)

An last, many thanks for support... :)

Soon I'll be back with some new results regarding EL9800 Eva Board EtherLab 
stuff. :)

Regards,

--
Mladen Knezic
Teaching Assistant
Faculty of Electrical Engineering
Banja Luka, Bosnia and Herzegovina
Web: www.etfbl.net
Phone: +387 65 804 205
Fax: +387 51 211 408

-------------- next part --------------
A non-text attachment was scrubbed...
Name: screenshot_xml.png
Type: image/png
Size: 46873 bytes
Desc: not available
URL: <http://lists.etherlab.org/pipermail/etherlab-users/attachments/20100211/7af171cf/attachment-0004.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: XmlEtherCATInfo.xml
Type: text/xml
Size: 4494 bytes
Desc: not available
URL: <http://lists.etherlab.org/pipermail/etherlab-users/attachments/20100211/7af171cf/attachment-0003.xml>


More information about the Etherlab-users mailing list