Make my own EtherCAT device. 1 Digital IO

  Рет қаралды 5,311

MetalMusings

MetalMusings

Күн бұрын

Пікірлер: 27
@billstrahan4791
@billstrahan4791 Жыл бұрын
I'm trying to learn as much as I can about EtherCAT, so the videos are most welcome!
@DesertShedStudio
@DesertShedStudio Жыл бұрын
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.
@kubabuda
@kubabuda Жыл бұрын
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
@darkobul1
@darkobul1 Жыл бұрын
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 Жыл бұрын
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 Жыл бұрын
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 Жыл бұрын
@@kubabuda i had no clue yesterday about it. Thanks to researching this I learned bunch of stuff.
@darkobul1
@darkobul1 Жыл бұрын
@@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 Жыл бұрын
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 Жыл бұрын
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 Жыл бұрын
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 Жыл бұрын
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 Жыл бұрын
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 Жыл бұрын
@@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.
@sebaschtl9710
@sebaschtl9710 9 ай бұрын
very greate! thanks alot
@DasMooorhuhn
@DasMooorhuhn Жыл бұрын
That is super cool
@darkobul1
@darkobul1 Жыл бұрын
So really they have a special chip for ethercat? Wow...
@darkobul1
@darkobul1 Жыл бұрын
EtherCAT uses the standard IEEE 802.3 physical layer. No special hardware is required to implement an EtherCAT network.
@darkobul1
@darkobul1 Жыл бұрын
Github is full of ooensource code for it. I had no clue. I was thinking its something proprietary.
@darkobul1
@darkobul1 Жыл бұрын
And it was proprietary but made as standard but still lot of unplesnt things linger behind it.
@darkobul1
@darkobul1 Жыл бұрын
Some make chips with hardware implementation of EtherCAT protocol so thats how.
@kubabuda
@kubabuda Жыл бұрын
@@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
(LinuxCNC) Building a CNC from scratch. This might surprise you.
1:11:27
SciCynical Inventing
Рет қаралды 1,3 М.
Make my own EtherCAT device 4. The PCB is here
24:42
MetalMusings
Рет қаралды 2,8 М.
КОГДА К БАТЕ ПРИШЕЛ ДРУГ😂#shorts
00:59
BATEK_OFFICIAL
Рет қаралды 8 МЛН
ЛУЧШИЙ ФОКУС + секрет! #shorts
00:12
Роман Magic
Рет қаралды 38 МЛН
Make my own EtherCAT device. 2. MCU and SPI
14:53
MetalMusings
Рет қаралды 2,5 М.
EtherCAT in 20 minutes
21:24
EtherCATGroup
Рет қаралды 58 М.
First steps with LinuxCNC
15:53
Matt's Machine Channel
Рет қаралды 25 М.
Hacking a weird TV censoring device
20:59
Ben Eater
Рет қаралды 3,2 МЛН
Scraping a Hobby Mill Like a Pro: The Table
26:11
Mach Super
Рет қаралды 78 М.
Run Linux on ESP32 - how to run the Linux kernel on an ESP32
19:53
Tam Hanna's Crazy Electronics Lab
Рет қаралды 62 М.
Weeny solder bot (LinuxCNC on A4 paper size)
58:03
iforce2d
Рет қаралды 98 М.
Spinogy X30 5kW CNC Spindle + LinuxCNC EtherCAT Rigid Tapping!
46:43
Chip Off Firmware Extraction - Hacking the Totolink WiFi Router
31:15