Advanced Search

Search Results (Searched for: 7i76e)

  • flipzip
  • flipzip
06 Jun 2025 04:35

MPG jog step is 4mm instead of 1mm per count

Category: General LinuxCNC Questions

First Question.

For a 1mm jog, I originally set my MUX40.in1 to 1.0. This was resulting in an exact 4mm jog each count. To fix this I need to set the scale below to 0.25. While I can do this and get the result I want, it bothers me that I have to use a ratio instead of direct number and will be harder to decode at latter dates. It seem arbritary that each count would be 4mm exact.

setp mux4.0.in1 1 (jogs 4 mm per count)

setp mux4.0.in1 0.25 (Jogs 1 mm per count)

net encoder-counts  <= encoder.0.counts
net encoder-counts => axis.x.jog-counts

Question is, where is the actual jog value recorded in LinuxCNC.? I cold find nothing in the .ini or .hal files that seems to indicated it would jog exactly 4mm each jog count.



Second question,

Per the below, I am currently using mux4 to determine the jog scale. But my MPG switch does is not using an encoder switch but instead has 3 simple outputs of which I placed into input 26 (1x), 27(10x), 28(100x)

I got everything to work but can not find any details in .hal how to use something other than mux4 logic to place the correct scale into the axis jog. This seems like it should be simple. More or less just want if one of those pins are true, the correct scale is selected. Below is partial code referancing the scale portion. Note. Only using pins 26 and 27 at the moment due to the mux4 requirements. Other than this, everything is working fine.

# This sets the scale that will be used based on the input to the mux4
setp mux4.0.in0 0.025
setp mux4.0.in1 0.25
setp mux4.0.in2 2.5

# The inputs to the mux4 component
net scale1 mux4.0.sel0 <= hm2_7i76e.0.7i76.0.0.input-26
net scale2 mux4.0.sel1 <= hm2_7i76e.0.7i76.0.0.input-27

# The output from the mux4 is sent to each axis jog scale
net mpg-scale <= mux4.0.out
net mpg-scale => axis.x.jog-scale

Basically want:

if Pin 26 true then axis.x.jog-scale == 0.025
if pin 27 true then axis.x.jog-scale == 0.25
if pin 28 true then axis.x.jog-scale == 2.5
  • martin71bay
  • martin71bay
04 Jun 2025 06:27 - 04 Jun 2025 06:32
Replied by martin71bay on topic Planetcnc MK3/4 controller with LinuxCNC?

Planetcnc MK3/4 controller with LinuxCNC?

Category: Driver Boards

Hallo Michael,

Danke für deine Antwort.Ich habe damals(ca.8 Jahren) mit LinuxCNC schon angefangen.Da hatte ich ein TB6560 Board von Modellbau Letmathe.Ich begann mit einen (China)Kreuztisch.Dann baute ich mir eine Portalfräse.Irgendwie bin ich auf den Planetcnc Controller gestossen.Denn habe ich genommen.
Zum Schluß wollte ich wieder umsteigen auf LinuxCNC.Habe mir dann eine MESA 7i76E gekauf und einen VFD mit Spindel.
Dann wurde ich krank und das Geld wurde knapp.Da verkaufte ich die Karte und Spindel wieder.

Jetzt habe ich nur das USB Board,die Motortreiber(Endstufen) und meinen Schaltschrank denn ich damals gebaut habe.
Ich habe sogar einen Pendant gebaut.Als USB HID Device,mit einen Teensy 3.2 und Joystick/Keypad.

Jetzt wollte ich das WHB04-4 Handrad in Planetcnc integrieren.Geht aber irgenwie nicht.Habe die .rules geändert usw. ......

Ich habe mir gedacht,man könnte die 26pin Schnittstelle verwenden.Ohne viel umzuverdrahten.

Hab gleich einen Termin.Melde mich wieder.

Grüße-Martin


Hello Michael,

Thanks for your answer.I started with LinuxCNC back then (about 8 years ago).I had a TB6560 board from Modellbau Letmathe.I started with a (China) cross table.then I built myself a portal milling machine.somehow I came across the Planetcnc controller.because I took it.
Finally I wanted to switch back to LinuxCNC and bought a MESA 7i76E and a VFD with spindle.
Then I got sick and ran out of money, so I sold the board and spindle again.

Now I only have the USB board, the motor drivers (power amplifiers) and my control cabinet that I built back then.
I even built a counterpart as a USB HID device with a Teensy 3.2 and joystick/keypad.

Now I wanted to integrate the WHB04-4 handwheel into Planetcnc, but somehow I couldn't. I changed the .rules etc. ......

I thought you could use the 26pin interface without having to rewire much.

I have an appointment in a few minutes.

Greetings-Martin
Displaying 556 - 557 out of 557 results.
Time to create page: 1.746 seconds
Powered by Kunena Forum