Rockwell Automation 1771-DMC_DMC1_DMC4_DXPS Control Coprocessor User Manual User Manual
Page 265
Advertising
![background image](/manuals/579606/265/background.png)
API Library of Routines
Appendix B
TAG_WRITE
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();
Advertising