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

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 312
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 264

Appendix B

B-134
Description
Use TAG_WRITE to write data to a tagged memory area. This
function guarantees that the write data area is semaphored during the
write operation.
C Example
unsigned my_fred;
unsigned status;
my_fred = 42;
.
.
.
status = TAG_WRITE (“Fred”,0,sizeof(my_fred),&my_fred,30);
BASIC Example
The BASIC function number is 68.
DIM status : INTEGER
DIM tag_id : INTEGER
DIM w_data : INTEGER
.
.
.
rem * TAG_WRITE - write 4 bytes to a tag, starting at offset 0 from
rem * w_data with a timeout of 30 seconds.
RUN AB_BAS (68,status,tag_id,0,4,ADDR(w_data),30)
.
.
.
References
TAG_LINK(); TAG_DEFINE(); TAG_UNDEF();
TAG_GLOBAL_UNDEF(); TAG_READ(); TAG_LOCK();
TAG_UNLOCK(); TAG_READ_W(); TAG_WRITE_W();
Vista de página 264
1 2 ... 260 261 262 263 264 265 266 267 268 269 270 ... 311 312

Comentários a estes Manuais

Sem comentários