Ethercat HAL driver

More
10 years 2 months ago #78856 by mfalcon
Replied by mfalcon on topic Ethercat HAL driver

sirop wrote:

mfalcon wrote:

sirop wrote:

Code:
[ 133.613219] EtherCAT ERROR 0 0:1: PDO entry 0x6000:01 is not mapped. [ 133.613226] LCEC: master 0 PDO entry registration failed

That's the point to research.


thanks for help.
but I searched over here and in internet and still and I could not figure out what is the cause or remedy of this problem. I used the example xml file by sascha, so where is the mistake?

one more question too: Am I supposed to be connected online to all devices that are defined in xml file during start up of linuxcnc with hal driver?? may be this what causes error ?


Which xml file by sascha is that?



this one:
github.com/sittner/linuxcnc-ethercat/blo.../ethercat-conf_X.xml

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

More
10 years 2 months ago #78857 by sirop
Replied by sirop on topic Ethercat HAL driver
And what slaves do you really have on the EtherCAT network?

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

More
10 years 2 months ago #78859 by narogon
Replied by narogon on topic Ethercat HAL driver

sirop wrote: Do you get this

Code:
[ 6342.761973] EtherCAT WARNING 0: 124 datagrams TIMED OUT! ... [ 6352.575153] EtherCAT ERROR 0-14: Failed to set SAFEOP state, slave refused state change (PREOP + ERROR). [ 6352.579146] EtherCAT ERROR 0-14: Unknown AL status code 0x002E.
before starting the threads of the HAL script?


No, I get that after start HAL script.

sirop wrote:
Do you see

Code:
EtherCAT WARNING 0: 124 datagrams TIMED OUT!
also if you use less slaves?


That doesn't appears always. Here is other test:
Code:
[ 45.523043] EtherCAT: Requesting master 0... [ 45.523046] EtherCAT: Successfully requested master 0. [ 45.525861] EtherCAT 0: Domain0: Logical address 0x00000000, 405 byte, expected working counter 45. [ 45.525863] EtherCAT 0: Datagram domain0-0-main: Logical offset 0x00000000, 405 byte, type LRW. [ 45.525870] EtherCAT 0: Master thread exited. [ 45.525872] EtherCAT 0: Starting EtherCAT-OP thread. [ 45.539360] EtherCAT WARNING 0: No app_time received up to now, but master already active. [ 50.882757] EtherCAT WARNING 0-0: Slave did not sync after 5000 ms. [ 50.892744] EtherCAT 0: Domain 0: Working counter changed to 2/45. [ 51.895136] EtherCAT 0: Domain 0: 2 working counter changes - now 6/45. [ 52.897526] EtherCAT 0: Domain 0: 3 working counter changes - now 12/45. [ 53.899916] EtherCAT 0: Domain 0: 3 working counter changes - now 18/45. [ 54.902308] EtherCAT 0: Domain 0: 3 working counter changes - now 24/45. [ 55.449424] EtherCAT ERROR 0-13: Failed to set SAFEOP state, slave refused state change (PREOP + ERROR). [ 55.453418] EtherCAT ERROR 0-13: Unknown AL status code 0x002E. [ 55.459407] EtherCAT 0-13: Acknowledged state PREOP. [ 55.906692] EtherCAT 0: Domain 0: Working counter changed to 26/45. [ 56.136324] EtherCAT ERROR 0-14: Failed to set SAFEOP state, slave refused state change (PREOP + ERROR). [ 56.140319] EtherCAT ERROR 0-14: Unknown AL status code 0x002E. [ 56.148304] EtherCAT 0-14: Acknowledged state PREOP. [ 56.152327] EtherCAT 0: Slave states on main device: PREOP, OP.

sirop wrote:
AL status code 0x002E is indeed unknown.

Besides all that:

0055-fsm_slave_config_scan-to-fsm_slave.patch
...
The motivating case was a network of about 100 slave devices; while scanning
is fast (under a second, after prior SII patches), the configuration process
to bring the slaves from PREOP to OP took about 80 seconds (and you could
see the lights coming on each slave in sequence). After the patch it takes
about 20 seconds.

lists.etherlab.org/pipermail/etherlab-dev/2016/000553.html


I'm going to read the last link, test it and comment the results.

BR

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

More
10 years 2 months ago - 10 years 2 months ago #78861 by mfalcon
Replied by mfalcon on topic Ethercat HAL driver
@sirop
currently EK1100 coupler, but I did not connect it during starting of linuxcnc , because i was thinking that xml file will be used to check the slaves when I press "run" button in linuxcnc gui.
Last edit: 10 years 2 months ago by mfalcon.

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

More
10 years 2 months ago #78863 by sirop
Replied by sirop on topic Ethercat HAL driver

No, I get that after start HAL script.


A quick test would be not to start the threads immediately, but wait 30 seconds
and check the logs.

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

More
10 years 2 months ago #78864 by sirop
Replied by sirop on topic Ethercat HAL driver

mfalcon wrote: @sirop
currently EK1100 coupler, but I did not connect it during starting of linuxcnc , because i was thinking that xml file will be used to check the slaves when I press "run" button in linuxcnc gui.


Connect your EK1100 and use this XML file:
Code:
<masters> <master idx="0" appTimePeriod="1000000" refClockSyncCycles="1000"> <slave idx="0" type="EK1100" name="D1"/> </master> </masters>

linuxcnc-ethercat does not check the status of a slave if the master could not configure this slave before because this slave was off-line.

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

Time to create page: 2.035 seconds
Powered by Kunena Forum