- Posts: 56
- Thank you received: 0
Retrofit Gloria Europa 2/40 machining centre
This is dmesg output
Please Log in to join the conversation.
What is your hm2_pci config string?
Please Log in to join the conversation.
1. Correct firmware that matches the daughter card(s) (you appear to have firmware for a 7I77 on P3 (DB25) and a 7I76 onP2 (header)
2. Field,VIN and 5V power to the daughtercards ( both daughtercards W1s should be in the left hand positions
and the two yellow LEDs on the top edge of the daughter card should be illuminated)
Please Log in to join the conversation.
There is a configurations on main hal file that i think is wrong, i have this lines for X axis:
The x-pos-fb signal cannot be connected to hm2_5i25.0.stepgen.00.position-fb and to hm2_5i25.0.encoder.00.position.
The first is for stepper motor without erncoder. I have servo motor with encoder, the driver input signal is step and dir.
I can connect x-pos-fb to hm2_5i25.0.encoder.00.position and remove the first line is correct?
Another question is about PID, the main HAL load PID module but using step and dir signals can I remove it and all related configuration or not?
Please Log in to join the conversation.
backtime wrote: The x-pos-fb signal cannot be connected to hm2_5i25.0.stepgen.00.position-fb and to hm2_5i25.0.encoder.00.position.
The first is for stepper motor without erncoder. I have servo motor with encoder, the driver input signal is step and dir.
If the encoder goes back to LinuxCNC then it does seem to be the one to use.
Where is the position control loop?
Please Log in to join the conversation.
Motor encoder is connected to driver, then the driver have a "virtual encoder programmable output"andypugh wrote: Where is the position control loop?
connected to mesa card. So i can use this output to driver motor position feedback.
For the PID i don't understand if it is required driving motor with step and dir signals, i think
i can do without, tomorrow I'll try to comment PID module and settings and make some test.
Thank you Andy.
Please Log in to join the conversation.
if you have encoder feedback you connect
x-pos-fb to hm2_5i25.0.encoder.00.position
if you have a open loop step system you connect
x-pos-fb to hm2_5i25.0.stepgen.00.position-fb
tuning will be different in the 2 cases but the basic PID/hal file structure remains the same
Please Log in to join the conversation.
Without feedback what is the advantage of PID?
For example it the case of simple systems with stepper motors without encoder what use would have the PID?
Thanks for your time.
Please Log in to join the conversation.
LinuxCNC step generators _always_ have feedback, you can use the built in feedback
by using the stepgen in position mode (its still a feedback loop, its just hidden from you in the driver)
The advantages of bringing the stepgen control loop out in the open with hal are mainly
1. The built in driver is less tolerant of host jitter
2. The PID tuning can be optimized to be more accurate than the
built in driver (with FF2 for example)
3. internal/external feedback systems are now equivalent structurally
so if you want change between encoder feedback or no encoder feedback
in a step/dir system, its trivial
Please Log in to join the conversation.
- Todd Zuercher
- Offline
- Platinum Member
-
- Posts: 4739
- Thank you received: 2
backtime wrote: This is exactly what I do not understand, I thought that the use of PID requires a feedback system for pin pid.N.feedback.
Without feedback what is the advantage of PID?
For example it the case of simple systems with stepper motors without encoder what use would have the PID?
Thanks for your time.
Linuxcnc is designed in a way that it always requires some form of position feed back. A long long time ago, a very clever person created a way to work around this for open loop stepping by making a step generator that sends a sudo position feedback back to Linuxcnc. It is this artificial position from the step-generator that is used in the PID.
Please Log in to join the conversation.
