Configuring axis gui "axis radio buttons"
Very helpful Andy Thanks.Yes, the encoder/pots can connect to a software encoder counter through either Mesa GPIO or P-port.
If you run a base-thread then the p-port can count faster than you can twirl the knobs. If you use the mesa IO then the inputs can only be sampled at 1kHz, so if you twirl very fast you will lose counts. But you won't notice.
My Hal files for the PP are at the start of the thread #99683 when you have the time could you point me in the right direction to start I am very slowly beginning to understand the Hal stuff I do read every post on the forum to try and learn.
I do appreciate your valuable time that you put into the forum.
Please Log in or Create an account to join the conversation.
Just increase the number of encoders to 4, configure like the existing encoders and then connect the counts pin to the halui.spindle-override.counts
linuxcnc.org/docs/2.7/html/man/man1/halui.1.html
Your HAL will also need to "setp" the count-enable to true and also "setp" a suitable scale value.
Please Log in or Create an account to join the conversation.
It will be much like your existing custom hal.
Just increase the number of encoders to 4, configure like the existing encoders and then connect the counts pin to the halui.spindle-override.counts
linuxcnc.org/docs/2.7/html/man/man1/halui.1.html
Your HAL will also need to "setp" the count-enable to true and also "setp" a suitable scale value.
Thanks Andy my encoder pots have come today from RS 623-4237 I also ordered the one's you link to from China.
So If I want to do the feed override first then; I take I would use halui.feed-override.counts and now I am lost:( would you mind guiding me a bit more.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
It's just a copy/paste of the existing MPG stuff, with different parport pins, basically.
Ok I enclose the custom.hal with copied mpg stuff at the end. I am sorry but I can not figure it out. Could you please comment on it for the names to be changed etc I have increased encoders to 4
I gather I will need halui.feed.override.counts some ware in the file
The custom.hal loads without errors at this time
Please Log in or Create an account to join the conversation.
I am still struggling to get it to change the feed-rate and slider in axis. Can anybody help please.
Please Log in or Create an account to join the conversation.
linuxcnc.org/docs/2.7/html/man/man1/halui.1.html
You can choose any signal name you want (that's the first thing after the "net" command.
And then setp the scale and (probably) the enable pins.
(and it would help to clear out many of the commented lines from your HAL, they only confuse humans and are ignored by the computer)
Please Log in or Create an account to join the conversation.
(and it would help to clear out many of the commented lines from your HAL, they only confuse humans and are ignored by the computer)
Ok cleared the comments out.
sorry but still need more help. just don't seem to be able to get my head around it.
the file loads without errors.
Please Log in or Create an account to join the conversation.
setp halui.feed-override.scale 100
(maybe 0.01, I don't have any way to test where I am now).
machine->halmeter in the menus will let you see if the signals and outputs are moving.
Please Log in or Create an account to join the conversation.
Maybe it is because you don't have
setp halui.feed-override.scale 100
(maybe 0.01, I don't have any way to test where I am now).
.
Thanks Andy star man. My bad I was using the wrong port I found with hal-meter.
can you clarify what is the (feedrate-fa) doing in here
net feedrate-fa encoder.3.phase-A <= parport.1.pin-10-in
net feedrate-fb encoder.3.phase-B <= parport.1.pin-11-in
If I delete it I get an error
Also would I set the feed-rate slider back to 100% with a switch (would I connect it to halui.feed-override.count-enable true )
Please Log in or Create an account to join the conversation.