7I76ED XYZ 0-10V Spindle

More
4 years 8 months ago #235412 by chili023
Hello everybody,I have a XYZ Mill with 4 Stepper and a 0-10V VFD.
I used pncconf to get my initial setup and all steppers work.
I used the desired spindle outputs and was able to get a voltage signal with
Code:
setp hm2_7i76e.0.7i76.0.0.spinout 10 or 100.
as a hal command.However the spindel output does not react to the commands from the gui.
I then tried to edit my custom.hal:
Code:
net spindle-enable hm2_7i76e.0.7i76.0.0.spinena net spindle-output hm2_7i76e.0.7i76.0.0.spinout
This tied hm2_7i76e.0.7i76.0.0.spinout to the exact value of spindle-output.The output wants to have 0-100 values, so I wanted to scale by editing my custom.hal with
Code:
setp hm2_7i76e.0.7i76.0.0.spinout-minlim [SPINDLE_0]OUTPUT_MIN_LIMIT setp hm2_7i76e.0.7i76.0.0.spinout-maxlim [SPINDLE_0]OUTPUT_MAX_LIMIT setp hm2_7i76e.0.7i76.0.0.spinout-scalemax [SPINDLE_0]OUTPUT_SCALE
and added to the maschine.ini
Code:
[SPINDLE_0] P = 0 I = 0 D = 0 FF0 = 1 FF1 = 0 FF2 = 0 BIAS = 0 DEADBAND = 0 MAX_OUTPUT = 20000 OUTPUT_SCALE = 25000 OUTPUT_MAX_LIMIT = 100 OUTPUT_MIN_LIMIT = 5
Apparently this was not of success.Do I need to use a loadrt scale for the output?

Please Log in to join the conversation.

More
4 years 8 months ago #235426 by PCW
Replied by PCW on topic 7I76ED XYZ 0-10V Spindle
With an output scale of 25000 and a output max limit of
100, the maximum output voltage would be 40 mV

Typically you would set the output max limit to the same
value of the output scale

Please Log in to join the conversation.

More
4 years 8 months ago #235444 by chili023
Replied by chili023 on topic 7I76ED XYZ 0-10V Spindle
Ok.
But why is spinout still going to 20000?
And the maximum value of spinout is 100.
So what do I miss?

Please Log in to join the conversation.

More
4 years 8 months ago #235466 by PCW
Replied by PCW on topic 7I76ED XYZ 0-10V Spindle
The output max limit limits the analog output to V*max_limit/output_scale
where V is the applied voltage to the analog output circuit (usually 10V)

That is, if you set max-scale to the RPM at 10V (25000 in your case)
setting the max limit to 100 would limit the maximum RPM to 100

Please Log in to join the conversation.

Time to create page: 0.076 seconds
Powered by Kunena Forum