IO Questions around mixing IO between Ethercat and Pi 5?

More
1 year 4 months ago #329897 by rodw

Howdy all,
     I am working out the high level architecture (and ordering) for a Ethercat retrofit of my CNC Mill ( its VFD is dying and its as good an excuse as any to re work may decisions I made on it when I converted it to LinuxCNC the first time).. 

Anyways, I am looking at the MPG and realizing that I have open IO pins on my pi (like all of them).

So here is my current "plan" for I/O which I would love feedback on 

1x EK1100 - Ethercat to FieldBus coupler
2x EL1819  - 16 inputs (I need 28 so 2 it is) - (the response time is killer vs the EL1809)
1x EL2819 - 16 output (need 11 so that works)
1x EL5151 - Encoder for the MPG  <-- this is where I would love feedback because this guy is $250 used

The really open question is what risks on integration and general PITA am I facing if I use my Pi's IO pins to handle MPG encoder rather than the spendy EL5151. 

I plan to use either Leadshine or Innovance mult-turn servos for all of my motors and spindle so my only current known need for an encoder is the MPG...  This is less a question of "can I mix Ethercat with Pi IO pins" and more a question of "should I"... Am I setting myself up for sparks and pain getting the realtime thread where the Pi IO will come in syncing with the rest of the system that is all running on the Server Thread? 

To that end, should I be using other parts of the Pi's IO for emergency stuff like e-stop? 

Thanks in advance. 

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

More
1 year 4 months ago #329918 by jhandel
hey @rodw, was there something you wanted to add? looks like you just quoted my original post.... I know you have a lot of experience in this area, i have read more than a few of your posts so would love your input.

Thanks

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

More
1 year 4 months ago #329921 by rodw
Yeh, my post must have broke. If you look a bit harder on eBay you will find better priced moduled for around $130. Some want stupid money. Don;t be frightened of buying from other countries...

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

More
1 year 4 months ago #329924 by zmrdko
You can also have a look at the EasyCAT:
www.bausano.net/shop/gb/home/1-arduino-ethercat.html

you can hook encoder pretty easily to that for much cheaper. And it is also quite flexible.
Encoder counting happens on arduino and current count is sent over EtherCAT to LinuxCNC, which saves you some hal configuration.

RE: EL1819 vs EL1809 response time - i think it includes signal debuncing, so 3ms does not necessarily have to be bad, because it's slower than 10us.

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

More
1 year 4 months ago #329948 by jhandel
that EasyCAT is an interesting bit of kit...

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

More
1 year 4 months ago #330011 by zmrdko

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

Time to create page: 0.387 seconds
Powered by Kunena Forum