also ich komme nicht zu recht mit der wagolibstatus.lib
STATUS_GET_LAST_ERROR
gibt es als funktion
Eingangsparameter: Datentyp: Kommentar:
pLastError
POINTER TO STATUS_LAST_ERROR
Zeiger auf fehlerbeschreibende Struktur.
Rückgabewert: Datentyp: Kommentar:
DWORD
Anzahl der Fehler seit dem Start des Controllers.
ich weiss nicht was ich da als eingabewert übermitteln soll????
es steht da dieser baustein soll mit dem ans systemereigniss blink_code gekoppelt sein?
verstehe das nicht so recht!
Hi
In der Lib gibts eine Struktur:
TYPE STATUS_LAST_ERROR :
STRUCT
errCode : DWORD; (* Fault code. *) errArg: DWORD; (* Fault argument. *) errTime: DT; (* Time and Date when the error has occured / was cleared. *) set: BOOL; (* TRUE => New error. FALSE => Error cleared. *)
END_STRUCT
END_TYPE
Du musst dir also in deinem Projekt eine Variable von diesem Typ anlegen.
Bsp: myVar: STATUS_LAST_ERROR;
An die Funktion üergibst du dann die Adresse dieser Struktur:
STATUS_GET_LAST_ERROR(adr(myVar));
Die Funktion füllt dir dann die Struktur mit Daten.
Beschreibung aus der lib:
Returns the number of errors since power up. The structure that 'pLastError' points to, is filled with information about the kind of error.
It is recommended to call this function in conjunction with the event 'blink_code'.
For detailed error information see the manual of the fieldbus controller.
Gruss Erik
Log in to post a comment.
also ich komme nicht zu recht mit der wagolibstatus.lib
STATUS_GET_LAST_ERROR
gibt es als funktion
Eingangsparameter: Datentyp: Kommentar:
pLastError
POINTER TO STATUS_LAST_ERROR
Zeiger auf fehlerbeschreibende Struktur.
Rückgabewert: Datentyp: Kommentar:
STATUS_GET_LAST_ERROR
DWORD
Anzahl der Fehler seit dem Start des Controllers.
ich weiss nicht was ich da als eingabewert übermitteln soll????
es steht da dieser baustein soll mit dem ans systemereigniss blink_code gekoppelt sein?
verstehe das nicht so recht!
Hi
In der Lib gibts eine Struktur:
TYPE STATUS_LAST_ERROR :
STRUCT
END_STRUCT
END_TYPE
Du musst dir also in deinem Projekt eine Variable von diesem Typ anlegen.
Bsp: myVar: STATUS_LAST_ERROR;
An die Funktion üergibst du dann die Adresse dieser Struktur:
STATUS_GET_LAST_ERROR(adr(myVar));
Die Funktion füllt dir dann die Struktur mit Daten.
Beschreibung aus der lib:
Returns the number of errors since power up. The structure that 'pLastError' points to, is filled with information about the kind of error.
It is recommended to call this function in conjunction with the event 'blink_code'.
For detailed error information see the manual of the fieldbus controller.
Gruss Erik