rigid tapping g33.1 isnt working spindle isnt sync

More
02 Sep 2013 16:44 #38415 by andypugh

oh and just for reference I thought this was odd. maybe I'm wrong I thought hm2_5i20.0.encoder.04.velocity was supposed to float out revolutions per second and its not. its putting out a number that is exactly 1000 times to small it says 0.506 to 0.507 with a s500 m3 running


The velocity is in RPS and the S-command is in RPM. So 500 rpm should give 8 rps.
Are you sure that the encoder scale (8000) is correct?

Does the spindle-revs pin _increase_ by exactly 1.0 for a single turn of the spindle? I think I recall puzzling over why my lathe wouldn't thread any more after reconfiguring the encoder, it turned out the encoder was counting backwards.

Have you accidentally typed a "0" in the Axis GUI and set the feed over-ride to 0? Not that I have ever done that, oh no :-)

It might be worth checking the state of the feed-hold pin.

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

More
02 Sep 2013 21:16 - 02 Sep 2013 21:28 #38429 by PCW

by the way I cant get halcmd show pins to work in the terminal window.

The command is
halcmd show pin
(I often mix this up as well)
halcmd is quite useful for debugging
man halcmd

if you want specific sets of data you can use grep for example:
halcmd show | grep motion > motion_related_HAL.txt
Last edit: 02 Sep 2013 21:28 by PCW. Reason: clarify
The following user(s) said Thank You: fabworx

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

More
02 Sep 2013 23:58 - 03 Sep 2013 02:09 #38432 by fabworx
good morning andy, and peter. andy, im starting off with z at 0. its a m5x0.8 thread. my encoders are 2000 cpr and quadrature so I thought my scale should be 8000. I would suspect that they are counting backwards. another anomaly that I thought was weird but didn't put much though into it because I rarely do it is. the arrow keys on the keyboard , when I press the up button the table moves towards me, and x, when I press the right arrow the table moves left. this seems and feels backwards. however when I use page up and page down z moves as it should up when page up and so forth.

