ASD-A2 EtherCAT on LinuxCNC

More
3 years 10 months ago - 3 years 10 months ago #258978 by fupeama
Replied by fupeama on topic ASD-A2 EtherCAT on LinuxCNC
Yes guys you are both right and i was wrong.
I made easy experiment.
load function or2 (three times) and connect
siggen.clock -> or2.0.in0
or2.0.out -> or2.1.in0
or2.1.out -> or2.2.in0

wrong order
addf or2.2
addf or2.1
addf or2.0
addf siggen.0.update
three cycles are needed to change the signal at the end of the chain

right order
addf siggen.0.update
addf or2.0
addf or2.1
addf or2.2
only one cycle is needed to change the signal at the end of the chain YOU CAN SEE THE TIME SEQUENCE FROM THE PICTURE
You can see the time sequence from pictures.

I apologize once again for the mystification
Martin

 
Last edit: 3 years 10 months ago by fupeama.
The following user(s) said Thank You: Aciera

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

More
3 years 10 months ago #258986 by db1981
Replied by db1981 on topic ASD-A2 EtherCAT on LinuxCNC
:-)

Yes, that is an very important Case.

I think this behaviour should be better descripted and point out in the Documentation.

If you are not an prof. PLC Programmer or Microcontroller Developer you will never notice this.
And in the most cases this is also not clear to Prof. IT Guys / PC Programmers, cause they all code "event" based and not familar with the processing of realtime / hardware / atomic coding ...

I would say that > 70% of all the tuning problems in this forum are related to wrong execution order. Control Loops can not work, if the basics are wrong.
The following user(s) said Thank You: rodw

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

More
3 years 10 months ago #259190 by mehdidadash

Hi
I found out that if I turn on the drivers first and only the PC after about 10 seconds, then it doesn't make the error.
Thank you.
Jirka
 
thanks jirkam arkadas
1-did you add paramhelper function manually ?
2- did you change delta drives EEPROM to change its state to OP?
3- is it posible to share all liberaries of your project ?

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

More
3 years 4 weeks ago #282284 by Sakhalin_Cat
Hello.
I'm trying to set up an axis on my CNC machine and I can't set up the SCALE using the example files from source codes.
My lcec driver does not have pin: "srv-pos-scale" and pin  -"srv-extenc-scale".
In example file wrotes:
--ini:
SCALE = -5.0
ENC_SCALE = -0.001
--
--hal:
setp lcec.0.W.srv-pos-scale [JOINT_0]SCALE
setp lcec.0.W.srv-extenc-scale [JOINT_0]ENC_SCALE
--
I suspect my problem comes from not being able to set the scale on these pins due to their absence.
--
My CNC machine is equipped with a gearbox with u=32 and a screw with a pitch of 10mm. With a 5mm jog, the machine axis in the draw shows a shift of 5mm, but physically moves only 1.6mm.
Please tell me how to solve this problem.

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

Time to create page: 0.499 seconds
Powered by Kunena Forum