On Saturday 16 May 2020 02:01:41 Rod Webster wrote: > Now we have both State tags and the hal_port pin type in master > branch, it occurred to me that it might be possible to publish the > state tags structure to a hal_port pin and a component could check > motion.motion_type or the tag type to determine the data contained in > hal_port. > > A cursory read indicated that different classes of tags had different > structures. > > I'm particularly interested in being able to retrieve the arc radius > when the current segment is an arc. > > Is this feasible? Could somebody explain how to go about doing > something like this? > > If we could pull this off, it would allow easy access to the state > tags from a custom component instead of letting state tags sulk in the > EMC folder. > > Any help and advice would be appreciated. > We've had some parts of that for a while, Rod. I have a bit of hal that looks at motions state, and if not =5, disables response to a probe input, so I can use that same wire for a home switch. I've since put a 5i25 and another bob in that machine, but that code is still there.
Nice to see this added. It expands what hal can do. > > Rod Webster > *1300 896 832* > +61 435 765 611 > VMN® > www.vmn.com.au > > _______________________________________________ > Emc-developers mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/emc-developers Cheers, Gene Heskett -- "There are four boxes to be used in defense of liberty: soap, ballot, jury, and ammo. Please use in that order." -Ed Howdershelt (Author) If we desire respect for the law, we must first make the law respectable. - Louis D. Brandeis Genes Web page <http://geneslinuxbox.net:6309/gene> _______________________________________________ Emc-developers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-developers
