Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 00:50 03 Aug 2025 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : EtherCAT (Beckhoff, etc.)

     Page 1 of 3    
Author Message
Tinine
Guru

Joined: 30/03/2016
Location: United Kingdom
Posts: 1646
Posted: 10:08am 25 Feb 2022
Copy link to clipboard 
Print this post

Probably directed @Volhout  

What is with this thing? I mean, I have been aware of it but never really got to know it.

Over-priced?
Over-hyped?
Over-complicated?

I have been studying and all I do is SMH....I would never consider using this.

I have clients in deep trouble. They can't build machines because Beckhoff can't deliver. Pushing me to complete my Propeller P2 motion controller.


@Volhout; is this EtherCAT just another dumb religion? I can't identify a single positive feature. It's like you can't even sneeze without the appropriate license and for this, I'm seeing numbers like $2,000      

Regards,

Craig
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 7938
Posted: 12:43pm 25 Feb 2022
Copy link to clipboard 
Print this post

It looks rather neat....
The master sends a frame ("telegram") to the first node.

As the frame passes through (it's not loaded):
The node looks for data for its address in the frame and inserts its own response into the frame.

The frame continues to pass through "on the fly" to the next node.

This continues until the last node is reached. That can't detect a node after it so it bounces the complete frame back to the master.

No node stores the complete frame except the master. The final returned frame contains all the responses from the nodes. It's a bit like serial SPI but done over ethernet so the distances are a lot bigger. It's all done in hardware so the only delay is in the hardware propagation. Transfers within a node are done by DMA. Basically, the whole system runs at hardware speeds. The frame is kept short and the ethernet is optimised for short frames.

It's a lot cleverer than that (like the master can issue the addresses to all the slaves during boot), but that's the basics as far as I can see.
Edited 2022-02-25 22:45 by Mixtel90
Mick

Zilog Inside! nascom.info for Nascom & Gemini
Preliminary MMBasic docs & my PCB designs
 
Tinine
Guru

Joined: 30/03/2016
Location: United Kingdom
Posts: 1646
Posted: 02:04pm 25 Feb 2022
Copy link to clipboard 
Print this post

@Mick,

Is this similar to token-ring networks?

I would never use this architecture. You have a dead digital i/o and you have to replace a whole bank of them which also involves pulling out the wiring from all other outputs.
I'd love to grab these designers and see how they'd manage laying on a dirty factory floor, flashlight between their teeth and fiddle farting with this stuff.
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10315
Posted: 02:35pm 25 Feb 2022
Copy link to clipboard 
Print this post

  Quote  Is this similar to token-ring networks?


Sounds like it. The concept seems to date back to the days of the fat coax ethernet cables with repeaters at each station.
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 7938
Posted: 03:12pm 25 Feb 2022
Copy link to clipboard 
Print this post

Not exactly, I don't think. From what I can gather the nodes are normal ethernet stations. They even use a standard ethernet MAC controller, nothing special. The physical topology seems to be anything you like, including combinations (although slaves are serially connected like token ring and need 2 or more ethernet ports). The data is passed between them as a "virtual" telegram. It doesn't have the big overheads of TCP/IP or UDP/IP though, it's low level.

Lots of info here.
Edited 2022-02-26 01:19 by Mixtel90
Mick

Zilog Inside! nascom.info for Nascom & Gemini
Preliminary MMBasic docs & my PCB designs
 
Volhout
Guru

Joined: 05/03/2018
Location: Netherlands
Posts: 5091
Posted: 06:59pm 25 Feb 2022
Copy link to clipboard 
Print this post

I have done one project with Beckhoff EtherCAT (HW side).
They have been chosen for that particular project (over Siemens) becuase they had safety IO modules with the fastest response time. Customer was ASML, in an application where they shoot a 40kW laser at tin droplets to turn them into plasma (where they radiate "light" with extreme short wavelength...for lithography).
Anyway, when the laser beam get's out of control you have to cut it off extremely fast, or it will shoot holes in anything in it's path (0.1ms to get through a human).

Another specific thing of Beckhoff is that they live/besides in a Windows environment. They use multicore processors and simply claim a core from Windows, to guarantee responsiveness of the system. You can simply code (SCADA or local HMI) applications in C++.

That is all I know of it.
PicomiteVGA PETSCII ROBOTS
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 7938
Posted: 07:33pm 25 Feb 2022
Copy link to clipboard 
Print this post

It's a bit quick...
  Quote  EtherCAT is an open real-time Ethernet Master/Slave network developed by Beckhoff. Today, it is an open standard, managed by the EtherCAT technology group. EtherCAT sets new limits for real-time performance since it processes 1000 distributed I/O in 30 us or 100 axis in 100 us using twisted pair or fiber optic cable. Regarding topology, EtherCAT supports a simple low cost line structure, a tree structure, daisy chaining or drop lines - no expensive infrastructure components are required. Alternatively the classic more expensive switched star topology can be used.            

The EtherCAT transmission method is similar to the principles of Interbus. With EtherCAT, the Ethernet packet is no longer received, then interpreted and process data then copied at every device. The EtherCAT slave devices read the data addressed to them while the frame passes through the device. node. Similarly, input data is inserted while the telegram passes through. The frames are only delayed by a few nanoseconds. Since an EtherCAT frame comprises the data of many devices both in send and receive direction, the usable data rate increases to over 90%. The full-duplex features of 100BaseTX are fully utilized, so that effective data rates of > 100 Mbit/s (>90% of 2 x 100 Mbits/s) can be achieved.

From here.
Mick

Zilog Inside! nascom.info for Nascom & Gemini
Preliminary MMBasic docs & my PCB designs
 
Tinine
Guru

Joined: 30/03/2016
Location: United Kingdom
Posts: 1646
Posted: 07:33pm 25 Feb 2022
Copy link to clipboard 
Print this post

@Volhout

Ah-ha!

My client keeps bringing-up those "safety modules" and I really don't get it.
All they do is remove power but who doesn't do that anyway?

In fact, this can be a bad thing in the case of a linear axis with a lot of inertia. The out-of-control coasting can cause severe damage to the machine or injury to personnel. One of my solutions is to delay the power-removal by a few hundred ms and allow the PID to rapidly decelerate the axis (controlled), THEN remove the power.

I get the distinct impression that the marketing department has repackaged something that has always existed and end-users are perceiving it as "better".

Regards,

Craig
 
Volhout
Guru

Joined: 05/03/2018
Location: Netherlands
Posts: 5091
Posted: 10:42pm 25 Feb 2022
Copy link to clipboard 
Print this post

  Tinine said  @Volhout

Ah-ha!

My client keeps bringing-up those "safety modules" and I really don't get it.
All they do is remove power but who doesn't do that anyway?

In fact, this can be a bad thing in the case of a linear axis with a lot of inertia. The out-of-control coasting can cause severe damage to the machine or injury to personnel. One of my solutions is to delay the power-removal by a few hundred ms and allow the PID to rapidly decelerate the axis (controlled), THEN remove the power.

I get the distinct impression that the marketing department has repackaged something that has always existed and end-users are perceiving it as "better".

Regards,

Craig


The safety modules are just meeting safety standards (when wired correctly they detact all kinds of fault modes, i.e. wire breaks) but can be treated same as standard IO modules. So the PLC program determines what happens. If you write the PLC program to do as described above and that proves to be just as good to save human lifes (safety is always about human life, never about machine damage) ... just do it that way.
There is always a shutdown procedure to follow. You can't just pull the plug on a nuclear power plant....

Volhout

By the way: Beckhoff believes so much in EtherCat that their PLC modules also use it to communicate (the internal bus) internally, as well as over twisted pair and fiber connections (between systems).
Edited 2022-02-26 08:44 by Volhout
PicomiteVGA PETSCII ROBOTS
 
Volhout
Guru

Joined: 05/03/2018
Location: Netherlands
Posts: 5091
Posted: 10:55pm 25 Feb 2022
Copy link to clipboard 
Print this post

So the special thing about the safety modules is
- they are inspected (like a watchdog system) for correct operation coninuously
- their inputs and outputs are fault resilient and fault detecting
outputs: while ON and while OFF measure the load impedance and any shorts to ground or 24V/230V
Inputs: used for dual wiring/switches/logic and each connection continuously measures for shorts and opens.

I think if you can convince your customer that your system is SIL6 (or whatever level of safety they aim for) it should be fine. But a single serial connection may not meet that requirement.

Big thing about these safety modules is that
a/ if you use them
b/ if you wire them correctly
You are for a large part already meeting SIL4 (or whatever level you design to) and don't have to proove you are. This all boils down to the one who gives you the order. If they have written in the order to you that some level of safety is required, it is up to you to prove it. And sometimes spending few 100 dollars on hardware for safety modules and wiring, is cheaper that the whole certification excersize. Maybe you have to invite an external specialist to do this certification (or be licensed to do it yourself).

I think this is the first thing you have to do when your customer talks about safety modules: educate yourself on the safety standard(s). There are many, but most common is SIL as defined in IEC61508. And each SIL level defines the chance of human damage and failure modes. Sometimes a simple red "shutdown" button is sufficienct. Sometimes key locked gates and more are needed.

wiki

So in essence you calculate the chance for human damage, and all certified safety modules have manufacturer defined failure levels. When you use your P2 to fulfill a safety function you must calculate the chance for failure yourself based on
- hardware failure (chip MTBF numbers may help)
- software faulure
- circuit failure (power supply ?)
- wiring failure (single fault resilient)
Edited 2022-02-26 09:13 by Volhout
PicomiteVGA PETSCII ROBOTS
 
Tinine
Guru

Joined: 30/03/2016
Location: United Kingdom
Posts: 1646
Posted: 07:39am 26 Feb 2022
Copy link to clipboard 
Print this post

And then there's reality:

H&S person: "Is there like a yellow box with flashing lights where if I stand in front of it, the machine stops?"

Engineer: "Yeah"

H&S: "Good, now put those earplugs back in and quit shoving those safety glasses up on your forehead!"
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 7938
Posted: 08:06am 26 Feb 2022
Copy link to clipboard 
Print this post

Have you *tried* sneaking past a light curtain to get to the sheet metal bender?
:)

