FC_UpdateAddInterfaceStruct - General Information
Type: |
Function |
Available as of: |
V1.0.0.0 |
Versions: |
Current version |
This function is used to handle submodules of type SmartInfeed module within the Update_Structs action of a node equipment module.
The function updates the link to the SmartInfeed module within the module hierarchy of the template. By using this link you can activate different modules from the template.
Input |
Data type |
Description |
---|---|---|
i_pdwSubModuleAddInterfaces |
POINTER TO DWORD |
The address in which the additional interfaces of the node are managed must be transferred to the input. |
i_udiSubmoduleConstant |
UDINT |
The number of the module within the node must be transferred to the input. |
Output |
Data type |
Description |
---|---|---|
q_etDiag |
General, library-independent statement on the diagnostic A value unequal GD.ET_Diag.Ok equates an error message. |
|
q_etDiagExt |
POU-specific output on the diagnostic q_etDiag = GD.ET_Diag.Ok -> status message q_etDiag <> GD.ET_Diag.Ok -> error message |
|
q_sMsg |
STRING[80] |
Event-triggered message which gives more detailed information on the diagnostic state. |
Input/Output |
Data type |
Description |
---|---|---|
iq_stSmartInfeedModuleItf |
The additional interface of the SmartInfeed module must be transferred to the input. |
q_etDiag |
q_etDiagExt |
Enumeration value |
Description |
---|---|---|---|
OK |
0 |
Ok |
|
InputParameterInvalid |
32 |
SubModuleAddInterface is invalid. |
|
InputParameterInvalid |
33 |
SubModuleConsant is outside the valid range. |
Enumeration name: |
Ok |
Enumeration value: |
0 |
Description: |
Ok |
The link for the SmartInfeed module has been updated successfully in the template.
SubModuleAddInterfacesInvalidPointer
Enumeration name: |
SubModuleAddInterfacesInvalidPointer |
Enumeration value: |
32 |
Description: |
SubModuleAddInterface is invalid. |
Issue |
Cause |
Solution |
---|---|---|
- |
An uninitialized pointer (0) was transferred at the i_pdwSubModuleAddInterfaces input. |
Make sure that at the i_pdwSubModuleAddInterfaces input the address of the array is transferred in which the additional interfaces of the node are managed. |
Enumeration name: |
SubModuleConstantRange |
Enumeration value: |
33 |
Description: |
SubModuleConsant is outside the valid range. |
Issue |
Cause |
Solution |
---|---|---|
- |
An invalid value has been transferred at the i_udiSubModuleConstant input. |
Ensure that a value greater than or equal to 0 is transferred at the i_udiSubModuleConstant input. |