I'm nearing the end of a project in which a an Omron PLC, CJ1M series, communicates over a ModBus network using a SCU41 card to read/write various data accross the network. However, I've recently come up with a problem that's making all my work seem useless. I have been creating a function block for each kind type of component across the network, be it power regulator or circuit breaker, that way its easy to take a block and move it across a program plus it serves as a black box, you don't need to see what its doing, just the results. However, due to many, many comparison lines I've inserted to map the different data types in each of the network components (aka the program automatically knows wether its looking for UDInt, Floating Point, UInt and gathers the necessary date), I had too many steps and ran out of UM. I therefor changed from a CPU11 to a CPU22, and all should be good. However, I now get an error message "Internal error. Failed to generate Function Block Instance code" which is preventing me from sending my program to the new CPU. Only 1 of my FBs seems immune to this error. Any help?