Rockwell-automation 1771-DMC_DMC1_DMC4_DXPS Control Coprocessor User M Instrukcja Użytkownika Strona 243

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 312
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 242

Appendix B

B-112
BASIC Example
The BASIC function code is 42.
DIM status : INTEGER
DIM iostat : INTEGER
DIM msgwbuf(5) : INTEGER
.
.
.
rem * MSG_WRITE_W_HANDLER - Set up handler to allow for a synchronous message
rem * write of msgwbuf. This function will wait for
rem * completion of the I/O before returning to the user.
rem * Size of buffer is 20 bytes, message number is 0,
rem * number of items to read is 5, the timeout value is
rem * 6 seconds, the coprocessor data type is integer,
rem * the plc data type is short and iostat gets the I/O
rem * completion code.
RUN AB_BAS (42,status,ADDR(msgwbuf(1)),20,1,5,6,5,3,ADDR(iostat))
.
.
.
References
MSG_READ_W_HANDLER();
Also see asynchronous functions
MSG_READ_HANDLER(); MSG_WRITE_HANDLER();
Przeglądanie stron 242
1 2 ... 238 239 240 241 242 243 244 245 246 247 248 ... 311 312

Komentarze do niniejszej Instrukcji

Brak uwag