Den 2023-10-11 kl. 21:31, skrev Rod Webster:
In fact, in your sample code, the unsigned int Word _can't_ be being
used as a HAL pin, as it's a simple int, not a pointer.
The code I shared was a typedef. But yes, the pins are created with
hal_pin_new*() so it would seem OK
The hal types do seem to be a well kept secret. How about documenting
them in the hal component generator documentation?
https://linuxcnc.org/docs/devel/html/hal/comp.html#_definitions
The EtherCAT drive doesn't interface directly to HAL, does it? The
actual register size transmitted down the wires is defined in the
ethercat driver.
Andy the ethercat driver was written a long time ago and it's no
longer actively maintained from what I have observed. Yet it's used by
many many users and use of ethercat has been growing among our user
base. I've made some minor changes to it so it can be shared via a
repository. Whether or not it would break with the proposed changes
would remain to be seen. I certainly would not profess to have the
skills to modify it if that were required. So who is going to
maintain it? How many other drivers could be affected by your proposed
changes?
Also made a simple Ethercat driver using SOEM. Currently try to add one
or two operations to FreeCAD CAM module, need to figure out a good
method to measure parameters that should be equal to estimation of
parameters in an auto regressive process of order one, a few other
hopefully minor technical problems to solve and a few parts to
manufacture. Though will hopefully quite soon return back to the
Ethercat driver.
Nicklas Karlsson
_______________________________________________
Emc-developers mailing list
Emc-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-developers