Interesting stuff, Volhout. I noticed that simple nodes don't even need a cpu - they are basically a FPGA with a couple of ethernet MACs and connected to some I/O. It's a neat system.

My days of IS modules, light curtains and key exchange boxes are over now. lol
Mick

Zilog Inside! nascom.info for Nascom & Gemini
Preliminary MMBasic docs & my PCB designs
 
Tinine
Guru

Joined: 30/03/2016
Location: United Kingdom
Posts: 1646
Posted: 08:49am 26 Feb 2022
Copy link to clipboard 
Print this post

  Quote  
Have you *tried* sneaking past a light curtain to get to the sheet metal bender?
:)


Yes, it's been a pet-peeve of mine for years. For all the "fault-tolerant, Dual-redundant safety circuitry", the operator walks away for a minute. Maintenance tech comes along, walks through the light curtain and disappears to the back of the machine. Operator returns and resumes production, to the horror of the maintenance tech. In the vast majority of cases, it's symbolic BS.
 
Volhout
Guru

Joined: 05/03/2018
Location: Netherlands
Posts: 5091
Posted: 09:16am 26 Feb 2022
Copy link to clipboard 
Print this post

Yeah, education is sometimes lacking, as is a key locked mainenance switch

Not BS though. Ignored, yes. Work arounds yes, sometimes even pushed from management. Production must continue. But once you lost a hand or arm, you know why this "BS" exists.
PicomiteVGA PETSCII ROBOTS
 
