Andy, Thanks for responding. I am not sure I follow what you said here:
Your HAL is set up for jogging with + / - buttons. I don't know if PNCCOnonf knows how to set up jogwheels, but I imagine it would.
So perhaps you forgot to mention the MPG during setup?
I have separate jog wheels for X and Z, and an encoder for Spindle speed override ( and for a live tool speed overrride - not relevant now). I have set these all up in pncconf ( in 'advanced setup' mode) and can see all the wheels counters and all the switches I have all toggling in HAL_Show in linuxCNC.
Towards the end of the HAL file I attached some posts ago is the setup related to the encoders - (excerpt below - not complete).
So I am not sure what you meany by me forgetting the mention MPG during setup? Am I missing something? ( quite possible at this stage!)
Code:
# ---jogwheel signals to mesa encoder - x axis MPG---
net x-jog-count <= hm2_7i92.0.7i73.0.1.enc0.count
# ---mpg signals---
setp axis.x.jog-vel-mode 0
net x-jog-enable => axis.x.jog-enable
net x-jog-count => axis.x.jog-counts
net selected-jog-incr => axis.x.jog-scale
sets x-jog-enable true
# ---jogwheel signals to mesa encoder - z axis MPG---
net z-jog-count <= hm2_7i92.0.7i73.0.1.enc1.count
# ---mpg signals---
setp axis.z.jog-vel-mode 0
net z-jog-enable => axis.z.jog-enable
net z-jog-count => axis.z.jog-counts
net selected-jog-incr => axis.z.jog-scale
sets z-jog-enable true
# 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.debounce-time 0.100000
setp jogincr.use-graycode False
setp jogincr.suppress-no-input False
setp jogincr.in00 0.000000
setp jogincr.in01 0.001000
setp jogincr.in02 0.005000
setp jogincr.in03 0.001000
setp jogincr.in04 0.100000
setp jogincr.in05 0.010000
setp jogincr.in06 0.050000
setp jogincr.in07 0.100000
setp jogincr.in08 0.500000
setp jogincr.in09 0.125000
setp jogincr.in10 0.125000
setp jogincr.in11 0.125000
setp jogincr.in12 0.125000
setp jogincr.in13 0.125000
setp jogincr.in14 0.125000
setp jogincr.in15 0.125000
# connect feed overide increments - MPG
setp halui.feed-override.direct-value false
setp halui.feed-override.scale .01
net fo-enable => halui.feed-override.count-enable
net axis-selected-count => halui.feed-override.counts
# ---spindle override signals to mesa encoder - mpg---
net so-count <= hm2_7i92.0.7i73.0.1.enc2.count
# connect spindle overide increments - MPG
setp halui.spindle.0.override.direct-value false
setp halui.spindle.0.override.scale .01
setp halui.spindle.0.override.count-enable true
net so-count => halui.spindle.0.override.counts
Then you indicate:
axis.L.jog-counts needs to connect to the MPG counts. Something like:
Code:
net jog-counts hm2_5i25.0.7i73.0.0.encoder-00-counts
net jog-counts axis.x.jog-counts axis.y.jog-counts axis.z.jog-counts
I think this is in my HAL file as above?
But this is not ( I could not find it anyway!)
And if you want to jog in joint mode too, add those in:
Code:
net jog-counts hm2_5i25.0.7i73.0.0.encoder-00-counts
net jog-counts axis.x.jog-counts joint.0.jog-counts
net jog-counts axis.y.jog-counts joint.1.jog-counts
net jog-counts axis.z.jog-counts joint.2.jog-counts
What I don't understand is why is the above not in the HAL file? Should this not have been created by pncconf? When I used pncconf to do the setup the result in HAL_Show is that all the connected hardware, encoders, jog wheels, switches are seen.
NOW - a small Eureka moment..
Before hitting submit I went to try some more, as it had been mentioned in some previous posts that I must HOME first else jogging wont work.
I used switches to simulate the home switches, managed to home, and then all jogging works!
The X and Z jog wheels jog fine, using the rates as selected by my 4 position jog step size switch, etc!
The X+,X- and Z+, Z- jog push buttons work ( at rate =1 - where do I change that?) , etc
So I am even more confused now, as the setup seems to work - jogs, etc, but appears to be lacking fundamental enabling statements in the HAL file??
Could I ask that you please explain the jogging concepts in LinuxCNC? I think I am not asking the correct question here, but lack the knowledge to know what I should be asking! What or where are the jog instances that occur in L_CNC - You can jog in 'Axis' and in 'joint' modes? Joint is a 'motor', but that is attached to an Axis and so the axis jogs when you jog the 'joint'?
You said :
And if you want to jog in joint mode too, add those in:
If I did not add 'those' in, what mode am I jogging in? And what moves when jogging then?
Going back to read all the HAL docs again, since it seems the more I learn the less I know!.
Thanks Andy!