peter I'm an schmuck lol I kept putting pins instead of pin.
  11  bit   OUT         FALSE  hm2_5i20.0.gpio.045.in_not
    11  bit   IN          FALSE  hm2_5i20.0.gpio.045.out <== spindle-enable
    11  bit   OUT          TRUE  hm2_5i20.0.gpio.046.in
    11  bit   OUT         FALSE  hm2_5i20.0.gpio.046.in_not
    11  bit   IN           TRUE  hm2_5i20.0.gpio.046.out <== z-home-sw
    11  bit   OUT          TRUE  hm2_5i20.0.gpio.047.in
    11  bit   OUT         FALSE  hm2_5i20.0.gpio.047.in_not
    11  bit   IN          FALSE  hm2_5i20.0.gpio.047.out <== xenable
    11  bit   OUT          TRUE  hm2_5i20.0.gpio.048.in
    11  bit   OUT         FALSE  hm2_5i20.0.gpio.048.in_not
    11  bit   IN          FALSE  hm2_5i20.0.gpio.048.out
    11  bit   OUT          TRUE  hm2_5i20.0.gpio.049.in
    11  bit   OUT         FALSE  hm2_5i20.0.gpio.049.in_not
    11  bit   IN          FALSE  hm2_5i20.0.gpio.049.out
    11  bit   OUT          TRUE  hm2_5i20.0.gpio.050.in
    11  bit   OUT         FALSE  hm2_5i20.0.gpio.050.in_not
    11  bit   IN          FALSE  hm2_5i20.0.gpio.050.out
    11  bit   OUT          TRUE  hm2_5i20.0.gpio.051.in
    11  bit   OUT         FALSE  hm2_5i20.0.gpio.051.in_not
    11  bit   IN          FALSE  hm2_5i20.0.gpio.051.out
    11  bit   OUT          TRUE  hm2_5i20.0.gpio.052.in ==> estop-reset
    11  bit   OUT         FALSE  hm2_5i20.0.gpio.052.in_not ==> estop-trip
    11  bit   IN          FALSE  hm2_5i20.0.gpio.052.out
    11  bit   OUT          TRUE  hm2_5i20.0.gpio.053.in
    11  bit   OUT         FALSE  hm2_5i20.0.gpio.053.in_not
    11  bit   IN          FALSE  hm2_5i20.0.gpio.053.out
    11  bit   OUT          TRUE  hm2_5i20.0.gpio.054.in
    11  bit   OUT         FALSE  hm2_5i20.0.gpio.054.in_not
    11  bit   IN          FALSE  hm2_5i20.0.gpio.054.out
    11  bit   OUT          TRUE  hm2_5i20.0.gpio.055.in
    11  bit   OUT         FALSE  hm2_5i20.0.gpio.055.in_not ==> home
    11  bit   IN          FALSE  hm2_5i20.0.gpio.055.out
    11  bit   OUT          TRUE  hm2_5i20.0.gpio.056.in
    11  bit   OUT         FALSE  hm2_5i20.0.gpio.056.in_not ==> play-pause
    11  bit   IN          FALSE  hm2_5i20.0.gpio.056.out
    11  bit   OUT          TRUE  hm2_5i20.0.gpio.057.in ==> toggle-axis
    11  bit   OUT         FALSE  hm2_5i20.0.gpio.057.in_not
    11  bit   IN          FALSE  hm2_5i20.0.gpio.057.out
    11  bit   OUT          TRUE  hm2_5i20.0.gpio.058.in
    11  bit   OUT         FALSE  hm2_5i20.0.gpio.058.in_not ==> flood-on
    11  bit   IN          FALSE  hm2_5i20.0.gpio.058.out
    11  bit   OUT          TRUE  hm2_5i20.0.gpio.059.in ==> mode-toggle
    11  bit   OUT         FALSE  hm2_5i20.0.gpio.059.in_not
    11  bit   IN          FALSE  hm2_5i20.0.gpio.059.out
    11  bit   OUT          TRUE  hm2_5i20.0.gpio.060.in
    11  bit   OUT         FALSE  hm2_5i20.0.gpio.060.in_not ==> spindle-control
    11  bit   IN          FALSE  hm2_5i20.0.gpio.060.out
    11  bit   OUT          TRUE  hm2_5i20.0.gpio.061.in ==> toggle-step
    11  bit   OUT         FALSE  hm2_5i20.0.gpio.061.in_not
    11  bit   IN          FALSE  hm2_5i20.0.gpio.061.out
    11  bit   OUT          TRUE  hm2_5i20.0.gpio.062.in
    11  bit   OUT         FALSE  hm2_5i20.0.gpio.062.in_not ==> mist-on
    11  bit   IN          FALSE  hm2_5i20.0.gpio.062.out
    11  bit   OUT          TRUE  hm2_5i20.0.gpio.063.in
    11  bit   OUT         FALSE  hm2_5i20.0.gpio.063.in_not
    11  bit   IN          FALSE  hm2_5i20.0.gpio.063.out
    11  bit   OUT          TRUE  hm2_5i20.0.gpio.064.in
    11  bit   OUT         FALSE  hm2_5i20.0.gpio.064.in_not
    11  bit   IN          FALSE  hm2_5i20.0.gpio.064.out
    11  bit   OUT          TRUE  hm2_5i20.0.gpio.065.in
    11  bit   OUT         FALSE  hm2_5i20.0.gpio.065.in_not
    11  bit   IN          FALSE  hm2_5i20.0.gpio.065.out
    11  bit   OUT          TRUE  hm2_5i20.0.gpio.066.in
    11  bit   OUT         FALSE  hm2_5i20.0.gpio.066.in_not
    11  bit   IN          FALSE  hm2_5i20.0.gpio.066.out
    11  bit   OUT          TRUE  hm2_5i20.0.gpio.067.in
    11  bit   OUT         FALSE  hm2_5i20.0.gpio.067.in_not
    11  bit   IN          FALSE  hm2_5i20.0.gpio.067.out
    11  bit   OUT          TRUE  hm2_5i20.0.gpio.068.in
    11  bit   OUT         FALSE  hm2_5i20.0.gpio.068.in_not
    11  bit   IN          FALSE  hm2_5i20.0.gpio.068.out
    11  bit   OUT          TRUE  hm2_5i20.0.gpio.069.in
    11  bit   OUT         FALSE  hm2_5i20.0.gpio.069.in_not
    11  bit   IN          FALSE  hm2_5i20.0.gpio.069.out <== flood-is-on
    11  bit   OUT          TRUE  hm2_5i20.0.gpio.070.in
    11  bit   OUT         FALSE  hm2_5i20.0.gpio.070.in_not
    11  bit   IN          FALSE  hm2_5i20.0.gpio.070.out <== mist-is-on
    11  bit   OUT          TRUE  hm2_5i20.0.gpio.071.in
    11  bit   OUT         FALSE  hm2_5i20.0.gpio.071.in_not
    11  bit   IN          FALSE  hm2_5i20.0.gpio.071.out <== spindle-enable
    11  bit   IN          FALSE  hm2_5i20.0.led.CR01
    11  bit   IN          FALSE  hm2_5i20.0.led.CR02
    11  bit   IN          FALSE  hm2_5i20.0.led.CR03
    11  bit   IN          FALSE  hm2_5i20.0.led.CR04
    11  bit   IN          FALSE  hm2_5i20.0.led.CR05
    11  bit   IN          FALSE  hm2_5i20.0.led.CR06
    11  bit   IN          FALSE  hm2_5i20.0.led.CR07
    11  bit   IN          FALSE  hm2_5i20.0.led.CR08
    11  bit   IN          FALSE  hm2_5i20.0.pwmgen.00.enable <== xenable
    11  float IN              0  hm2_5i20.0.pwmgen.00.value <== xoutput
    11  bit   IN          FALSE  hm2_5i20.0.pwmgen.01.enable <== yenable
    11  float IN              0  hm2_5i20.0.pwmgen.01.value <== youtput
    11  bit   IN          FALSE  hm2_5i20.0.pwmgen.02.enable <== zenable
    11  float IN              0  hm2_5i20.0.pwmgen.02.value <== zoutput
    11  bit   IN          FALSE  hm2_5i20.0.pwmgen.03.enable
    11  float IN              0  hm2_5i20.0.pwmgen.03.value
    11  bit   IN          FALSE  hm2_5i20.0.pwmgen.04.enable <== spindle-enable
    11  float IN              0  hm2_5i20.0.pwmgen.04.value <== spindle-vel-cmd
    11  bit   I/O         FALSE  hm2_5i20.0.watchdog.has_bit
     5  bit   OUT         FALSE  iocontrol.0.coolant-flood
     5  bit   OUT         FALSE  iocontrol.0.coolant-mist
     5  bit   IN           TRUE  iocontrol.0.emc-enable-in <== power-on
     5  bit   OUT          TRUE  iocontrol.0.lube
     5  bit   IN          FALSE  iocontrol.0.lube_level
     5  bit   OUT         FALSE  iocontrol.0.tool-change ==> tool-change-request
     5  bit   IN          FALSE  iocontrol.0.tool-changed <== tool-change-confirmed
     5  s32   OUT             0  iocontrol.0.tool-number
     5  s32   OUT             0  iocontrol.0.tool-prep-number ==> tool-number
     5  s32   OUT             0  iocontrol.0.tool-prep-pocket
     5  bit   OUT         FALSE  iocontrol.0.tool-prepare ==> tool-prepare-loopback
     5  bit   IN          FALSE  iocontrol.0.tool-prepared <== tool-prepare-loopback
     5  bit   OUT          TRUE  iocontrol.0.user-enable-out
     5  bit   OUT         FALSE  iocontrol.0.user-request-enable
    17  float IN              0  lowpass.0.in
    17  bit   IN          FALSE  lowpass.0.load
    17  float OUT             0  lowpass.0.out
    17  float IN              0  lowpass.1.in
    17  bit   IN          FALSE  lowpass.1.load
    17  float OUT             0  lowpass.1.out
    17  float IN              0  lowpass.2.in
    17  bit   IN          FALSE  lowpass.2.load
    17  float OUT             0  lowpass.2.out
    17  float IN              0  lowpass.3.in
    17  bit   IN          FALSE  lowpass.3.load
    17  float OUT             0  lowpass.3.out
     9  float IN              1  motion.adaptive-feed
     9  float IN              0  motion.analog-in-00
     9  float IN              0  motion.analog-in-01
     9  float IN              0  motion.analog-in-02
     9  float IN              0  motion.analog-in-03
     9  float OUT             0  motion.analog-out-00
     9  float OUT             0  motion.analog-out-01
     9  float OUT             0  motion.analog-out-02
     9  float OUT             0  motion.analog-out-03
     9  bit   OUT         FALSE  motion.coord-error
     9  bit   OUT          TRUE  motion.coord-mode
     9  float OUT             0  motion.current-vel
     9  bit   IN          FALSE  motion.digital-in-00
     9  bit   IN          FALSE  motion.digital-in-01
     9  bit   IN          FALSE  motion.digital-in-02
     9  bit   IN          FALSE  motion.digital-in-03
     9  bit   OUT         FALSE  motion.digital-out-00
     9  bit   OUT         FALSE  motion.digital-out-01
     9  bit   OUT         FALSE  motion.digital-out-02
     9  bit   OUT         FALSE  motion.digital-out-03
     9  float OUT             0  motion.distance-to-go
     9  bit   IN           TRUE  motion.enable
     9  bit   IN          FALSE  motion.feed-hold
     9  bit   OUT          TRUE  motion.in-position
     9  bit   IN          FALSE  motion.motion-enabled
     9  bit   OUT         FALSE  motion.on-soft-limit
     9  bit   IN          FALSE  motion.probe-input
     9  s32   OUT             0  motion.program-line
     9  float OUT             0  motion.requested-vel
     9  bit   IN           TRUE  motion.spindle-at-speed <== spindle-at-speed
     9  bit   OUT          TRUE  motion.spindle-brake
     9  bit   OUT         FALSE  motion.spindle-forward ==> spindle-cw
     9  bit   I/O         FALSE  motion.spindle-index-enable <=> spindle-index-enable
     9  bit   OUT         FALSE  motion.spindle-on ==> spindle-enable
     9  bit   OUT         FALSE  motion.spindle-reverse ==> spindle-ccw
     9  float IN       -269.749  motion.spindle-revs <== spindle-position
     9  float OUT             0  motion.spindle-speed-cmd-rps
     9  float IN              0  motion.spindle-speed-in <== scaled-encoder-rps
     9  float OUT             0  motion.spindle-speed-out ==> spindle-vel-cmd
     9  float OUT             0  motion.spindle-speed-out-rps ==> spindle-cmd
     9  bit   OUT         FALSE  motion.teleop-mode
     9  float OUT             0  motion.tooloffset.a
     9  float OUT             0  motion.tooloffset.b
     9  float OUT             0  motion.tooloffset.c
     9  float OUT             0  motion.tooloffset.u
     9  float OUT             0  motion.tooloffset.v
     9  float OUT             0  motion.tooloffset.w
     9  float OUT             0  motion.tooloffset.x
     9  float OUT             0  motion.tooloffset.y
     9  float OUT             0  motion.tooloffset.z
    15  bit   OUT         FALSE  multiswitch.0.state0 ==> step1
    15  bit   OUT          TRUE  multiswitch.0.state1 ==> step2
    15  bit   OUT         FALSE  multiswitch.0.state2 ==> step3
    15  bit   OUT         FALSE  multiswitch.0.state3 ==> step4
    15  bit   OUT         FALSE  multiswitch.0.state4
    15  s32   OUT             1  multiswitch.0.statenum
    15  bit   OUT          TRUE  multiswitch.0.switchdown
    15  bit   IN           TRUE  multiswitch.0.toggle <== toggle-step
    15  bit   OUT         FALSE  multiswitch.1.state0 ==> mpg-x
    15  bit   OUT          TRUE  multiswitch.1.state1 ==> mpg-y
    15  bit   OUT         FALSE  multiswitch.1.state2 ==> mpg-z
    15  bit   OUT         FALSE  multiswitch.1.state3
    15  bit   OUT         FALSE  multiswitch.1.state4
    15  s32   OUT             1  multiswitch.1.statenum
    15  bit   OUT          TRUE  multiswitch.1.switchdown
    15  bit   IN           TRUE  multiswitch.1.toggle <== toggle-axis
    15  bit   OUT         FALSE  multiswitch.2.state0 ==> pause
    15  bit   OUT         FALSE  multiswitch.2.state1 ==> resume
    15  bit   OUT         FALSE  multiswitch.2.state2
    15  bit   OUT         FALSE  multiswitch.2.state3
    15  bit   OUT         FALSE  multiswitch.2.state4
    15  s32   OUT             0  multiswitch.2.statenum
    15  bit   OUT         FALSE  multiswitch.2.switchdown
    15  bit   IN          FALSE  multiswitch.2.toggle <== play-pause
    15  bit   OUT          TRUE  multiswitch.3.state0
    15  bit   OUT         FALSE  multiswitch.3.state1
    15  bit   OUT         FALSE  multiswitch.3.state2
    15  bit   OUT         FALSE  multiswitch.3.state3
    15  bit   OUT         FALSE  multiswitch.3.state4
    15  s32   OUT             0  multiswitch.3.statenum
    15  bit   OUT         FALSE  multiswitch.3.switchdown
    15  bit   IN          FALSE  multiswitch.3.toggle
    15  bit   OUT          TRUE  multiswitch.4.state0
    15  bit   OUT         FALSE  multiswitch.4.state1
    15  bit   OUT         FALSE  multiswitch.4.state2
    15  bit   OUT         FALSE  multiswitch.4.state3
    15  bit   OUT         FALSE  multiswitch.4.state4
    15  s32   OUT             0  multiswitch.4.statenum
    15  bit   OUT         FALSE  multiswitch.4.switchdown
    15  bit   IN          FALSE  multiswitch.4.toggle
    15  bit   OUT         FALSE  multiswitch.5.state0 ==> spindle-off
    15  bit   OUT         FALSE  multiswitch.5.state1 ==> spindle-on
    15  bit   OUT         FALSE  multiswitch.5.state2
    15  bit   OUT         FALSE  multiswitch.5.state3
    15  bit   OUT         FALSE  multiswitch.5.state4
    15  s32   OUT             0  multiswitch.5.statenum
    15  bit   OUT         FALSE  multiswitch.5.switchdown
    15  bit   IN          FALSE  multiswitch.5.toggle <== spindle-control
    15  bit   OUT         FALSE  multiswitch.6.state0 ==> manual
    15  bit   OUT          TRUE  multiswitch.6.state1 ==> mdi
    15  bit   OUT         FALSE  multiswitch.6.state2
    15  bit   OUT         FALSE  multiswitch.6.state3
    15  bit   OUT         FALSE  multiswitch.6.state4
    15  s32   OUT             1  multiswitch.6.statenum
    15  bit   OUT          TRUE  multiswitch.6.switchdown
    15  bit   IN           TRUE  multiswitch.6.toggle <== mode-toggle
    15  bit   OUT          TRUE  multiswitch.7.state0
    15  bit   OUT         FALSE  multiswitch.7.state1
    15  bit   OUT         FALSE  multiswitch.7.state2
    15  bit   OUT         FALSE  multiswitch.7.state3
    15  bit   OUT         FALSE  multiswitch.7.state4
    15  s32   OUT             0  multiswitch.7.statenum
    15  bit   OUT         FALSE  multiswitch.7.switchdown
    15  bit   IN          FALSE  multiswitch.7.toggle
    20  float IN              0  mux2.0.in0
    20  float IN              0  mux2.0.in1
    20  float OUT             0  mux2.0.out
    20  bit   IN          FALSE  mux2.0.sel
    20  float IN              0  mux2.1.in0
    20  float IN              0  mux2.1.in1
    20  float OUT             0  mux2.1.out
    20  bit   IN          FALSE  mux2.1.sel
    20  float IN              0  mux2.2.in0
    20  float IN              0  mux2.2.in1
    20  float OUT             0  mux2.2.out
    20  bit   IN          FALSE  mux2.2.sel
    21  float IN         0.0001  mux4.0.in0
    21  float IN          0.001  mux4.0.in1
    21  float IN           0.01  mux4.0.in2
    21  float IN            0.1  mux4.0.in3
    21  float OUT         0.001  mux4.0.out ==> pend-step
    21  bit   IN           TRUE  mux4.0.sel0 <== jog-speed-1
    21  bit   IN          FALSE  mux4.0.sel1 <== jog-speed-2
    21  float IN              0  mux4.1.in0
    21  float IN              0  mux4.1.in1
    21  float IN              0  mux4.1.in2
    21  float IN              0  mux4.1.in3
    21  float OUT             0  mux4.1.out
    21  bit   IN          FALSE  mux4.1.sel0
    21  bit   IN          FALSE  mux4.1.sel1
    21  float IN              0  mux4.2.in0
    21  float IN              0  mux4.2.in1
    21  float IN              0  mux4.2.in2
    21  float IN              0  mux4.2.in3
    21  float OUT             0  mux4.2.out
    21  bit   IN          FALSE  mux4.2.sel0
    21  bit   IN          FALSE  mux4.2.sel1
    21  float IN              0  mux4.3.in0
    21  float IN              0  mux4.3.in1
    21  float IN              0  mux4.3.in2
    21  float IN              0  mux4.3.in3
    21  float OUT             0  mux4.3.out
    21  bit   IN          FALSE  mux4.3.sel0
    21  bit   IN          FALSE  mux4.3.sel1
    21  float IN              0  mux4.4.in0
    21  float IN              0  mux4.4.in1
    21  float IN              0  mux4.4.in2
    21  float IN              0  mux4.4.in3
    21  float OUT             0  mux4.4.out
    21  bit   IN          FALSE  mux4.4.sel0
    21  bit   IN          FALSE  mux4.4.sel1
    23  float IN              0  near.0.in1 <== spindle-cmd
    23  float IN              0  near.0.in2 <== scaled-encoder-rps
    23  bit   OUT          TRUE  near.0.out ==> spindle-at-speed
    25  bit   IN          FALSE  not.0.in
    25  bit   OUT          TRUE  not.0.out
    25  bit   IN          FALSE  not.1.in <== mist-on
    25  bit   OUT          TRUE  not.1.out ==> mist-off
    25  bit   IN          FALSE  not.2.in <== flood-on
    25  bit   OUT          TRUE  not.2.out ==> flood-off
    25  bit   IN          FALSE  not.3.in
    25  bit   OUT         FALSE  not.3.out
    16  bit   IN           TRUE  or2.0.in0 <== step2
    16  bit   IN          FALSE  or2.0.in1 <== step4
    16  bit   OUT          TRUE  or2.0.out ==> jog-speed-1
    16  bit   IN          FALSE  or2.1.in0 <== step3
    16  bit   IN          FALSE  or2.1.in1 <== step4
    16  bit   OUT         FALSE  or2.1.out ==> jog-speed-2
    16  bit   IN          FALSE  or2.2.in0
    16  bit   IN          FALSE  or2.2.in1
    16  bit   OUT         FALSE  or2.2.out
    16  bit   IN          FALSE  or2.3.in0
    16  bit   IN          FALSE  or2.3.in1
    16  bit   OUT         FALSE  or2.3.out
    16  bit   IN          FALSE  or2.4.in0
    16  bit   IN          FALSE  or2.4.in1
    16  bit   OUT         FALSE  or2.4.out
    16  bit   IN          FALSE  or2.5.in0
    16  bit   IN          FALSE  or2.5.in1
    16  bit   OUT         FALSE  or2.5.out
    16  bit   IN          FALSE  or2.6.in0
    16  bit   IN          FALSE  or2.6.in1
    16  bit   OUT         FALSE  or2.6.out
    12  float IN              0  pid.0.command-deriv
    12  float OUT             0  pid.0.error
    12  float IN              0  pid.0.feedback-deriv
    12  float I/O             0  pid.0.maxcmdD
    12  float I/O             0  pid.0.maxcmdDD
    12  float I/O             0  pid.0.maxerror
    12  float I/O             0  pid.0.maxerrorD
    12  float I/O             0  pid.0.maxerrorI
    12  bit   OUT         FALSE  pid.0.saturated
    12  s32   OUT             0  pid.0.saturated-count
    12  float OUT             0  pid.0.saturated-s
    12  float IN              0  pid.1.command-deriv
    12  float OUT             0  pid.1.error
    12  float IN              0  pid.1.feedback-deriv
    12  float I/O             0  pid.1.maxcmdD
    12  float I/O             0  pid.1.maxcmdDD
    12  float I/O             0  pid.1.maxerror
    12  float I/O             0  pid.1.maxerrorD
    12  float I/O             0  pid.1.maxerrorI
    12  bit   OUT         FALSE  pid.1.saturated
    12  s32   OUT             0  pid.1.saturated-count
    12  float OUT             0  pid.1.saturated-s
    12  float IN              0  pid.2.command-deriv
    12  float OUT             0  pid.2.error
    12  float IN              0  pid.2.feedback-deriv
    12  float I/O             0  pid.2.maxcmdD
    12  float I/O             0  pid.2.maxcmdDD
    12  float I/O             0  pid.2.maxerror
    12  float I/O             0  pid.2.maxerrorD
    12  float I/O             0  pid.2.maxerrorI
    12  bit   OUT         FALSE  pid.2.saturated
    12  s32   OUT             0  pid.2.saturated-count
    12  float OUT             0  pid.2.saturated-s
    12  float IN              0  pid.3.command-deriv
    12  float OUT             0  pid.3.error
    12  float IN              0  pid.3.feedback-deriv
    12  float I/O             0  pid.3.maxcmdD
    12  float I/O             0  pid.3.maxcmdDD
    12  float I/O             0  pid.3.maxerror
    12  float I/O             0  pid.3.maxerrorD
    12  float I/O             0  pid.3.maxerrorI
    12  bit   OUT         FALSE  pid.3.saturated
    12  s32   OUT             0  pid.3.saturated-count
    12  float OUT             0  pid.3.saturated-s
    12  float IN              0  pid.4.command-deriv
    12  float OUT             0  pid.4.error
    12  float IN              0  pid.4.feedback-deriv
    12  float I/O             0  pid.4.maxcmdD
    12  float I/O             0  pid.4.maxcmdDD
    12  float I/O             0  pid.4.maxerror
    12  float I/O             0  pid.4.maxerrorD
    12  float I/O             0  pid.4.maxerrorI
    12  bit   OUT         FALSE  pid.4.saturated
    12  s32   OUT             0  pid.4.saturated-count
    12  float OUT             0  pid.4.saturated-s
    12  float I/O             0  pid.a.Dgain
    12  float I/O             0  pid.a.FF0
    12  float I/O             0  pid.a.FF1
    12  float I/O             0  pid.a.FF2
    12  float I/O             0  pid.a.Igain
    12  float I/O             1  pid.a.Pgain
    12  float I/O             0  pid.a.bias
    12  float IN              0  pid.a.command
    12  float I/O             0  pid.a.deadband
    12  bit   IN          FALSE  pid.a.enable
    12  float IN              0  pid.a.feedback
    12  bit   IN          FALSE  pid.a.index-enable
    12  float I/O             0  pid.a.maxoutput
    12  float OUT             0  pid.a.output
    12  float I/O             0  pid.s.Dgain
    12  float I/O             0  pid.s.FF0
    12  float I/O             0  pid.s.FF1
    12  float I/O             0  pid.s.FF2
    12  float I/O             0  pid.s.Igain
    12  float I/O             1  pid.s.Pgain
    12  float I/O             0  pid.s.bias
    12  float IN              0  pid.s.command
    12  float I/O             0  pid.s.deadband
    12  bit   IN          FALSE  pid.s.enable
    12  float IN              0  pid.s.feedback
    12  bit   IN          FALSE  pid.s.index-enable
    12  float I/O             0  pid.s.maxoutput
    12  float OUT             0  pid.s.output
    12  float I/O           1.5  pid.x.Dgain
    12  float I/O         0.125  pid.x.FF0
    12  float I/O         0.125  pid.x.FF1
    12  float I/O        0.0125  pid.x.FF2
    12  float I/O           600  pid.x.Igain
    12  float I/O           300  pid.x.Pgain
    12  float I/O             0  pid.x.bias
    12  float IN              0  pid.x.command <== xpos-cmd
    12  float I/O             0  pid.x.deadband
    12  bit   IN          FALSE  pid.x.enable <== xenable
    12  float IN             -0  pid.x.feedback <== xpos-fb
    12  bit   IN          FALSE  pid.x.index-enable <== x-index-enable
    12  float I/O            10  pid.x.maxoutput
    12  float OUT             0  pid.x.output ==> xoutput
    12  float I/O         3.125  pid.y.Dgain
    12  float I/O          0.25  pid.y.FF0
    12  float I/O          0.25  pid.y.FF1
    12  float I/O         0.025  pid.y.FF2
    12  float I/O          2000  pid.y.Igain
    12  float I/O          1000  pid.y.Pgain
    12  float I/O             0  pid.y.bias
    12  float IN   -7.38189e-05  pid.y.command <== ypos-cmd
    12  float I/O             0  pid.y.deadband
    12  bit   IN          FALSE  pid.y.enable <== yenable
    12  float IN   -7.38189e-05  pid.y.feedback <== ypos-fb
    12  bit   IN          FALSE  pid.y.index-enable <== y-index-enable
    12  float I/O            10  pid.y.maxoutput
    12  float OUT             0  pid.y.output ==> youtput
    12  float I/O            20  pid.z.Dgain
    12  float I/O           0.5  pid.z.FF0
    12  float I/O          0.75  pid.z.FF1
    12  float I/O          0.05  pid.z.FF2
    12  float I/O           750  pid.z.Igain
    12  float I/O          4750  pid.z.Pgain
    12  float I/O             0  pid.z.bias
    12  float IN   -4.92126e-05  pid.z.command <== zpos-cmd
    12  float I/O             0  pid.z.deadband
    12  bit   IN          FALSE  pid.z.enable <== zenable
    12  float IN   -4.92126e-05  pid.z.feedback <== zpos-fb
    12  bit   IN          FALSE  pid.z.index-enable <== z-index-enable
    12  float I/O            10  pid.z.maxoutput
    12  float OUT             0  pid.z.output ==> zoutput
    29  bit   IN          FALSE  pyvcp.auto-led <== auto-mode
    29  bit   IN          FALSE  pyvcp.flood-led <== flood-is-on
    29  bit   OUT         FALSE  pyvcp.gearchange-button
    29  bit   IN          FALSE  pyvcp.highgear-led
    29  bit   IN          FALSE  pyvcp.lowgear-led
    29  bit   IN          FALSE  pyvcp.manual-led <== manual-mode
    29  bit   IN           TRUE  pyvcp.mdi-led <== mdi-mode
    29  bit   IN          FALSE  pyvcp.mist-led <== mist-is-on
    29  bit   IN           TRUE  pyvcp.spindle-at-speed-led <== spindle-at-speed
    29  float IN              0  pyvcp.spindle-speed-meter <== spindle-rpm
    29  float IN              0  pyvcp.spindle-speed-number <== spindle-rpm
    29  bit   IN          FALSE  pyvcp.step1-led <== step1
    29  bit   IN           TRUE  pyvcp.step2-led <== step2
    29  bit   IN          FALSE  pyvcp.step3-led <== step3
    29  bit   IN          FALSE  pyvcp.step4-led <== step4
    29  bit   IN          FALSE  pyvcp.x-led <== mpg-x
    29  bit   IN           TRUE  pyvcp.y-led <== mpg-y
    29  bit   IN          FALSE  pyvcp.z-led <== mpg-z
    18  float IN              0  scale.0.gain
    18  float IN              0  scale.0.in
    18  float IN              0  scale.0.offset
    18  float OUT             0  scale.0.out
    18  float IN             60  scale.1.gain
    18  float IN              0  scale.1.in <== scaled-encoder-rps
    18  float IN              0  scale.1.offset
    18  float OUT             0  scale.1.out ==> spindle-rpm-scaling
    18  float IN       16.66667  scale.2.gain
    18  float IN              0  scale.2.in <== spindle-velocity
    18  float IN              0  scale.2.offset
    18  float OUT             0  scale.2.out ==> scaled-encoder
    18  float IN              0  scale.3.gain
    18  float IN              0  scale.3.in
    18  float IN              0  scale.3.offset
    18  float OUT             0  scale.3.out
    18  float IN              0  scale.4.gain
    18  float IN              0  scale.4.in
    18  float IN              0  scale.4.offset
    18  float OUT             0  scale.4.out
    18  float IN              0  scale.5.gain
    18  float IN              0  scale.5.in
    18  float IN              0  scale.5.offset
    18  float OUT             0  scale.5.out
    24  bit   IN          FALSE  toggle.0.in
    24  bit   I/O         FALSE  toggle.0.out
    24  bit   IN          FALSE  toggle.1.in
    24  bit   I/O         FALSE  toggle.1.out
    24  bit   IN          FALSE  toggle.2.in
    24  bit   I/O         FALSE  toggle.2.out
    24  bit   IN          FALSE  toggle.3.in
    24  bit   I/O         FALSE  toggle.3.out
    13  bit   IN          FALSE  toggle2nist.0.in
    13  bit   IN          FALSE  toggle2nist.0.is-on
    13  bit   OUT         FALSE  toggle2nist.0.off
    13  bit   OUT         FALSE  toggle2nist.0.on
    13  bit   IN          FALSE  toggle2nist.1.in
    13  bit   IN          FALSE  toggle2nist.1.is-on
    13  bit   OUT         FALSE  toggle2nist.1.off
    13  bit   OUT         FALSE  toggle2nist.1.on
    13  bit   IN          FALSE  toggle2nist.2.in
    13  bit   IN          FALSE  toggle2nist.2.is-on
    13  bit   OUT         FALSE  toggle2nist.2.off
    13  bit   OUT         FALSE  toggle2nist.2.on
