Tag_unlock – Rockwell Automation 1771-DMC_DMC1_DMC4_DXPS Control Coprocessor User Manual User Manual

Page 262

Advertising
background image

API Library of Routines

Appendix B

TAG_UNLOCK

B-131

This function unlocks the requested TAG memory area.

C Syntax

#include <copro.h>

unsigned TAG_UNLOCK (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.

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

178

CC_E_NOTLOCKER

Caller is not the locker of this TAG

185

CC_E_NOTLOCKED

TAG is not locked

Description

Use the TAG_UNLOCK function to unlock the TAG locked by
TAG_LOCK.

Important: This function must be called after access to the TAG is
completed; otherwise, the system may hang.

TAG_UNLOCK

Advertising