rigid tapping g33.1 isnt working spindle isnt sync

More
13 years 1 month ago #38386 by fabworx
Motion.spindle-at-speed is true pretty much all the time except below 250 rpm in high gear. I did check with halmeter while executing this gcode.

S500 m3
G33.1 z-0.065 k 0.08

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

More
13 years 1 month ago #38387 by fabworx
I just rewrote the hal leaving out the gear change to bring it back to basics still a no go here's what I have now.

#****************
# Spindle Control
#****************

setp hm2_5i20.0.pwmgen.04.output-type 2
setp hm2_5i20.0.pwmgen.04.scale 3530 # Set the spindle’s top speed in RPM

#****************************
# Spindle Synchronized Motion
#****************************

# add the encoder
setp hm2_5i20.0.encoder.04.counter-mode 0
setp hm2_5i20.0.encoder.04.filter 0
setp hm2_5i20.0.encoder.04.index-invert 0
setp hm2_5i20.0.encoder.04.index-mask 0
setp hm2_5i20.0.encoder.04.scale 8000

net spindle-position hm2_5i20.0.encoder.04.position => motion.spindle-revs
net spindle-velocity hm2_5i20.0.encoder.04.velocity => motion.spindle-speed-in
net spindle-index-enable hm2_5i20.0.encoder.04.index-enable <=> motion.spindle-index-enable
net spindle-cw <= motion.spindle-forward
net spindle-ccw <= motion.spindle-reverse
net spindle-enable hm2_5i20.0.gpio.071.out <= motion.spindle-on hm2_5i20.0.gpio.045.out
net spindle-enable => hm2_5i20.0.pwmgen.04.enable

#*****************
# Spindle At Speed
#*****************

addf near.0 servo-thread
setp near.0.scale 1.01
net spindle-cmd => near.0.in1
net spindle-velocity => near.0.in2
net spindle-at-speed motion.spindle-at-speed <= near.0.out

#*********
#RPM Scale
#*********

setp rpm-scale scale.0.gain 60
net spindle-rps scale.0.in hm2_5i20.0.encoder.04.velocity

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

More
13 years 1 month ago #38388 by fabworx
im totally lost I believe I have everything needed for that gcode to execute but it isn't working and im getting frustrated. any other suggestions?

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

More
13 years 1 month ago #38391 by PCW
Dont know, maybe post the GCode here and the output of
"halcmd show pin"
when linuxcnc is hung at G33.1
The following user(s) said Thank You: fabworx

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

More
13 years 1 month ago #38392 by fabworx
here is the gcode


S500 m3
G33.1 z-0.065 k 0.08

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

More
13 years 1 month ago #38393 by fabworx
what "halcmd show pin"?

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

Time to create page: 0.107 seconds
Powered by Kunena Forum