ST_RegisterDiagSource

 

ST_RegisterDiagSource - General Information

Overview

Type:

Data structure

Available as of:

V2.0.0.0

Inherits from:

-

Versions:

Current version

Description

Substructure for ST_DiagnosticsManagerToDiagSource via which communication of several diagnostic sources is coordinated

Structure Elements

Variable

Data type

Description

xUsed

BOOL

TRUE, as soon as it is writing in the register structure during the program cycle. A diagnostic source must verify this register first and may only write if it still returns FALSE.

udiNextId

UDINT

This ID must use a diagnostic source to register itself. The ID is required for all following communication. After the registration, a diagnostic source determines in each cycle whether it was sent a command by checking ST_DiagnosticsManagerToDiagSource.i_udiComWithId for the presence of the own ID.

sName

STRING(255)

A unique string ID for every connected diagnostic source for the communication.

sTypeName

STRING(255)

A string for describing and allocating the diagnostic source to a diagnostic type.

xUnsubscribe

BOOL

Communication is only permitted as long as the value is FALSE. After the completion of all the communication processes, a diagnostic source must set this value to TRUE.

udiSourceId

UDINT

ID of the source