Rockwell-automation 1771-DMC_DMC1_DMC4_DXPS Control Coprocessor User M Manual do Utilizador Página 140

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 312
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 139
#**/(!(-,#' +
Appendix B

B-9
Returns
Status Symbolic Name Meaning
 ) *,#(' +- ++!-%
   () *,#(' # '(, (&)% , #' ,#&
  '.%# ,#& (-, .%-
  '.%# .%- !(*  ,*#"" * &+$
  '.%# +#0 !(* () *,#('
Description
Use the BPI_WRITE routine to allow the programmable controller
to perform a block-transfer read over the I/O backplane to the
control coprocessor.
It may accomplish a block-transfer read with the control coprocessor by
allowing both a timeout and a trigger mask to be specified. The function
will first do a single transfer with the programmable controller using the
callers trigger mask. The programmable-controller ladder program can
monitor the input image for the control coprocessor to receive the trigger
mask. If one of the user-specified bits goes true, then a block-transfer read
to the control coprocessor is initiated. The function will then return to the
caller when either the block transfer or the timeout has occurred. This
function will return a success or fail status. In the case of a fail status, the
caller can check the returned status value to find out why the function
failed—i.e., transfer_size > 64.
C Example
unsigned char size=6; /* size of block transfer */
short outbuff[32]; /* location of copy data from */
unsigned int timeout=2; /* user timeout in two seconds */
unsigned short trg_mask = 0x400; /*trigger mask, bit 12 (octal) is set */
int status; /*status value of BPI_WRITE*/
.
.
.
status = BPI_WRITE (size, outbuff, timeout, trg_mask);
.
.
.
Vista de página 139
1 2 ... 135 136 137 138 139 140 141 142 143 144 145 ... 311 312

Comentários a estes Manuais

Sem comentários