Lenze PLC Designer PLC Designer (R3-1) Instrukcja Użytkownika Strona 50

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 117
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 49
L-force | PLC Designer
Lenze Specific Functions
48 DMS 4.1 EN 03/2011 TD29
Example
FUNCTION_BLOCK L_IO1000_EPMS640_RS232Read
VAR_INPUT
xExecute: BOOL; (*Trigger request on positive edge / enable reading of data
from RS232 module*)
xReset: BOOL; (*Trigger reset / reset block*)
pbyInput_address: POINTER TO BYTE; (*Start address of input area in process
image*)
pbyOutput_address: POINTER TO BYTE; (*Start address of output area in process
image*)
pbyData_address: POINTER TO BYTE; (*Start address of data area to be
transferred*)
wNumber_of_IOBytes: WORD; (*Number of bytes available in process image 8/
20/ 60*)
END_VAR
VAR_OUTPUT
xDone: BOOL; (*Request completed without error, data sent STATUS parameter
= 00h*)
xBusy: BOOL; (*Information on processing status*)
xError: BOOL; (*Request completed with errors, STATUS parameter contains error
information*)
wStatus: WORD; (*Specification of the error if ERROR = 1 /information on
processing status, request is being processed 0x8181h*)
wLength_of_telegram: WORD; (*Number of bytes to be transferred. 1 <= LEN <=
1024*)
END_VAR
Przeglądanie stron 49
1 2 ... 45 46 47 48 49 50 51 52 53 54 55 ... 116 117

Komentarze do niniejszej Instrukcji

Brak uwag