EasyCAT Arduino shield

More
1 year 4 months ago #330566 by meister
Replied by meister on topic EasyCAT Arduino shield
accidentally flashed my ethercat servo with something wrong, and restored everything with this tool and the original esi xml

so yes, it really works

I use it to configure my LAN9252 board

EDIT:
uhhh, found this site: markosankovic.github.io/2016/06/28/esi-to-sii-binary.html
i think i need to test this '
Code:
ethercat sii_write ...
'
I must have overlooked it somehow :)




 

Please Log in to join the conversation.

More
1 year 4 months ago #330581 by meister
Replied by meister on topic EasyCAT Arduino shield
because of the strange licenses from siitool i will write my own in python

Please Log in to join the conversation.

More
1 year 4 months ago #330583 by Hakan
Replied by Hakan on topic EasyCAT Arduino shield
I see, the "-m" flag makes it write the pdos.
But what about the sdos? I don't see them coming over.

Please Log in to join the conversation.

More
1 year 4 months ago #330584 by meister
Replied by meister on topic EasyCAT Arduino shield
I haven't seen it yet either :( but I haven't used it yet either

Please Log in to join the conversation.

More
1 year 4 months ago #330616 by Hakan
Replied by Hakan on topic EasyCAT Arduino shield
The xml to eeprom translation is a missing piece. With the pdos and sdos. Siitool comes halfway.
Currently I see no other option than to use TwinCAT. If there was a way for TwinCAT to only do
the translation of xml into an eeprom binary file that would help. But no, I have to take out the card
from the machine and bring it to the Windows/Twincat machine and flash the eeprom from the xml file
with TwinCAT.

If you like JavaScript, you can start from the eeprom_generator which already can do the eeprom content,
without pdos and sdos again. There is a src/generators/EEPROM.js you can have a look at.
EasyCAT uses LAN9252 I have read so should be directly usable.
github.com/MetalMusings/MyOwnEtherCATDev...ils/EEPROM_generator
 

Please Log in to join the conversation.

More
1 year 4 months ago #330628 by meister
Replied by meister on topic EasyCAT Arduino shield
already a good starting point :)

github.com/multigcs/esitool

Please Log in to join the conversation.

More
1 year 4 months ago #330635 by meister
Replied by meister on topic EasyCAT Arduino shield
new discovery, there is no sdos data in the eeprom.

could not find any in the documentation or in a sanmotion servo eeprom, the data is probably read from the firmware.

Please Log in to join the conversation.

More
1 year 4 months ago #330641 by Hakan
Replied by Hakan on topic EasyCAT Arduino shield
You are right.
I read out eeprom from a slave I know has SDOs.
But nothing with the SDO names in the eeprom bin file.
So, it is possible the siitools -m could produce a good eeprom.
I'll test later this evening, I have a device I can experiment with.

Please Log in to join the conversation.

More
1 year 4 months ago #330653 by Hakan
Replied by Hakan on topic EasyCAT Arduino shield
Yes it works! Awesome!
That -m flag made all the difference.
I took the XML file and generated an eeprom content with
Code:
siitool -m < esi.xml > eeprom.bin
wrote that to the eeprom with
Code:
ethercat sii_write -p 3 eeprom.bin
Made sure to reset the device and do a
Code:
ethercat rescan
And yes yes yes, it works. Thanks man. Will save me a lot of walking
between the workshop and the "office".

Please Log in to join the conversation.

More
1 year 4 months ago #330727 by meister
Replied by meister on topic EasyCAT Arduino shield
ready for testing:
github.com/multigcs/esitool/

there are some testfiles in tests/
and they are all bit exactly as generated by the siitool

but i need more testfiles and maybe some tester

Please Log in to join the conversation.

Time to create page: 0.202 seconds
Powered by Kunena Forum