- Posts: 5
- Thank you received: 0
Qtdragon for lathe??
1 year 8 months ago #322773
by HenkvE
I'll post it as soon as I can.
After posting the files I changed the .ini settings: OUTPUT_SCALE =value to 1000 and it partially solved the issue. My Spindle output range is now 0-10V for forward rotation. However, this seems not to be an absolute value. There are various other posts that use completely different values that work for them. I haven't been able to find the parameters than influence the required value of OUTPUT_SCALE. It is pure coincidence that I stumbled upon this solution. It only works for forward rotation but not for reverse rotation. I would however like to rotate the spindle both ways.
[SPINDLE_0]
P = 0.0
I = 0.0
D = 0.0
FF0 = 1.0
FF1 = 0.0
FF2 = 0.0
BIAS = 0.0
DEADBAND = 0.0
MAX_OUTPUT = 2000.0
ENCODER_SCALE = -400.0
OUTPUT_SCALE = 1000
OUTPUT_MIN_LIMIT = 10
OUTPUT_MAX_LIMIT = 2000
Replied by HenkvE on topic Qtdragon for lathe??
After posting the files I changed the .ini settings: OUTPUT_SCALE =value to 1000 and it partially solved the issue. My Spindle output range is now 0-10V for forward rotation. However, this seems not to be an absolute value. There are various other posts that use completely different values that work for them. I haven't been able to find the parameters than influence the required value of OUTPUT_SCALE. It is pure coincidence that I stumbled upon this solution. It only works for forward rotation but not for reverse rotation. I would however like to rotate the spindle both ways.
[SPINDLE_0]
P = 0.0
I = 0.0
D = 0.0
FF0 = 1.0
FF1 = 0.0
FF2 = 0.0
BIAS = 0.0
DEADBAND = 0.0
MAX_OUTPUT = 2000.0
ENCODER_SCALE = -400.0
OUTPUT_SCALE = 1000
OUTPUT_MIN_LIMIT = 10
OUTPUT_MAX_LIMIT = 2000
Please Log in to join the conversation.
1 year 8 months ago #322896
by cmorley
Replied by cmorley on topic Qtdragon for lathe??
Hopefully this helps with the settings.
If you use 0-10 volt input then you can only have positive voltage output.
using +5 and -5 volt input:
output scale defines what value will give full voltage output (+-2000 RPM = full voltage +-5 volts)
output min limit defines lowest value allowed (-2000 or negative full voltage)
output max limit defines highest value allowed (2000 or positive full voltage)
The spindle speed command range would be -2000 to 2000 RPM with output swing from -5 to 5 volts
using +5 and -5 volt input:
output scale defines what value will give full voltage output (+-4000 RPM = lets say 5 volts)
output min limit defines lowest value allowed (-2000 or -2.5 volts )
output max limit defines highest value allowed (2000 or 2.5 volts)
The spindle speed command range would be -2000 to 2000 RPM with output swing from -2.5 to 2.5 volts
output scale defines what value will give full voltage output (+-2000 RPM = full voltage +-5 volts)
output min limit defines lowest value allowed (-2000 or negative full voltage)
output max limit defines highest value allowed (2000 or positive full voltage)
The spindle speed command range would be -2000 to 2000 RPM with output swing from -5 to 5 volts
With 0 to 10 volt input
output scale defines what value will give full voltage output (+4000 RPM = 10 volts)
output min limit defines lowest value allowed (0 or 0 volts can't supply negative voltage)
output max limit defines highest value allowed (4000 or 10 volts)
The spindle speed command range would be 0 to 4000 RPM with output swing from 0 to 10 volts
You would need a reversing relay to run in reverse.
There can be other reasons the spindle does not run at low speeds such as VFD settings of minimium rpm etc.
If you use 0-10 volt input then you can only have positive voltage output.
using +5 and -5 volt input:
Code:
OUTPUT_SCALE = 2000
OUTPUT_MIN_LIMIT = -2000
OUTPUT_MAX_LIMIT = 2000
output scale defines what value will give full voltage output (+-2000 RPM = full voltage +-5 volts)
output min limit defines lowest value allowed (-2000 or negative full voltage)
output max limit defines highest value allowed (2000 or positive full voltage)
The spindle speed command range would be -2000 to 2000 RPM with output swing from -5 to 5 volts
using +5 and -5 volt input:
Code:
OUTPUT_SCALE = 4000
OUTPUT_MIN_LIMIT = -2000
OUTPUT_MAX_LIMIT = 2000
output scale defines what value will give full voltage output (+-4000 RPM = lets say 5 volts)
output min limit defines lowest value allowed (-2000 or -2.5 volts )
output max limit defines highest value allowed (2000 or 2.5 volts)
The spindle speed command range would be -2000 to 2000 RPM with output swing from -2.5 to 2.5 volts
Code:
OUTPUT_SCALE = 2000 OUTPUT_MIN_LIMIT = -2000 OUTPUT_MAX_LIMIT = 2000
output scale defines what value will give full voltage output (+-2000 RPM = full voltage +-5 volts)
output min limit defines lowest value allowed (-2000 or negative full voltage)
output max limit defines highest value allowed (2000 or positive full voltage)
The spindle speed command range would be -2000 to 2000 RPM with output swing from -5 to 5 volts
With 0 to 10 volt input
Code:
OUTPUT_SCALE = 4000
OUTPUT_MIN_LIMIT = 0
OUTPUT_MAX_LIMIT = 4000
output scale defines what value will give full voltage output (+4000 RPM = 10 volts)
output min limit defines lowest value allowed (0 or 0 volts can't supply negative voltage)
output max limit defines highest value allowed (4000 or 10 volts)
The spindle speed command range would be 0 to 4000 RPM with output swing from 0 to 10 volts
You would need a reversing relay to run in reverse.
There can be other reasons the spindle does not run at low speeds such as VFD settings of minimium rpm etc.
Please Log in to join the conversation.
1 year 7 months ago #324104
by HenkvE
Replied by HenkvE on topic Qtdragon for lathe??
Thanks for the clarification. I'll provide feedback once I implemented the changes.
Please Log in to join the conversation.
1 year 4 months ago #330312
by matasbuk
Replied by matasbuk on topic Qtdragon for lathe??
Hi, not sure if this is still in development, but I use Qtdragon on my mill and installed on my lathe retrofit. My lathe is tool down, is there an option to flip the arrow keys and jog buttons to match this? (The diameter should increase then pressing the down arrow key)
Please Log in to join the conversation.
1 year 4 months ago #330373
by cmorley
Replied by cmorley on topic Qtdragon for lathe??
Try this.
extract the files.
The images folder goes in YOUR_CONFIGURATION_FOLDER/qtvcp
The qtdragon_lathe_handler.py file goes in YOUR_CONFIGURATION_FOLDER/qtvcp/screens/qtdragon_lathe/
extract the files.
The images folder goes in YOUR_CONFIGURATION_FOLDER/qtvcp
The qtdragon_lathe_handler.py file goes in YOUR_CONFIGURATION_FOLDER/qtvcp/screens/qtdragon_lathe/
Please Log in to join the conversation.
1 year 4 months ago #330825
by matasbuk
Replied by matasbuk on topic Qtdragon for lathe??
Thank you! Worked perfectly
Please Log in to join the conversation.
Time to create page: 0.050 seconds