Last edit: 03 Sep 2013 02:09 by BigJohnT. Reason: add code tags

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

More
03 Sep 2013 00:15 #38433 by andypugh

andy, im starting off with z at 0. its a m5x0.8 thread.


In that case I don't think that the G-code posted will do what you want.

S500 m3
G33.1 z-0.065 k 0.08

You are asking for a very, very small Z move. I assume this is an Imperial machine?
I have, however, just tried it in the Axis simulator, and I got a move. It was a move made up almost entirely of accel and decel moves though.

M5x0.8 pitch should be a K of 0.8mm or 0.0315" though. 0.08 is wrong in any units.

Try a much lower spindle speed. It is just possible that the system is refusing to try to synch at 500rpm.
The following user(s) said Thank You: fabworx

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

More
03 Sep 2013 00:31 #38435 by fabworx
hi andy I just checked the scale is correct and one clockwise revolution of the spindle. same direction as if a m3 was issued the spindle-revs was -1 shouldn't it be a +1 in that direction? if so how should I go about reversing it? also my spindle velocity isn't giving me rps its like its scaled by 1000 and in rpm cause a command of s500 is putting out-0.506

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

More
03 Sep 2013 00:51 #38438 by fabworx
hi andy your correct I happened to type one to many 0's in that gcode on here but not on the machine. it should be like this.

