M
Hi all, I have just completed a first working version of the library for IO modules I mentioned a few days ago. I also changed the parport driver to use this library. Because of this change the parport driver will now support multi-bit points, which it didn't until now. But before I can commit all this to the cvs, I need to know where to put the io library! I was thinking it should go under io/lib Another possibility is lib/io I prefer the io/lib, as this library is only going to be used by IO modules. Comments please... This library is actually a complete IO module (it includes the main() function) and is only lacking specific functions to actually access the hardware. I expect that in the future this library will handle scaling of analog values, etc... When some new hardware comes along, we can simply write the hardware access functions and link them to this library to generate a new IO module. This also has the benefit that all IO modules will use the same configuration syntax when it comes to defining the mappings between physical IO and plc points. As I expected, the API to hardware access functions has changed, but more on that after I get to commit it to the cvs. By the way, does anybody know offhand the default IO address of the parallel port? The PC I am now using for the PuffinPLC has it at 0x378, but a previous PC I used had it at 0x278. What IO address should I place as the default? (It's easier to ask than to go looking for this info. I'm sure somebody will know offhand...) Cheers,
Mario.
--
---------------------------------------------------------------------------- Mario J. R. de Sousa [email protected] ---------------------------------------------------------------------------- The box said it requires Windows 95 or better, so I installed Linux _______________________________________________ LinuxPLC mailing list [email protected] http://linuxplc.org/mailman/listinfo/linuxplc
Mario.
--
---------------------------------------------------------------------------- Mario J. R. de Sousa [email protected] ---------------------------------------------------------------------------- The box said it requires Windows 95 or better, so I installed Linux _______________________________________________ LinuxPLC mailing list [email protected] http://linuxplc.org/mailman/listinfo/linuxplc