I have never used the Modules in GUIDE before, but I just now spent some time researching this function. I would say that Modules and POU's are very similar in effect. Structured text isn't CoDeSys per se... CoDeSys includes six different programming languages which includes structured text as well as ladder diagram, sequential function chart, continuous function chart (which is basically what GUIDE is), instruction list, and some weird step chart. The similarity is that this Structured Text is defined by the IEC 61131-3 standard.
Anyway, it sounds like what you're interested in is some way of having the microcontroller identify which type of machine it's installed in and then act accordingly. Are you looking for ideas on how the microcontroller can identify the machine or how it can use that identification to trigger different logic?