Lenze Global Drive PLC Developer Studio Uživatelský manuál Strana 26

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 27
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 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
Zobrazit stránku 25
1 2 ... 21 22 23 24 25 26 27

Komentáře k této Příručce

Žádné komentáře