Smoother jog

More
03 Feb 2015 17:05 #55619 by Niko
Smoother jog was created by Niko
Hi,
I have hooked up the MPG and got it running with position and velocity mode . I set the increments with a rotary switch and also set the speed with it . The speed is sent to halui.jog-speed . feed, rapid and max-velocity are controled with a pot. Thing is that jog speed is set by the pot and not the switch . Also it is verry jerky, especially at slow speeds of the MPG . How can I get it smoother ? Which pin sets the speed for axis.N.jog-counts ?

Cheers

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

More
03 Feb 2015 17:27 #55620 by ArcEye
Replied by ArcEye on topic Smoother jog
Hi

The speed is sent to halui.jog-speed....................


You don't set jog speed for a MPG pendant. You set the increment and the speed is determined by how fast you turn the MPG wheel.
So you don't connect anything to halui pins just to axis.N.xxx

This is the mpg.hal file from one of my configs, which has a MPG, axis selector switch and increment selector switch.
# Jog Pendant
loadrt encoder num_chan=1


addf encoder.capture-position servo-thread
addf encoder.update-counters base-thread

loadrt mux4 count=1
addf mux4.0 servo-thread

 # for absolute mode (for every click you get a move ie, if you spin the dial it may keep moving after you stop the dial)
 # default so does not need to be set
 #axis.N.jog-vel-mode 0

 # for velocity mode (when you stop spinning the dial the axis stops)
 # must be set for each axis
setp axis.0.jog-vel-mode 1
setp axis.1.jog-vel-mode 1
setp axis.2.jog-vel-mode 1
# setp axis.3.jog-vel-mode 1



 # "times 4 mode" one count per full quadrature cycle, instead of the usual one count per edge.  
 # mpg jog wheels often have a full quadrature cycle per "click". 0 for off and 1 for on.
setp encoder.1.x4-mode 0

setp mux4.0.in0 0.1
setp mux4.0.in1 0.01
# setp mux4.0.in2 0.01

## temp to test radio btns

net scale1 mux4.0.sel0 <= parport.1.pin-08-in
#net scale2 mux4.0.sel1 <= parport.1.pin-11-in-not
### net scale3 mux4.0.sel2 

net pend-scale axis.0.jog-scale <= mux4.0.out
net pend-scale axis.1.jog-scale
net pend-scale axis.2.jog-scale

net mpg-a encoder.1.phase-A <= parport.1.pin-13-in
net mpg-b encoder.1.phase-B <= parport.1.pin-15-in

net mpg-x axis.0.jog-enable <= parport.1.pin-03-in-not
net mpg-y axis.1.jog-enable <= parport.1.pin-04-in-not
net mpg-z axis.2.jog-enable <= parport.1.pin-05-in-not
net mpg-4 axis.3.jog-enable <= parport.1.pin-06-in-not

net pend-counts axis.0.jog-counts <= encoder.1.counts
net pend-counts axis.1.jog-counts
net pend-counts axis.2.jog-counts


regards
The following user(s) said Thank You: Niko

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

More
03 Feb 2015 18:16 - 03 Feb 2015 18:37 #55627 by Niko
Replied by Niko on topic Smoother jog
I use a 7i73 board and it doen't have a .x4 pin . Would it be smoother with the enoder module?


I tried that and the potentiometer still controlls the speed . Also it gets intermittent pulses whithout reason and I can hear it jump . The feed is again verry jerky and noisy .
Last edit: 03 Feb 2015 18:37 by Niko.

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

More
03 Feb 2015 18:28 - 03 Feb 2015 19:03 #55629 by ArcEye
Replied by ArcEye on topic Smoother jog

I use a 7i73 board and it doen't have a .x4 pin . Would it be smoother with the enoder module?


I don't have any experience with a 7i73, but this is a lift from my config using exactly the same pendant with a 5i25 / 7i76

I have a 7i76 board connected to the main DB25 socket which does all the steppers, spindle encoder etc.
I then connected the second 5i25 output header to a BOB, to access one of the encoders and connected the MPG pendant to it (using inputs on the 7i76), it works fine

