FC_UpdateAddInterfaceStruct - General Information
Type: |
Function |
Available as of: |
V1.0.2.0 |
Inherits from: |
— |
Implements: |
— |
This function is used to handle CrankModule submodules within the Update_Structs action of a node equipment module.
The function updates the link to the axis 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_pdwSubModuleAddInterface |
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 module number 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 to GD.ET_Diag.Ok corresponds to a diagnostic message. |
|
q_etDiagExt |
POU-specific output on the diagnostic. q_etDiag = GD.ET_Diag.Ok -> status message q_etDiag <> GD.ET_Diag.Ok -> diagnostic message |
|
q_sMsg |
STRING[80] |
Event-triggered message which gives more detailed information on the diagnostic state. |
Input/Output |
Data type |
Description |
---|---|---|
iq_stCrankModuleItf |
The additional interface of the crank module must be transferred to the input. |
Data type |
Description |
---|---|
BOOL |
|
q_etDiag |
q_etDiagExt |
Enumeration value |
Description |
---|---|---|---|
InputParameterInvalid |
177 |
SubModuleAddInterfaces pointer is invalid. |
|
InputParameterInvalid |
69 |
SubModuleConstant is outside the valid range. |
SubModuleAddInterfacesInvalidPointer
Enumeration name: |
SubModuleAddInterfacesInvalidPointer |
Enumeration value: |
177 |
Description: |
SubModuleAddInterfaces pointer is invalid. |
Issue |
Cause |
Solution |
---|---|---|
- |
An uninitialized pointer (0) was transferred at the i_pdwSubModuleAddInterfaces input. |
Make certain 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: |
69 |
Description: |
SubModuleConstant is outside the valid range. |
Issue |
Cause |
Solution |
---|---|---|
- |
An invalid value was transferred at the i_udiSubModuleConstant input. |
Ensure that a value greater or equal to 0 is transferred at the i_udiSubModuleConstant input. |