Qtdragon for lathe??

More
27 Feb 2025 05:46 - 27 Feb 2025 12:23 #322773 by HenkvE
Replied by HenkvE on topic Qtdragon for lathe??
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
Attachments:
Last edit: 27 Feb 2025 12:23 by HenkvE. Reason: Information changed since my initial post.

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

More
28 Feb 2025 22:50 #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 = 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:
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
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
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 or Create an account to join the conversation.

Moderators: cmorley
Time to create page: 0.051 seconds
Powered by Kunena Forum