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

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 312
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 223

Appendix B

B-93
BASIC Example
The BASIC function code is 41.
DIM status : INTEGER
DIM iostat : INTEGER
DIM msgrbuf(5) : INTEGER
.
.
.
rem * MSG_READ_HANDLER - Set up handler to allow for an asynchronous message
rem * read of msgrbuf. This function will return to the
rem * user before completion of the I/O. MSG_WAIT must be
rem * called to complete the I/O process. Size of buffer
rem * is 20 bytes, message number is 0, number of items to
rem * read is 5, the timeout value is 6 seconds, the
rem * coprocessor data type is integer, the plc data type
rem * is short and iostat gets the I/O completion code.
RUN AB_BAS (41,status,ADDR(msgrbuf(1)),20,0,5,6,5,3,ADDR(iostat))
.
.
.
References
MSG_WRITE_HANDLER(); MSG_WAIT(); MSG_CLR_MASK();
MSG_SET_MASK(); MSG_TST_MASK(); MSG_ZERO_MASK();
Also see synchronous functions:
MSG_WRITE_W_HANDLER(); MSG_READ_W_HANDLER();
Przeglądanie stron 223
1 2 ... 219 220 221 222 223 224 225 226 227 228 229 ... 311 312

Komentarze do niniejszej Instrukcji

Brak uwag