Well, is there a spot where I can find some examples, of that what you > mentioned? >
As the guys pointed out early, there are several simpler solutions to implement the DRO functionality you're looking for. Nevertheless you can take a look here to see some source code to have a starting point to make your own components in case you need it: https://github.com/LinuxCNC/linuxcnc/tree/master/src/hal/components Some are pretty simple and understandable, others look like chinese to me LOL. El lun, 12 jul 2021 a las 18:59, R C (<[email protected]>) escribió: > > On 7/12/21 8:59 AM, Leonardo Marsaglia wrote: > >> That was actually what I was looking for, a button "like that", and > >> wondered if I just didn't see/find it. > >> > >> Yeah I can see some "convenient" functionality in that, but being able > >> to go "half way" between two points, even with some iteration would > >> help, to get that started > >> > >> (It would be really easy, math wise, once you have something like that, > >> to find the center of a circular hole, or a rectangle, or anything > >> symmetrical, basically) > >> > >> I wonder, in hal, with a plugin, if you can just move the tool/spindle, > >> and the DRO screen shows where it is going. For example, for finding > >> the center of a circular hole, you'd only need to find the edge in 3 > >> spots, and then just "go there". > >> > >> > >> I'd love to figure out how to write a plugin like that. > >> > > Well If you want to use an electronic probe tool to automatically stop at > > contact I think the use of HAL is unavoidable since the probe input is a > > part of the MOTION component of LinuxCNC. You'll also have to make fancy > > G-CODE as John said with this approach since you're gonna need to deal > with > > digital outputs and delays to make the routine. > right, and I don't know if I want to go that route, if there's a simpler > one. > > If you plan to externalize > > the probing or if you plan to use a wiggle edge finder, you can still use > > HAL to manually set the points with a button as we talked earlier. > > that was orinallt the 'question' I had in mind. Something simple with a > few buttons, that can do some simple calculations. But if it's already > there, I just haven't found it yet. > > I am not that experienced using LCNC/Axis, and don't have a lot of time > to 'play' with it (it's that paycheck commitment thing :) ) > > > > > As Andy suggests, there are plenty of GUI(ed) ways to do this also, but > I'm > > so comfortable with HAL that I really don't mess around too much at GUI > > level. (That's a big to do on my list) > > > > If you have some C programming knowledge I think you will be more than > alright making your custom component to try this. > > Actually, been programming in C for a few decades, on all kinds of > platforms. Question, as always is, where to get started? Is there some > sort of "skeleton", a frame that shows what it should look like, with > some trivial functionality? > > For example, if you want to write a linux daemon, you can use a > "skeleton", that basically show some of that, and with already > existing coding skills, you can write your own functioning daemon. > > So if there is something like that for LCNC/Axis, I'd give that a shot. > > > > I myself am pretty far > > from being a programmer and I could do a lot of custom components with > the HAL > > Component Generator <http://linuxcnc.org/docs/2.8/html/hal/comp.html> > for > > the machines I have here. > > > > Any help you need please feel free to ask :) > > Well, is there a spot where I can find some examples, of that what you > mentioned? > > > Ron > > > > > > El lun, 12 jul 2021 a las 5:20, andy pugh (<[email protected]>) > escribió: > > > >> (Nothing quoted, as this is general info) > >> > >> If you have a probe, then there is a hole centre macro that ships with > >> LinuxCNC, "probe-hole.ngc" > >> That will work without any config changes. > >> There is a fairly complete set of probe routines included in the > >> distribution which are included in the QTDragon and Woodpecker QTVcp > >> GUIs at least. > >> (There is a lot going on with QTVcp, it seems, and it is passing me by) > >> > >> In the venerable "Axis" interface you can spoof a fair bit of what is > >> being talked about here in the touch-off dialog as it will accept > >> mathematical expressions in the box. > >> So, you can type in the current DRO reading and halve it ( 1.234 / 2 > >> ). I believe that any valig G-code expression will work: (sin[60] / 2 > >> for example) > >> > >> It would be handy to be able to use axis letters in there, and feels > >> like an easy thing to add. I would not be at all surprised to find > >> that some of the newer GUIs allow exactly that. > >> > >> This touch-off behaviour will be GUI-specific, and I doubt that anyone > >> is intimately familiar with more than a couple of GUIs. > >> > >> -- > >> atp > >> "A motorcycle is a bicycle with a pandemonium attachment and is > >> designed for the especial use of mechanical geniuses, daredevils and > >> lunatics." > >> — George Fitch, Atlanta Constitution Newspaper, 1912 > >> > >> > >> _______________________________________________ > >> Emc-users mailing list > >> [email protected] > >> https://lists.sourceforge.net/lists/listinfo/emc-users > >> > > _______________________________________________ > > Emc-users mailing list > > [email protected] > > https://lists.sourceforge.net/lists/listinfo/emc-users > > > _______________________________________________ > Emc-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/emc-users > _______________________________________________ Emc-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-users
