J
Hello, I've just added few lines of code to the lPLC library so that if you have a multi-bit point "foo", you can call plc_pt_by_name("foo.3") and it'll return the right thing. Bits are numbered from 0 to 31 in decimal. It's an error if foo isn't big enough. (Exception: if foo is 0-bit, a 0-bit point is returned.) The user can override this by explicitly defining a point called "bit.3". I hope no-one's offended by my choice of syntax; I know this was requested for the IEC compiler, and maybe a some others as well - doing it in the gmm means that it works for any module - even, say, I/O (so you can define an 8-bit integer point and map the individual bits to the individual inputs). Jiri -- Jiri Baum <[email protected]> Q: Why did the chicken cross the Moebius Strip? A: To get to the other... um... er... --r.h.f.r _______________________________________________ LinuxPLC mailing list [email protected] http://linuxplc.org/mailman/listinfo/linuxplc