Rockwell-automation 1771-DMC_DMC1_DMC4_DXPS Control Coprocessor User M Manual de usuario Pagina 243

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 312
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 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();
Vista de pagina 242
1 2 ... 238 239 240 241 242 243 244 245 246 247 248 ... 311 312

Comentarios a estos manuales

Sin comentarios