Kirk Wallace wrote: > I have a command/response test program working with a ModIO controller. > You can see the C file read_Din-1b.c here: > > http://www.wallacecompany.com/machine_shop/EMC2/modbus/ > > Next, I would like to get it working with EMC2. I believe, I can just > call my C program from a .hal file using "loadusr read_Din-1b". But how > can I allow for HAL pins in my C file? Thanks. > The short version: include hal.h and call hal_init(), then hal_pin_new(). There are lots of comments in hal.h that document the API, and there are manpages for the API as well.
Regards, John Kasunich ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Emc-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-users
