- Configuring LinuxCNC
- Advanced Configuration
- EtherCAT
- IO Questions around mixing IO between Ethercat and Pi 5?
IO Questions around mixing IO between Ethercat and Pi 5?
- jhandel
- Offline
- Premium Member
-
Less
More
- Posts: 158
- Thank you received: 7
08 Jun 2025 13:58 #329948
by jhandel
Replied by jhandel on topic IO Questions around mixing IO between Ethercat and Pi 5?
that EasyCAT is an interesting bit of kit...
Please Log in or Create an account to join the conversation.
- zmrdko
-
- Offline
- Elite Member
-
Less
More
- Posts: 184
- Thank you received: 49
09 Jun 2025 12:35 #330011
by zmrdko
Replied by zmrdko on topic IO Questions around mixing IO between Ethercat and Pi 5?
github.com/zmrdko/3DWorks_EasyCAT/blob/main/3DWorks_EasyCAT.ino
you can find some examples of IO, which I tried.
you can find some examples of IO, which I tried.
Please Log in or Create an account to join the conversation.
- jhandel
- Offline
- Premium Member
-
Less
More
- Posts: 158
- Thank you received: 7
10 Jun 2025 15:52 #330092
by jhandel
Replied by jhandel on topic IO Questions around mixing IO between Ethercat and Pi 5?
looking at your code, are you getting 64 digital inputs and outputs you "could" address over EtherCat?
looking at your code your passing around the digital io around as a single 32bit int and you have 2 of them...
uint32_t outDigitalSet0;
uint32_t outDigitalSet1;
if you mix that with an I2C or SPI extender couldn't those be mapped to an I/O extender of some kind?
looking at your code your passing around the digital io around as a single 32bit int and you have 2 of them...
uint32_t outDigitalSet0;
uint32_t outDigitalSet1;
if you mix that with an I2C or SPI extender couldn't those be mapped to an I/O extender of some kind?
Please Log in or Create an account to join the conversation.
- zmrdko
-
- Offline
- Elite Member
-
Less
More
- Posts: 184
- Thank you received: 49
12 Jun 2025 11:11 #330201
by zmrdko
Replied by zmrdko on topic IO Questions around mixing IO between Ethercat and Pi 5?
i am sorry, it was some time ago. I believe that you can customize PDOs as you need.
Please Log in or Create an account to join the conversation.
- laurentl38
- Offline
- New Member
-
Less
More
- Posts: 18
- Thank you received: 0
04 Jul 2025 20:25 - 04 Jul 2025 20:25 #331266
by laurentl38
Replied by laurentl38 on topic IO Questions around mixing IO between Ethercat and Pi 5?
Hello zmrdko,
I just found your great work with the easycat card.
I'm starting to play with it, and it works great for digital input and output. With 1 encoder, no problem.
However, with 2 or more encoders, it doesn't work... As soon as I change the "QUADENCS" value to greater than 1, I can no longer connect to the easycat card. I get an error with the "easynavigator" software.
Have you ever had this problem?
Do you have any leads?
regards
Laurent
I just found your great work with the easycat card.
I'm starting to play with it, and it works great for digital input and output. With 1 encoder, no problem.
However, with 2 or more encoders, it doesn't work... As soon as I change the "QUADENCS" value to greater than 1, I can no longer connect to the easycat card. I get an error with the "easynavigator" software.
Have you ever had this problem?
Do you have any leads?
regards
Laurent
Attachments:
Last edit: 04 Jul 2025 20:25 by laurentl38.
Please Log in or Create an account to join the conversation.
- zmrdko
-
- Offline
- Elite Member
-
Less
More
- Posts: 184
- Thank you received: 49
07 Jul 2025 14:28 #331449
by zmrdko
Replied by zmrdko on topic IO Questions around mixing IO between Ethercat and Pi 5?
have you edited the Arduino sketch as well?
there is only one encoder defined:
github.com/zmrdko/3DWorks_EasyCAT/blob/m...orks_EasyCAT.ino#L93
lines 98 and 120/121
there is only one encoder defined:
github.com/zmrdko/3DWorks_EasyCAT/blob/m...orks_EasyCAT.ino#L93
lines 98 and 120/121
Please Log in or Create an account to join the conversation.
- laurentl38
- Offline
- New Member
-
Less
More
- Posts: 18
- Thank you received: 0
07 Jul 2025 16:07 - 07 Jul 2025 16:11 #331456
by laurentl38
Replied by laurentl38 on topic IO Questions around mixing IO between Ethercat and Pi 5?
in first time, yes i modified line 98 and add line 121
in second time, i mak a little modification at line 454 :
but the same error still occurs.
in second time, i mak a little modification at line 454 :
but the same error still occurs.
Attachments:
Last edit: 07 Jul 2025 16:11 by laurentl38.
Please Log in or Create an account to join the conversation.
- laurentl38
- Offline
- New Member
-
Less
More
- Posts: 18
- Thank you received: 0
07 Jul 2025 17:20 #331465
by laurentl38
Replied by laurentl38 on topic IO Questions around mixing IO between Ethercat and Pi 5?
it's very strang
I think I found the problem:
If I replace "QuadEncMp[0];" with "4" line 430, 435, ..
it's working.
replace for each encoder
:
#if QUADENCS >= 1
EncCount[0] = Encoder0.read()/QuadEncMp[0];
by
#if QUADENCS >= 1
EncCount[0] = Encoder0.read()/4;
I think I found the problem:
If I replace "QuadEncMp[0];" with "4" line 430, 435, ..
it's working.
replace for each encoder
:
#if QUADENCS >= 1
EncCount[0] = Encoder0.read()/QuadEncMp[0];
by
#if QUADENCS >= 1
EncCount[0] = Encoder0.read()/4;
Please Log in or Create an account to join the conversation.
- Configuring LinuxCNC
- Advanced Configuration
- EtherCAT
- IO Questions around mixing IO between Ethercat and Pi 5?
Time to create page: 0.088 seconds