Hi,
I am using a Beckhoff 1100 coupler, EL3068 Analog Module, and a EL2809 Digital
Output Module. I have the master running and my application can create the
master, create a domain, get all slave configurations, and send the slaves its
sync structures from the ethercat cstruct tool output. The issue lies in
sending the domain the pdo entry list.
So a flow chart of what I am trying to do is as follows:
Create Master SUCCEEDS
Create Domain SUCCEEDS
Get Slave Count / Slave Information SUCCEEDS (3 slaves, all information
received)
Get Slave Configurations SUCCEEDS
Send Sync Structures SUCCEEDS
Register PDO Entry List In Domain FAILS
Activate Master ...
Get Domain Process Data ...
Start Task For Reading Data Registers ...
Here is the code that I am using to send the entry list (simplified from the
actual code I am using since I am reading a ton of other registers, but I
tried this code as well and it does indeed flag the same error):
***********************************************************************
....
// create structure for entry points
ec_pdo_entry_reg_t domain_regs[2];
// loop through and generate all entry points
domain_regs[0] = { alias, position, product_id, vendor_id, 0x7000, 0x01 ,
EL2809_digout_offset[0], NULL };
// terminate last point with empty structure elements of 0's
domain_regs[1] = { 0, 0, 0, 0, 0, 0, 0, 0 };
// I actually have 32 entry points in the full code snipet, 16 for the analog
module, and 16 for the digital outputs
// register the all devices in the domain
if (ecrt_domain_reg_pdo_entry_list(domain, domain_regs) != 0) {
return Init_Ethercat_Domain_Register_Failed;
}
***********************************************************************
The error I am getting when I go to send the entry list is as follows:
Failed to create slave config: No such file or directory
I am not sure what this means...since I have successfully received the slave
configurations before this code is executed...I would think it would flag a
domain PDO error when that fails?
Any help would be great! Thank you! :)
Derrill Vezina
Electrical Engineer
Caron Engineering Inc.
[email protected]<mailto:[email protected]>
Office: (207)646-6071 ext. 360
Direct: (207)641-6839
_______________________________________________
etherlab-users mailing list
[email protected]
http://lists.etherlab.org/mailman/listinfo/etherlab-users