Tag_undef – Rockwell Automation 1771-DMC_DMC1_DMC4_DXPS Control Coprocessor User Manual User Manual
Page 260
API Library of Routines
Appendix B
TAG_UNDEF
B-129
Removes a TAG or TAGs from the TAG table defined by the
calling process.
C Syntax
#include <copro.h>
unsigned TAG_UNDEF (tag)
unsigned tag;
or
char *tag;
Parameters
tag
Use to access the TAG table. This can be either the symbolic TAG or
the handle returned from a TAG_LINK or TAG_DEFINE call. A value
of CC_ALLTAGS (defined in COPRO.H) will remove all TAGs defined
by this process.
Returns
Value
Symbolic Name
Meaning
0
CC_SUCCESS
Operation successful
120
CC_E_BADID
TAG define ID out of range
176
CC_E_NOTAG
TAG not found
179
CC_E_NOTDEFINER
Caller is not the definer of this TAG
Description
Use the TAG_UNDEF function to remove a TAG or TAGs from the TAG
table. This function can only remove TAGs defined by the calling process.
C Example
unsigned status;
status = TAG_UNDEF (“Fred”);
TAG_UNDEF