Make my own EtherCAT device. 1 Digital IO

  Рет қаралды 3,600

MetalMusings

MetalMusings

7 ай бұрын

Let's see if I can make my own EtherCAT device to be used by Linuxcnc.

Пікірлер: 27
@billstrahan4791
@billstrahan4791 7 ай бұрын
I'm trying to learn as much as I can about EtherCAT, so the videos are most welcome!
@DesertShedStudio
@DesertShedStudio 7 ай бұрын
Nice, I have a Mikroe EtherCAT Click board (also LAN9252 based) I picked up on Rod's recommendation. I need to get back to working with it, should be a good way to add SPI sensors and I/O to LinuxCNC running EtherCAT.
@DasMooorhuhn
@DasMooorhuhn 7 ай бұрын
That is super cool
@sebaschtl9710
@sebaschtl9710 4 ай бұрын
very greate! thanks alot
@darkobul1
@darkobul1 7 ай бұрын
Well I didnt think to go that far but considered using two ethernet modules with breakout board. Only advantage beside linking ethercat really has is galvanic isolation which is provided by ethernet it self. Each pin has isolation coils. Or I am missing something more about it? I did not get any ti try brcause of price and was thinking I can accompish something by using modules. I didnt watch whole video yet. Looking forward to see.
@darkobul1
@darkobul1 7 ай бұрын
Main advantage of EtherCAT is removed portion of bytes used in standard network making its packets smaller and dus faster to repeat. But if you consider that same can be achived with faster network if you want to chase nanoseconds. But you lose so many advantages of ethernet/ip which are never pointed out.
@kubabuda
@kubabuda 7 ай бұрын
Main advantage of EtherCAT is its timing consistency. Reading updates from every node in network will take the same amount of nano/microseconds, every time. You also get distributed clocks which AFAIK make it best protocol for timing-sensitive things like hi-perfromance motion control. For these things, faster network means nothing when its not repeatable. Cost is extra 10-20$ in BOM for every device in network, decreased network throughput, using separate network card (you dont want to mix it with normal ethernet comms) on master node. This thing is more specialized tool than ethernet/ip
@darkobul1
@darkobul1 7 ай бұрын
@@kubabuda i had no clue yesterday about it. Thanks to researching this I learned bunch of stuff.
@darkobul1
@darkobul1 7 ай бұрын
@@kubabuda i see you can get cheaper but imagine my shock whrn I saw MicroChip sells dev board for 150$ which in reality dont cost even 10$. I understand its a business thing but I doubt this protocol will live long unless those chips became pennies.
@darkobul1
@darkobul1 7 ай бұрын
Does ethercat support ordinary network switch to split multiple devices?. On redit someone spoke unceranly about it while it seems uses same network layers. I see those modules and devices have 2 ports for linking. But if switch could be used then single port and many MCU that has PHY could be used even at different speeds.
@darkobul1
@darkobul1 7 ай бұрын
Seems all EtherCAT devices work on 100Mbs. Not a single example on youtube except specialized devices and networks. So answer is likely no. All they could do is just shave few bytes from ethernet/ip header and for that reason is so much expensive and closed. Because its different inplementation.
@darkobul1
@darkobul1 7 ай бұрын
One guy on redit said something that makes it possible and there are cheap switches that provide vlan linking all ports. So it perhaps may be possible with some switches. "EtherCAT cannot coexist on the same network as regular TCP/IP stuff, including EIP. Again, a snazzy enough switch can probably VLAN it's way out of this and keep the EIP garbage from getting in EtherCAT's "
@darkobul1
@darkobul1 7 ай бұрын
Accirding to ai EtherCAT rides directly on Ethernet frame removing ipv4 20 bytes and its own protocol header is 8 bytes long like UDP.
@kubabuda
@kubabuda 7 ай бұрын
You are getting at it from wrong end. When you want multiple EtherCAT devices in network (which you usually do), you just daisy chain them: connect OUT port of previous device to IN on next one All Ethercat interface chips have 2 ports. Some can have 3 (like LAN9252), so you can branch your network if you really need it, but daisy chain is usually what you want
@darkobul1
@darkobul1 7 ай бұрын
@@kubabuda i did not know when I asked. I was looking to find a way how to test EtherCat(without buying thousands of dollars equioment and if will suit to use it as extending protocol for LinuxCNC. But now I know that many of my assumptions where wrong. I was thinking you may use different network speeds and mix slow and fast but that seems is not the case. They all have to be same speed of 100M and as you said they have to be linked in a row. While that may give some advantage in certain ways it loses other.
@darkobul1
@darkobul1 7 ай бұрын
So really they have a special chip for ethercat? Wow...
@darkobul1
@darkobul1 7 ай бұрын
EtherCAT uses the standard IEEE 802.3 physical layer. No special hardware is required to implement an EtherCAT network.
@darkobul1
@darkobul1 7 ай бұрын
Github is full of ooensource code for it. I had no clue. I was thinking its something proprietary.
@darkobul1
@darkobul1 7 ай бұрын
And it was proprietary but made as standard but still lot of unplesnt things linger behind it.
@darkobul1
@darkobul1 7 ай бұрын
Some make chips with hardware implementation of EtherCAT protocol so thats how.
@kubabuda
@kubabuda 7 ай бұрын
@@darkobul1 you dont need special HW on master end, each device needs ESC (EtherCAT Slave Chip). You _could_ implement this in firmware if your microcontroller has 2 Ethernet ports, but this will be so slow that its pointless
@kubabuda
@kubabuda 7 ай бұрын
Do you plan to program the microcontroller? These black boards are OK for start, but STM32 has no pins broken out to do anything useful
Weeny solder bot (LinuxCNC on A4 paper size)
58:03
iforce2d
Рет қаралды 96 М.
Make my own EtherCAT device. 2. MCU and SPI
14:53
MetalMusings
Рет қаралды 1,6 М.
Как быстро замутить ЭлектроСамокат
00:59
ЖЕЛЕЗНЫЙ КОРОЛЬ
Рет қаралды 14 МЛН
IS THIS REAL FOOD OR NOT?🤔 PIKACHU AND SONIC CONFUSE THE CAT! 😺🍫
00:41
DELETE TOXICITY = 5 LEGENDARY STARR DROPS!
02:20
Brawl Stars
Рет қаралды 17 МЛН
CNC Control Cabinet - FluidNC
15:27
kyy
Рет қаралды 6 М.
Make my own EtherCAT device 4. The PCB is here
24:42
MetalMusings
Рет қаралды 2,3 М.
IoT Hacking - Polycom Conference Phone - Firmware Extraction
33:53
The Cheapest Microcontroller? Getting started with the 10 cent Puya PY32.
21:36
Explaining RISC-V: An x86 & ARM Alternative
14:24
ExplainingComputers
Рет қаралды 427 М.
The TRUE COST of CNC machining!
11:17
DarkAero, Inc
Рет қаралды 883 М.
UEFI Linux Secure Boot Kernel Signing and Verification demo
32:08
Sameer Pasha
Рет қаралды 35 М.
Try these 16 Brilliant ESP32 projects!!!
11:18
ToP Projects Compilation
Рет қаралды 539 М.
DON'T Use Raspberry Pis for Servers! (Use THIS)
16:23
Hardware Haven
Рет қаралды 999 М.
How charged your battery?
0:14
V.A. show / Магика
Рет қаралды 6 МЛН
КОПИМ НА АЙФОН В ТГК АРСЕНИЙ СЭДГАПП🛒
0:59
i like you subscriber ♥️♥️ #trending #iphone #apple #iphonefold
0:14