Overview
Type:
|
Function
|
Available as of:
|
SystemInterface_1.32.6.0
|
Versions:
|
Current version
|
Task
Trigger diagnostic message.
Description
This function allows you to trigger diagnostic messages from the program. The diagnostic class (in the range 0 to 4) of the diagnostic message is set via the parameter i_diDiagClass. In DiagCode, the diagnostic number is transferred. For this, the range from 8850 to 8899 of the system diagnostic messages is reserved. Use i_sDiagText to transfer the diagnostic text. The maximum length is set to 55 characters.
Interface
Input
|
Data type
|
Description
|
i_diDiagClass
|
DINT
|
Diagnostic class
|
i_diDiagCode
|
DINT
|
Diagnostic number
|
i_sDiagText
|
STRING[80]
|
Diagnostic text (maximum 55 characters).
|
Return Value
Data type
|
Description
|
DINT
|
0: OK
-2: Invalid diagnostic class.
-5: Invalid diagnostic number.
|