Custom EtherCAT device

More
24 May 2023 20:03 #272104 by rodw
Replied by rodw on topic Custom EtherCAT device
I did wonder if you were using haltype="float" in the xml config but it seems you are.

My immediate thought after that could be it is a byte ordering thing on your hardware
It would be interesting to explore the hal pin value at a binary or hex level.
Swapping theĀ  byte order might fix it.

Please Log in or Create an account to join the conversation.

More
24 May 2023 20:42 #272111 by Tady
Replied by Tady on topic Custom EtherCAT device
Yes I use float as halpin type. And in my XML.. But the "ethercat XML" returns the XML version that it supposed to be flashed on the EEPROM (If I understand this correctly), this is printed in CLI and there the DataType is UINT32, but it should be REAL.. Here I think is the problem. I tried reversing the byte order and alot of different things.
To me this seems to be the problem. This a side, it work great. Maybe I can make a demo on the encoder thing :)

Please Log in or Create an account to join the conversation.

More
24 May 2023 20:47 #272113 by RDA
Replied by RDA on topic Custom EtherCAT device
Maybe some day I will continue but at the moment I just dont have the time.
The following user(s) said Thank You: Tady

Please Log in or Create an account to join the conversation.

More
24 May 2023 20:49 #272114 by Tady
Replied by Tady on topic Custom EtherCAT device
Here is the photo of the slaves sending a float number to LinuCNC. The number is counting from 0 to 100 in 0.1 steps. The top is byte reversed and the bottom is not. Totally different numbers. But they don' reprisent the same number, because the slaves are not counting at the same rate.
I think this is a representaion of a float number in UINT32 formatĀ 
Attachments:

Please Log in or Create an account to join the conversation.

More
24 May 2023 20:53 #272115 by Tady
Replied by Tady on topic Custom EtherCAT device
If you find the time and are willing. Maybe you can help someone :)
I started this little ptoject because I wanted to learn about EtherCAT and this is the best way. And I love these nerve wrecking projects :)

Please Log in or Create an account to join the conversation.

More
25 May 2023 11:43 #272145 by Tady
Replied by Tady on topic Custom EtherCAT device
I posted an issue on siitool guthub page (the tool I used to convert my XML to bin, and then flash the bin to my slave's EEPROM). The author of the software replyed that there is a bug in his software and he will fix it.. So it seems that I'm on the right track..
Now waiting for an update.

Please Log in or Create an account to join the conversation.

More
25 May 2023 14:54 #272153 by smc.collins
Replied by smc.collins on topic Custom EtherCAT device
Texas Instruments has ethercat sample designs that do everything you guys want, and the micros are cheap, I've been slowly grinding on some stuff

Please Log in or Create an account to join the conversation.

More
25 May 2023 15:28 #272156 by Tady
Replied by Tady on topic Custom EtherCAT device
Care to share the product info? Price?

Please Log in or Create an account to join the conversation.

More
25 May 2023 18:41 #272162 by tommylight
Replied by tommylight on topic Custom EtherCAT device
TI sends a lot of "evaluation package" to anyone who dares to ask, so just ask. :)
I did, they did, i never got it due to f@king country i live in.
Twice.

Please Log in or Create an account to join the conversation.

More
25 May 2023 18:47 #272164 by Tady
Replied by Tady on topic Custom EtherCAT device
And where is that? Not USA?

Please Log in or Create an account to join the conversation.

Time to create page: 0.393 seconds
Powered by Kunena Forum