Tinine
Guru

Joined: 30/03/2016
Location: United Kingdom
Posts: 1646
Posted: 09:20am 26 Feb 2022
Copy link to clipboard 
Print this post

  Quote  

Interesting stuff, Volhout. I noticed that simple nodes don't even need a cpu - they are basically a FPGA with a couple of ethernet MACs and connected to some I/O. It's a neat system.



Sounds great.....until you want those nodes to work which is when the system informs you that you need to purchase the thousands of dollars worth of licenses to activate those nodes. Fortunately, it's only company money, right?  
 
Tinine
Guru

Joined: 30/03/2016
Location: United Kingdom
Posts: 1646
Posted: 09:25am 26 Feb 2022
Copy link to clipboard 
Print this post

  Volhout said  Yeah, education is sometimes lacking, as is a key locked mainenance switch

Not BS though. Ignored, yes. Work arounds yes, sometimes even pushed from management. Production must continue. But once you lost a hand or arm, you know why this "BS" exists.


In fact. I was pretty excited about wireless E-stop buttons and a colleague commented "are you crazy?"  

No I'm not crazy....it's impossible to jumper-out a protocol but I have come across "nuisance" hard-wired E-stops that have been bypassed.
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 7938
Posted: 10:13am 26 Feb 2022
Copy link to clipboard 
Print this post

I don't think it really matters if E-stops are wireless as long as they are continuously checked and have to respond with a "safe" message or the thing doesn't run. They also have to be securely welded in position to prevent someone from moving them. That's not easy when they are threaded onto a piece of steel pipe. :)

And there are reasons why E-stop buttons are (or should be) multiple contact loops that feed safety relays and why the access gate to the rear of a press brake should be castell interlocked with the enable switch and why 11,000V switchgear has multiple interlocks and a "chicken" switch by the door so that the operator can open the main incoming feed to the sub without having to stand in front of the breaker ... All good fun. :)
Mick

Zilog Inside! nascom.info for Nascom & Gemini
Preliminary MMBasic docs & my PCB designs
 
Tinine
Guru

Joined: 30/03/2016
Location: United Kingdom
Posts: 1646
Posted: 11:02am 26 Feb 2022
Copy link to clipboard 
Print this post



Maybe I told this before but after 30 years in USA, I'd never even heard of a "PAT tester".

Saturday morning and I believed that, as usual, I was alone in my customer's facility but as it happened, they'd scheduled this PAT guy to do his thing.
I had the electrical panel doors open and my soldering iron, heat-gun etc., laying on the floor. Went to grab a coffee and returned to find this random guy sitting on my stool, testing my stuff and putting little stickers on the plugs....WTF!  

Me: "Are you an electrician?"
Him: "No, I went on a course"
Me: "Did your course teach you what would happen if your left ear comes into contact with 240v AC? Because you're about 200mm away"  

He left real quick. Probably went straight to the men's underwear shelf at Tesco  
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 7938
Posted: 11:09am 26 Feb 2022
Copy link to clipboard 
Print this post

Oh, the joys of the uninitiated...  
Mick

Zilog Inside! nascom.info for Nascom & Gemini
Preliminary MMBasic docs & my PCB designs
 
Tinine
Guru

Joined: 30/03/2016
Location: United Kingdom
Posts: 1646
Posted: 01:31pm 26 Feb 2022
Copy link to clipboard 
Print this post

A bit of perspective.


A bit of perspective.pdf
 
     Page 1 of 3    
Print this page
The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025