IWriterDiagnostics.GetInstancePointer (METH)ΒΆ

METHOD GetInstancePointer : POINTER TO WriterDiagnostics

Converts the Interface Reference to the Instance Pointer
The InstancePointer can be used to access the value of each output variable.

Example

pWriterDiagnostics : POINTER TO WriterDiagnostics;
pDiagnosticsCounter : POINTER TO DiagnosticsCounter;
udiValue : UDINT;

pWriterDiagnostics := itfDiagnostics.GetInstancePointer();
pDiagnosticsCounter := pWriterDiagnostics^.itfTotalError.GetInstancePointer();
udiValue := pDiagnosticsCounter^.udiValue
InOut:

Scope

Name

Type

Return

GetInstancePointer

POINTER TO WriterDiagnostics

Output

eErrorID

ERROR