Rockwell Automation 1771-DMC_DMC1_DMC4_DXPS Control Coprocessor User Manual User Manual

Page 253

Advertising
background image

API Library of Routines

Appendix B

TAG_LINK

B-122

C Example

unsigned status;

unsigned fred_id;

.

.

.

status = TAG_LINK (&fred_id,“Fred”);

BASIC Example

The BASIC function code is 64.

DIM status : INTEGER

DIM tag_id : INTEGER

.

.

.

rem * TAG_LINK - link to the tag “wall” defined by another process

RUN AB_BAS (64,status,ADDR(tag_id),“wall”)

.

.

.

References

TAG_DEFINE(); TAG_UNDEF(); TAG_DEF_AVAIL();
TAG_GLOBAL_UNDEF();

Advertising