IO Questions around mixing IO between Ethercat and Pi 5?

More
08 Jun 2025 13:58 #329948 by jhandel
that EasyCAT is an interesting bit of kit...

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

More
09 Jun 2025 12:35 #330011 by zmrdko

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

More
10 Jun 2025 15:52 #330092 by jhandel
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?

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

More
12 Jun 2025 11:11 #330201 by zmrdko
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.

More
04 Jul 2025 20:25 - 04 Jul 2025 20:25 #331266 by laurentl38
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
Attachments:
Last edit: 04 Jul 2025 20:25 by laurentl38.

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

More
07 Jul 2025 14:28 #331449 by zmrdko
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

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

More
07 Jul 2025 16:07 - 07 Jul 2025 16:11 #331456 by laurentl38
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.

 

File Attachment:

File Name: 3DWorks_EasyCAT.zip
File Size:5 KB
Attachments:
Last edit: 07 Jul 2025 16:11 by laurentl38.

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

More
07 Jul 2025 17:20 #331465 by laurentl38
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;

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

Time to create page: 0.088 seconds
Powered by Kunena Forum