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

  • 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 175
  $#"!
Appendix B

B-45
Returns the number of data definitions that can be added to the DTL
data-definition table.
C Syntax
#include <copro.h>
unsigned DTL_DEF_AVAIL (num_avail)
unsigned *num_avail;
Parameters
num_avail
Contains the number of data definitions remaining in the
data-definition table.
Description
Use the DTL_DEF_AVAIL function to determine the number of data
definitions available in the calling task’s table of data definitions. The
function calculates the difference between the number of entries defined by
DTL_INIT and the number of successful data definitions made using
DTL_C_DEFINE and returns the results in the num_avail parameter.
Returns
Status Symbolic Name Meaning
  " !#!!#
   " " "%
C Example
unsigned status;
unsigned num_avail;
.
.
.
status = DTL_DEF_AVAIL (&num_avail);
printf (“%d definitions available\n”,num_avail);
DTL_DEF_AVAIL
Zobrazit stránku 175
1 2 ... 171 172 173 174 175 176 177 178 179 180 181 ... 311 312

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

Žádné komentáře