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

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 312
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 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();
Przeglądanie stron 264
1 2 ... 260 261 262 263 264 265 266 267 268 269 270 ... 311 312

Komentarze do niniejszej Instrukcji

Brak uwag