Hello,
I'm trying to scan an ethercat network to compute the number of slaves on it with CodeSys.
My ethercat configuration look like this :
Ethercat Master
ββ Ethercat Slave A
ββ Ethercat Slave B
ββ Ethercat Slave C
I'm using a function called "ReadNbrSlaves" from the EtherCATStackLibrary (documentation here). I tried with the provided code example from the documentation which is :
I can flash this code on the PLC without errors.
However as soon as I try to run the program I get a message saying "No source code available for this object because it is in the compiled library 'caa behaviour model 3.5.11 (caa technical workgroup)'. Do you want to browse for the original library in order to display the source code ?"
If I say "Yes" the file browser pops up but I have no idea what CodeSys is expecting me to point at... If I say "No" another error message pops-up and I get an exception that stops the program.
Now the really weird part is that if I add a 50 ms timer before starting the execution of "ReadNbrSlaves" it works just fine (the result of the function is correct and there is no more exceptions).
I should also say that the program runs in a task with a 3ms cycle time.
Does somebody know why this happens ? By the way I'm using CodeSys 3.5.16 and the program is running on a raspbian.
Thank you for your help
Hello,
I'm trying to scan an ethercat network to compute the number of slaves on it with CodeSys.
My ethercat configuration look like this :
Ethercat Master
ββ Ethercat Slave A
ββ Ethercat Slave B
ββ Ethercat Slave C
I'm using a function called "ReadNbrSlaves" from the EtherCATStackLibrary (documentation here). I tried with the provided code example from the documentation which is :
I can flash this code on the PLC without errors.
However as soon as I try to run the program I get a message saying "No source code available for this object because it is in the compiled library 'caa behaviour model 3.5.11 (caa technical workgroup)'. Do you want to browse for the original library in order to display the source code ?"
If I say "Yes" the file browser pops up but I have no idea what CodeSys is expecting me to point at... If I say "No" another error message pops-up and I get an exception that stops the program.
Now the really weird part is that if I add a 50 ms timer before starting the execution of "ReadNbrSlaves" it works just fine (the result of the function is correct and there is no more exceptions).
I should also say that the program runs in a task with a 3ms cycle time.
Does somebody know why this happens ? By the way I'm using CodeSys 3.5.16 and the program is running on a raspbian.
Thank you for your help
Best regards
Last edit: paulpotat 2021-09-16
Please any help is appreciated, even if it's not a full solution to my issue (;-;)