- Posts: 12160
- Thank you received: 0
Custom EtherCAT device
3 years 5 months ago #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.
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 to join the conversation.
3 years 5 months ago #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
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 to join the conversation.
3 years 5 months ago #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.
Please Log in to join the conversation.
3 years 5 months ago #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
I think this is a representaion of a float number in UINT32 format
Please Log in to join the conversation.
3 years 5 months ago #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
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 to join the conversation.
3 years 5 months ago #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.
Now waiting for an update.
Please Log in to join the conversation.
- smc.collins
- Offline
- Platinum Member
-
Less
More
- Posts: 721
- Thank you received: 0
3 years 5 months ago #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 to join the conversation.
3 years 5 months ago #272156
by Tady
Replied by Tady on topic Custom EtherCAT device
Care to share the product info? Price?
Please Log in to join the conversation.
- tommylight
-
- Away
- Administrator
-
Less
More
- Posts: 22012
- Thank you received: 3
3 years 5 months ago #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.
I did, they did, i never got it due to f@king country i live in.
Twice.
Please Log in to join the conversation.
Time to create page: 0.066 seconds
