New ethercat / probe basic control for minimonster
- Hakan
- Offline
- Platinum Member
-
Less
More
- Posts: 979
- Thank you received: 332
30 Oct 2025 08:29 #337448
by Hakan
Replied by Hakan on topic New ethercat / probe basic control for minimonster
Here are the general signals that was generated for me by pncconf some years ago.You would need at least the enable and one of the vel-cmds.
Maybe forward/reverse and so on.
They all connect to the spindle pins (created by the motmod component).
Speed feedback is optional but nice to have, at-speed if your spindle can do that.
net spindle-vel-cmd-rps <= spindle.0.speed-out-rps
net spindle-vel-cmd-rps-abs <= spindle.0.speed-out-rps-abs
net spindle-vel-cmd-rpm <= spindle.0.speed-out
net spindle-vel-cmd-rpm-abs <= spindle.0.speed-out-abs
net spindle-enable <= spindle.0.on
net spindle-cw <= spindle.0.forward
net spindle-ccw <= spindle.0.reverse
net spindle-brake <= spindle.0.brake
net spindle-revs => spindle.0.revs
net spindle-at-speed => spindle.0.at-speed
setp spindle.0.at-speed 1
net spindle-vel-fb-rps => spindle.0.speed-in
net spindle-index-enable <=> spindle.0.index-enable
net spindle-revs <= hm2_7i76e.0.encoder.04.position
net spindle-vel-fb-rps <= hm2_7i76e.0.encoder.04.velocity
net spindle-index-enable <=> hm2_7i76e.0.encoder.04.index-enable
net spindle-manual-cw halui.spindle.0.forward
net spindle-manual-ccw halui.spindle.0.reverse
net spindle-manual-stop halui.spindle.0.stopMaybe forward/reverse and so on.
They all connect to the spindle pins (created by the motmod component).
Speed feedback is optional but nice to have, at-speed if your spindle can do that.
Please Log in or Create an account to join the conversation.
- ihavenofish
- Away
- Platinum Member
-
Less
More
- Posts: 907
- Thank you received: 217
30 Oct 2025 09:19 #337453
by ihavenofish
Replied by ihavenofish on topic New ethercat / probe basic control for minimonster
ooh, thanks
ill look at this when i wake up. im burned out from trying to make chatgpt give me something useful haha
ill look at this when i wake up. im burned out from trying to make chatgpt give me something useful haha
Please Log in or Create an account to join the conversation.
- ihavenofish
- Away
- Platinum Member
-
Less
More
- Posts: 907
- Thank you received: 217
30 Oct 2025 10:16 #337456
by ihavenofish
Replied by ihavenofish on topic New ethercat / probe basic control for minimonster
just for kicks, chat gpt has sent me down several roads that i know are wrong.
1st it tried to use motion component, but it has no spindle pins defined.(i expect these need to be set up in the main ini or hal but it couldnt tell me
so this in said i could use the spindle components... and then realised its read only.
then it took to just fabricating pins and functions that dont exist.
sigh. and this is what we have trying to run out law enforcement cameras? mmmmm good times.
1st it tried to use motion component, but it has no spindle pins defined.(i expect these need to be set up in the main ini or hal but it couldnt tell me
so this in said i could use the spindle components... and then realised its read only.
then it took to just fabricating pins and functions that dont exist.
sigh. and this is what we have trying to run out law enforcement cameras? mmmmm good times.
Please Log in or Create an account to join the conversation.
- ihavenofish
- Away
- Platinum Member
-
Less
More
- Posts: 907
- Thank you received: 217
30 Oct 2025 11:02 #337464
by ihavenofish
Replied by ihavenofish on topic New ethercat / probe basic control for minimonster
Still poking cause this is bugging me. Instead of telling chatgpt to make me code, instead I asked it why it's broken.
What it tells me is that motion.spindle basically doesn't work with modbus directly and pins wont be created and there's no simple automagic way to have m commands work out of the box.
It says this is a limitation of axis (what I have it running while I'm testing) and QT dragon doesn't have this limitation.
Before I follow it down another hole, does this sound like its correct? I want qtdragon anyway, it just was not installed because I did this all from scratch.
What it tells me is that motion.spindle basically doesn't work with modbus directly and pins wont be created and there's no simple automagic way to have m commands work out of the box.
It says this is a limitation of axis (what I have it running while I'm testing) and QT dragon doesn't have this limitation.
Before I follow it down another hole, does this sound like its correct? I want qtdragon anyway, it just was not installed because I did this all from scratch.
Please Log in or Create an account to join the conversation.
- Hakan
- Offline
- Platinum Member
-
Less
More
- Posts: 979
- Thank you received: 332
30 Oct 2025 15:21 - 30 Oct 2025 15:24 #337494
by Hakan
Replied by Hakan on topic New ethercat / probe basic control for minimonster
Chat gpt hehehe.
Go into halshow and list all spindle pins.
Read the motion(motmod) documentation, the spindle section linuxcnc.org/docs/html/man/man9/motion.9.html
Look at one of the examples in linuxcnc .
Pins created by mb2hal are just as good as any other pin.
Go into halshow and list all spindle pins.
Read the motion(motmod) documentation, the spindle section linuxcnc.org/docs/html/man/man9/motion.9.html
Look at one of the examples in linuxcnc .
Pins created by mb2hal are just as good as any other pin.
Last edit: 30 Oct 2025 15:24 by Hakan.
Please Log in or Create an account to join the conversation.
- ihavenofish
- Away
- Platinum Member
-
Less
More
- Posts: 907
- Thank you received: 217
30 Oct 2025 17:56 #337499
by ihavenofish
in fairness to chat gpt it has helped me waste time.
Halshow shows all the spindle.xxx pins but they are not writeable. I've looked at many examples, when I apply them to my config they don't work. I get pin doesn't exist on most things. That's why I am here asking questions. OBVIOUSLY things are missing from my main config, but I cant see what. I will collect my main hal and ini and mb2hal files that "work" in a moment and post them. It starts with no errors, and xyz move, and via halshow i can start the spindle, but nothing I do allows to to use m3 to start the spindle.
Replied by ihavenofish on topic New ethercat / probe basic control for minimonster
Chat gpt hehehe.
Go into halshow and list all spindle pins.
Read the motion(motmod) documentation, the spindle section linuxcnc.org/docs/html/man/man9/motion.9.html
Look at one of the examples in linuxcnc .
Pins created by mb2hal are just as good as any other pin.
in fairness to chat gpt it has helped me waste time.
Halshow shows all the spindle.xxx pins but they are not writeable. I've looked at many examples, when I apply them to my config they don't work. I get pin doesn't exist on most things. That's why I am here asking questions. OBVIOUSLY things are missing from my main config, but I cant see what. I will collect my main hal and ini and mb2hal files that "work" in a moment and post them. It starts with no errors, and xyz move, and via halshow i can start the spindle, but nothing I do allows to to use m3 to start the spindle.
Please Log in or Create an account to join the conversation.
- ihavenofish
- Away
- Platinum Member
-
Less
More
- Posts: 907
- Thank you received: 217
30 Oct 2025 18:23 #337502
by ihavenofish
Replied by ihavenofish on topic New ethercat / probe basic control for minimonster
here are my current working files.
Please Log in or Create an account to join the conversation.
- Hakan
- Offline
- Platinum Member
-
Less
More
- Posts: 979
- Thank you received: 332
30 Oct 2025 19:12 #337509
by Hakan
Replied by Hakan on topic New ethercat / probe basic control for minimonster
Add num_spindles=1
loadrt [EMCMOT]EMCMOT servo_period_nsec=[EMCMOT]SERVO_PERIOD num_joints=[KINS]JOINTS num_spindles=1Please Log in or Create an account to join the conversation.
- ihavenofish
- Away
- Platinum Member
-
Less
More
- Posts: 907
- Thank you received: 217
30 Oct 2025 19:31 #337513
by ihavenofish
Replied by ihavenofish on topic New ethercat / probe basic control for minimonster
added. no error but also no apparent change?
What is expected to happen here?
thanks!
What is expected to happen here?
thanks!
Please Log in or Create an account to join the conversation.
- Hakan
- Offline
- Platinum Member
-
Less
More
- Posts: 979
- Thank you received: 332
30 Oct 2025 20:17 #337521
by Hakan
Replied by Hakan on topic New ethercat / probe basic control for minimonster
A lot of pins starting with spindle.0 should be created. Check in halshow.
Please Log in or Create an account to join the conversation.
Time to create page: 0.116 seconds