The function generates the ModuleIds of the submodules as follows:
SubmoduleId = MainModuleId x 100 + Index
The index runs from 1 to n = NumberOfSubModules.
| Input | Data type | Description | 
|---|---|---|
| i_udiMainModuleId | UDINT | ID of the node in which subordinate modules exist. | 
| i_pstSubModulesItf | POINTER TO ST_StandardModuleInterface | Array of the default interfaces of the submodules. | 
| i_udiNumberOfSubModules | UDINT | Number of submodules in the array at the i_pstSubModulesItf input. | 
| Output | Data type | Description | 
|---|---|---|
| q_etDiag | General, library-independent statement on the diagnostic. A value not equal to ET_Diag.Ok corresponds to an error message. | |
| q_etDiagExt | POU-specific output on the diagnostic. q_etDiag = ET_Diag.Ok -> Status message q_etDiag <> ET_Diag.Ok -> Error message | 
| q_etDiag | q_etDiagExt | Enumeration value | Description | 
|---|---|---|---|
| OK | Ok | 0 | Ok | 
| InputParameterInvalid | PointerSubModulesItfInvalid | 97 | The pointer SubModulesItf is invalid |