rigid tapping g33.1 isnt working spindle isnt sync

More
01 Sep 2013 11:30 #38346 by andypugh

if its supposed to stay lit its not working its not even blinking as I rotate it by hand. i don't think its working


If you set up a HAL meter on it (Machine->Halmeter) then you should see it go "true" briefly when you start a G33.1 then "False" when the encoder sees the index.

You may miss the transition, and Halscope might be better.

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

More
01 Sep 2013 11:31 #38347 by fabworx
big john ive tried all of these and get the same error

unlink motion.spindle-index-enable
unlink motion.spindle-index-enable hm2_5i20.encoder.04.index-enable
unlink hm2_5i20.encoder.04.index-enable
unlink spindle-index-enable motion.spindle-index-enable
unlink spindle-index-enable motion.spindle-index-enable hm2_5i20.encoder.04.index-enable

all get the same error

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

More
01 Sep 2013 11:37 - 01 Sep 2013 11:39 #38348 by fabworx
woo hoo thanks andy. ok so i tried the hal meter it definetly started off false and as i rotated the spindle by hand, vfd powered off, i got it to go true then false again.
Last edit: 01 Sep 2013 11:39 by fabworx.

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

More
01 Sep 2013 11:40 #38349 by fabworx
so i know my index is being read but i must have it hooked up wrong hmmm

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

More
01 Sep 2013 22:34 #38367 by BigJohnT

Hi Big John I follow the link and follow the instructions on the little website And tried to unlink the hal commands and keep getting an error I can't seem to unlink anything


The exact names are usually different depending on the hardware used to read the encoder. In Axis go to Machine > Show Hal Configuration the look in Pins to see the pin names you actually have.

JT
The following user(s) said Thank You: fabworx

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

More
01 Sep 2013 22:41 #38368 by fabworx
I did that. I ended up using halmeter like andy said and know that it is working. I could see a change in state when calling for a g33.1. That being said im lost as to why its not working

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

More
01 Sep 2013 23:06 #38370 by BigJohnT
Is your spindle at speed working?

JT

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

More
01 Sep 2013 23:39 #38371 by fabworx

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

More
01 Sep 2013 23:48 #38372 by fabworx
now im beginning to wonder if the other axis, x, y, z, are getting the index. I cant replicate the same testing method on them due to it creating a joint following error. I tried to invoke the g33.1 and spin the axis by hand but that just throw's the error and shuts the machine down I tried to increase the following error in the ini but to no avail. I cant seem to setp net or unlink anything in the test hal line of hal config. so that I can test the hook up for polarity. I suspect it is correct im using all of the same encoders on everything and used the same diagram for wiring.

when issuing a g33.1 should the sync axis start to move till the index is found or is that all done in the homing sequence? just curious cause none of my axis move when issuing the g33.1 and ive tried all axis to get synced motion.

here is my z axis hal

#*******************
# AXIS Z
#*******************

setp pid.z.Pgain [AXIS_2]P
setp pid.z.Igain [AXIS_2]I
setp pid.z.Dgain [AXIS_2]D
setp pid.z.bias [AXIS_2]BIAS
setp pid.z.FF0 [AXIS_2]FF0
setp pid.z.FF1 [AXIS_2]FF1
setp pid.z.FF2 [AXIS_2]FF2
setp pid.z.deadband [AXIS_2]DEADBAND
setp pid.z.maxoutput [AXIS_2]MAX_OUTPUT

net z-index-enable <=> pid.z.index-enable

# ---PWM Generator signals/setup---

setp hm2_5i20.0.pwmgen.02.output-type 2
setp hm2_5i20.0.pwmgen.02.scale [AXIS_2]OUTPUT_SCALE

net zenable => pid.z.enable
net zoutput pid.z.output => hm2_5i20.0.pwmgen.02.value
net zpos-cmd axis.2.motor-pos-cmd => pid.z.command
net zenable axis.2.amp-enable-out => hm2_5i20.0.pwmgen.02.enable

# ---Encoder feedback signals/setup---

setp hm2_5i20.0.encoder.02.counter-mode 0
setp hm2_5i20.0.encoder.02.filter 1
setp hm2_5i20.0.encoder.02.index-invert 0
setp hm2_5i20.0.encoder.02.index-mask 0
setp hm2_5i20.0.encoder.02.index-mask-invert 0
setp hm2_5i20.0.encoder.02.scale [AXIS_2]ENCODER_SCALE

net zpos-fb <= hm2_5i20.0.encoder.02.position
net zpos-fb => pid.z.feedback
net zpos-fb => axis.2.motor-pos-fb
net z-index-enable axis.2.index-enable <=> hm2_5i20.0.encoder.02.index-enable

# ---setup home / limit switch signals---

net z-home-sw hm2_5i20.0.gpio.046.out => axis.2.home-sw-in hm2_5i20.0.gpio.027.in
net z-neg-limit => axis.2.neg-lim-sw-in hm2_5i20.0.gpio.028.in
net z-pos-limit => axis.2.pos-lim-sw-in hm2_5i20.0.gpio.029.in

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

More
02 Sep 2013 00:22 - 02 Sep 2013 00:34 #38374 by PCW
Can you attach your compete hal file ( you may need to rename its extension to .txt) or include the part that has the HAL spindle wiring?

G33.1 not starting is most likely a spindle issue, either in the HAL wiring or possibly the index polarity
Last edit: 02 Sep 2013 00:34 by PCW.

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

Time to create page: 0.179 seconds
Powered by Kunena Forum