Rockwell-automation 1771-DMC_DMC1_DMC4_DXPS Control Coprocessor User M Uživatelský manuál Strana 254

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 312
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 253
")).' ',+"&*
Appendix B

B-123
This function locks the requested TAG memory area.
C Syntax
#include <copro.h>
unsigned TAG_LOCK (tag,timeout)
unsigned tag;
or
char *tag;
unsigned timeout;
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.
timeout
Timeout value in seconds, from 0 to 16,383. A value of CC_FOREVER
(defined in COPRO.H) will wait until the TAG has been locked.
Returns
Value Symbolic Name Meaning
 ()+"'& *,** ,$
    "&  ',+ ' )&!
  &-$" +"%',+ -$,
  " &'+ '%($+ "& +"%  $'#
   &'+ ',&
Description
Use the TAG_LOCK function to protect against concurrent access to the
tagged data when accessing the TAG without using TAG_READ or
TAG_WRITE.
Important: After access to the TAG is completed, you must call
TAG_UNLOCK to unlock the TAG; otherwise, the system may hang.
A status of CC_SUCCESS indicates that the calling procedure has locked
the TAG.
TAG_LOCK
Zobrazit stránku 253
1 2 ... 249 250 251 252 253 254 255 256 257 258 259 ... 311 312

Komentáře k této Příručce

Žádné komentáře