Rockwell Automation 1771-DMC_DMC1_DMC4_DXPS Control Coprocessor User Manual User Manual

Page 249

Advertising
background image

API Library of Routines

Appendix B

TAG_DEFINE

B-118

BASIC Example

The BASIC function code is 60.

DIM status : INTEGER

DIM tag_id : INTEGER

DIM george : INTEGER

.

.

.

rem * TAG_DEFINE - Define a tag to variable george with a symbolic

rem * name George. The size of george is 4 bytes.

RUN AB_BAS (60,status,ADDR(tag_id),ADDR(george),“George”,4,1)

.

.

.

References

TAG_UNDEF(); TAG_DEF_AVAIL(); TAG_LINK();
TAG_GLOBAL_UNDEF();

Advertising