Ethercat HAL driver
24 Feb 2021 09:03 #199943
by db1981
Replied by db1981 on topic Ethercat HAL driver
@bkt
-this is very strange now. Lcnc ethercat doesn't initialize slave 6.
-you don't need to connect a pin from the device in the hal
-no dc config needed for initialization
-please attach ini, hal, and the xml as file (i think it needs an deeper look)
-to avoid strange seetings, do a factory reset of the card: "ethercat download -p6 0x1011 0x01 0x64616F6C --type uint32" -> few seconds -> power cycle
-this is very strange now. Lcnc ethercat doesn't initialize slave 6.
-you don't need to connect a pin from the device in the hal
-no dc config needed for initialization
-please attach ini, hal, and the xml as file (i think it needs an deeper look)
-to avoid strange seetings, do a factory reset of the card: "ethercat download -p6 0x1011 0x01 0x64616F6C --type uint32" -> few seconds -> power cycle
The following user(s) said Thank You: bkt
Please Log in or Create an account to join the conversation.
24 Feb 2021 12:30 - 24 Feb 2021 12:36 #199969
by bkt
After these it work Great. You Know You Are Right
Very thanks
First time on ethercat linuxcnc very great.
Any how I load My hal/ini/xml file
Replied by bkt on topic Ethercat HAL driver
-to avoid strange seetings, do a factory reset of the card: "ethercat download -p6 0x1011 0x01 0x64616F6C --type uint32" -> few seconds -> power cycle
After these it work Great. You Know You Are Right
Very thanks
First time on ethercat linuxcnc very great.
Any how I load My hal/ini/xml file
Last edit: 24 Feb 2021 12:36 by bkt.
Please Log in or Create an account to join the conversation.
24 Feb 2021 13:17 #199976
by db1981
Replied by db1981 on topic Ethercat HAL driver
really? not it's working, goes to op?
Sadly we don't know which setting prevent communication, strange that the master gives no errors...
Has this been an brand new card from factory, or has it been used anywhere else before?
We keep in mind: next time, for the first thing do an factory reset
Did you randomly saved an ethercat configurator or twincat file, before the card has been reseted? can you attach this,
i wan't to know what has been the bug.
Sadly we don't know which setting prevent communication, strange that the master gives no errors...
Has this been an brand new card from factory, or has it been used anywhere else before?
We keep in mind: next time, for the first thing do an factory reset
Did you randomly saved an ethercat configurator or twincat file, before the card has been reseted? can you attach this,
i wan't to know what has been the bug.
The following user(s) said Thank You: bkt
Please Log in or Create an account to join the conversation.
24 Feb 2021 16:33 #199999
by bkt
Yes it work and go to OP .... I've attach the signal of el5151 to an eoffset and it work very great ... thanks again and thanks to dgarret for these component (I've mine old one ... but not work so fine like these of dgarret).
unfortunately it was a used piece .... but from ethercat-configurator I hadn't seen anything so abnormal.
I am a beginner with ethercat and I have not saved anything beyond what I have posed here.
Rather .... every now and then during the various configurations (I added an eoffset) every now and then the drives no longer go to OP ... PREOP and then in OP. This INIT-> SAFEOP-> PROP-> OP cycle is obtained by first removing power from the drives and then starting Lcnc. But it is rather inconvenient .... how can I do it from hal and then from the interface? can you?
bkt
Replied by bkt on topic Ethercat HAL driver
We keep in mind: next time, for the first thing do an factory reset
Did you randomly saved an ethercat configurator or twincat file, before the card has been reseted? can you attach this,
i wan't to know what has been the bug.
Yes it work and go to OP .... I've attach the signal of el5151 to an eoffset and it work very great ... thanks again and thanks to dgarret for these component (I've mine old one ... but not work so fine like these of dgarret).
unfortunately it was a used piece .... but from ethercat-configurator I hadn't seen anything so abnormal.
I am a beginner with ethercat and I have not saved anything beyond what I have posed here.
Rather .... every now and then during the various configurations (I added an eoffset) every now and then the drives no longer go to OP ... PREOP and then in OP. This INIT-> SAFEOP-> PROP-> OP cycle is obtained by first removing power from the drives and then starting Lcnc. But it is rather inconvenient .... how can I do it from hal and then from the interface? can you?
bkt
Please Log in or Create an account to join the conversation.
24 Feb 2021 17:06 - 24 Feb 2021 17:07 #200003
by db1981
Replied by db1981 on topic Ethercat HAL driver
eoffset? external offset comp?
please explain the rest a little bit clearer for me... (may be my english interpreter ).
i can't detect the problem you have.
you can force the application state with the command "ethercat states (INIT,PREOP,BOOT,SAFEOP,OP)"
please explain the rest a little bit clearer for me... (may be my english interpreter ).
i can't detect the problem you have.
you can force the application state with the command "ethercat states (INIT,PREOP,BOOT,SAFEOP,OP)"
Last edit: 24 Feb 2021 17:07 by db1981.
The following user(s) said Thank You: bkt
Please Log in or Create an account to join the conversation.
24 Feb 2021 17:24 - 24 Feb 2021 17:31 #200006
by bkt
No worry, the same for me .... I also have to read a post written by a US-man 10 times and a post written by a UK-man 8 times before I understand the exact meaning .... but that's how you learn. Usually English written by EU-man or Asia-man is more readable for me.
Yes, of course I needed the el5151 to make an external offset. Some time ago I made a similar customized component ... to work it works, but I never liked it because it has problems with the axis limits and with the accelerations once you do a "dynamic" reset. The component that made dgarret on the other hand is fantastic. Just write this:
But of course But without your help I couldn't catch the encoder ....
Ok. but is possible inside .hal file? For example with pyvcp.button-reset-fails-drive signal?
Replied by bkt on topic Ethercat HAL driver
please explain the rest a little bit clearer for me... (may be my english interpreter ).
No worry, the same for me .... I also have to read a post written by a US-man 10 times and a post written by a UK-man 8 times before I understand the exact meaning .... but that's how you learn. Usually English written by EU-man or Asia-man is more readable for me.
eoffset? external offset comp?
Yes, of course I needed the el5151 to make an external offset. Some time ago I made a similar customized component ... to work it works, but I never liked it because it has problems with the axis limits and with the accelerations once you do a "dynamic" reset. The component that made dgarret on the other hand is fantastic. Just write this:
#****** eoffset Y axis part *********
setp axis.y.eoffset-scale 0.1
setp lcec.0.6.enc-pos-scale 12.738853503
net enc-value-float conv-float-s32.0.in <= lcec.0.6.enc-pos
net enc-value conv-float-s32.0.out => axis.y.eoffset-counts
#net enc-offset-enable <= axis.y.eoffset-enable #for now I use a pyvcp_panel.hal logic to enable eoffset & lcec.0.6
#net enc-offset-clear <= axis.y.eoffset-clear #for now I use a pyvcp_panel.hal logic to reset eoffset & lcec.0.6
But of course But without your help I couldn't catch the encoder ....
you can force the application state with the command "ethercat states (INIT,PREOP,BOOT,SAFEOP,OP)"
Ok. but is possible inside .hal file? For example with pyvcp.button-reset-fails-drive signal?
Last edit: 24 Feb 2021 17:31 by bkt.
Please Log in or Create an account to join the conversation.
24 Feb 2021 19:43 #200016
by db1981
Replied by db1981 on topic Ethercat HAL driver
thanks for the explanation.
-adding your eoffset part has nothing to do with the field bus behaviour.
-This is an industrial realtime Bus System, under no circumstances any slave should lost its OP State , after you have startet your system. Even with an normal fault the drive should stay op, go to error state, sends error flags etc.
If you not hang off the drives cpu, power it off, or cut the ethernet cable in your running System, all has to stay OP !!
If an slave lost its OP state, there must be fundamental error in the system.
Examble: Power supply, Jitter, dc clock lost, hf disorder, wrong grounding etc.....
What happens at the moment the drive lost its OP State ? What Drives are this?
-adding your eoffset part has nothing to do with the field bus behaviour.
-This is an industrial realtime Bus System, under no circumstances any slave should lost its OP State , after you have startet your system. Even with an normal fault the drive should stay op, go to error state, sends error flags etc.
If you not hang off the drives cpu, power it off, or cut the ethernet cable in your running System, all has to stay OP !!
If an slave lost its OP state, there must be fundamental error in the system.
Examble: Power supply, Jitter, dc clock lost, hf disorder, wrong grounding etc.....
What happens at the moment the drive lost its OP State ? What Drives are this?
The following user(s) said Thank You: bkt
Please Log in or Create an account to join the conversation.
24 Feb 2021 20:56 #200024
by chimeno
Replied by chimeno on topic Ethercat HAL driver
Hello @bkt
He does not answer you because the user @db1981 knows a lot more than I do, if someone can help you it is him.
Greeting
Chimeno
Seems I'm a very lucky man. ....... Thanks for the advice and I hope in your or Chimeno help tomorrow.
Good Night
He does not answer you because the user @db1981 knows a lot more than I do, if someone can help you it is him.
Greeting
Chimeno
The following user(s) said Thank You: tommylight, bkt
Please Log in or Create an account to join the conversation.
25 Feb 2021 09:47 #200077
by bkt
Replied by bkt on topic Ethercat HAL driver
I see I explain me bad.
I started working with linuxcnc-ethercat installation in May .... in June I started my motors and let them go on the test bench, without gearboxes or mechanical loads, at the end of August. So hundreds of hours of system testing. No anomaly detected. Now that I have the motors installed on the machine I see the same thing so it goes without saying that everything works as you say and I made sure my cpu and my ethernet port held everything up.
Normal usage: These is all ok.
What happens: every now and then, when I turn on the machine or when I re-turn on linuxcnc after closing linuxcnc but not the machine, only on these occasions and never during work .... the drives do not go to OP. Yes, sure for initial communication anomalies ... in fact sometimes drive 0 does not go to OP, sometimes 1, sometimes none. The elxxx modules always work correctly (apart from the episode with el5151 which, however, we said to be my cause, I took it used and did not know it was better to reset). What should I do in these cases:
I turn off the power of the drives and turn them off (I remove the connectors from the drives).
This way when I power up the drives they go into INIT. When I start linuxcnc the drives go to SAFEOP then PREOP and when I press the enable button they finally go to OP so everything works fine.
Now I think this depends on communication problems (grounding ?, spike? ... the pc is powered in 24Vdc with filtered power supply .... I don't think so .... bad filters in the drives? Maybe .... rather it will be due to excessive delay of the ethercat line at power up due to a non-optimal hardware ....).
in any case I was wondering if it was possible to avoid disconnecting the power from the drives and performing the same procedure via software, then putting the drives first in INIT (so they are forced to start a new connection and reset the buffers) and then re-initialize the ignition of linuxcnc ..... if there is a way to always put the drives in INIT before starting linuxcnc it is fine. Can I use a script or a C ++ program to do this I ask.
Very thanks for all.
bkt
I started working with linuxcnc-ethercat installation in May .... in June I started my motors and let them go on the test bench, without gearboxes or mechanical loads, at the end of August. So hundreds of hours of system testing. No anomaly detected. Now that I have the motors installed on the machine I see the same thing so it goes without saying that everything works as you say and I made sure my cpu and my ethernet port held everything up.
Normal usage: These is all ok.
What happens: every now and then, when I turn on the machine or when I re-turn on linuxcnc after closing linuxcnc but not the machine, only on these occasions and never during work .... the drives do not go to OP. Yes, sure for initial communication anomalies ... in fact sometimes drive 0 does not go to OP, sometimes 1, sometimes none. The elxxx modules always work correctly (apart from the episode with el5151 which, however, we said to be my cause, I took it used and did not know it was better to reset). What should I do in these cases:
I turn off the power of the drives and turn them off (I remove the connectors from the drives).
This way when I power up the drives they go into INIT. When I start linuxcnc the drives go to SAFEOP then PREOP and when I press the enable button they finally go to OP so everything works fine.
Now I think this depends on communication problems (grounding ?, spike? ... the pc is powered in 24Vdc with filtered power supply .... I don't think so .... bad filters in the drives? Maybe .... rather it will be due to excessive delay of the ethercat line at power up due to a non-optimal hardware ....).
in any case I was wondering if it was possible to avoid disconnecting the power from the drives and performing the same procedure via software, then putting the drives first in INIT (so they are forced to start a new connection and reset the buffers) and then re-initialize the ignition of linuxcnc ..... if there is a way to always put the drives in INIT before starting linuxcnc it is fine. Can I use a script or a C ++ program to do this I ask.
Very thanks for all.
bkt
Please Log in or Create an account to join the conversation.
25 Feb 2021 09:50 - 25 Feb 2021 09:51 #200078
by bkt
Very thanks for reply ... I write your name only because db1981 write " I reply you tomorrow xxxxx" and wrote your name in the post.
I didn't want to pull anyone by the jacket. It was a form of respect.
I may not have made it very clear that I greatly appreciated the help received from db1981.
I'm just sorry to have bothered for such a stupid thing.
Very thanks
bkt
Replied by bkt on topic Ethercat HAL driver
Hello @bkt
He does not answer you because the user @db1981 knows a lot more than I do, if someone can help you it is him.
Greeting
Chimeno
Very thanks for reply ... I write your name only because db1981 write " I reply you tomorrow xxxxx" and wrote your name in the post.
I didn't want to pull anyone by the jacket. It was a form of respect.
I may not have made it very clear that I greatly appreciated the help received from db1981.
I'm just sorry to have bothered for such a stupid thing.
Very thanks
bkt
Last edit: 25 Feb 2021 09:51 by bkt.
Please Log in or Create an account to join the conversation.
Time to create page: 0.204 seconds