To analyze the template project with PacDrive Diagnostics, this POU provides the variables in the ST_ModuleInterface of a MultiBelt module as diagnostic source. It lists modules, starting with the MainMachine. For each MultiBeltModule, the entire additional interface is provided.
Input |
Data type |
Description |
---|---|---|
i_xEnable |
BOOL |
A rising edge FALSE -> TRUE activates the POU, a falling edge TRUE -> FALSE deactivates the POU. A deactivated POU does not execute any actions. |
i_xDiagQuit |
BOOL |
Acknowledging a pending diagnostic message. |
Output |
Data type |
Description |
---|---|---|
q_xActive |
BOOL |
TRUE: The POU is active and has to be executed further. FALSE: The POU is inactive. |
q_xReady |
BOOL |
TRUE: The POU is ready to operate and can accept user commands. FALSE: The function block is not ready to accept user commands. |
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_stComStructure |
Communication with the DiagManager. This input must be connected to "stComStructure". (see PD_DemoProject_MultiBeltModule.SR_Diagnostics). |
|
iq_stMachineItf |
The interface of the MainMachine. Using this input the diagnostic source can search the existing modules, using the module tree. This input must be connected to "SR_MainMachine.stMachineInterface". (PD_DemoProject_MultiBeltModule.SR_Diagnostics). |
q_etDiag |
q_etDiagExt |
Enumeration value |
Description |
---|---|---|---|
OK |
DataSuccessfullyWritten |
121 |
The data was successfully written. |
OK |
Disabled |
29 |
The POU is disabled. |
OK |
WaitForCommunication |
120 |
Waiting for communication |
OK |
WaitUntilDiagnosticsManagerReady |
117 |
Waiting for the diagnostic manager to be ready. |
OK |
WaitUntilDiagSourceRegistered |
119 |
Waiting for registration of the diagnostic source |
OK |
WaitUntilDisabled |
118 |
Waiting until POU is disabled. |
OK |
WritingToFile |
122 |
Data are being written into the file. |
InputParameterInvalid |
CmdUnknown |
6 |
Indeterminable command. |
InputParameterInvalid |
FileIdInvalid |
123 |
The file is invalid. |
UnexpectedProgramBehavior |
UnexpectedFeedback |
35 |
A POU returns an unintended value. |
Enumeration name: |
CmdUnknown |
Enumeration value: |
6 |
Description: |
Indeterminable command. |
Issue/Cause |
Solution |
---|---|
An incorrect communication structure has been applied at the iq_stComStructure input. |
At the iq_stComStructure input, the same structure must be applied that was transferred to TPL.FB_DiagnosticsManager at the iq_stComStructure input. |
Enumeration name: |
DataSuccessfullyWritten |
Enumeration value: |
121 |
Description: |
The data was successfully written. |
The diagnostic data was successfully written.
Enumeration name: |
Disabled |
Enumeration value: |
29 |
Description: |
The POU is disabled. |
The function block is deactivated, it executes no actions. i_xEnable and q_xActive have the value FALSE.
Enumeration name: |
FileIdInvalid |
Enumeration value: |
123 |
Description: |
The file is invalid. |
Issue/Cause |
Solution |
---|---|
An incorrect communication structure has been applied at the iq_stComStructure input. |
At the iq_stComStructure input, the same structure must be applied that was transferred to TPL.FB_DiagnosticsManager at the iq_stComStructure input. |
Enumeration name: |
UnexpectedFeedback |
Enumeration value: |
35 |
Description: |
A POU returns an unintended value. |
Issue/Cause |
Solution |
---|---|
An error has been detected and occurred in the internal execution. |
Contact your Schneider Electric service representative about this detected error. |
Enumeration name: |
WaitForCommunication |
Enumeration value: |
120 |
Description: |
Waiting for communication |
The diagnostic source is ready and is waiting for commands of the diagnostic manager.
Enumeration name: |
WaitUntilDiagnosticsManagerReady |
Enumeration value: |
117 |
Description: |
Waiting for the diagnostic manager to be ready. |
The diagnostic source is waiting for the diagnostic manager to become ready.
Enumeration name: |
WaitUntilDiagSourceRegistered |
Enumeration value: |
119 |
Description: |
Waiting for registration of the diagnostic source |
Waiting until the diagnostic source has been registered with the diagnostic manager.