This structure contains elements that chronicle the Program Invocation’sactivity and can be used to aid in the diagnosis of Programproblems.

Note The original ProgramDiagnosticDataType had flaws. To avoid collisions with existing implementations, a new version with name ProgramDiagnostic2DataType has been created.

Its composition is defined in Table 11.

Table 11– ProgramDiagnostic2DataType structure

Name

Type

Description

ProgramDiagnostic2DataType

structure

createSessionId

NodeId

The CreateSessionIdcontains the SessionIdof the Sessionon which the call to the Create Method was issued to create the Program Invocation.

createClientName

String

The CreateClientNameis the name of the Clientof the Sessionthat created the Program Invocation.

invocationCreationTime

UtcTime

The InvocationCreationTimeidentifies the time the Program Invocationwas created.

lastTransitionTime

UtcTime

The LastTransitionTimeidentifies the time of the last Program state transition that occurred.

lastMethodCall

String

The LastMethodCallidentifies the last Program Methodcalled on the Program Invocation.

lastMethodSessionId

NodeId

The LastMethodSessionIdcontains the SessionIdof the Sessionon which the last Program Control Methodcall to the Program Invocationwas issued.

lastMethodInputArguments

Argument[]

The LastMethodInputArgumentsprovides the input arguments on the last Program Methodcall.

lastMethodOutputArguments

Argument[]

The LastMethodOutputArgumentsprovides the output arguments on the last Program Methodcall.

lastMethodInputValues

BaseDataType[]

The LastMethodInputValuespreserves the values of the input arguments on the last Program Methodcall. The size and order of this list matches the size and order of the lastMethodInputArgumentsfield.

lastMethodOutputValues

BaseDataType[]

The LastMethodOutputValuespreserves the values of the output arguments on the last Program Methodcall. The size and order of this list matches the size and order of the lastMethodOutputArgumentsfield.

lastMethodCallTime

UtcTime

The LastMethodCallTimeidentifies the time of the last Method call to the Program Invocation.

lastMethodReturnStatus

StatusCode

The LastMethodReturnStatus preserves the value of the return statusfor the last Program Control Method requested forthis Program Invocation.

Its representation in the AddressSpaceis defined in Table 12.

Table 12– ProgramDiagnostic2DataType definition

Attribute

Value

BrowseName

ProgramDiagnostic2DataType

IsAbstract

False

References

NodeClass

BrowseName

DataType

TypeDefinition

Other

Subtype of Structure defined in OPC 10000-5.

Conformance Units

Program Basic