cant regulate the 0-10V TB4 Spindle output from Mesa 7i76e

More
27 Nov 2021 10:08 - 27 Nov 2021 11:02 #227728 by FEMTO
Hello, i need help, maybe its not a big problem, but i can't fix it by myself. 

I can't regulate the 0-10V output from 7i76e. I get the 10V from a Danfoss VLT VFD. The Spindle starts with the M3 command but not regulates the Spindle speed with Sxxxx command it always goes to max. Speed. I measured 10V on the 0-10V input on the VFD. 

i think there is something wrong or missing in my .hal file.
I attach my .hal and .ini file.

Stefan

 

File Attachment:

File Name: fm2020.hal
File Size:11 KB

 

File Attachment:

File Name: fm2020.ini
File Size:4 KB


 
Attachments:
Last edit: 27 Nov 2021 11:02 by FEMTO.

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

More
27 Nov 2021 12:10 #227732 by chris@cnc
Hi,
first change in *.hal 
net spindle-ccw            => hm2_7i76e.0.7i76.0.0.spinena 
to
net spindle-enable      => hm2_7i76e.0.7i76.0.0.spinena
second, should you send 0-10V from mesa board to VFD.
Take a look on your VFD wiring connection sheet
I guess the 0-10V from VFD are feedback signal.

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

More
27 Nov 2021 13:06 - 27 Nov 2021 13:16 #227742 by FEMTO
this is what i've done in detail.
If i enable the spindle, Pin 2 Spindle sends 10V to Pin 53 on VFD accelerating the spindle to 100% speed.


 
Attachments:
Last edit: 27 Nov 2021 13:16 by FEMTO.

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

More
27 Nov 2021 13:44 #227744 by chris@cnc
looks okay,
What happens if you command S5000 M4?
And type in terminal 
halcmd show pin spindle.0.speed-out
show this after spindle on.

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

More
27 Nov 2021 14:19 #227746 by FEMTO
spindle.0.speed-out is responding to my commands. If i type S5000 it shows 5000, if i type S125 it shows 125. Both commands giving 9.8V to pin 53 from VFD, so maximum speed. 

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

More
27 Nov 2021 14:43 #227747 by chris@cnc
So we have to investigate deeper. 
What do M4?
and please post output
halcmd show sig spindle
halcmd show pin spindle

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

More
27 Nov 2021 14:57 - 27 Nov 2021 14:58 #227749 by FEMTO
M4 gives negative value into spindle.0.speed-out but spindle isn't turning. :(

Attached the outputs from halcmd.
Attachments:
Last edit: 27 Nov 2021 14:58 by FEMTO.

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

More
27 Nov 2021 15:36 #227750 by Michael
Based on that second picture spindle-output doesn't appear to be connected correctly and is reading 0

net spindle-output pid.s.output. =>. hm2_7i76e.0.7i76.0.0.spinout

Which is in your Hal file but for whatever reason is not generating the correct output. Use show Hal on both sides of that signal to see if the pid is outputting correctly. If you did any copy and paste for Hal from other sources often the - symbol is not correct.

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

More
27 Nov 2021 15:38 #227751 by chris@cnc
change in *.hal 
net spindle-ccw            => hm2_7i76e.0.7i76.0.0.spinena 
to
net spindle-enable      => hm2_7i76e.0.7i76.0.0.spinena
output must show this
                  bit            TRUE  spindle-enable
                         ==> hm2_7i76e.0.7i76.0.0.spinena
                         ==> pid.s.enable
                         <== spindle.0.on

second:
Search why "spindle-output" is zero and "pid.s.output" is missing. 
should be looks like this
float     5000  spindle-output
                         ==> hm2_7i76e.0.7i76.0.0.spinout
                         <== pid.s.output
but, in your postet config is right. 
 and just for test set in ini
OUTPUT_MIN_LIMIT = -24000
 

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

More
27 Nov 2021 15:41 - 27 Nov 2021 15:42 #227752 by Michael
Also it won't work in M4, reverse because you didn't change the first suggestion.

first change in *.hal 
net spindle-ccw => hm2_7i76e.0.7i76.0.0.spinena
To
​​​​​net spindle-enable => hm2_7i76e.0.7i76.0.0.spinena

Last edit: 27 Nov 2021 15:42 by Michael.

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

Time to create page: 0.110 seconds
Powered by Kunena Forum