C
Hopefully the following is not a stupid question: Q: Is it desirable to define a boolean variable (eg: type BOOL as defined in the IEC spec) as a single bit at a variable bit offset? eg: Define a variable as being bit 5 of byte 76. There is a nice feature of the IEC to declare a variable to report the rising or falling state of a memory location. The question that comes to mind is "how do we implement this?". I could use a C++ class but I have a feeling this is like using a sledgehammer (although a class would allow bit access of a word at the expense of CPU performance). David Campbell _______________________________________________ LinuxPLC mailing list [email protected] http://linuxplc.org/mailman/listinfo/linuxplc