Lenze Global Drive PLC Developer Studio Instrukcja Użytkownika Strona 26

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 27
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 25
LenzeFpiDrv.lib function library
Functions
3.6 Receive status (L_Rs232GetReceiveState)
3−11
L
LenzeFpiDrv.lib EN 1.1
Example
Calling up the function in ST:
(* read receive state *)
ReturnValue := L_Rs232GetReceiveState (30, FALSE);
(* Receive Error? *)
IF (ReturnValue < 0) THEN
(* Receive Error *)
(* get error code and number *)
(* of received bytes in case of error *)
g_nReceiveErrorCode := ReturnValue;
g_wNumberOfReceivedBytes_Error := L_Rs232GetReceiveState (30, TRUE);
ELSE
(* No Receive Error *)
(* get number of received bytes *)
g_wNumberOfReceivedBytes_NoError := ReturnValue;
END_IF
Przeglądanie stron 25
1 2 ... 21 22 23 24 25 26 27

Komentarze do niniejszej Instrukcji

Brak uwag