mesa 7i96s analog spindle

More
18 Nov 2024 02:15 #314711 by Philip Lydin
when i try to orient ( m19 r0 ) it speeds up to 1300 rpm which is the same rpm as when i command m3 s1000 and it doesnt do anything.


 

File Attachment:

File Name: orient.txt
File Size:7 KB
Attachments:

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

More
18 Nov 2024 03:20 - 18 Nov 2024 03:36 #314713 by PCW
Replied by PCW on topic mesa 7i96s analog spindle
Did you verify that the feedback is in the correct direction?
it does look like a runaway which would be expected if the feedback is reversed

Also for the orient PID I would set FF1 to 0 and P to say 10
so its easier to see whats happening and you don't get immediate
uncontrolled motion.

This loss of control/runaway may also be because orient PID output sign
does not change the spindle direction (that I can see)
 
Last edit: 18 Nov 2024 03:36 by PCW.

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

More
18 Nov 2024 13:34 #314752 by Philip Lydin
now it stops and then slowly starts ramping up until 1300rpm. how would i change the direction of the feedback?

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

More
18 Nov 2024 13:38 #314753 by Philip Lydin
i did just reaverse the spindle direction which i suppose would do the same but it didnt make a differance.

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

More
18 Nov 2024 15:03 #314758 by PCW
Replied by PCW on topic mesa 7i96s analog spindle
Is the spindle direction controlled by the sign
of the orient PID output when in orient mode?

Is the encoder scaling correct? (position advances by 1.00
for each forward turn of the spindle)

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

More
18 Nov 2024 15:25 #314761 by Philip Lydin
i made some changes and it kind of works but the orientation is super slow and it cant orient in clockwise direction. maybe you have some more ideas, and yes the scaling is correct

File Attachment:

File Name: 7i96s_2024-11-18.ini
File Size:5 KB

File Attachment:

File Name: 7i96s_2024-11-18.hal
File Size:10 KB
Attachments:

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

More
18 Nov 2024 15:38 #314764 by PCW
Replied by PCW on topic mesa 7i96s analog spindle
This signal:

net spindle-ccw => hm2_7i96s.0.ssr.00.out-00

Would need to come from the sign of the orient PID output
for orient to work in both directions (this likely requires
a mux2 and an absolute component added)

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

More
19 Nov 2024 00:10 #314811 by Philip Lydin
now the orientation works well but still no closed loop spindle control. at 1000rpm commanded it rotates 2600 rpm and that matches what i can see in halshow.  

File Attachment:

File Name: hal.hal
File Size:11 KB
Attachments:

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

More
19 Nov 2024 00:30 #314814 by PCW
Replied by PCW on topic mesa 7i96s analog spindle
You might take the feedback out of the spindle mode system for debugging
by setting the velocity PID parameters all to 0 except FF0=1.0

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

Moderators: PCWjmelson
Time to create page: 0.079 seconds
Powered by Kunena Forum