FC_DiagMsgWrite - General Information

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. Use i_sDiagText to transfer the diagnostic text. The maximum length is set to 14 characters. These are extended diagnostic messages.

DiagClass

Diagnostic message

0

8400 "IEC Diagnostic message class 0"

1

8401 "IEC Diagnostic message class 1"

2

8402 "IEC Diagnostic message class 2"

3

8403 "IEC Diagnostic message class 3"

4

8404 "IEC Diagnostic message class 4"

Interface

Input

Data type

Description

i_diDiagClass

DINT

Diagnostic class

i_sDiagText

STRING[80]

Diagnostic text (maximum 14 characters).

Return Value

Data type

Description

DINT

0: OK

-2: Invalid class.