ChannelDiagnosisData (STRUCT)

TYPE ChannelDiagnosisData : STRUCT

Diagnosis information in standard format.

There are ranges of ErrorTypes that are defined by the Profinet Standard, see enum ChannelErrorType.
Manufacturers can define device specific errors in the GSDML of their Profinet Device.
The ChannelErrorType and the ExtChannelErrorType match the ErrorType of the ChannelDiagItem- and ExtChannelDiagItem- elements of the GSDML.

Example

<ChannelDiagList>
    <!-- Only use manufacturer specific range for ChannelErrorType = 0x0100 – 0x7FFF ! -->
    <ChannelDiagItem ErrorType="4096">
        <Name TextId="DIAG.Runtime-Cfg"/>
        <ExtChannelDiagList>
            <ExtChannelDiagItem ErrorType="1">
                <Name TextId="DIAG.IP-Change not allowed"/>
                <Help TextId="DIAG.IP-Change not allowed.Help" />
            </ExtChannelDiagItem>
            <ExtChannelDiagItem ErrorType="2">
                <Name TextId="DIAG.DynamicIP"/>
                <Help TextId="DIAG.DynamicIP.Help" />
            </ExtChannelDiagItem>
        </ExtChannelDiagList>
    </ChannelDiagItem>
</ChannelDiagList>

<ExternalTextList>
    <PrimaryLanguage>

        <!-- Diagnosis -->
        <Text TextId="DIAG.Runtime-Cfg" Value="Runtime Configuration:"/>
        <Text TextId="DIAG.IP-Change not allowed" Value="IP-Change not enabled on specified interface ! PN-Device will operate with limitations."/>
        <Text TextId="DIAG.IP-Change not allowed.Help" Value="Enable update of IP-address in *.cfg - File"/>
        <Text TextId="DIAG.DynamicIP" Value="IP-Change not possible on specified interface ! PN-Device will operate with limitations."/>
        <Text TextId="DIAG.DynamicIP.Help" Value="Dynamic IP address, provided by DHCP, BOOTP, etc. cannot be changed by DCP-commands !"/>

    </PrimaryLanguage>
</ExternalTextList>
InOut:

Name

Type

Initial

Comment

Severity

DiagnosisSeverity

DiagnosisSeverity.Undefined

Severity of the diagnosis entry

ChannelErrorType

UINT

expresses the type of diagnosis

ExtChannelErrorType

UINT

expresses the subtype of diagnosis (optional)

ExtChannelAddValue

UDINT

additional information to the diagnosis