Rockwell-automation 1771-DMC_DMC1_DMC4_DXPS Control Coprocessor User M Instrukcja Użytkownika Strona 176

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 312
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 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
Przeglądanie stron 175
1 2 ... 171 172 173 174 175 176 177 178 179 180 181 ... 311 312

Komentarze do niniejszej Instrukcji

Brak uwag