Claes,
While building custom classes, I often notice something strange. The attached object code works fine, until the addition of an $Intern enumeration placed between $Inputs and $Outputs. The .c program is compiled, class updated, plc code rebuilt, and loaded to simulator run-time. No compiler errors and no linker errors. However, a simple o->Out = result; command suddenly stores to the wrong variable. Other values are also stored to wrong places. In this case, no pointers are used. Just direct o->variable = value; statements I've examined the wb_load file for corruption errors and the .h include file, too. Don't see anything obvious? When the enumeration is removed, program compiled and loaded, all is well again. Any ideas or suggestions?
Thanks,
Ron