Mesa 7i96s | Gmoccapy | Spindeldrehzahl regelt nicht

More
25 Sep 2024 15:36 #310782 by Instandhalter
Hallo zusammen und guten Abend!

Meine erste Linuxcnc Fräsmaschine ist im Großen und Ganzen lauffähig, aber ich bekomme die Ansteuerung der Spindel via Mesa nicht hin. Testhalber habe ich drei Leitungen direkt vom FU (Lenze) an die Mesa-Karte gelegt, um Probleme mit XGND und GND zu vermeiden. Die Talla-Videos habe ich auch gesehen, aber da fängt es schon an, dass aus meiner Sicht unterschiedliche Variablen bzw. Parameter benutzt werden (RPM und RPS z.B.)
Vielleicht habe ich auch nur einen groben Verständnisfehler; es wäre sehr hilfreich, wenn sich jemand mal die Dateien ansehen und ggfs kommentieren könnte.
Zu mir: Ich bin Elektroniker, Jg. 1961, recht erfahren im CNC-Bau (aber eben nicht mit Linuxcnc) und heiße Rex.

This browser does not support PDFs. Please download the PDF to view it: Download PDF


This browser does not support PDFs. Please download the PDF to view it: Download PDF

Attachments:

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

More
28 Sep 2024 09:39 #310954 by andypugh
You don't seem to have anything connecting spindle-speed out to the mesa card?

You have wired the spindle-enable to an SSR, but the analogue spindle speed value would normally go to a PWM.

net spindle-vel-cmd-rpm => hm2_7i96s.0.pwmgen.00.value

See this post for examples:
forum.linuxcnc.org/10-advanced-configura...7i96s-analog-spindle
The following user(s) said Thank You: tommylight, Instandhalter

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

More
28 Sep 2024 10:15 #310962 by Instandhalter
Replied by Instandhalter on topic Mesa 7i96s | Gmoccapy | Spindeldrehzahl regelt nicht
Thank you, I will check it tomorrow.
What about this: "net spindle-vel-cmd-rpm <= spindle.0.speed-out"
It is so written in my HAL-file.
I have a problem to find out, which terms are for HAL and which are for Mesa 7i96s,
what is a parameter and what is a pin (hardware).
I assume that your "hm2_7i96s.0.pwmgen.00.value" is a parameter that Mesa wants to know or has to know. Is there any library where I can find all those necessary orders and parameters for this card (7i96s).
Please apologize if my questions are dumb, but I'm willing to learn :-)

BR Rex

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

More
28 Sep 2024 10:29 #310967 by andypugh
The format of a "net command" is

net signal pin (pin, (pin, ...))

ie a signal name (which has no special meaning, and can be anything you choose) and one or more pin names (which do have meanings, are exported by HAL components, and must exist at the time the net command is issued)

You can only have one output / writer pin per net, but as many inputs / readers as necessary.

Nets can be split over multiple lines, and over multiple HAL files.

So, in your case,
net spindle-vel-cmd-rpm <= spindle.0.speed-out
Is creating a signal called spindle-vel-cmd-rpm which is getting a value from the motion module which is the commanded spindle speed in rpm, but this signal is not being connected to an output pin.

One way to get a full list of all the pins and parameters on your specific system is to add the commands "show pin" and "show param" to the HAL file after all the "loadrt" statements. Then start LinuxCNC from the command line.

To get the default pins of just the Mesa card you can run an interactive halui session (really useful for debugging)
With linuxcnc _not_ running:
halrun
loadrt hostmot2
loadrt hm2_eth board_ip=192.168.1.121
show pin
show param

If you want to actually run the card and chek inputs/outputs then you need to load, link and start a realtime thread too.
loadrt threads
addf hm2_7i96s.0.read thread1
addf hm2_7i96s.0.write thread1
start

Then you can play about with "setp" and "show" to set and read pin and parameter vaues.

Use "exit" to get out when finished.
The following user(s) said Thank You: tommylight, ChironFZ16, Instandhalter

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

More
30 Sep 2024 16:44 #311078 by Instandhalter
Replied by Instandhalter on topic Mesa 7i96s | Gmoccapy | Spindeldrehzahl regelt nicht
Okay, Andy, let me give you a feedback.
I added the term to combine the signal to the output. Nothing changed.
Then I switched over to AXIS, because of the marvellous HAL Meter.
Compared signal with pin, pin didn't change.
Searching a little bit and found "PWMGEN enable" not defined.
I assume that was because I didn't took the pins cw and ccw but only the enable for starting the spindle.
Okay, changed, spindle ran. Full speed.
HAL Meter says, Pin and signal are identically and changing. Measuring always 10V output.
Check at Talla83, found
"setp hm2_7i96s.0.pwmgen.00.scale [SPINDLE_0]MAX_OUTPUT"
Tadaa! It runs...
Now I have to implement those changes into my gmoccapy_hal_file.
Thank you for your help and your patience.
BR Rex

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

Time to create page: 0.109 seconds
Powered by Kunena Forum