rigid tapping g33.1 isnt working spindle isnt sync

More
13 years 2 months ago #38367 by BigJohnT

fabworx wrote: 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
13 years 2 months ago #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
13 years 2 months ago #38370 by BigJohnT
Is your spindle at speed working?

JT

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

More
13 years 2 months ago #38371 by fabworx

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

More
13 years 2 months ago #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
13 years 2 months ago - 13 years 2 months ago #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: 13 years 2 months ago by PCW.

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

Time to create page: 0.060 seconds
Powered by Kunena Forum