s500 m3
g33.1 z-0.65 k0.8

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

More
03 Sep 2013 01:31 #38439 by fabworx
woo hoo some progress. ok so I got it to work by making my encoder scale -8000 at first I tried making my k value a negative number and got movement so that told me that I had my encoder giving the wrong direction.

I WANT TO THANK BIG JOHN, FOR YOUR INSITE AND HELP.
I ALSO WANT TO THANK ANDYPUGH, WITHOUT YOUR HELP I WOULDNT HAVE COME TO THIS CONCLUSION.
AND PETER A BIG THANK YOU TO YOU AS WELL.

ALL OF YOU GUYS ARE GREAT.

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

More
03 Sep 2013 02:15 #38441 by fabworx
ok I wanted to let everyone know that I have it working with my original hal file except for the -8000 encoder scale. the gear change and everything works fine.

thanks again guys. sometimes you just have to step back and take it to basics.

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

More
21 Jan 2016 01:43 #68860 by FloppyDisk
Hi,

I have looked at your hal file for the gearchange and you don't appear to have anything linked to:

gearchange.N.sel bit in Gear selection input

So, I don't see how you change the gear?

You have the following mux and flipflop lines:
net gearchange-scale-change mux2.1.sel flipflop.0.out
net gearchange-scale-change mux2.2.sel flipflop.1.out

But, I don't see how you get into gearchange.0.sel...

I see a toggle, but still not connected to gearchange??
setp toggle.0.debounce 0

Thanks and confused - Mark

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

Time to create page: 0.111 seconds
Powered by Kunena Forum