New ethercat / probe basic control for minimonster
- Hakan
- Away
- Platinum Member
-
Less
More
- Posts: 968
- Thank you received: 331
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: 897
- Thank you received: 215
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: 897
- Thank you received: 215
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: 897
- Thank you received: 215
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
- Away
- Platinum Member
-
Less
More
- Posts: 968
- Thank you received: 331
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.
Time to create page: 0.065 seconds