Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with using IOM ECT -- ec_SDOwrite failed #830

Open
gzovermas opened this issue Jun 27, 2024 · 4 comments
Open

Problem with using IOM ECT -- ec_SDOwrite failed #830

gzovermas opened this issue Jun 27, 2024 · 4 comments

Comments

@gzovermas
Copy link

We had use SOEM with Beckhoff IOs and servo drives sucessfully, but with IOM ECT we have problems.
We have 4 sub modules: 32DI, 32DO, 4AI, 4AO
IOM ECT modules
the xml file of this module is below:
IOM ECT-V1.2_xml.txt
We can config and use it with codesys
微信图片_20240627100407
微信图片_20240627100414
But when we change back to soem, it can't be auto config. the slave_info below
slaveinfo_map.txt
slaveinfo_sdo.txt
We had try to reconfig the pdo, but found that ec_SDOwrite() always return 0, the test code like below:

u8val = 0;
res = ec_SDOwrite(1, 0x1c13, 0x00, FALSE, sizeof(u8val), &u8val, EC_TIMEOUTRXM);
printf("write 1c13.00 : %d\n", res);

We had try to trace the code in ethercatcod.c, and found that in <ecx_SDOwrite> function:
1719454176490
the judgement returns false, so abort.
the value of etohs(aSDOp->CANOpen)>> 12 is 0(should be 3)
the value of aSDOp->Index is 1c00(should be 1c13)

Is there any suggestion? Thx a lot

@gzovermas
Copy link
Author

The manufacture said their products doesn't support pdo assignment, and won't config pdo using sdo. How can I do then? Does SOEM can support this module?

@toshisanro
Copy link

I've had the same issue before, the slave's SM 2 and SM3 are empty ,you should config the SMs manually.

@gzovermas
Copy link
Author

I've had the same issue before, the slave's SM 2 and SM3 are empty ,you should config the SMs manually.

how can i config SMs? is there any example? thx a lot

@ArthurKetels
Copy link
Contributor

There are plenty examples here in the issues. Just use search. And as always, first read the documentation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants