Lenze Global Drive PLC Developer Studio User Manual Page 26

  • Download
  • Add to my manuals
  • Print
  • Page
    / 27
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 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
Page view 25
1 2 ... 21 22 23 24 25 26 27

Comments to this Manuals

No comments