The designations etc will not be the same, but the encoder connections etc. should be
# ---jogwheel signals to mesa encoder - shared MPG---

#	MPG has 5V+ GND A+ B+ all from BOB attached to P2 (header) of 5i25
#
#	Using hm2_5i25.0.encoder.01
#
#	Wire with 12v feed to centre of handset switches (originally GND)
#	Outputs wired as below to 7i76 inputs
#	This is because will not work on 5v TTL signals, need > 8v
#

net joint-selected-count     <=  hm2_5i25.0.encoder.01.count

setp hm2_5i25.0.encoder.01.counter-mode true  # single step

#  ---mpg signals---

#       for axis x MPG
setp    axis.0.jog-vel-mode 0
net selected-jog-incr    =>  axis.0.jog-scale
net joint-select-a       =>  axis.0.jog-enable
net joint-selected-count =>  axis.0.jog-counts

#       for axis y MPG
setp    axis.1.jog-vel-mode 0
net selected-jog-incr    =>  axis.1.jog-scale
net joint-select-b       =>  axis.1.jog-enable
net joint-selected-count =>  axis.1.jog-counts

#       for axis z MPG
setp    axis.2.jog-vel-mode 0
net selected-jog-incr    =>  axis.2.jog-scale
net joint-select-c       =>  axis.2.jog-enable
net joint-selected-count =>  axis.2.jog-counts

# connect selectable mpg jog increments 

net jog-incr-a           =>  jogincr.sel0
net jog-incr-b           =>  jogincr.sel1
net jog-incr-c           =>  jogincr.sel2
net jog-incr-d           =>  jogincr.sel3
net selected-jog-incr    <=  jogincr.out-f
    setp jogincr.use-graycode      False
    setp jogincr.suppress-no-input False
    setp jogincr.in00          1.000000
    setp jogincr.in01          0.010000
    setp jogincr.in02          0.100000
    setp jogincr.in03          1.000000
    setp jogincr.in04          1.000000
    setp jogincr.in05          1.000000
    setp jogincr.in06          1.000000
    setp jogincr.in07          1.000000
    setp jogincr.in08          1.000000
    setp jogincr.in09          1.000000
    setp jogincr.in10          1.000000
    setp jogincr.in11          1.000000
    setp jogincr.in12          1.000000
    setp jogincr.in13          1.000000
    setp jogincr.in14          1.000000
    setp jogincr.in15          1.000000
    
# X    
net joint-select-a <=  hm2_5i25.0.7i76.0.0.input-09  

# Y
net joint-select-b <=  hm2_5i25.0.7i76.0.0.input-10

# Z
net joint-select-c <=  hm2_5i25.0.7i76.0.0.input-11

# 1.0
net jog-incr-a  <=  hm2_5i25.0.7i76.0.0.input-12

# 0.1
net jog-incr-b  <=  hm2_5i25.0.7i76.0.0.input-13

# 0.01
net jog-incr-c  <=  hm2_5i25.0.7i76.0.0.input-14

regards
Last edit: 03 Feb 2015 19:03 by ArcEye. Reason: Clarify

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

More
03 Feb 2015 19:16 - 03 Feb 2015 20:53 #55631 by Niko
Replied by Niko on topic Smoother jog
My configuation is similar . Everything sort of works, but not well . Incremental jog at slow speeds is smooth but vlocity mode is jerky at every speed . Also the mpg speed doesn't affect the jog speed at all .


I just tried ilowpass and it worked perfecly .
Last edit: 03 Feb 2015 20:53 by Niko.

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

More
03 Feb 2015 20:04 - 03 Feb 2015 21:17 #55637 by ArcEye
Replied by ArcEye on topic Smoother jog
Well as you see from my config, I don't use velocity mode

setp axis.0.jog-vel-mode 0


I use the pendant for fine positioning mostly, for touch off and centering.
If I want to move quickly to an approximate point, I just use the keyboard direction arrows.

regards

EDIT:

I just tried ilowpass and it worked perfecly .


Excellent, I'll bear in mind if I want to use velocity jog on the pendant
Last edit: 03 Feb 2015 21:17 by ArcEye.

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

Time to create page: 0.070 seconds
Powered by Kunena Forum